public interface RoleManager
| 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.
|
Role getRole(RoleIdentifier id)
List<Role> getRolesByGroup(@Nullable String group)
Iterator<Role> getAll()
Set<String> getPermissionsForRole(RoleIdentifier id)
Role createRole(RoleIdentifier id, RoleModification modification)
RoleExistsException - Another role with the same ID existsvoid updateRole(RoleIdentifier id, RoleModification modification)
RoleNotFoundException - No role with the ID existsvoid deleteRole(RoleIdentifier id)
Copyright © 2017. All Rights Reserved.