Class CustomerRef
- java.lang.Object
-
- com.broadleafcommerce.customer.domain.CustomerRef
-
- All Implemented Interfaces:
Serializable
public class CustomerRef extends Object implements Serializable
A reference to a customer.- Author:
- Chad Harchar (charchar), Chris Kittrell (ckittrell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomerRef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
CustomerRef
fromCustomer(Customer customer)
Builds anCustomerRef
based on the providedCustomer
String
getEmail()
The customer's email address.String
getId()
The customer's id.String
getName()
The customer's nameString
getUsername()
The customer's username.int
hashCode()
void
setEmail(String email)
The customer's email address.void
setId(String id)
The customer's id.void
setName(String name)
The customer's namevoid
setUsername(String username)
The customer's username.String
toString()
-
-
-
Method Detail
-
fromCustomer
public CustomerRef fromCustomer(Customer customer)
Builds anCustomerRef
based on the providedCustomer
- Parameters:
customer
- the Customer used to build the CustomerRef- Returns:
- an CustomerRef based on the provided Customer
-
getId
public String getId()
The customer's id.- Returns:
- The customer's id.
-
getUsername
public String getUsername()
The customer's username.- Returns:
- The customer's username.
-
getEmail
public String getEmail()
The customer's email address.- Returns:
- The customer's email address.
-
getName
public String getName()
The customer's name- Returns:
- The customer's name.
-
setId
public void setId(String id)
The customer's id.- Parameters:
customerId
- The customer's id.
-
setUsername
public void setUsername(String username)
The customer's username.- Parameters:
username
- The customer's username.
-
setEmail
public void setEmail(String email)
The customer's email address.- Parameters:
email
- The customer's email address.
-
setName
public void setName(String name)
The customer's name- Parameters:
name
- The customer's name
-
canEqual
protected boolean canEqual(Object other)
-
-