|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.apps.system.SystemRoleManager
public class SystemRoleManager
Provides system role management capabilities, namely APIs to create a system role and to search for existing system roles.
SystemRoleMO
Nested Class Summary | |
---|---|
static class |
SystemRoleManager.ViewCategory
The Category class is a container for information about different Categories, or Views, defined inside of ITIM. |
Constructor Summary | |
---|---|
SystemRoleManager(PlatformContext platform,
javax.security.auth.Subject subject)
Constructs the manager with a platform context and a subject. |
Method Summary | |
---|---|
SystemRoleMO |
createRole(OrganizationalContainerMO container,
SystemRole systemRole)
Creates a system role in the provisioning platform with the specified attributes within the given container. |
SystemRoleMO |
getRoleByURI(OrganizationalContainerMO container,
java.lang.String uri)
Returns the system role for the given Uniform Resource Identifier (URI) within the specified parent container. |
java.util.Collection |
getRoles(OrganizationalContainerMO container,
java.lang.String name)
Returns the system roles by name within the given parent container. |
java.util.Collection<SystemRoleManager.ViewCategory> |
getSystemRoleCategories()
Get a Collection of SystemRoleManager.Category objects that describe all of the available categories (or views) available to the system. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemRoleManager(PlatformContext platform, javax.security.auth.Subject subject)
platform
- PlatformContext holding platform connection information.subject
- Subject representing the authenticated caller.Method Detail |
---|
public SystemRoleMO createRole(OrganizationalContainerMO container, SystemRole systemRole) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
container
- OrganizationalContainerMO within which the system role will be
placed.systemRole
- SystemRole value object defining the attributes of the role,
namely a description and a category.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to create a system role
in the given container.
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. This exception is thrown also when
container contains a null DistinguishedName, container represents
the tenant or the systemRole value object is null. A more specific
ApplicationException, SchemaViolationException is thrown if
SystemRole object does not have required attributes or
attributes that are not part of the schema or attributes
that have inappropriate values.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 multi-tenant deployment, an
OrganizationalContainerMO object must be provided that
represents the root of the tenant.name
- Name of the system roles to return. This might be a String
that uses '*' and represents a regular expression. For
example "tim*" can be used to find out all system roles whose
names start with "tim".
java.rmi.RemoteException
- Thrown if the API is unable to communicate with platform.
ApplicationException
- 1. Thrown if the API is unable to obtain the system roles. This might
occur if the container is removed by another client previous to this call.
2. Thrown if the container object is null or it represents the tenant.public SystemRoleMO getRoleByURI(OrganizationalContainerMO container, java.lang.String uri) throws java.rmi.RemoteException, ApplicationException
container
- OrganizationalContainerMO representing the parent container to
scope the search.uri
- String representing the system role's URI.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the system role. This might
be caused by the container being removed by
another client previous to this call. This exception might also be thrown
if the container object is null or represents the tenant,
no system role is found for the given URI within the container,
or more than one system role is found for the given URI
within the container.public java.util.Collection<SystemRoleManager.ViewCategory> getSystemRoleCategories() throws ApplicationException, java.rmi.RemoteException
ApplicationException
- Thrown if unable to obtain the categories from the system.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.SystemRoleManager.ViewCategory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |