public class Entitlement extends Property implements java.io.Serializable
| Constructor and Description |
|---|
Entitlement()
Constructor taking no arguments.
|
Entitlement(boolean allowed)
Constructor taking an 'allowed' value (boolean).
|
Entitlement(java.lang.String id,
boolean allowed)
Constructor taking an entitlement ID and 'allowed' value (boolean).
|
Entitlement(java.lang.String id,
java.lang.String type,
java.lang.Object value,
java.lang.String nameKey)
Constructor taking id, property type, property value, name message key.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowed()
Indicates if user is allowed to perform the action represented by this entitlement.
|
void |
populateMessageKeys()
Populates name and description message keys.
|
void |
setAllowed(boolean allowed)
Indicates if user is allowed to perform the action represented by this entitlement.
|
java.lang.String |
toString() |
getBooleanValue, getConstraints, getDescriptionKey, getDisplayOrder, getId, getIntegerValue, getNameKey, getStringValue, getType, getUnitsKey, getValidValues, getValue, isInternal, isReadOnly, isRequired, isUsingMessageKeys, setBooleanValue, setConstraints, setDescriptionKey, setDisplayOrder, setId, setIntegerValue, setInternal, setNameKey, setReadOnly, setRequired, setStringValue, setType, setUnitsKey, setUsingMessageKeys, setValidValues, setValuepublic Entitlement()
public Entitlement(java.lang.String id,
java.lang.String type,
java.lang.Object value,
java.lang.String nameKey)
id - type - value - nameKey - public Entitlement(boolean allowed)
Entitlement separately.public Entitlement(java.lang.String id,
boolean allowed)
id - allowed - public boolean isAllowed()
true indicates the user can perform this action.public void setAllowed(boolean allowed)
allowed - - true indicates the user can perform this action.public void populateMessageKeys()