Class CustomerRef
java.lang.Object
com.broadleafcommerce.customer.domain.CustomerRef
- All Implemented Interfaces:
- Serializable
A reference to a customer.
- Author:
- Chad Harchar (charchar), Chris Kittrell (ckittrell)
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanfromCustomer(Customer customer) Builds anCustomerRefbased on the providedCustomergetEmail()The customer's email address.getId()The customer's id.getName()The customer's nameThe customer's phone number.The customer's username.inthashCode()voidThe customer's email address.voidThe customer's id.voidThe customer's namevoidsetPhoneNumber(String phoneNumber) The customer's phone number.voidsetUsername(String username) The customer's username.toString()
- 
Constructor Details- 
CustomerRefpublic CustomerRef()
 
- 
- 
Method Details- 
fromCustomerBuilds anCustomerRefbased on the providedCustomer- Parameters:
- customer- the Customer used to build the CustomerRef
- Returns:
- an CustomerRef based on the provided Customer
 
- 
getIdThe customer's id.- Returns:
- The customer's id.
 
- 
getUsernameThe customer's username.- Returns:
- The customer's username.
 
- 
getEmailThe customer's email address.- Returns:
- The customer's email address.
 
- 
getNameThe customer's name- Returns:
- The customer's name.
 
- 
getPhoneNumberThe customer's phone number.- Returns:
- The customer's phone number.
 
- 
setIdThe customer's id.- Parameters:
- customerId- The customer's id.
 
- 
setUsernameThe customer's username.- Parameters:
- username- The customer's username.
 
- 
setEmailThe customer's email address.- Parameters:
- email- The customer's email address.
 
- 
setNameThe customer's name- Parameters:
- name- The customer's name
 
- 
setPhoneNumberThe customer's phone number.- Parameters:
- username- The customer's phone number.
 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
toString
 
-