public interface Customer extends Serializable, MultiTenantCloneable<Customer>
| Modifier and Type | Method and Description |
|---|---|
Auditable |
getAuditable() |
String |
getChallengeAnswer() |
ChallengeQuestion |
getChallengeQuestion() |
List<CustomerAddress> |
getCustomerAddresses() |
Map<String,CustomerAttribute> |
getCustomerAttributes() |
Locale |
getCustomerLocale() |
List<CustomerPayment> |
getCustomerPayments() |
List<CustomerPhone> |
getCustomerPhones() |
String |
getEmailAddress() |
String |
getExternalId() |
String |
getFirstName() |
Long |
getId() |
String |
getLastName() |
String |
getPassword() |
String |
getTaxExemptionCode()
The code used by an external system to determine if the user is tax exempt and/or what specific taxes the user is
exempt from.
|
Map<String,Object> |
getTransientProperties()
This returns a non-null map of transient properties that are not
persisted to the database.
|
String |
getUnencodedChallengeAnswer() |
String |
getUnencodedPassword() |
String |
getUsername() |
boolean |
isAnonymous() |
boolean |
isCookied() |
boolean |
isDeactivated()
Returns true if this user has been deactivated.
|
boolean |
isLoggedIn() |
boolean |
isPasswordChangeRequired()
If true, this customer must go through a reset password flow.
|
boolean |
isReceiveEmail() |
boolean |
isRegistered() |
boolean |
isTaxExempt()
Convenience method to represent if this customer should be taxed or not when pricing their
Order. |
void |
setAnonymous(boolean anonymous) |
void |
setAuditable(Auditable auditable) |
void |
setChallengeAnswer(String challengeAnswer) |
void |
setChallengeQuestion(ChallengeQuestion challengeQuestion) |
void |
setCookied(boolean cookied) |
void |
setCustomerAddresses(List<CustomerAddress> customerAddresses) |
void |
setCustomerAttributes(Map<String,CustomerAttribute> customerAttributes) |
void |
setCustomerLocale(Locale customerLocale) |
void |
setCustomerPayments(List<CustomerPayment> customerPayments) |
void |
setCustomerPhones(List<CustomerPhone> customerPhones) |
void |
setDeactivated(boolean deactivated)
Sets the users deactivated status.
|
void |
setEmailAddress(String emailAddress) |
void |
setExternalId(String externalId) |
void |
setFirstName(String firstName) |
void |
setId(Long id) |
void |
setLastName(String lastName) |
void |
setLoggedIn(boolean loggedIn) |
void |
setPassword(String password) |
void |
setPasswordChangeRequired(boolean passwordChangeRequired) |
void |
setReceiveEmail(boolean receiveEmail) |
void |
setRegistered(boolean registered) |
void |
setTaxExemptionCode(String exemption)
Associates a tax exemption code to this user to notate tax exemption status.
|
void |
setUnencodedChallengeAnswer(String unencodedChallengeAnswer) |
void |
setUnencodedPassword(String unencodedPassword) |
void |
setUsername(String username) |
createOrRetrieveCopyInstanceLong getId()
void setId(Long id)
String getUsername()
void setUsername(String username)
String getPassword()
void setPassword(String password)
boolean isPasswordChangeRequired()
If true, this customer must go through a reset password flow.
During a site conversion or security breach or a matter of routine security policy, it may be necessary to require users to change their password. This property will not allow a user whose credentials are managed within Broadleaf to login until they have reset their password.
Used by blUserDetailsService.
void setPasswordChangeRequired(boolean passwordChangeRequired)
String getFirstName()
void setFirstName(String firstName)
String getLastName()
void setLastName(String lastName)
String getEmailAddress()
void setEmailAddress(String emailAddress)
String getExternalId()
void setExternalId(String externalId)
ChallengeQuestion getChallengeQuestion()
void setChallengeQuestion(ChallengeQuestion challengeQuestion)
String getChallengeAnswer()
void setChallengeAnswer(String challengeAnswer)
String getUnencodedPassword()
void setUnencodedPassword(String unencodedPassword)
boolean isReceiveEmail()
void setReceiveEmail(boolean receiveEmail)
boolean isRegistered()
void setRegistered(boolean registered)
String getUnencodedChallengeAnswer()
void setUnencodedChallengeAnswer(String unencodedChallengeAnswer)
Auditable getAuditable()
void setAuditable(Auditable auditable)
void setCookied(boolean cookied)
boolean isCookied()
void setLoggedIn(boolean loggedIn)
boolean isLoggedIn()
void setAnonymous(boolean anonymous)
boolean isAnonymous()
Locale getCustomerLocale()
void setCustomerLocale(Locale customerLocale)
Map<String,CustomerAttribute> getCustomerAttributes()
void setCustomerAttributes(Map<String,CustomerAttribute> customerAttributes)
boolean isDeactivated()
void setDeactivated(boolean deactivated)
deactivated - List<CustomerAddress> getCustomerAddresses()
void setCustomerAddresses(List<CustomerAddress> customerAddresses)
List<CustomerPhone> getCustomerPhones()
void setCustomerPhones(List<CustomerPhone> customerPhones)
List<CustomerPayment> getCustomerPayments()
void setCustomerPayments(List<CustomerPayment> customerPayments)
String getTaxExemptionCode()
#isTaxExempt()}void setTaxExemptionCode(String exemption)
org.broadleafcommerce.core.pricing.service.tax.provider.SimpleTaxProvider is that if this is set to
any value then this customer is tax exempt.exemption - the tax exemption code for the customer#isTaxExempt()}boolean isTaxExempt()
Convenience method to represent if this customer should be taxed or not when pricing their Order. Default
behavior in the org.broadleafcommerce.core.pricing.service.tax.provider.SimpleTaxProvider is that if there
is anything in getTaxExemptionCode() then the customer is exempt.
If you assign special meaning to the getTaxExemptionCode() then this might be different and you should
determine specific tax exemption based on getTaxExemptionCode()
Copyright © 2021. All rights reserved.