|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProvisioningRoleProvider
Lets you create or retrieve Provisioning Roles which have been defined in the current Identity Manager environment.
To retrieve provisioning roles from multiple Identity Manager environments, useAccessControlProvider
.
ProviderAccessor
.
Role
.
ProvisioningRoleProvider
are accessed for reading purposes only. However, on occassion, business logic task
handlers and event listeners may need to modify objects retrieved through
ProvisioningRoleProvider
.
ProvisioningRoleProvider
, call
modifyObject()
. The changes are then immediately persisted to the data store. No Identity Manager
events are generated, and no workflow approvals, auditing, or security checks are performed.
Method Summary | |
---|---|
java.util.Vector |
addOrRemoveProvisioningRole(java.util.Vector roles,
ProvisioningRoleActionType action,
User user,
boolean addAccounts,
java.lang.String opID)
Adds or removes the Vector of roles to the user. |
ProvisioningRole |
createProvisioningRole(java.lang.String name,
java.lang.String description,
java.lang.String comments,
java.lang.String department,
boolean enabled,
boolean assignable,
boolean adminAssignable)
Creates a new Provisioning Server provisioning role without any associated provisioning policies or change rules. |
ProvisioningRole |
createProvisioningRole(java.lang.String name,
java.lang.String description,
java.lang.String comments,
java.lang.String department,
boolean enabled,
boolean assignable,
boolean adminAssignable,
java.lang.String[] customFieldValues)
Creates a new Provisioning Server provisioning role without any associated provisioning policies or change rules. |
ProvisioningRole |
findProvisioningRole(java.lang.String friendlyName)
Retrieves the specified provisioning role, using the role's friendly name. |
ProvisioningRole |
findPSProvisioningRole(java.lang.String friendlyName)
Finds the provisioning role in the object store by friendly name. |
ProvisioningRole |
getProvisioningRole(java.lang.String uniqueName)
Retrieves the specified provisioning role, using the role's unique name. |
java.util.Vector |
getProvisioningRoles()
Retrieves all the provisioning roles in the Identity Manager environment. |
java.util.Vector |
getProvisioningRolesAdminCanAssign(TSContext tsCtx)
Retrieves the provisioning roles to which the subject of the task can be assigned by the current administrator. |
java.util.Vector |
getProvisioningRolesAdminCanAssign(TSContext tsCtx,
java.util.Vector rolesToSearch)
|
java.util.Vector |
getProvisioningRolesAdminCanAssignExcludeRoles(TSContext tsCtx,
java.util.Vector rolesToExclude)
Returns all of the roles that the admin can assign to users except those in the exclusion list. |
java.util.Vector |
getProvisioningRolesAdminCanAssignExcludeRoles(TSContext tsCtx,
java.util.Vector rolesToExclude,
java.util.Vector rolesToSearch)
Returns roles from the given list that the admin can assign to users except those in the exclusion list. |
java.util.Vector |
getProvisioningRolesAdminCanGrantAdmin(TSContext tsCtx)
Retrieves the provisioning roles for which the subject of the task can be assigned administrator rights by the current administrator. |
java.util.Vector |
getProvisioningRolesAdminCanGrantAdmin(TSContext tsCtx,
java.util.Vector rolesToSearch)
Returns roles from the given list that the admin can make users role admins. |
java.util.Vector |
getProvisioningRolesAdminCanManageAdmin(TSContext tsCtx)
Retrieves the provisioning roles for which the current administrator can assign administrator rights. |
java.util.Vector |
getProvisioningRolesAdminCanManageAdmin(TSContext tsCtx,
java.util.Vector rolesToSearch)
|
java.util.Vector |
getProvisioningRolesAdminCanManageMembers(TSContext tsCtx)
Retrieves the provisioning roles to which users can be assigned by the current administrator. |
java.util.Vector |
getProvisioningRolesAdminCanManageMembers(TSContext tsCtx,
java.util.Vector rolesToSearch)
Returns the roles from the given list that the admin can assign to users. |
java.util.Vector<ProvisioningRole> |
getProvisioningRolesNested(ProvisioningRole role,
boolean recursive,
boolean wantFullRoleChains)
|
java.util.Vector<ProvisioningRole> |
getProvisioningRolesNesting(ProvisioningRole role,
boolean recursive,
boolean wantFullRoleChains)
|
java.util.Vector |
getProvisioningRolesStubs()
Retrieves all the provisioning roles stubs in the Identity Manager environment. |
java.util.Vector |
searchAllProvisioningRoles(ProvisioningRoleObjectQuery query)
Searches for a subset of the provisioning roles using enhanced search capabilities in the Identity Manager environment. |
java.util.Vector |
searchOnlyProvServerProvisioningRoles(ScopeRule query)
|
java.util.Vector |
searchProvisioningRoles(IAMDomain iamDomain,
java.util.Vector roleNames,
java.util.Vector psRoles)
Searches for ProvisioningRoles in ETrustAdmin. |
java.util.Vector |
searchProvisioningRoles(ProvisioningRoleObjectQuery query)
Searches for a subset of the provisioning roles using enhanced search capabilities in the Identity Manager environment. |
java.util.Vector |
searchProvisioningRoles(ProvisioningRoleObjectQuery query,
boolean linkem)
Search for provisioning roles which meet the criteria defined in the specified query. |
java.util.Vector |
searchProvisioningRoles(ProvisioningRoleObjectQuery query,
boolean linkem,
boolean wantParentRoles)
Same as above but allows control over parent/including role calculation |
java.util.Vector |
searchProvisioningRoles(RoleObjectQuery query)
Searches for a subset of the provisioning roles in the Identity Manager environment. |
void |
setNestingForRole(ProvisioningRole role,
boolean parent,
boolean wantFullRoleChains,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> includedRoleMap,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> includingRoleMap)
Set child and parent nested roles on a provisioning role using Maps of known child/parent roles or querying provisioning if necessary. |
Method Detail |
---|
ProvisioningRole createProvisioningRole(java.lang.String name, java.lang.String description, java.lang.String comments, java.lang.String department, boolean enabled, boolean assignable, boolean adminAssignable) throws com.netegrity.sdk.apiutil.SmApiException
Creates a new Provisioning Server provisioning role without any associated provisioning policies or change rules.
name
- The friendly name for the role.description
- The description of the role.comments
- A user-defined comment for the 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.department
- The department to which the role belongs.enabled
- true
if the role is enabled.assignable
- true
if a member's role assignments
can be changed.adminAssignable
- true
if administrator rights to
the role can be changed.
enabled
,
assignable
, and
adminAssignable
are always
true
for provisioning roles. The
values specified in the paramaters are ignored.com.netegrity.sdk.apiutil.SmApiException
ProvisioningRole createProvisioningRole(java.lang.String name, java.lang.String description, java.lang.String comments, java.lang.String department, boolean enabled, boolean assignable, boolean adminAssignable, java.lang.String[] customFieldValues) throws com.netegrity.sdk.apiutil.SmApiException
Creates a new Provisioning Server provisioning role without any associated provisioning policies or change rules.
name
- The friendly name for the role.description
- The description of the role.comments
- A user-defined comment for the 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.department
- The department to which the role belongs.enabled
- true
if the role is enabled.assignable
- true
if a member's role assignments
can be changed.adminAssignable
- true
if administrator rights to
the role can be changed.
com.netegrity.sdk.apiutil.SmApiException
ProvisioningRole getProvisioningRole(java.lang.String uniqueName) throws com.netegrity.sdk.apiutil.SmApiException, NoSuchObjectException
Retrieves the specified provisioning role, using the role's unique name.
uniqueName
- The unique name of the provisioning role to retrieve.
NoSuchObjectException
- if the object cannot be found.
com.netegrity.sdk.apiutil.SmApiException
ProvisioningRole findProvisioningRole(java.lang.String friendlyName) throws SmApiException, NoSuchObjectException
Retrieves the specified provisioning role, using the role's friendly name.
friendlyName
- The friendly name of the provisioning role to retrieve.
NoSuchObjectException
- if the object cannot be found.
SmApiException
ProvisioningRole findPSProvisioningRole(java.lang.String friendlyName) throws SmApiException
friendlyName
- The friendly name of the provisioning role to retrieve.
SmApiException
java.util.Vector getProvisioningRoles() throws JIAMOperationException, SmApiException
Retrieves all the provisioning roles in the Identity Manager environment.
ProvisioningRole
objects.
JIAMOperationException
SmApiException
java.util.Vector getProvisioningRolesStubs() throws com.netegrity.sdk.apiutil.SmApiException
Retrieves all the provisioning roles stubs in the Identity Manager environment.
ProvisioningRole
objects.
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector<ProvisioningRole> getProvisioningRolesNested(ProvisioningRole role, boolean recursive, boolean wantFullRoleChains) throws SmApiException
SmApiException
java.util.Vector<ProvisioningRole> getProvisioningRolesNesting(ProvisioningRole role, boolean recursive, boolean wantFullRoleChains) throws SmApiException
SmApiException
void setNestingForRole(ProvisioningRole role, boolean parent, boolean wantFullRoleChains, java.util.Map<java.lang.String,java.util.List<java.lang.String>> includedRoleMap, java.util.Map<java.lang.String,java.util.List<java.lang.String>> includingRoleMap) throws SmApiException, IAMException, JIAMOperationException
role
- parent
- wantFullRoleChains
- includedRoleMap
- includingRoleMap
-
SmApiException
IAMException
JIAMOperationException
java.util.Vector searchProvisioningRoles(RoleObjectQuery query) throws com.netegrity.sdk.apiutil.SmApiException
Searches for a subset of the provisioning roles in the Identity Manager environment. The returned subset of provisioning roles will contain only those roles which have at least one valid Identity Manager Owner Policy. There may be provisioning roles that have been defined in the Provisioning Server which have not had the "Reset Provisioning Role Owners" task run against them. In this case, these Provisioning Roles will not contain a valid Identity Manager Owner Policy, and will not be included in this search.
query
- The search filter.
ProvisioningRole
objects found in the search.
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector searchProvisioningRoles(ProvisioningRoleObjectQuery query, boolean linkem) throws com.netegrity.sdk.apiutil.SmApiException
query
- linkem
- - if true, roles are linked to the corresponding roles in the Policy Server.
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector searchProvisioningRoles(ProvisioningRoleObjectQuery query, boolean linkem, boolean wantParentRoles) throws com.netegrity.sdk.apiutil.SmApiException
query
- linkem
- wantParentRoles
-
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector searchProvisioningRoles(ProvisioningRoleObjectQuery query) throws com.netegrity.sdk.apiutil.SmApiException
Searches for a subset of the provisioning roles using enhanced search capabilities in the Identity Manager environment. The returned subset of provisioning roles will contain only those roles which have at least one valid Identity Manager Owner Policy. There may be provisioning roles that have been defined in the Provisioning Server which have not had the "Reset Provisioning Role Owners" task run against them. In this case, these Provisioning Roles will not contain a valid Identity Manager Owner Policy, and will not be included in this search results.
query
- The enhanced provisioning role search filter.
ProvisioningRole
objects found in the search.
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector searchOnlyProvServerProvisioningRoles(ScopeRule query) throws com.netegrity.sdk.apiutil.SmApiException
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector searchAllProvisioningRoles(ProvisioningRoleObjectQuery query) throws com.netegrity.sdk.apiutil.SmApiException
Searches for a subset of the provisioning roles using enhanced search capabilities in the Identity Manager environment. The returned subset of provisioning roles will contian ALL provisioning roles regardless of whether or not the role contains a valid Identity Manager Owner Policy. There may be provisioning roles that have been defined in the Provisioning Server which have not had the "Reset Provisioning Role Owners" task run against them. In this case, these Provisioning Roles will not contain a valid Identity Manager Owner Policy, however will be included in the search results. It is important to note that the ONLY Identity Manager task which can be run against a provisioning role that does not contain at least one valid Provisioning Role Owner Policy is "Reset Provisioning Role Owners".
query
- The search filter.
ProvisioningRole
objects found in the search.
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector searchProvisioningRoles(IAMDomain iamDomain, java.util.Vector roleNames, java.util.Vector psRoles) throws com.netegrity.sdk.apiutil.SmApiException
Searches for ProvisioningRoles in ETrustAdmin.
iamDomain
- JIAM domainpsRoles
- A Vector of IM roles representing provisioning roles
ProvisioningRole
provisioning roles linked to IAMroles.
com.netegrity.sdk.apiutil.SmApiException
java.util.Vector getProvisioningRolesAdminCanGrantAdmin(TSContext tsCtx) throws SmApiException
Retrieves the provisioning roles for which the subject of the task can be assigned administrator rights by the current administrator.
tsCtx
- Context information about the current task, such as
the subject of the task and the administrator who is executing the task.
ProvisioningRole
objects.
SmApiException
java.util.Vector getProvisioningRolesAdminCanAssign(TSContext tsCtx) throws SmApiException
Retrieves the provisioning roles to which the subject of the task can be assigned by the current administrator.
tsCtx
- Context information about the current task, such as
the subject of the task and the administrator who is executing the task.
ProvisioningRole
objects that the administrator can make the subject a member of.
SmApiException
java.util.Vector getProvisioningRolesAdminCanAssign(TSContext tsCtx, java.util.Vector rolesToSearch) throws SmApiException
SmApiException
java.util.Vector getProvisioningRolesAdminCanManageAdmin(TSContext tsCtx) throws SmApiException
Retrieves the provisioning roles for which the current administrator can assign administrator rights.
tsCtx
- Context information about the current task, such as
the administrator who is executing the task.
ProvisioningRole
objects for which the administrator can assign administrator rights.
SmApiException
java.util.Vector getProvisioningRolesAdminCanManageAdmin(TSContext tsCtx, java.util.Vector rolesToSearch) throws SmApiException
SmApiException
java.util.Vector getProvisioningRolesAdminCanManageMembers(TSContext tsCtx) throws SmApiException
Retrieves the provisioning roles to which users can be assigned by the current administrator.
tsCtx
- Context information about the current task, such as
the administrator who is executing the task.
ProvisioningRole
objects.
SmApiException
java.util.Vector getProvisioningRolesAdminCanAssignExcludeRoles(TSContext tsCtx, java.util.Vector rolesToExclude) throws SmApiException
tsCtx
- rolesToExclude
- collection of SmApiException
java.util.Vector getProvisioningRolesAdminCanGrantAdmin(TSContext tsCtx, java.util.Vector rolesToSearch) throws SmApiException
tsCtx
- rolesToSearch
- collection of SmApiException
java.util.Vector getProvisioningRolesAdminCanAssignExcludeRoles(TSContext tsCtx, java.util.Vector rolesToExclude, java.util.Vector rolesToSearch) throws SmApiException
tsCtx
- rolesToExclude
- collection of rolesToSearch
- collection of SmApiException
java.util.Vector getProvisioningRolesAdminCanManageMembers(TSContext tsCtx, java.util.Vector rolesToSearch) throws SmApiException
tsCtx
- rolesToSearch
- collection of SmApiException
java.util.Vector addOrRemoveProvisioningRole(java.util.Vector roles, ProvisioningRoleActionType action, User user, boolean addAccounts, java.lang.String opID) throws AccumulatedProvisioningRoleException, SmApiException
roles
- A vector of roles to add or remove.action
- The action (from com.netegrity.ims.events.ProvisioningRoleAction
.user
- The user which will have roles added to or removed from.addAccounts
- A boolen to determine if accounts should be created for the user.
AccumulatedProvisioningRoleException
SmApiException
|
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 |