public interface PermissionManager
Modifier and Type | Method and Description |
---|---|
void |
clearPermissions(Object resource)
Remove all permissions for the specified resource
|
void |
grantPermission(IdentityType assignee,
Object resource,
String operation)
Grant the specified permission
|
List<String> |
listOperations(Class<?> resourceClass)
List all allowed permission type strings for the specified resource
|
List<Permission> |
listPermissions(Class<?> resourceClass,
Serializable identifier)
Returns a list of all Permissions for the specified resource identifier
|
List<Permission> |
listPermissions(Class<?> resourceClass,
Serializable identifier,
String operation)
Returns a list of all Permissions for the specified resource identifier, with the specified operation
|
List<Permission> |
listPermissions(Object resource)
Return a list of all permissions for the specified resource.
|
List<Permission> |
listPermissions(Object resource,
String operation)
Return a list of all permissions for the specified resource, with the specified operation
|
void |
revokePermission(IdentityType assignee,
Object resource,
String operation)
Revoke the specified permission
|
List<Permission> listPermissions(Object resource)
resource
- List<Permission> listPermissions(Class<?> resourceClass, Serializable identifier)
resourceClass
- identifier
- List<Permission> listPermissions(Object resource, String operation)
resource
- permission
- List<Permission> listPermissions(Class<?> resourceClass, Serializable identifier, String operation)
resourceClass
- identifier
- operation
- void grantPermission(IdentityType assignee, Object resource, String operation)
permission
- void revokePermission(IdentityType assignee, Object resource, String operation)
permission
- void clearPermissions(Object resource)
resource
- Copyright © 2014. All rights reserved.