public interface PermissionHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(Class<?> resourceClass)
Returns true if the implementation can handle resources of the specified class
|
boolean |
canLoadResource(String identifier)
Returns true if the implementation can load the resource instance for the specified identifier
|
Set<String> |
convertResourcePermissions(Class<?> resourceClass,
Object permissions) |
String |
getGeneratedIdentifier(Object resource)
Returns a String identifier value that can be used to uniquely identify the specified resource
|
Serializable |
getNaturalIdentifier(Object resource)
Returns the natural identifier value of the specified resource
|
Set<String> |
listAvailablePermissions(Class<?> resourceClass)
Returns a set containing the available permissions for a particular resource.
|
Object |
lookupResource(String identifier)
Returns the resource instance for the specified identifier
|
boolean canHandle(Class<?> resourceClass)
resourceClass - boolean canLoadResource(String identifier)
identifier - String getGeneratedIdentifier(Object resource)
resource - Serializable getNaturalIdentifier(Object resource)
resource - Object lookupResource(String identifier)
identifier - Set<String> listAvailablePermissions(Class<?> resourceClass)
resourceClass - Copyright © 2013. All Rights Reserved.