public interface PermissionManager extends PermissionReader
| Modifier and Type | Method and Description |
|---|---|
Iterable<Map.Entry<String,Set<org.apache.shiro.authz.Permission>>> |
getAll()
Gets all IDs with permissions attached.
|
void |
revokePermissions(String id)
Revokes all permissions associated with an ID, such as a role.
|
void |
updatePermissions(String id,
PermissionUpdateRequest updates)
Updates the permissions associated with an ID, such as a role.
|
getPermissionResolver, getPermissionsvoid updatePermissions(String id, PermissionUpdateRequest updates)
void revokePermissions(String id)
Iterable<Map.Entry<String,Set<org.apache.shiro.authz.Permission>>> getAll()
PermissionReader.getPermissions(String) for that role.
Note that if a role is in use but has no permissions attached then it is up to the implementation whether
to include a record with an empty set of permissions or omit the record entirely.Copyright © 2017. All Rights Reserved.