public interface RoleManager
DirectoryManager
Modifier and Type | Method and Description |
---|---|
void |
createRole(RoleDetails roleDetails)
Create a new role with the specified
roleDetails . |
void |
deleteRole(String role)
Delete an existing role represented by the specified
role . |
RoleDetails |
getRole(String role)
Retrieve the role details by
role . |
boolean |
isReadOnly()
Indicates that this manager is for read-only purposes, and that any invocation of a destructive operation
will throw an
AccessDeniedException . |
Map<String,RoleDetails> |
mapRoles()
Returns a map containing mapping between role and role-details.
|
boolean |
roleExists(String role)
Queries for presence of a role by role.
|
void |
updateRole(RoleDetails roleDetails)
Updates the role details, excluding the role which must remain the same.
|
boolean isReadOnly()
AccessDeniedException
.true
if read-only access is allowed.void createRole(RoleDetails roleDetails) throws RoleAlreadyExistsException, RoleDataAccessException, AccessDeniedException
roleDetails
.roleDetails
- new role details to store.RoleAlreadyExistsException
- if the role details represent a non-unique roleRoleDataAccessException
- if could not store the specified role details.AccessDeniedException
- if read-only access is allowed.void deleteRole(String role) throws RoleNotFoundException, RoleDataAccessException, AccessDeniedException
role
.role
- an existing role name.RoleNotFoundException
- if the role was not found.RoleDataAccessException
- if could not delete the specified role details.AccessDeniedException
- if read-only access is allowed.RoleDetails getRole(String role) throws RoleNotFoundException, RoleDataAccessException
role
.role
- an existing role to retrieve.RoleNotFoundException
- if the role was not found.RoleDataAccessException
- if could not retrieve the specified role details.Map<String,RoleDetails> mapRoles() throws RoleDataAccessException
RoleDataAccessException
- if could not retrieve role-details to map.void updateRole(RoleDetails roleDetails) throws RoleNotFoundException, RoleDataAccessException, AccessDeniedException
roleDetails
- the role details to update.RoleNotFoundException
- if the role was not found.RoleDataAccessException
- if could not update the role details.AccessDeniedException
- if read-only access is allowed.boolean roleExists(String role) throws RoleDataAccessException
role
- the role to check existence for.true
if the role exists; false
otherwise.RoleDataAccessException
- if could not query for the specified role.Copyright © GigaSpaces.