public class ContextualPermissionManager extends AbstractIdentityContext implements PermissionManager
AUTHENTICATED_ACCOUNT, CREDENTIALS
Constructor and Description |
---|
ContextualPermissionManager(Partition partition,
EventBridge eventBridge,
IdGenerator idGenerator,
PermissionHandlerPolicy permissionHandlerPolicy,
StoreSelector storeSelector) |
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
|
getEventBridge, getIdGenerator, getParameter, getPartition, getPermissionHandlerPolicy, isParameterSet, setParameter
public ContextualPermissionManager(Partition partition, EventBridge eventBridge, IdGenerator idGenerator, PermissionHandlerPolicy permissionHandlerPolicy, StoreSelector storeSelector)
public List<Permission> listPermissions(Object resource)
PermissionManager
listPermissions
in interface PermissionManager
public List<Permission> listPermissions(Class<?> resourceClass, Serializable identifier)
PermissionManager
listPermissions
in interface PermissionManager
public List<Permission> listPermissions(Class<?> resourceClass, Serializable identifier, String operation)
PermissionManager
listPermissions
in interface PermissionManager
public List<Permission> listPermissions(Object resource, String operation)
PermissionManager
listPermissions
in interface PermissionManager
public List<Permission> listPermissions(Class<?> resource, String operation)
PermissionManager
listPermissions
in interface PermissionManager
public List<Permission> listPermissions(IdentityType identityType)
PermissionManager
Returns a list of all Permission
for the given IdentityType
.
listPermissions
in interface PermissionManager
public void grantPermission(IdentityType assignee, Object resource, String operation)
PermissionManager
grantPermission
in interface PermissionManager
public void revokePermission(IdentityType assignee, Object resource, String operation)
PermissionManager
revokePermission
in interface PermissionManager
public void revokePermission(IdentityType assignee, Class<?> resourceclass, String operation)
PermissionManager
revokePermission
in interface PermissionManager
public void clearPermissions(Object resource)
PermissionManager
clearPermissions
in interface PermissionManager
Copyright © 2018 JBoss by Red Hat. All rights reserved.