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. |
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.DirectoryObject |
addAttribute, getAccessRights, getAttribute, getAttributes, getAuthorizationOwners, getMapAttributeNames, getMappedAttributes, getNameAttribute, getProfileName, getRawAttributes, getTenantDN, removeAttribute, removeAttribute, setAccessRights, setAttribute, setAttributes, setAuthorizationOwners, setProfileName, setTenantDN, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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.
DEFINITION
public static final java.lang.String DEFINITION
- Constant for the definition (javascript) attribute name.
SCOPE
public static final java.lang.String SCOPE
- Constant for the scope attribute name.
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.
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.