public class StringPermissionHandler extends Object implements PermissionHandler
Constructor and Description |
---|
StringPermissionHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(Class<?> resourceClass)
Returns true if the implementation can handle resources of the specified class
|
Serializable |
getIdentifier(Object resource)
Returns a Serializable identifier value that can be used to uniquely identify the specified resource
|
Set<String> |
listClassOperations(Class<?> resourceClass)
Returns a set containing the available permissions for a resource class.
|
Set<String> |
listInstanceOperations(Class<?> resourceClass)
Returns a set containing the available permissions for a particular resource instance.
|
Class<?> |
unwrapResourceClass(Object resource)
Returns the formal class of the specified resource
|
public boolean canHandle(Class<?> resourceClass)
PermissionHandler
canHandle
in interface PermissionHandler
public Serializable getIdentifier(Object resource)
PermissionHandler
getIdentifier
in interface PermissionHandler
public Class<?> unwrapResourceClass(Object resource)
PermissionHandler
unwrapResourceClass
in interface PermissionHandler
public Set<String> listClassOperations(Class<?> resourceClass)
PermissionHandler
listClassOperations
in interface PermissionHandler
public Set<String> listInstanceOperations(Class<?> resourceClass)
PermissionHandler
listInstanceOperations
in interface PermissionHandler
Copyright © 2018 JBoss by Red Hat. All rights reserved.