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 Summary
Constructors -
Method Summary
Modifier 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
-
CustomerRef
public CustomerRef()
-
-
Method Details
-
fromCustomer
Builds anCustomerRefbased on the providedCustomer- Parameters:
customer- the Customer used to build the CustomerRef- Returns:
- an CustomerRef based on the provided Customer
-
getId
The customer's id.- Returns:
- The customer's id.
-
getUsername
The customer's username.- Returns:
- The customer's username.
-
getEmail
The customer's email address.- Returns:
- The customer's email address.
-
getName
The customer's name- Returns:
- The customer's name.
-
getPhoneNumber
The customer's phone number.- Returns:
- The customer's phone number.
-
setId
The customer's id.- Parameters:
customerId- The customer's id.
-
setUsername
The customer's username.- Parameters:
username- The customer's username.
-
setEmail
The customer's email address.- Parameters:
email- The customer's email address.
-
setName
The customer's name- Parameters:
name- The customer's name
-
setPhoneNumber
The customer's phone number.- Parameters:
username- The customer's phone number.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-