Class CustomerRef
- java.lang.Object
-
- com.broadleafcommerce.order.common.domain.CustomerRef
-
- All Implemented Interfaces:
Serializable
public class CustomerRef extends Object implements Serializable
A reference to a customer.- Author:
- Chad Harchar (charchar)
- 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)
List<String>
getAccountHierarchy()
The hierarchy of accounts, from the root account to the account member's account.String
getAccountId()
The ID of the account the customer belongs to.String
getCustomerId()
The customer's id.String
getFullName()
The customer's full name, if available.String
getRootAccountId()
The ID of the root account the account member belongs to.String
getUsername()
The customer's username.int
hashCode()
boolean
isRegistered()
Defines whether or not the customer is registered.void
setAccountHierarchy(List<String> accountHierarchy)
The hierarchy of accounts, from the root account to the account member's account.void
setAccountId(String accountId)
The ID of the account the customer belongs to.void
setCustomerId(String customerId)
The customer's id.void
setFullName(String fullName)
The customer's full name, if available.void
setRegistered(boolean isRegistered)
Defines whether or not the customer is registered.void
setRootAccountId(String rootAccountId)
The ID of the root account the account member belongs to.void
setUsername(String username)
The customer's username.String
toString()
-
-
-
Method Detail
-
getCustomerId
public String getCustomerId()
The customer's id.- Returns:
- The customer's id.
-
getUsername
public String getUsername()
The customer's username.- Returns:
- The customer's username.
-
getFullName
public String getFullName()
The customer's full name, if available.- Returns:
- The customer's full name, if available.
-
isRegistered
public boolean isRegistered()
Defines whether or not the customer is registered. If false, then the customer is considered anonymous.- Returns:
- Whether or not the customer is registered.
-
getAccountId
public String getAccountId()
The ID of the account the customer belongs to.- Returns:
- The ID of the account of the customer.
-
getRootAccountId
public String getRootAccountId()
The ID of the root account the account member belongs to.- Returns:
- The ID of the root account of the account member.
-
getAccountHierarchy
public List<String> getAccountHierarchy()
The hierarchy of accounts, from the root account to the account member's account.For example, if we have this account setup, rootAcct -> subAcct (child of rootAcct) -> subSubAcct (child of subAcct), this field would be [rootAcct, subAcct, subSubAcct]. This is useful to query all the carts that belong to the same non-root account and its sub-accounts.
- Returns:
- The hierarchy of accounts, from the root account to the account member's account.
-
setCustomerId
public void setCustomerId(String customerId)
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.
-
setFullName
public void setFullName(String fullName)
The customer's full name, if available.- Parameters:
fullName
- The customer's full name.
-
setRegistered
public void setRegistered(boolean isRegistered)
Defines whether or not the customer is registered. If false, then the customer is considered anonymous.- Parameters:
isRegistered
- Whether or not the customer is registered.
-
setAccountId
public void setAccountId(String accountId)
The ID of the account the customer belongs to.- Parameters:
accountId
- The ID of the account of the customer.
-
setRootAccountId
public void setRootAccountId(String rootAccountId)
The ID of the root account the account member belongs to.- Parameters:
rootAccountId
- The ID of the root account of the account member.
-
setAccountHierarchy
public void setAccountHierarchy(List<String> accountHierarchy)
The hierarchy of accounts, from the root account to the account member's account.For example, if we have this account setup, rootAcct -> subAcct (child of rootAcct) -> subSubAcct (child of subAcct), this field would be [rootAcct, subAcct, subSubAcct]. This is useful to query all the carts that belong to the same non-root account and its sub-accounts.
- Parameters:
accountHierarchy
- The hierarchy of accounts, from the root account to the account member's account.
-
canEqual
protected boolean canEqual(Object other)
-
-