public interface PermissionManager extends PermissionReader
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.util.Set<org.apache.shiro.authz.Permission>>> |
getAll()
Gets all IDs with permissions attached.
|
void |
revokePermissions(java.lang.String id)
Revokes all permissions associated with an ID, such as a role.
|
void |
updatePermissions(java.lang.String id,
PermissionUpdateRequest updates)
Updates the permissions associated with an ID, such as a role.
|
getPermissionResolver, getPermissionsvoid updatePermissions(java.lang.String id,
PermissionUpdateRequest updates)
void revokePermissions(java.lang.String id)
java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.util.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 © 2019. All Rights Reserved.