org.figure8.join.services.security
Class DeliverableTypeResolver

java.lang.Object
  extended by org.figure8.join.services.security.DeliverableTypeResolver
All Implemented Interfaces:
java.io.Serializable, PermissionResourceResolver

public class DeliverableTypeResolver
extends java.lang.Object
implements PermissionResourceResolver

This is an implementation of PermissionResourceResolver used for managing DeliverableTypes as security roles resources.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
DeliverableTypeResolver()
          Creates a new instance of DeliverableTypeResolver.
 
Method Summary
 java.util.List getPermissionResourceList()
          Retrieve a list of resolved DeliverableTypes 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 DeliverableTypes
 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

DeliverableTypeResolver

public DeliverableTypeResolver()
Creates a new instance of DeliverableTypeResolver.

Method Detail

getResourceList

public java.util.List getResourceList()
Retrieve a list of resolved DeliverableTypes

Specified by:
getResourceList in interface PermissionResourceResolver
Returns:
A List of DeliverableTypes

getPermissionResourceList

public java.util.List getPermissionResourceList()
Retrieve a list of resolved DeliverableTypes wrapped within PermissionResource

Specified by:
getPermissionResourceList in interface PermissionResourceResolver
Returns:
A List of org.figure8.join.services.security.PermissionResource

isValidResource

public boolean isValidResource(java.lang.Object resource)
Tells if given resource is a valid DeliverableType

Specified by:
isValidResource in interface PermissionResourceResolver
Parameters:
resource - Object to try to resolve
Returns:
true is resource is managed by this resolver, false otherwise

getResource

public java.lang.Object getResource(java.lang.String resourceId)
                             throws InvalidParameterException
Get a resource using its unique identifier

Specified by:
getResource in interface PermissionResourceResolver
Parameters:
resourceId - Unique identifier corresponding to resource
Returns:
Object representing the resource
Throws:
InvalidParameterException - if the resourceId is unknown.

getResourceId

public java.lang.String getResourceId(java.lang.Object resource)
                               throws InvalidParameterException
Get a resource unique identifier

Specified by:
getResourceId in interface PermissionResourceResolver
Parameters:
resource - The object representing the resource
Returns:
The string representation of the resource unique identifier
Throws:
InvalidParameterException - if the resource cannot be resolved

getResourceLabel

public java.lang.String getResourceLabel(java.lang.Object resource)
                                  throws InvalidParameterException
Get a resource label for display

Specified by:
getResourceLabel in interface PermissionResourceResolver
Parameters:
resource - The object representing the resource
Returns:
A string representing the display label of resource
Throws:
InvalidParameterException - if the resource cannot be resolved


Copyright © 2005-2008 Join. All Rights Reserved.