com.ibm.itim.dataservices.model
Class AttributeRight

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

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

Class representing a right, or operation, that can be performed on a set of attributes.

See Also:
Serialized Form

Field Summary
static java.lang.String R
          String constant for read operation
static java.lang.String RW
          String constant for read-write operation
static java.lang.String W
          String constant for write operation
 
Constructor Summary
AttributeRight()
          Default constructor.
 
Method Summary
 java.util.Collection getAttributes()
          Returns the list of attributes the right applies to.
 java.lang.String getOperations()
          Returns the operations that define the right.
 boolean isForAllAttributes()
          Returns whether the right applies to all attributes of the target.
 void setForAllAttributes(boolean isForAllAttributes)
          Changes whether the right applies to all attributes of the target.
 void setOperations(java.lang.String operations)
          Changes the operations for the right.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

R

public static final java.lang.String R
String constant for read operation

See Also:
Constant Field Values

W

public static final java.lang.String W
String constant for write operation

See Also:
Constant Field Values

RW

public static final java.lang.String RW
String constant for read-write operation

See Also:
Constant Field Values
Constructor Detail

AttributeRight

public AttributeRight()
Default constructor.

Method Detail

isForAllAttributes

public boolean isForAllAttributes()
Returns whether the right applies to all attributes of the target.

Returns:
boolean, true if all attributes, false if not.

setForAllAttributes

public void setForAllAttributes(boolean isForAllAttributes)
Changes whether the right applies to all attributes of the target. If this is changed to true, any attributes currently stored will be removed.

Parameters:
isForAllAttributes - boolean, true if all attribute, false if not

getOperations

public java.lang.String getOperations()
Returns the operations that define the right.

Returns:
String representation of the operations, R, W, or RW.

setOperations

public void setOperations(java.lang.String operations)
Changes the operations for the right.

Parameters:
operations - String representation of the operations, R, W, or RW.

getAttributes

public java.util.Collection getAttributes()
Returns the list of attributes the right applies to. If none are returned, check the isForAllAttributes method to determine whether no attributes are affected or all attributes are affected.

Returns:
Collection of Strings holding the attribute names. This collection is not a copy and all updates to it will be reflected in the AttributeRight object.


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.