com.ibm.uddi.v3.management
Class Entitlement
- java.lang.Object
-
- com.ibm.uddi.v3.management.Property
-
- com.ibm.uddi.v3.management.Entitlement
-
- All Implemented Interfaces:
- java.io.Serializable
public class Entitlement extends Property implements java.io.Serializable
Represents an entitlement, indicating whether a user can perform a specific action.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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.
-
Method Summary
Methods 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()
-
Methods inherited from class com.ibm.uddi.v3.management.Property
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, setValue
-
-
-
-
Constructor Detail
-
Entitlement
public Entitlement()
Constructor taking no arguments.
-
Entitlement
public 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.- Parameters:
id
-type
-value
-nameKey
-
-
Entitlement
public Entitlement(boolean allowed)
Constructor taking an 'allowed' value (boolean). Caller must set the ID for thisEntitlement
separately.
-
Entitlement
public Entitlement(java.lang.String id, boolean allowed)
Constructor taking an entitlement ID and 'allowed' value (boolean).- Parameters:
id
-allowed
-
-
-
Method Detail
-
isAllowed
public boolean isAllowed()
Indicates if user is allowed to perform the action represented by this entitlement.- Returns:
true
indicates the user can perform this action.
-
setAllowed
public void setAllowed(boolean allowed)
Indicates if user is allowed to perform the action represented by this entitlement.- Parameters:
allowed
- -true
indicates the user can perform this action.
-
populateMessageKeys
public void populateMessageKeys()
Populates name and description message keys.
-
-