de.danet.an.workflow.spis.rms
Class DefaultRoleResource

java.lang.Object
  extended byde.danet.an.workflow.spis.rms.DefaultResource
      extended byde.danet.an.workflow.spis.rms.DefaultRoleResource
All Implemented Interfaces:
RoleResource, java.io.Serializable, WfObject, WfResource

public class DefaultRoleResource
extends DefaultResource
implements RoleResource, java.io.Serializable

This class provides a RoleResource implementation based on the BasicResource. The class ensures that the resource key can be distinguished as a role resource's key.

Author:
Michael Lipp
See Also:
Serialized Form

Constructor Summary
DefaultRoleResource(ResourceAssignmentContext cbh, java.lang.String id, java.lang.String name)
          Create a new instance with all attributes initialized to defaults or the given values.
 
Method Summary
 java.lang.String getId()
          Return the id passed to the constructor.
static java.lang.String getId(java.lang.String key)
          Return the id part of a key.
static boolean isValidKey(java.lang.String key)
          Check if the given key is a role resource's key.
 
Methods inherited from class de.danet.an.workflow.spis.rms.DefaultResource
equals, hashCode, isMemberOfWorkItems, release, resourceKey, resourceName, workItems
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.danet.an.workflow.omgcore.WfResource
isMemberOfWorkItems, release, resourceKey, resourceName, workItems
 

Constructor Detail

DefaultRoleResource

public DefaultRoleResource(ResourceAssignmentContext cbh,
                           java.lang.String id,
                           java.lang.String name)
Create a new instance with all attributes initialized to defaults or the given values.

Parameters:
cbh -
id -
name -
Method Detail

isValidKey

public static boolean isValidKey(java.lang.String key)
Check if the given key is a role resource's key.


getId

public static java.lang.String getId(java.lang.String key)
Return the id part of a key.


getId

public java.lang.String getId()
Return the id passed to the constructor.