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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
fromCustomer
(Customer customer) Builds anCustomerRef
based on the providedCustomer
getEmail()
The customer's email address.getId()
The customer's id.getName()
The customer's nameThe customer's phone number.The customer's username.int
hashCode()
void
The customer's email address.void
The customer's id.void
The customer's namevoid
setPhoneNumber
(String phoneNumber) The customer's phone number.void
setUsername
(String username) The customer's username.toString()
-
Constructor Details
-
CustomerRef
public CustomerRef()
-
-
Method Details
-
fromCustomer
Builds anCustomerRef
based 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
-