Class UserTarget
- java.lang.Object
-
- com.broadleafcommerce.promotion.campaign.domain.UserTarget
-
- All Implemented Interfaces:
Serializable
public class UserTarget extends Object implements Serializable
Abstraction of a user that offers 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)
String
getTargetType()
The type of the user.String
getTargetValue()
An identifying value for the user.int
hashCode()
void
setTargetType(String targetType)
The type of the user.void
setTargetValue(String targetValue)
An identifying value for the user.String
toString()
-
-
-
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. This could be "CUSTOMER", "ACCOUNT", etc.- Returns:
- The type of the user.
- See Also:
DefaultUserTargetType
-
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. This could be "CUSTOMER", "ACCOUNT", etc.- Parameters:
targetType
- The type of the user.- See Also:
DefaultUserTargetType
-
canEqual
protected boolean canEqual(Object other)
-
-