Class UserTarget
- java.lang.Object
-
- com.broadleafcommerce.pricing.domain.UserTarget
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
,Serializable
public class UserTarget extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
Abstraction of a user that pricing entities can target. Examples include customers and accounts.- Author:
- Nathan Moore (nathanmoore).
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
com.broadleafcommerce.data.tracking.core.EmbeddedContextState
getContextState()
A subset ofTracking
information to expose the context state for this object.String
getTargetType()
This could be "customer", "account", etc.String
getTargetValue()
int
hashCode()
void
setContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState)
A subset ofTracking
information to expose the context state for this object.void
setTargetType(String targetType)
This could be "customer", "account", etc.void
setTargetValue(String targetValue)
String
toString()
-
-
-
Method Detail
-
getTargetValue
public String getTargetValue()
-
getTargetType
public String getTargetType()
This could be "customer", "account", etc.
-
getContextState
public com.broadleafcommerce.data.tracking.core.EmbeddedContextState getContextState()
A subset ofTracking
information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetails
for the parent object's entireattributes
map are compared.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setTargetValue
public void setTargetValue(String targetValue)
-
setTargetType
public void setTargetType(String targetType)
This could be "customer", "account", etc.
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState)
A subset ofTracking
information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetails
for the parent object's entireattributes
map are compared.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
canEqual
protected boolean canEqual(Object other)
-
-