|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PermissionResourceResolver
A Resolver is an object that helps retrieving resources to whom could apply security permissions. Such a resolver is associated to security roles for discovering the resources they are protecting ...
Method Summary | |
---|---|
java.util.List |
getPermissionResourceList()
Retrieve a list of resolved resources wrapped within PermissionResource |
java.lang.Object |
getResource(java.lang.String resourceId)
Get a resource using its unique identifier |
java.lang.String |
getResourceId(java.lang.Object resource)
Get a resource unique identifier |
java.lang.String |
getResourceLabel(java.lang.Object resource)
Get a resource label for display |
java.util.List |
getResourceList()
Retrieve a list of resolved resources |
boolean |
isValidResource(java.lang.Object resource)
Tells if given resource is a valid one |
Method Detail |
---|
java.util.List getResourceList()
java.util.List getPermissionResourceList()
PermissionResource
org.figure8.join.services.security.PermissionResource
boolean isValidResource(java.lang.Object resource)
resource
- Object to try to resolve
java.lang.Object getResource(java.lang.String resourceId) throws InvalidParameterException
resourceId
- Unique identifier corresponding to resource
InvalidParameterException
- if the resourceId is unknown.java.lang.String getResourceId(java.lang.Object resource) throws InvalidParameterException
resource
- The object representing the resource
InvalidParameterException
- if the resource cannot be resolvedjava.lang.String getResourceLabel(java.lang.Object resource) throws InvalidParameterException
resource
- The object representing the resource
InvalidParameterException
- if the resource cannot be resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |