Class CustomerRef
java.lang.Object
com.broadleafcommerce.content.domain.commerce.context.CustomerRef
- All Implemented Interfaces:
Serializable
DTO for holding data relevant for determining which content applies to an API request.
- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The ID of the account the user belongs to.A list of customer segment ids in this context.The user's id.The user's username.int
hashCode()
boolean
Whether the customer is authenticated.void
setAccountId
(String accountId) The ID of the account the user belongs to.void
setAuthenticated
(boolean authenticated) Whether the customer is authenticated.void
setCustomerSegmentIds
(List<String> customerSegmentIds) A list of customer segment ids in this context.void
The user's id.void
setUsername
(String username) The user's username.toString()
-
Constructor Details
-
CustomerRef
public CustomerRef()
-
-
Method Details
-
isAuthenticated
public boolean isAuthenticated()Whether the customer is authenticated.- Returns:
- Whether the customer is authenticated
-
getCustomerSegmentIds
A list of customer segment ids in this context.- Returns:
- List of ids of the customer segments the customer belongs to
-
getUserId
The user's id.- Returns:
- The user's id.
-
getUsername
The user's username.- Returns:
- The user's username.
-
getAccountId
The ID of the account the user belongs to.- Returns:
- The ID of the account of the user.
-
setAuthenticated
public void setAuthenticated(boolean authenticated) Whether the customer is authenticated.- Parameters:
authenticated
- Whether the customer is authenticated
-
setCustomerSegmentIds
A list of customer segment ids in this context.- Parameters:
customerSegmentIds
- Ids of the customer segments the customer belongs to
-
setUserId
The user's id.- Parameters:
userId
- The user's id.
-
setUsername
The user's username.- Parameters:
username
- The user's username.
-
setAccountId
The ID of the account the user belongs to.- Parameters:
accountId
- The ID of the account of the user.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-