|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.services.security.DeliverableTypeResolver
public class DeliverableTypeResolver
This is an implementation of PermissionResourceResolver
used
for managing DeliverableType
s as security roles resources.
Constructor Summary | |
---|---|
DeliverableTypeResolver()
Creates a new instance of DeliverableTypeResolver. |
Method Summary | |
---|---|
java.util.List |
getPermissionResourceList()
Retrieve a list of resolved DeliverableType s 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 DeliverableType s |
boolean |
isValidResource(java.lang.Object resource)
Tells if given resource is a valid DeliverableType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeliverableTypeResolver()
Method Detail |
---|
public java.util.List getResourceList()
DeliverableType
s
getResourceList
in interface PermissionResourceResolver
DeliverableType
spublic java.util.List getPermissionResourceList()
DeliverableType
s wrapped within PermissionResource
getPermissionResourceList
in interface PermissionResourceResolver
org.figure8.join.services.security.PermissionResource
public boolean isValidResource(java.lang.Object resource)
DeliverableType
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 |