|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.services.security.EnvironmentResolver
public class EnvironmentResolver
This is an implementation of PermissionResourceResolver
used
for managing EnvironmentView
s as security roles resources.
Constructor Summary | |
---|---|
EnvironmentResolver()
Creates a new instance of EnvironmentResolver |
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 EnvironmentView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnvironmentResolver()
Method Detail |
---|
public java.util.List getResourceList()
getResourceList
in interface PermissionResourceResolver
public java.util.List getPermissionResourceList()
PermissionResource
getPermissionResourceList
in interface PermissionResourceResolver
org.figure8.join.services.security.PermissionResource
public boolean isValidResource(java.lang.Object resource)
EnvironmentView
isValidResource
in interface PermissionResourceResolver
resource
- Object to try to resolve
public java.lang.Object getResource(java.lang.String resourceId) throws InvalidParameterException
getResource
in interface PermissionResourceResolver
resourceId
- Unique identifier corresponding to resource
InvalidParameterException
- if the resourceId is unknown.public java.lang.String getResourceId(java.lang.Object resource) throws InvalidParameterException
getResourceId
in interface PermissionResourceResolver
resource
- The object representing the resource
InvalidParameterException
- if the resource cannot be resolvedpublic java.lang.String getResourceLabel(java.lang.Object resource) throws InvalidParameterException
getResourceLabel
in interface PermissionResourceResolver
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 |