@Entity public class CustomerImpl extends Object implements Customer, AdminMainEntity, Previewable
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomerImpl.Presentation |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
anonymous |
protected Auditable |
auditable |
protected String |
challengeAnswer |
protected ChallengeQuestion |
challengeQuestion |
protected boolean |
cookied |
protected List<CustomerAddress> |
customerAddresses |
protected Map<String,CustomerAttribute> |
customerAttributes |
protected Locale |
customerLocale |
protected List<CustomerPayment> |
customerPayments |
protected List<CustomerPhone> |
customerPhones |
protected Boolean |
deactivated |
protected String |
emailAddress |
protected String |
firstName |
protected Long |
id |
protected String |
lastName |
protected boolean |
loggedIn |
protected String |
password |
protected Boolean |
passwordChangeRequired |
protected PreviewStatus |
previewable |
protected Boolean |
receiveEmail |
protected Boolean |
registered |
protected String |
taxExemptionCode |
protected Map<String,Object> |
transientProperties |
protected String |
unencodedChallengeAnswer |
protected String |
unencodedPassword |
protected String |
username |
MAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
CustomerImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends Customer> |
createOrRetrieveCopyInstance(MultiTenantCopyContext context) |
boolean |
equals(Object obj) |
Auditable |
getAuditable() |
String |
getChallengeAnswer() |
ChallengeQuestion |
getChallengeQuestion() |
List<CustomerAddress> |
getCustomerAddresses() |
Map<String,CustomerAttribute> |
getCustomerAttributes() |
Locale |
getCustomerLocale() |
List<CustomerPayment> |
getCustomerPayments() |
List<CustomerPhone> |
getCustomerPhones() |
String |
getEmailAddress() |
String |
getFirstName() |
Long |
getId() |
String |
getLastName() |
String |
getMainEntityName() |
String |
getPassword() |
Boolean |
getPreview() |
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() |
int |
hashCode() |
boolean |
isAnonymous() |
boolean |
isCookied() |
boolean |
isDeactivated()
Returns true if this user has been deactivated.
|
boolean |
isLoggedIn() |
boolean |
isPasswordChangeRequired() |
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 |
setFirstName(String firstName) |
void |
setId(Long id) |
void |
setLastName(String lastName) |
void |
setLoggedIn(boolean loggedIn) |
void |
setPassword(String password) |
void |
setPasswordChangeRequired(boolean passwordChangeRequired) |
void |
setPreview(Boolean preview) |
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) |
protected Long id
protected Auditable auditable
protected PreviewStatus previewable
protected String username
protected String password
protected String emailAddress
protected String firstName
protected String lastName
protected ChallengeQuestion challengeQuestion
protected String challengeAnswer
protected Boolean passwordChangeRequired
protected Boolean receiveEmail
protected Boolean registered
protected Boolean deactivated
protected Locale customerLocale
protected Map<String,CustomerAttribute> customerAttributes
protected List<CustomerAddress> customerAddresses
protected List<CustomerPhone> customerPhones
protected List<CustomerPayment> customerPayments
protected String taxExemptionCode
protected String unencodedPassword
protected String unencodedChallengeAnswer
protected boolean anonymous
protected boolean cookied
protected boolean loggedIn
public String getUsername()
getUsername in interface Customerpublic void setUsername(String username)
setUsername in interface Customerpublic String getPassword()
getPassword in interface Customerpublic void setPassword(String password)
setPassword in interface Customerpublic boolean isPasswordChangeRequired()
isPasswordChangeRequired in interface Customerpublic void setPasswordChangeRequired(boolean passwordChangeRequired)
setPasswordChangeRequired in interface Customerpublic String getFirstName()
getFirstName in interface Customerpublic void setFirstName(String firstName)
setFirstName in interface Customerpublic String getLastName()
getLastName in interface Customerpublic void setLastName(String lastName)
setLastName in interface Customerpublic String getEmailAddress()
getEmailAddress in interface Customerpublic void setEmailAddress(String emailAddress)
setEmailAddress in interface Customerpublic ChallengeQuestion getChallengeQuestion()
getChallengeQuestion in interface Customerpublic void setChallengeQuestion(ChallengeQuestion challengeQuestion)
setChallengeQuestion in interface Customerpublic String getChallengeAnswer()
getChallengeAnswer in interface Customerpublic void setChallengeAnswer(String challengeAnswer)
setChallengeAnswer in interface Customerpublic String getUnencodedPassword()
getUnencodedPassword in interface Customerpublic void setUnencodedPassword(String unencodedPassword)
setUnencodedPassword in interface Customerpublic boolean isReceiveEmail()
isReceiveEmail in interface Customerpublic void setReceiveEmail(boolean receiveEmail)
setReceiveEmail in interface Customerpublic boolean isRegistered()
isRegistered in interface Customerpublic void setRegistered(boolean registered)
setRegistered in interface Customerpublic String getUnencodedChallengeAnswer()
getUnencodedChallengeAnswer in interface Customerpublic void setUnencodedChallengeAnswer(String unencodedChallengeAnswer)
setUnencodedChallengeAnswer in interface Customerpublic Auditable getAuditable()
getAuditable in interface Customerpublic void setAuditable(Auditable auditable)
setAuditable in interface Customerpublic boolean isAnonymous()
isAnonymous in interface Customerpublic boolean isLoggedIn()
isLoggedIn in interface Customerpublic void setAnonymous(boolean anonymous)
setAnonymous in interface Customerpublic void setCookied(boolean cookied)
setCookied in interface Customerpublic void setLoggedIn(boolean loggedIn)
setLoggedIn in interface Customerpublic Locale getCustomerLocale()
getCustomerLocale in interface Customerpublic void setCustomerLocale(Locale customerLocale)
setCustomerLocale in interface Customerpublic Map<String,CustomerAttribute> getCustomerAttributes()
getCustomerAttributes in interface Customerpublic void setCustomerAttributes(Map<String,CustomerAttribute> customerAttributes)
setCustomerAttributes in interface Customerpublic boolean isDeactivated()
CustomerisDeactivated in interface Customerpublic void setDeactivated(boolean deactivated)
CustomersetDeactivated in interface Customerpublic List<CustomerAddress> getCustomerAddresses()
getCustomerAddresses in interface Customerpublic void setCustomerAddresses(List<CustomerAddress> customerAddresses)
setCustomerAddresses in interface Customerpublic List<CustomerPhone> getCustomerPhones()
getCustomerPhones in interface Customerpublic void setCustomerPhones(List<CustomerPhone> customerPhones)
setCustomerPhones in interface Customerpublic List<CustomerPayment> getCustomerPayments()
getCustomerPayments in interface Customerpublic void setCustomerPayments(List<CustomerPayment> customerPayments)
setCustomerPayments in interface Customerpublic String getMainEntityName()
getMainEntityName in interface AdminMainEntitypublic Boolean getPreview()
getPreview in interface Previewablepublic void setPreview(Boolean preview)
setPreview in interface Previewablepublic Map<String,Object> getTransientProperties()
CustomergetTransientProperties in interface Customerpublic <G extends Customer> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface MultiTenantCloneable<Customer>CloneNotSupportedExceptionpublic String getTaxExemptionCode()
CustomergetTaxExemptionCode in interface Customer#isTaxExempt()}public void setTaxExemptionCode(String exemption)
Customerorg.broadleafcommerce.core.pricing.service.tax.provider.SimpleTaxProvider is that if this is set to
any value then this customer is tax exempt.setTaxExemptionCode in interface Customerexemption - the tax exemption code for the customer#isTaxExempt()}public boolean isTaxExempt()
Customer
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 Customer.getTaxExemptionCode() then the customer is exempt.
If you assign special meaning to the Customer.getTaxExemptionCode() then this might be different and you should
determine specific tax exemption based on Customer.getTaxExemptionCode()
isTaxExempt in interface CustomerCopyright © 2015. All Rights Reserved.