org.broadleafcommerce.profile.core.domain
Class CustomerImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.domain.CustomerImpl
All Implemented Interfaces:
Serializable, AdminMainEntity, Customer

@Entity
public class CustomerImpl
extends Object
implements Customer, AdminMainEntity

See Also:
Serialized Form

Nested Class Summary
static class CustomerImpl.Presentation
           
 
Field Summary
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  Boolean receiveEmail
           
protected  Boolean registered
           
protected  String taxExemptionCode
           
protected  String unencodedChallengeAnswer
           
protected  String unencodedPassword
           
protected  String username
           
 
Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY
 
Constructor Summary
CustomerImpl()
           
 
Method Summary
 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()
           
 String getTaxExemptionCode()
           
 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()
           
 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 setReceiveEmail(boolean receiveEmail)
           
 void setRegistered(boolean registered)
           
 void setTaxExemptionCode(String exemption)
           
 void setUnencodedChallengeAnswer(String unencodedChallengeAnswer)
           
 void setUnencodedPassword(String unencodedPassword)
           
 void setUsername(String username)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

auditable

protected Auditable auditable

username

protected String username

password

protected String password

emailAddress

protected String emailAddress

firstName

protected String firstName

lastName

protected String lastName

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 Map<String,CustomerAttribute> customerAttributes

customerAddresses

protected List<CustomerAddress> customerAddresses

customerPhones

protected List<CustomerPhone> customerPhones

customerPayments

protected List<CustomerPayment> customerPayments

taxExemptionCode

protected String taxExemptionCode

unencodedPassword

protected String unencodedPassword

unencodedChallengeAnswer

protected String unencodedChallengeAnswer

anonymous

protected boolean anonymous

cookied

protected boolean cookied

loggedIn

protected boolean loggedIn
Constructor Detail

CustomerImpl

public CustomerImpl()
Method Detail

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 Map<String,CustomerAttribute> getCustomerAttributes()
Specified by:
getCustomerAttributes in interface Customer

setCustomerAttributes

public void setCustomerAttributes(Map<String,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

getCustomerAddresses

public List<CustomerAddress> getCustomerAddresses()
Specified by:
getCustomerAddresses in interface Customer

setCustomerAddresses

public void setCustomerAddresses(List<CustomerAddress> customerAddresses)
Specified by:
setCustomerAddresses in interface Customer

getCustomerPhones

public List<CustomerPhone> getCustomerPhones()
Specified by:
getCustomerPhones in interface Customer

setCustomerPhones

public void setCustomerPhones(List<CustomerPhone> customerPhones)
Specified by:
setCustomerPhones in interface Customer

getCustomerPayments

public List<CustomerPayment> getCustomerPayments()
Specified by:
getCustomerPayments in interface Customer

setCustomerPayments

public void setCustomerPayments(List<CustomerPayment> customerPayments)
Specified by:
setCustomerPayments in interface Customer

getMainEntityName

public String getMainEntityName()
Specified by:
getMainEntityName in interface AdminMainEntity

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getTaxExemptionCode

public String getTaxExemptionCode()
Specified by:
getTaxExemptionCode in interface Customer

setTaxExemptionCode

public void setTaxExemptionCode(String exemption)
Specified by:
setTaxExemptionCode in interface Customer


Copyright © 2013. All Rights Reserved.