org.broadleafcommerce.profile.core.domain
Class CustomerImpl
java.lang.Object
org.broadleafcommerce.profile.core.domain.CustomerImpl
- All Implemented Interfaces:
- Serializable, Customer
@Entity
public class CustomerImpl
- extends Object
- implements Customer
- See Also:
- Serialized Form
id
protected Long id
auditable
protected Auditable auditable
username
protected String username
password
protected String password
firstName
protected String firstName
lastName
protected String lastName
emailAddress
protected String emailAddress
challengeQuestion
protected ChallengeQuestion challengeQuestion
challengeAnswer
protected String challengeAnswer
passwordChangeRequired
protected Boolean passwordChangeRequired
receiveEmail
protected Boolean receiveEmail
registered
protected Boolean registered
deactivated
protected Boolean deactivated
customerLocale
protected Locale customerLocale
customerAttributes
protected List<CustomerAttribute> customerAttributes
unencodedPassword
protected String unencodedPassword
unencodedChallengeAnswer
protected String unencodedChallengeAnswer
anonymous
protected boolean anonymous
cookied
protected boolean cookied
loggedIn
protected boolean loggedIn
CustomerImpl
public CustomerImpl()
getId
public Long getId()
- Specified by:
getId in interface Customer
setId
public void setId(Long id)
- Specified by:
setId in interface Customer
getUsername
public String getUsername()
- Specified by:
getUsername in interface Customer
setUsername
public void setUsername(String username)
- Specified by:
setUsername in interface Customer
getPassword
public String getPassword()
- Specified by:
getPassword in interface Customer
setPassword
public void setPassword(String password)
- Specified by:
setPassword in interface Customer
isPasswordChangeRequired
public boolean isPasswordChangeRequired()
- Specified by:
isPasswordChangeRequired in interface Customer
setPasswordChangeRequired
public void setPasswordChangeRequired(boolean passwordChangeRequired)
- Specified by:
setPasswordChangeRequired in interface Customer
getFirstName
public String getFirstName()
- Specified by:
getFirstName in interface Customer
setFirstName
public void setFirstName(String firstName)
- Specified by:
setFirstName in interface Customer
getLastName
public String getLastName()
- Specified by:
getLastName in interface Customer
setLastName
public void setLastName(String lastName)
- Specified by:
setLastName in interface Customer
getEmailAddress
public String getEmailAddress()
- Specified by:
getEmailAddress in interface Customer
setEmailAddress
public void setEmailAddress(String emailAddress)
- Specified by:
setEmailAddress in interface Customer
getChallengeQuestion
public ChallengeQuestion getChallengeQuestion()
- Specified by:
getChallengeQuestion in interface Customer
setChallengeQuestion
public void setChallengeQuestion(ChallengeQuestion challengeQuestion)
- Specified by:
setChallengeQuestion in interface Customer
getChallengeAnswer
public String getChallengeAnswer()
- Specified by:
getChallengeAnswer in interface Customer
setChallengeAnswer
public void setChallengeAnswer(String challengeAnswer)
- Specified by:
setChallengeAnswer in interface Customer
getUnencodedPassword
public String getUnencodedPassword()
- Specified by:
getUnencodedPassword in interface Customer
setUnencodedPassword
public void setUnencodedPassword(String unencodedPassword)
- Specified by:
setUnencodedPassword in interface Customer
isReceiveEmail
public boolean isReceiveEmail()
- Specified by:
isReceiveEmail in interface Customer
setReceiveEmail
public void setReceiveEmail(boolean receiveEmail)
- Specified by:
setReceiveEmail in interface Customer
isRegistered
public boolean isRegistered()
- Specified by:
isRegistered in interface Customer
setRegistered
public void setRegistered(boolean registered)
- Specified by:
setRegistered in interface Customer
getUnencodedChallengeAnswer
public String getUnencodedChallengeAnswer()
- Specified by:
getUnencodedChallengeAnswer in interface Customer
setUnencodedChallengeAnswer
public void setUnencodedChallengeAnswer(String unencodedChallengeAnswer)
- Specified by:
setUnencodedChallengeAnswer in interface Customer
getAuditable
public Auditable getAuditable()
- Specified by:
getAuditable in interface Customer
setAuditable
public void setAuditable(Auditable auditable)
- Specified by:
setAuditable in interface Customer
isAnonymous
public boolean isAnonymous()
- Specified by:
isAnonymous in interface Customer
isCookied
public boolean isCookied()
- Specified by:
isCookied in interface Customer
isLoggedIn
public boolean isLoggedIn()
- Specified by:
isLoggedIn in interface Customer
setAnonymous
public void setAnonymous(boolean anonymous)
- Specified by:
setAnonymous in interface Customer
setCookied
public void setCookied(boolean cookied)
- Specified by:
setCookied in interface Customer
setLoggedIn
public void setLoggedIn(boolean loggedIn)
- Specified by:
setLoggedIn in interface Customer
getCustomerLocale
public Locale getCustomerLocale()
- Specified by:
getCustomerLocale in interface Customer
setCustomerLocale
public void setCustomerLocale(Locale customerLocale)
- Specified by:
setCustomerLocale in interface Customer
getCustomerAttributes
public List<CustomerAttribute> getCustomerAttributes()
- Specified by:
getCustomerAttributes in interface Customer
getCustomerAttributeByName
public CustomerAttribute getCustomerAttributeByName(String name)
- Description copied from interface:
Customer
- Looks at all CustomerAttributes for this product and returns the attribute that matches the given name
- Specified by:
getCustomerAttributeByName in interface Customer
- Parameters:
name - the name of the attribute
- Returns:
- the matching CustomerAttribute (null if no match)
setCustomerAttributes
public void setCustomerAttributes(List<CustomerAttribute> customerAttributes)
- Specified by:
setCustomerAttributes in interface Customer
isDeactivated
public boolean isDeactivated()
- Description copied from interface:
Customer
- Returns true if this user has been deactivated.
Most implementations will not allow the user to login if they are deactivated.
- Specified by:
isDeactivated in interface Customer
- Returns:
setDeactivated
public void setDeactivated(boolean deactivated)
- Description copied from interface:
Customer
- Sets the users deactivated status.
- Specified by:
setDeactivated in interface Customer
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013. All Rights Reserved.