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.
|
java.util.Iterator<Role> |
getAll()
Gets all roles defined.
|
java.util.Set<java.lang.String> |
getPermissionsForRole(RoleIdentifier id)
Gets all permissions associated with a role.
|
Role |
getRole(RoleIdentifier id)
Gets a role by ID.
|
java.util.List<Role> |
getRolesByGroup(java.lang.String group)
Gets all roles associated with a group.
|
void |
updateRole(RoleIdentifier id,
RoleModification modification)
Updates a role.
|
Role getRole(RoleIdentifier id)
java.util.List<Role> getRolesByGroup(@Nullable java.lang.String group)
java.util.Iterator<Role> getAll()
java.util.Set<java.lang.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 © 2018. All Rights Reserved.