public interface PermissionManager
| Modifier and Type | Method and Description |
|---|---|
Iterable<Map.Entry<String,Set<org.apache.shiro.authz.Permission>>> |
getAll()
Gets all roles with permissions attached.
|
Set<org.apache.shiro.authz.Permission> |
getAllForRole(String role)
Gets all permissions granted to this role.
|
org.apache.shiro.authz.permission.PermissionResolver |
getPermissionResolver()
Gets the permission resolver for this manager.
|
void |
revokeAllForRole(String role)
Revokes all permissions for a role.
|
void |
updateForRole(String role,
PermissionUpdateRequest updates)
Updates the permissions for a role.
|
Set<org.apache.shiro.authz.Permission> getAllForRole(String role)
Multimap.get(Object)void updateForRole(String role, PermissionUpdateRequest updates)
void revokeAllForRole(String role)
Iterable<Map.Entry<String,Set<org.apache.shiro.authz.Permission>>> getAll()
getAllForRole(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.org.apache.shiro.authz.permission.PermissionResolver getPermissionResolver()
Copyright © 2017. All Rights Reserved.