org.picketlink.idm.internal
public class ContextualPermissionManager extends AbstractIdentityContext implements PermissionManager
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<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
|
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 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 clearPermissions(Object resource)
PermissionManager
clearPermissions
in interface PermissionManager
public List<String> listOperations(Class<?> resourceClass)
PermissionManager
listOperations
in interface PermissionManager
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.