public class InMemoryRoleManager extends Object implements RoleManager
RoleManager.| Constructor and Description |
|---|
InMemoryRoleManager(PermissionManager permissionManager) |
| Modifier and Type | Method and Description |
|---|---|
Role |
createRole(RoleIdentifier id,
RoleModification modification)
Creates a role.
|
void |
deleteRole(RoleIdentifier id)
Deletes a role.
|
Iterator<Role> |
getAll()
Gets all roles defined.
|
Set<String> |
getPermissionsForRole(RoleIdentifier id)
Gets all permissions associated with a role.
|
Role |
getRole(RoleIdentifier id)
Gets a role by ID.
|
List<Role> |
getRolesByGroup(String group)
Gets all roles associated with a group.
|
void |
updateRole(RoleIdentifier id,
RoleModification modification)
Updates a role.
|
public InMemoryRoleManager(PermissionManager permissionManager)
public Role getRole(RoleIdentifier id)
RoleManagergetRole in interface RoleManagerpublic List<Role> getRolesByGroup(@Nullable String group)
RoleManagergetRolesByGroup in interface RoleManagerpublic Iterator<Role> getAll()
RoleManagergetAll in interface RoleManagerpublic Set<String> getPermissionsForRole(RoleIdentifier id)
RoleManagergetPermissionsForRole in interface RoleManagerpublic Role createRole(RoleIdentifier id, RoleModification modification)
RoleManagercreateRole in interface RoleManagerpublic void updateRole(RoleIdentifier id, RoleModification modification)
RoleManagerupdateRole in interface RoleManagerpublic void deleteRole(RoleIdentifier id)
RoleManagerdeleteRole in interface RoleManagerCopyright © 2017. All Rights Reserved.