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:
 
- 
Field Summary
Fields inherited from interface com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
DEFAULT_FIELD_NAME - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.EmbeddedContextStateA subset ofTrackinginformation to expose the context state for this object.This could be "customer", "account", etc.inthashCode()voidsetContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetTargetType(String targetType) This could be "customer", "account", etc.voidsetTargetValue(String targetValue) toString() 
- 
Constructor Details
- 
UserTarget
public UserTarget() 
 - 
 - 
Method Details
- 
getTargetValue
 - 
getTargetType
This could be "customer", "account", etc. - 
getContextState
public com.broadleafcommerce.data.tracking.core.EmbeddedContextState getContextState()A subset ofTrackinginformation to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetailsfor the parent object's entireattributesmap are compared.- Specified by:
 getContextStatein interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware- Returns:
 - a subset of 
Trackinginformation to expose the context state for this object 
 - 
setTargetValue
 - 
setTargetType
This could be "customer", "account", etc. - 
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTrackinginformation to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetailsfor the parent object's entireattributesmap are compared.- Specified by:
 setContextStatein interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware- Parameters:
 contextState- a subset ofTrackinginformation to expose the context state for this object
 - 
toString
 - 
equals
 - 
canEqual
 - 
hashCode
public int hashCode() 
 -