Interface Customer
- All Superinterfaces:
MultiTenantCloneable<Customer>,Serializable
- All Known Implementing Classes:
CustomerImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetId()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.This returns a non-null map of transient properties that are not persisted to the database.booleanbooleanbooleanReturns true if this user has been deactivated.booleanbooleanIf true, this customer must go through a reset password flow.booleanbooleanbooleanConvenience method to represent if this customer should be taxed or not when pricing theirOrder.voidsetAnonymous(boolean anonymous) voidsetAuditable(Auditable auditable) voidsetChallengeAnswer(String challengeAnswer) voidsetChallengeQuestion(ChallengeQuestion challengeQuestion) voidsetCookied(boolean cookied) voidsetCustomerAddresses(List<CustomerAddress> customerAddresses) voidsetCustomerAttributes(Map<String, CustomerAttribute> customerAttributes) voidsetCustomerLocale(Locale customerLocale) voidsetCustomerPayments(List<CustomerPayment> customerPayments) voidsetCustomerPhones(List<CustomerPhone> customerPhones) voidsetDeactivated(boolean deactivated) Sets the users deactivated status.voidsetEmailAddress(String emailAddress) voidsetExternalId(String externalId) voidsetFirstName(String firstName) voidvoidsetLastName(String lastName) voidsetLoggedIn(boolean loggedIn) voidsetPassword(String password) voidsetPasswordChangeRequired(boolean passwordChangeRequired) voidsetReceiveEmail(boolean receiveEmail) voidsetRegistered(boolean registered) voidsetTaxExemptionCode(String exemption) Associates a tax exemption code to this user to notate tax exemption status.voidsetUnencodedChallengeAnswer(String unencodedChallengeAnswer) voidsetUnencodedPassword(String unencodedPassword) voidsetUsername(String username) Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId() -
setId
-
getUsername
String getUsername() -
setUsername
-
getPassword
String getPassword() -
setPassword
-
isPasswordChangeRequired
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.
-
setPasswordChangeRequired
void setPasswordChangeRequired(boolean passwordChangeRequired) -
getFirstName
String getFirstName() -
setFirstName
-
getLastName
String getLastName() -
setLastName
-
getEmailAddress
String getEmailAddress() -
setEmailAddress
-
getExternalId
String getExternalId() -
setExternalId
-
getChallengeQuestion
ChallengeQuestion getChallengeQuestion() -
setChallengeQuestion
-
getChallengeAnswer
String getChallengeAnswer() -
setChallengeAnswer
-
getUnencodedPassword
String getUnencodedPassword() -
setUnencodedPassword
-
isReceiveEmail
boolean isReceiveEmail() -
setReceiveEmail
void setReceiveEmail(boolean receiveEmail) -
isRegistered
boolean isRegistered() -
setRegistered
void setRegistered(boolean registered) -
getUnencodedChallengeAnswer
String getUnencodedChallengeAnswer() -
setUnencodedChallengeAnswer
-
getAuditable
Auditable getAuditable() -
setAuditable
-
isCookied
boolean isCookied() -
setCookied
void setCookied(boolean cookied) -
isLoggedIn
boolean isLoggedIn() -
setLoggedIn
void setLoggedIn(boolean loggedIn) -
isAnonymous
boolean isAnonymous() -
setAnonymous
void setAnonymous(boolean anonymous) -
getCustomerLocale
Locale getCustomerLocale() -
setCustomerLocale
-
getCustomerAttributes
Map<String,CustomerAttribute> getCustomerAttributes() -
setCustomerAttributes
-
isDeactivated
boolean isDeactivated()Returns true if this user has been deactivated. Most implementations will not allow the user to login if they are deactivated.- Returns:
-
setDeactivated
void setDeactivated(boolean deactivated) Sets the users deactivated status.- Parameters:
deactivated-
-
getCustomerAddresses
List<CustomerAddress> getCustomerAddresses() -
setCustomerAddresses
-
getCustomerPhones
List<CustomerPhone> getCustomerPhones() -
setCustomerPhones
-
getCustomerPayments
List<CustomerPayment> getCustomerPayments() -
setCustomerPayments
-
getTaxExemptionCode
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.- Returns:
- the code for this user's tax exemption reason, usually to just be passed to an external system
-
setTaxExemptionCode
Associates a tax exemption code to this user to notate tax exemption status. Default behavior in theorg.broadleafcommerce.core.pricing.service.tax.provider.SimpleTaxProvideris that if this is set to any value then this customer is tax exempt.- Parameters:
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 theorg.broadleafcommerce.core.pricing.service.tax.provider.SimpleTaxProvideris that if there is anything ingetTaxExemptionCode()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 ongetTaxExemptionCode()- Returns:
- whether or not this customer is exempt from tax calculations
-
getTransientProperties
This returns a non-null map of transient properties that are not persisted to the database.- Returns:
-