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

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

public class DefaultUserResource
extends DefaultResource
implements UserResource, java.io.Serializable

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

Author:
Michael Lipp
See Also:
Serialized Form

Constructor Summary
DefaultUserResource(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 user 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

DefaultUserResource

public DefaultUserResource(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 user 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.