DescriptorBean, RoleEditorMBean, RoleReaderMBean, SettableBean, StandardInterfacepublic interface RoleAuxiliaryMBean extends RoleEditorMBean
| Modifier and Type | Method | Description |
|---|---|---|
void |
createRole(java.lang.String resourceId,
java.lang.String roleName,
java.lang.String expression,
java.lang.String auxiliary) |
Creates role for a resource.
|
void |
exportResource(java.lang.String filename,
java.lang.String cn) |
Exports provider specific role data using an LDAP
CN search filter to specify the resources for export.
|
java.lang.String |
getRoleAuxiliary(java.lang.String resourceId,
java.lang.String roleName) |
Get auxiliary role for a resource.
|
java.lang.String[][] |
getRoleNames(java.lang.String resourceType) |
Returns array of resource/role name tuples
of roles defined in the scope of resources of the given type
or global roles, when the type is null.
|
java.lang.String[] |
listAllRolesAndURIs(java.lang.String application,
java.lang.String contextPath) |
List all Role and URI pairings that have policy defined for
the specified application and context path.
|
void |
setRoleAuxiliary(java.lang.String resourceId,
java.lang.String roleName,
java.lang.String auxiliary) |
Set auxiliary role for a resource.
|
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListenercreateRole, removeRole, setRoleExpressiongetRoleExpression, listRolesForResource, roleExistsgetNamevoid createRole(java.lang.String resourceId,
java.lang.String roleName,
java.lang.String expression,
java.lang.String auxiliary)
throws AlreadyExistsException,
CreateException
resourceId - - The resource that scopes the new role.
Each resource has its predefined 'hierachy'.
This new role is applicable to all of the given resouce's
descendants if any.
A null indicates a global role, no scoping resource,
which applies to all resources within the container.roleName - - The name of the role that this method creates.
A null value will trigger NullPointerException.expression - - The expression policy designates which user or group
having this named 'role'.
A null value indicates this role is not granted to anyone.auxiliary - - Auxiliary data to support WLP.AlreadyExistsExceptionCreateExceptionvoid setRoleAuxiliary(java.lang.String resourceId,
java.lang.String roleName,
java.lang.String auxiliary)
throws AlreadyExistsException,
CreateException,
javax.management.MBeanException
resourceId - - The resource that scopes the role.roleName - - The name of the role that this method sets the auxiliary on.
A null value will trigger NullPointerException.auxiliary - - Auxiliary data to support WLP.AlreadyExistsExceptionCreateExceptionMBeanExeptionjavax.management.MBeanExceptionjava.lang.String getRoleAuxiliary(java.lang.String resourceId,
java.lang.String roleName)
throws NotFoundException,
javax.management.MBeanException
resourceId - - The resource that scopes the role.roleName - - The name of the role that this method sets the auxiliary on.
A null value will trigger NullPointerException.NotFoundExceptionMBeanExeptionjavax.management.MBeanExceptionvoid exportResource(java.lang.String filename,
java.lang.String cn)
throws InvalidParameterException,
ErrorCollectionException
filename - - The full path to the filename used to write data.cn - - The LDAP CN to be used when exporting data.InvalidParameterExceptionErrorCollectionExceptionjava.lang.String[] listAllRolesAndURIs(java.lang.String application,
java.lang.String contextPath)
application - - The name of the deployed application.contextPath - - The context path for the application.java.lang.String[][] getRoleNames(java.lang.String resourceType)
resourceType - - The resource type, or null to get global roles