|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.apps.identity.RoleManager
Provides aggregate role management capabilities. These capabilities include the creation of roles and validation of (dynamic) roles. In general it should be noted that the value object for a static role is represented by the Role class, and the value object for a dynamic role is represented by the DynamicRole class.
RoleMO
,
Role
,
DynamicRole
Constructor Summary | |
---|---|
RoleManager(PlatformContext platform,
javax.security.auth.Subject subject)
Constructs the manager with a platform context and a subject. |
Method Summary | |
---|---|
Request |
createRole(OrganizationalContainerMO container,
Role subject,
java.util.Date scheduledTime)
Creates a role in the provisioning platform with the specified attributes within the given container. |
java.util.Collection |
getRoles(OrganizationalContainerMO container,
java.lang.String name)
Returns the role(s) with the name within the given parent container. |
java.util.Collection |
getRoles(OrganizationalContainerMO parent,
java.lang.String attributeName,
java.lang.Object attributeValue)
Returns the role(s) matching the given attribute within the given parent container. |
void |
getRoles(OrganizationalContainerMO parent,
java.lang.String attributeName,
java.lang.Object attributeValue,
SearchResultsMO results)
Returns the role(s) matching the given attribute within the given container. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RoleManager(PlatformContext platform, javax.security.auth.Subject subject)
platform
- PlatformContext holding platform connection information.subject
- Subject representing the authenticated caller.Method Detail |
public Request createRole(OrganizationalContainerMO container, Role subject, java.util.Date scheduledTime) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
container
- OrganizationalContainerMO within which the the
role will be placed.subject
- Role value object defining the attributes the role will
have.
Note that this can be a Role for a static role, or a
DynamicRole for a dynamic role.scheduledTime
- The scheduled starting time of the process.
If null, the process will start immediately.
In case this method is invoked remotely, passing this parameter as the current
data/time of the client machine is not a safe technique to use, since the
date/time of the client machine may not be the same as the date/time of the
ITIM server machine. Only applicable to dynamic role. May be null
if Role represents a static role.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
create the role in the given
container.
SchemaViolationException
- Thrown if any of the attributes
in the value object are violate the
managed object's schema. This
may be caused by an invalid attribute
or if a required attribute is missing
entirely.
ApplicationException
- Thrown if unable to submit the request.
This may possibly be caused by
the container being removed by another
client previous to this call.public java.util.Collection getRoles(OrganizationalContainerMO container, java.lang.String name) throws java.rmi.RemoteException, ApplicationException
container
- OrganizationalContainerMO representing the parent container
to scope the search. In a single-tenant deployment, null
can be specified to indicate the entire tree should be
searched. In a multi-tenant deployment, an
OrganizationalContainerMO object must be provided that
represents the root of the tenant.name
- Name of the role(s) to return.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the
roles. This may possibly
be caused by the container being removed
by another client previous to this call.public java.util.Collection getRoles(OrganizationalContainerMO parent, java.lang.String attributeName, java.lang.Object attributeValue) throws java.rmi.RemoteException, ApplicationException
parent
- OrganizationalContainerMO representing the parent container
to scope the search. In a single-tenant deployment, null
can be specified to indicate the entire tree should be
searched. In a multi-tenant deployment, an
OrganizationalContainerMO object must be provided that
represents the root of the tenant.attributeName
- Name of attribute to match with.attributeValue
- Value of the attribute to match with. A * can be
used as the first and/or last character of a
String value if a "contains" expression is wished.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the
role. This may possibly
be caused by the parent container being
removed by another client previous to
this call.public void getRoles(OrganizationalContainerMO parent, java.lang.String attributeName, java.lang.Object attributeValue, SearchResultsMO results) throws java.rmi.RemoteException, ApplicationException
parent
- OrganizationalContainerMO representing the parent container
to scope the search. In a single-tenant deployment, null
can be specified to indicate the entire tree should be
searched. In a multi-tenant deployment, an
OrganizationalContainerMO object must be provided that
represents the root of the tenant.attributeName
- Name of attribute to match with.attributeValue
- Value of the attribute to match with. A '*' can be
used as the first and/or last character of a
String value to perform substring searches for Role.results
- SearchResultsMO to hold the results of the search.
SearchResultsMO provides a page by page view of the results.
The objet will be filled with Role value objects that
match the given criteria. Note, if the SearchResultsMO
object was constructed using a different user context,
that context will be changed to match the context of this
object.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the
roles. This may possibly
be caused by the parent container being
removed by another client previous to
this call.SearchMO
,
SearchResultsMO
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |