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

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

public class DefaultGroupResource
extends DefaultResource
implements GroupResource, java.io.Serializable

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

Author:
Michael Lipp
See Also:
Serialized Form

Constructor Summary
DefaultGroupResource(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 group 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

DefaultGroupResource

public DefaultGroupResource(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 group 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.