|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProvisioningRole
Provides access to the attributes in an eTrust Admin ProvisioningRole
managed object through the methods inherited from the base interface
Role
. Also provides access to role management methods.
Note: This managed object requires an instance of eTrust Admin Directory.
An eTrust Admin provisioning role contains one or more eTrust Admin
provisioning policies.
When a user is assigned to a provisioning role, some of the attributes in the user's
eTrust Admin accounts are defined by the policies in the role
being assigned.
Note: Provisioning roles do not have any associated Identity Manager tasks.
Attempts to add tasks to this type of role are ignored. Enumerating tasks
for this role always returns an empty list.
Attribute Persistence
Identity Manager allows you to associate eTrust Admin provisioning roles with
eTrust Admin provisioning policies.
To persist any changes you make to the attributes of a ProvisioningRole
managed object, use the modify...
methods in ProvisioningRole
,
or use the modifyObject()
method used to persist attributes in any Identity Manager managed object retrieved through
a provider.
Account
,
ManagedObject
,
ProvisioningPolicy
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.netegrity.llsdk6.imsapi.managedobject.Role |
---|
Role.CustomFieldId |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
static java.lang.String |
ACCOUNT_TEMPLATE_HANDLES
The role object's account template handles |
static java.lang.String |
COMMENTS
|
static java.lang.String |
COMMENTS_4_UI
Comments' field name for UI usage |
static java.lang.String |
CUSTOMFIELDNAME
|
static java.lang.String |
DEPARTMENT
|
static java.lang.String |
DEPARTMENT_4_UI
Departments's field name for UI usage |
static java.lang.String |
DESCRIPTION_4_UI
Description's field name for UI usage |
static int |
MAXCUSTOMFIELDS
|
static java.lang.String |
NAME_4_UI
Name's field name for UI usage |
static java.lang.String |
NESTED_ROLE_HANDLES
The role object's nested (child) roles |
static java.lang.String |
NESTED_ROLES
|
static java.lang.String |
NESTING_ROLE_HANDLES
The role object's nesting (parent) roles |
static java.lang.String |
NESTING_ROLES
|
static java.lang.String |
NESTING_ROLES_4_UI
|
Fields inherited from interface com.netegrity.llsdk6.imsapi.managedobject.Role |
---|
ASSIGNABLE, ASSIGNMENT_TYPE, CONSTRAINT, CONSTRAINT_TYPE, DELEGATABLE, DESCRIPTION, ENABLED, FRIENDLY_NAME, VERSION |
Method Summary | |
---|---|
java.util.Vector |
addProvisioningPolicies(ProvisioningPolicy[] newProvisioningPolicies,
java.lang.String operationID)
Adds one or more provisioning policies to this provisioning role. |
void |
clearProvisioningPolicies()
Deprecated. In r12. |
java.util.Vector |
clearProvisioningPolicies(java.lang.String operationID)
Removes all the provisioning policies from this provisioning role. |
void |
delete(boolean deletePSOnly,
java.lang.String operationId)
Delete the Provisioning Role. |
java.util.Vector |
delete(java.lang.String operationId)
Delete provisioning role using the operation id. |
boolean |
doesRoleContainMembers()
Does the role contain any members |
boolean |
exists()
Indicates whether the provisioning role exists in Identity Manager or whether it exists only as an eTrust Admin object. |
java.util.Vector |
getAssignedPolicies()
|
java.util.Vector |
getAssignedResources()
Returns a user who has been assigned a member but not yet persisted. |
java.util.Vector[] |
getCustomFields()
Returns the provisioning role's custom attributes. |
java.lang.Object |
getIAMHandle()
Returns the unique IAMHandle for this role. |
java.lang.Object |
getIAMRole(IAMSession iamsession)
Returns the associated IAMRole for the role
and the specified IAMSession . |
java.util.Vector<ProvisioningRole> |
getNestedRoles()
Retrieves all nested roles for this provisioning role. |
java.util.Vector<ProvisioningRole> |
getNestedRoles(boolean wantFullRoleChains)
|
java.util.Vector |
getNestedRoles(boolean rolesonlywithimstubs,
boolean wantFullRoleChains)
This method returns the nested roles for this object. |
java.util.Vector<ProvisioningRole> |
getNestedRolesRecursive(boolean wantFullRoleChains)
Retrieves all nested roles for this provisioning role recursively at all levels. |
java.util.Vector<ProvisioningRole> |
getNestingRoles()
Retrieves all nesting roles for this provisioning role. |
java.util.Vector<ProvisioningRole> |
getNestingRoles(boolean wantFullRoleChains)
|
java.util.Vector<ProvisioningRole> |
getNestingRolesRecursive(boolean wantFullRoleChains)
Retrieves all nesting roles for this provisioning role recursively at all levels. |
java.util.Vector |
getProvisioningPolicies()
Retrieves all the provisioning policies assigned to this provisioning role. |
java.util.Vector |
getProvisioningPolicies(AttributeRightsCollection arc)
|
java.util.Vector |
getRevokedPolicies()
Returns template which has been assigned but not yet persisted. |
java.util.Vector |
getRevokedResources()
Returns a user who has been revoked as role member but not yet persisted. |
java.lang.String |
getRoleComments()
Returns any comment that may be associated with this provisioning role. |
java.lang.String |
getRoleCustomFieldValue(int customFieldIndex)
Retrieves the specified custom field value |
java.util.Vector |
getRoleCustomFieldValues(int customFieldIndex)
Retrieves the specified custom field's values |
java.lang.String |
getRoleDepartment()
Retrieves the name of the department to which the provisioning role belongs. |
java.lang.String |
getRoleDescription()
Retrieves the description of this provisioning role. |
java.util.Vector<User> |
getUsersInRole(java.util.Enumeration<java.lang.String> attribs)
Retrieves all users who are members of a given role |
java.util.Vector<User> |
getUsersInRoleRecursive(java.util.Enumeration<java.lang.String> attribs)
Retrieve all users who are members of a role and members of any roles indirectly due to nesting |
java.util.Vector<User> |
getUsersInRoleRecursive(java.util.Enumeration<java.lang.String> attribs,
boolean wantFullUserRoleChains)
Retrieve all users who are members of a role and members of any roles indirectly due to nesting |
java.util.Vector<User> |
getUsersInRoleRecursive(java.util.Enumeration<java.lang.String> attribs,
boolean wantFullUserRoleChains,
boolean wantDirect)
|
java.util.Vector<User> |
getUsersInRoleRecursive(java.util.Vector<ProvisioningRole> nestingRoles,
java.util.Enumeration<java.lang.String> attribs,
boolean wantFullUserRoleChains,
boolean wantDirect)
|
java.lang.Object |
modifyObject(java.util.Hashtable extraProps,
java.lang.String opId,
java.util.Vector returnMessage)
|
java.util.Vector |
modifyObject(ProvisioningPolicy[] policiesToAssign,
ProvisioningPolicy[] policiesToUnassign,
java.lang.String operationID)
Specifies the complete set of provisioning policies to assign to this provisioning role, and immediately commits the assignments to the data store. |
java.util.Vector |
modifyObject(ProvisioningRole[] newNestedRoles,
java.lang.String operationID)
Specifies one or more nested roles to associate with this provisioning role, and immediately commits the associations to the data store. |
java.lang.Object |
modifyPolicyStoreRoleObject()
Creates or updates the policy store role object and all associated Identity Manager role policies. |
java.util.Vector |
removeProvisioningPolicies(ProvisioningPolicy[] ProvisioningPolicies,
java.lang.String operationID)
Removes one or more provisioning policies from this provisioning role. |
void |
setAssignedPolicy(ProvisioningPolicy policy)
Sets a template on the role |
void |
setAssignedResource(User user)
Sets a user as assigned to role |
void |
setNestedRoles(ProvisioningRole[] nestedRoles)
Add roles as nested members of the role |
void |
setNestedRolesToRemove(ProvisioningRole[] nestedRoles)
Remove roles as nested members of the role |
void |
setRevokedPolicy(ProvisioningPolicy policy)
Sets a template on the role |
void |
setRevokedResource(User user)
Sets a user revocation from a role |
void |
setRoleComments(java.lang.String newComments)
Sets a user-defined comment for the provisioning role. |
void |
setRoleCustomFieldValue(int customFieldIndex,
java.lang.String value)
Sets the specified custom field value |
void |
setRoleCustomFieldValues(int customFieldIndex,
java.util.Vector values)
Sets the specified custom field |
void |
setRoleDepartment(java.lang.String newDepartment)
Sets the name of the department to which the provisioning role belongs. |
void |
setRoleDescription(java.lang.String newDescription)
Sets the description of this provisioning role. |
Methods inherited from interface com.netegrity.llsdk6.imsapi.managedobject.Role |
---|
addTasks, clearAdminPolicies, clearMembershipPolicies, clearTasks, createAdminPolicy, createAdminPolicy, createMembershipPolicy, createMembershipPolicy, createMembershipPolicy, enableRole, getAdministrators, getAdministrators, getAdminPolicies, getAllowDuplicateCustom, getChangeActions, getCustomField, getMembers, getMembers, getMembers, getMembershipPolicies, getOwners, getOwners, getTasks, isRoleAdminAssignable, isRoleAssignable, isRoleEnabled, modifyObject, removeTasks, setAllowDuplicateCustom, setChangeActions, setChangeActions, setCustomField, setFriendlyName, setRoleAdminAssignable, setRoleAssignable |
Methods inherited from interface com.netegrity.llsdk6.imsapi.managedobject.ManagedObject |
---|
directAddAttributeValue, directRemoveAttributeValue, equals, fixUniqueNames, getImsDirectory, getImsEnvironment, getObjectType, getOrg, getOrg, getProvider, hashCode, move, persisted |
Methods inherited from interface com.netegrity.llsdk6.imsapi.abstractinterface.NamedObject |
---|
getFriendlyName, getUniqueName, toString |
Methods inherited from interface com.netegrity.llsdk6.imsapi.abstractinterface.ModifiableObject |
---|
modifyObject, modifyObject |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Field Detail |
---|
static final java.lang.String NAME_4_UI
static final java.lang.String DESCRIPTION_4_UI
static final java.lang.String COMMENTS_4_UI
static final java.lang.String DEPARTMENT_4_UI
static final java.lang.String NESTING_ROLES_4_UI
static final java.lang.String COMMENTS
static final java.lang.String DEPARTMENT
static final java.lang.String CUSTOMFIELDNAME
static final java.lang.String ACCOUNT_TEMPLATE_HANDLES
static final java.lang.String NESTED_ROLE_HANDLES
static final java.lang.String NESTING_ROLE_HANDLES
static final java.lang.String NESTED_ROLES
static final java.lang.String NESTING_ROLES
static final int MAXCUSTOMFIELDS
Method Detail |
---|
java.lang.String getRoleDescription()
Retrieves the description of this provisioning role.
getRoleDescription
in interface Role
void setRoleDescription(java.lang.String newDescription)
Sets the description of this provisioning role.
setRoleDescription
in interface Role
newDescription
- The new description of the provisioning role.java.lang.String getRoleComments()
Returns any comment that may be associated with this provisioning role.
void setRoleComments(java.lang.String newComments)
Sets a user-defined comment for the provisioning role. A comment is any piece of information that has meaning to your particular site but that is not represented by any other role attribute.
newComments
- The new comment for the provisioning role.java.lang.String getRoleDepartment()
Retrieves the name of the department to which the provisioning role belongs.
void setRoleDepartment(java.lang.String newDepartment)
Sets the name of the department to which the provisioning role belongs.
newDepartment
- The new department name for the provisioning role.java.lang.String getRoleCustomFieldValue(int customFieldIndex) throws JIAMOperationException
Retrieves the specified custom field value
customFieldIndex
- The index of the custom field, valid values are 1 to MAXCUSTOMFIELDS
.
JIAMOperationException
- An error occured retrieving the specified fieldvoid setRoleCustomFieldValue(int customFieldIndex, java.lang.String value) throws JIAMOperationException
Sets the specified custom field value
customFieldIndex
- The index of the custom field. Valid values are 1 to MAXCUSTOMFIELDS
.value
- The String value for the custom field
JIAMOperationException
- An error occured setting the specified fieldjava.util.Vector getRoleCustomFieldValues(int customFieldIndex) throws JIAMOperationException
Retrieves the specified custom field's values
Note: this method should only be used if defining multiple values for custom fields
customFieldIndex
- The index of the custom field, valid values are 1 to MAXCUSTOMFIELDS
.
JIAMOperationException
- An error occured retrieving the specified fieldvoid setRoleCustomFieldValues(int customFieldIndex, java.util.Vector values) throws JIAMOperationException
Sets the specified custom field
Note: this method should only be used if defining multiple values for custom fields
customFieldIndex
- The index of the custom field. Valid values are 1 to MAXCUSTOMFIELDS
.values
- A Vector of zero or more Strings for the custom field
JIAMOperationException
- An error occured setting the specified fieldjava.lang.Object getIAMHandle() throws JIAMOperationException
Returns the unique IAMHandle
for this role.
IAMHandle
identifier, see the eTrust IAM API Documentation (Javadoc).
IAMHandle
.
JIAMOperationException
java.lang.Object getIAMRole(IAMSession iamsession) throws JIAMOperationException, ProvisioningRoleIAMRoleLinkException
Returns the associated IAMRole
for the role
and the specified IAMSession
.
IAMRole
and IAMSession
objects, see the eTrust IAM API Documentation (Javadoc).
iamsession
- The IAMSession
object.
IAMRole
object.
JIAMOperationException
ProvisioningRoleIAMRoleLinkException
boolean doesRoleContainMembers() throws com.netegrity.sdk.apiutil.SmApiException
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector<ProvisioningRole> getNestedRoles() throws DeletedObjectException, JIAMOperationException
Retrieves all nested roles for this provisioning role. Nested roles are child objects of the provisioning role.
ProvisioningRole
objects nested under
this provisioning role.
DeletedObjectException
- If this object represents a Role that has already been deleted
JIAMOperationException
- If a JIAM operation resulting from retrieving the set failed.java.util.Vector<ProvisioningRole> getNestedRoles(boolean wantFullRoleChains) throws DeletedObjectException, JIAMOperationException
DeletedObjectException
JIAMOperationException
java.util.Vector<ProvisioningRole> getNestedRolesRecursive(boolean wantFullRoleChains) throws DeletedObjectException, JIAMOperationException
Retrieves all nested roles for this provisioning role recursively at all levels. Nested roles are child objects of the provisioning role.
ProvisioningRole
objects nested under
this provisioning role.
DeletedObjectException
- If this object represents a Role that has already been deleted
JIAMOperationException
- If a JIAM operation resulting from retrieving the set failed.java.util.Vector<ProvisioningRole> getNestingRoles() throws DeletedObjectException, JIAMOperationException
Retrieves all nesting roles for this provisioning role. Nesting roles are parent objects of the provisioning role.
ProvisioningRole
objects nested under
this provisioning role.
DeletedObjectException
- If this object represents a Role that has already been deleted
JIAMOperationException
- If a JIAM operation resulting from retrieving the set failed.java.util.Vector<ProvisioningRole> getNestingRoles(boolean wantFullRoleChains) throws DeletedObjectException, JIAMOperationException
DeletedObjectException
JIAMOperationException
java.util.Vector<ProvisioningRole> getNestingRolesRecursive(boolean wantFullRoleChains) throws DeletedObjectException, JIAMOperationException
Retrieves all nesting roles for this provisioning role recursively at all levels. Nesting roles are parent objects of the provisioning role.
ProvisioningRole
objects nested under
this provisioning role.
DeletedObjectException
- If this object represents a Role that has already been deleted
JIAMOperationException
- If a JIAM operation resulting from retrieving the set failed.java.util.Vector<User> getUsersInRole(java.util.Enumeration<java.lang.String> attribs) throws SmApiException
attribs
-
SmApiException
java.util.Vector<User> getUsersInRoleRecursive(java.util.Enumeration<java.lang.String> attribs) throws DeletedObjectException, JIAMOperationException, SmApiException
attribs
-
DeletedObjectException
JIAMOperationException
SmApiException
java.util.Vector<User> getUsersInRoleRecursive(java.util.Enumeration<java.lang.String> attribs, boolean wantFullUserRoleChains) throws DeletedObjectException, JIAMOperationException, SmApiException
attribs
- Requested attributeswantFullUserRoleChains
- Controls whether full role path should be calculated for each user
DeletedObjectException
JIAMOperationException
SmApiException
java.util.Vector<User> getUsersInRoleRecursive(java.util.Enumeration<java.lang.String> attribs, boolean wantFullUserRoleChains, boolean wantDirect) throws DeletedObjectException, JIAMOperationException, SmApiException
DeletedObjectException
JIAMOperationException
SmApiException
java.util.Vector<User> getUsersInRoleRecursive(java.util.Vector<ProvisioningRole> nestingRoles, java.util.Enumeration<java.lang.String> attribs, boolean wantFullUserRoleChains, boolean wantDirect) throws DeletedObjectException, JIAMOperationException, SmApiException
DeletedObjectException
JIAMOperationException
SmApiException
void setNestedRoles(ProvisioningRole[] nestedRoles)
nestedRoles
- Roles to addvoid setNestedRolesToRemove(ProvisioningRole[] nestedRoles)
nestedRoles
- Roes to removejava.util.Vector getProvisioningPolicies() throws DeletedObjectException, JIAMOperationException
Retrieves all the provisioning policies assigned to this provisioning role.
ProvisioningPolicy
objects assigned to this provisioning role.
DeletedObjectException
- If this object represents a Role that has already been deleted
JIAMOperationException
- If a JIAM operation resulting from retrieving the set failed.java.util.Vector getProvisioningPolicies(AttributeRightsCollection arc) throws DeletedObjectException, JIAMOperationException
DeletedObjectException
JIAMOperationException
java.util.Vector addProvisioningPolicies(ProvisioningPolicy[] newProvisioningPolicies, java.lang.String operationID) throws DeletedObjectException, NoSuchObjectException, JIAMOperationException
Adds one or more provisioning policies to this provisioning role. Any existing provisioning policies remain assigned to the role.
operationID
- Operation ID to be used for the JIAM commit operation. Ideally this should be derived from the IM
eventID using ProvisioningDefinitionImpl.getIMOperationId()
.newProvisioningPolicies
- An array of ProvisioningPolicy
objects to assign to this provisioning role's collection.
DeletedObjectException
- If this object represents a Role that has already been deleted
NoSuchObjectException
- If one of the provisioning policies specified does not exist
JIAMOperationException
- If a JIAM operation resulting from adding policies failed.java.util.Vector removeProvisioningPolicies(ProvisioningPolicy[] ProvisioningPolicies, java.lang.String operationID) throws DeletedObjectException, NoSuchObjectException, JIAMOperationException
Removes one or more provisioning policies from this provisioning role.
Note: If the specified provisioning policies include some policies that are associated with the role and other policies that are not, the associated provisioning policies will be removed successfully, and no exception will be thrown.
operationID
- Operation ID to be used for the JIAM commit operation. Ideally this should be derived from the IM
eventID using ProvisioningDefinitionImpl.getIMOperationId()
.ProvisioningPolicies
- An array of the ProvisioningPolicy
objects to remove from this provisioning role's collection.
DeletedObjectException
- If this object represents a Role that has already been deleted
NoSuchObjectException
- If one of the provisioning policies specified does not exist
JIAMOperationException
- If a JIAM operation resulting from removing policies failed.void clearProvisioningPolicies() throws DeletedObjectException, JIAMOperationException
Removes all the provisioning policies from this provisioning role.
DeletedObjectException
- If this object represents a Role that has already been deleted
JIAMOperationException
- If a JIAM operation resulting from clearing all policies failed.java.util.Vector clearProvisioningPolicies(java.lang.String operationID) throws DeletedObjectException, JIAMOperationException
Removes all the provisioning policies from this provisioning role.
DeletedObjectException
- If this object represents a Role that has already been deleted
JIAMOperationException
- If a JIAM operation resulting from clearing all policies failed.java.util.Vector modifyObject(ProvisioningPolicy[] policiesToAssign, ProvisioningPolicy[] policiesToUnassign, java.lang.String operationID) throws SmApiException
Specifies the complete set of provisioning policies to assign to this provisioning role, and immediately commits the assignments to the data store.
This method should only be used onProvisioningRole
objects retrieved through
ProvisioningRoleProvider
.
ProvisioningRole
object.
addProvisioningPolicies()
.
policiesToAssign
- An array of the
ProvisioningPolicy
objects to assign to this provisioning role.policiesToUnassign
- An array of the
ProvisioningPolicy
objects to unassign from this provisioning role.
DeletedObjectException
- If this object represents a Role that has already been deleted
NoSessionException
- If this object represents a Role that is not connected to a session (i.e. isConnected() would return false).
SmApiException
java.util.Vector modifyObject(ProvisioningRole[] newNestedRoles, java.lang.String operationID) throws SmApiException
Specifies one or more nested roles to associate with this provisioning role, and immediately commits the associations to the data store.
This method should only be used onProvisioningRole
objects retrieved through
ProvisioningRoleProvider
.
ProvisioningRole
object.
newNestedRoles
- An array of the ProvisioningRole
objects to
nest under this provisioning role.operationID
- Operation ID to be used for the JIAM commit operation. Ideally this should be derived from the IM
eventID using ProvisioningDefinitionImpl.getIMOperationId()
.
DeletedObjectException
- If this object represents a Role that has already been deleted
NoSessionException
- If this object represents a Role that is not connected to a session (i.e. isConnected() would return false).
SmApiException
java.lang.Object modifyObject(java.util.Hashtable extraProps, java.lang.String opId, java.util.Vector returnMessage) throws SmApiException
SmApiException
java.lang.Object modifyPolicyStoreRoleObject() throws SmApiException
Creates or updates the policy store role object and all associated Identity Manager role policies.
SmApiException
- Occurs persisting the IM policy store object or the policiesboolean exists()
Indicates whether the provisioning role exists in Identity Manager or whether it exists only as an eTrust Admin object.
true
if the provisioning role exists in Identity Manager.void delete(boolean deletePSOnly, java.lang.String operationId) throws SmApiException
Delete the Provisioning Role. This method is primarly used to support Inbound Synchronization for the deletion of Provisioning Roles.
deletePSOnly
- A boolean that indicates the disposition of the delete: true - delete the Provisioning
role from the Policy Store ONLY! false - delete the Provisioning Role form the Policy
store and from the Provisioning Server; that same as invoking
(@link com.netegrity.llsdk6.imsapi.managedobject.ProvisioningRole#delete() delete()).
SmApiException
- Thorwn if any error encountered during the deletion of the Provisioning Role.java.util.Vector delete(java.lang.String operationId) throws SmApiException
operationId
-
SmApiException
java.util.Vector[] getCustomFields()
java.util.Vector getNestedRoles(boolean rolesonlywithimstubs, boolean wantFullRoleChains) throws JIAMOperationException
rolesonlywithimstubs
-
SmApiException
JIAMOperationException
java.util.Vector getAssignedResources()
void setAssignedResource(User user)
User
- java.util.Vector getRevokedResources()
void setRevokedResource(User user)
User
- java.util.Vector getAssignedPolicies()
void setAssignedPolicy(ProvisioningPolicy policy)
User
- java.util.Vector getRevokedPolicies()
void setRevokedPolicy(ProvisioningPolicy policy)
User
-
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |