IBM WebSphere Application ServerTM
Release 8

com.ibm.uddi.v3.management
Class Entitlement

java.lang.Object
  extended by com.ibm.uddi.v3.management.Property
      extended by 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
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
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 this Entitlement 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.


toString

public java.lang.String toString()
Overrides:
toString in class Property
See Also:
Object.toString()

IBM WebSphere Application ServerTM
Release 8