com.ibm.itim.dataservices.model
Class Permission

java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.Permission
All Implemented Interfaces:
java.io.Serializable

public class Permission
extends java.lang.Object
implements java.io.Serializable

Class that represents a permission within an AccessRight, or ACI. A Permission may consist of class level rights and/or attribute level rights.

See Also:
Serialized Form

Field Summary
static java.lang.String DENY
          Constant defining the action for denying permission.
static java.lang.String GRANT
          Constant defining the action for granting permission.
 
Constructor Summary
Permission()
           
 
Method Summary
 void addAttributeRight(AttributeRight attributeRight)
          Deprecated. Add rights directly to Collection returned in getAttributeRights() instead.
 void addClassRight(java.lang.String classRight)
          Deprecated. Add rights directly to Collection returned in getClassRights() instead.
 java.lang.String getAction()
          Returns the action of the Permission.
 java.util.Collection getAttributeRights()
          Returns a collection of attribute level rights.
 java.util.Collection getClassRights()
          Returns a collection of class level rights.
 void setAction(java.lang.String action)
          Changes the action of the Permission.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRANT

public static final java.lang.String GRANT
Constant defining the action for granting permission.

See Also:
Constant Field Values

DENY

public static final java.lang.String DENY
Constant defining the action for denying permission.

See Also:
Constant Field Values
Constructor Detail

Permission

public Permission()
Method Detail

getAction

public java.lang.String getAction()
Returns the action of the Permission.

Returns:
Enumerated String action, GRANT or DENY.

setAction

public void setAction(java.lang.String action)
Changes the action of the Permission.

Parameters:
action - Enumerated String action, GRANT or DENY.

getAttributeRights

public java.util.Collection getAttributeRights()
Returns a collection of attribute level rights.

Returns:
Collection of AttributeRight objects. This collection is not a copy and all updates to it will be reflected in the Permission object.

getClassRights

public java.util.Collection getClassRights()
Returns a collection of class level rights.

Returns:
Collection of Strings representing class level rights. The values of the Strings are specific to the class of the entity(s) being protected. This collection is not a copy and all updates to it will be reflected in the Permission object.

addClassRight

public void addClassRight(java.lang.String classRight)
Deprecated. Add rights directly to Collection returned in getClassRights() instead.

Adds a class right to the collection of class level rights.

Parameters:
classRight - name of an operation that may be executed on the subject class of entity(s) being protected.

addAttributeRight

public void addAttributeRight(AttributeRight attributeRight)
Deprecated. Add rights directly to Collection returned in getAttributeRights() instead.

Adds an attribute right to the collection of attribute level rights.

Parameters:
attributeRight - represents an operation that may be performed on an attribute of the subject class of entity(s) being protected.


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.