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<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(Class<?> resource,
String operation)
Returns a list of all Permissions for the specified resource identifier, with the specified operation
|
List<Permission> |
listPermissions(IdentityType identityType)
Returns a list of all
Permission for the given IdentityType . |
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,
Class<?> resourceclass,
String operation)
Revoke the specified permission
|
void |
revokePermission(IdentityType assignee,
Object resource,
String operation)
Revoke the specified permission
|
List<Permission> listPermissions(Object resource)
resource
- List<Permission> listPermissions(IdentityType identityType)
Returns a list of all Permission
for the given IdentityType
.
identityType
- List<Permission> listPermissions(Class<?> resourceClass, Serializable identifier)
resourceClass
- identifier
- List<Permission> listPermissions(Object resource, String operation)
resource
- operation
- List<Permission> listPermissions(Class<?> resource, String operation)
resource
- operation
- List<Permission> listPermissions(Class<?> resourceClass, Serializable identifier, String operation)
resourceClass
- identifier
- operation
- void grantPermission(IdentityType assignee, Object resource, String operation)
assignee
- resource
- operation
- void revokePermission(IdentityType assignee, Object resource, String operation)
resource
- operation
- void revokePermission(IdentityType assignee, Class<?> resourceclass, String operation)
resourceclass
- void clearPermissions(Object resource)
resource
- Copyright © 2018 JBoss by Red Hat. All rights reserved.