com.ibm.itim.dataservices.model.domain
Class DynamicRole

java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.DirectoryEntry
        |
        +--com.ibm.itim.dataservices.model.DirectoryObject
              |
              +--com.ibm.itim.dataservices.model.domain.Role
                    |
                    +--com.ibm.itim.dataservices.model.domain.DynamicRole
All Implemented Interfaces:
com.ibm.itim.util.xml.objectstream.Importable, ProtectedObject, java.io.Serializable

public class DynamicRole
extends Role

Value Object class that holds the attribute information of a dynamic role in the data model.

See Also:
DynamicRoleEntity, Serialized Form

Field Summary
static java.lang.String DEFINITION
          Constant for the definition (javascript) attribute name.
static java.lang.String SCOPE
          Constant for the scope attribute name.
static int SINGLE_LEVEL_SCOPE
          Constant defining a scope of single level.
static int SUBTREE_SCOPE
          Constant defining a sub-tree scope.
 
Fields inherited from class com.ibm.itim.dataservices.model.domain.Role
ROLE_ATTR_DESCRIPTION, ROLE_ATTR_NAME
 
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObject
ATTR_ACCESS_RIGHT, ATTR_LIFECYCLE_ENABLE
 
Constructor Summary
DynamicRole()
          Default empty constructor
DynamicRole(AttributeValues attributes)
          Constructs object with attribute information.
 
Method Summary
 java.lang.String getDefinition()
          Returns the definition of the dynamic role.
 int getScope()
          Returns the scope of the role.
 void setDefinition(java.lang.String definition)
          Replaces the definition of the dynamic role.
 void setScope(int scope)
          Changes the scope of the role.
 
Methods inherited from class com.ibm.itim.dataservices.model.domain.Role
getDescription, getName, setDescription
 
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObject
addAttribute, getAccessRights, getAttribute, getAttributes, getAuthorizationOwners, getMapAttributeNames, getMappedAttributes, getNameAttribute, getOldMappedAttributes, getProfileName, getRawAttributes, getTenantDN, isLifecycleDefined, removeAttribute, removeAttribute, removeAttribute, setAccessRights, setAttribute, setAttributes, setAuthorizationOwners, setProfileName, setTenantDN, toString
 
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryEntry
clearChange, clearChanges, getChanges, getDistinguishedName, getLastModified, getObjectClasses, getOldAttributes, setDistinguishedName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SINGLE_LEVEL_SCOPE

public static final int SINGLE_LEVEL_SCOPE
Constant defining a scope of single level. This is to be used if the role should only affect people in the same logical container as the role.

See Also:
Constant Field Values

SUBTREE_SCOPE

public static final int SUBTREE_SCOPE
Constant defining a sub-tree scope. This is to be used if the role should affect people in the same logical container as the role and all subordinate containers.

See Also:
Constant Field Values

DEFINITION

public static final java.lang.String DEFINITION
Constant for the definition (javascript) attribute name.

See Also:
Constant Field Values

SCOPE

public static final java.lang.String SCOPE
Constant for the scope attribute name.

See Also:
Constant Field Values
Constructor Detail

DynamicRole

public DynamicRole()
Default empty constructor


DynamicRole

public DynamicRole(AttributeValues attributes)
Constructs object with attribute information. Warning: the purpose of this constructor is to provide clients with the ability to create value objects for creation in the data store. Do not use this constructor to create value objects that represent existing entities. See the DynamicRoleSearch object for achieving that.

Parameters:
attributes - AttributeValues holding the attributes of the dynamic role.
Method Detail

getDefinition

public java.lang.String getDefinition()
Returns the definition of the dynamic role.

Returns:
String definition of the dynamic role.

setDefinition

public void setDefinition(java.lang.String definition)
Replaces the definition of the dynamic role.

Parameters:
definition - New String definition of the dynamic role.

getScope

public int getScope()
Returns the scope of the role. The scope defines what set of people this dynamic role may affect.

Returns:
Enumerated int representing the scope. Possible values are SINGLE_LEVEL_SCOPE and SUBTREE_SCOPE. Default is SINGLE_LEVEL_SCOPE

setScope

public void setScope(int scope)
Changes the scope of the role. The scope defines what set of people this dynamic role may affect.

Parameters:
scope - Enumerated int representing the scope. Possible values are SINGLE_LEVEL_SCOPE and SUBTREE_SCOPE.


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.