Class UserTarget
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.domain.UserTarget
-
- All Implemented Interfaces:
Serializable
public class UserTarget extends Object implements Serializable
Abstraction of a user that different entities, like offers and pricing, can target. Examples include customers and accounts.- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserTarget()UserTarget(UserTargetType targetType, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetTargetType()The type of the user.StringgetTargetValue()An identifying value for the user.inthashCode()voidsetTargetType(String targetType)The type of the user.voidsetTargetValue(String targetValue)An identifying value for the user.StringtoString()
-
-
-
Constructor Detail
-
UserTarget
public UserTarget(UserTargetType targetType, String value)
-
UserTarget
public UserTarget()
-
-
Method Detail
-
getTargetValue
public String getTargetValue()
An identifying value for the user. Could be an email, username, or some similarly identifying value.- Returns:
- An identifying value for the user
-
getTargetType
public String getTargetType()
The type of the user.- Returns:
- The type of the user.
- See Also:
UserTargetType
-
setTargetValue
public void setTargetValue(String targetValue)
An identifying value for the user. Could be an email, username, or some similarly identifying value.- Parameters:
targetValue- An identifying value for the user.
-
setTargetType
public void setTargetType(String targetType)
The type of the user.- Parameters:
targetType- The type of the user.- See Also:
UserTargetType
-
canEqual
protected boolean canEqual(Object other)
-
-