|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.danet.an.workflow.spis.rms.DefaultResource
This class provides a default implementation of the
's methods
WfResource
,
workItems
and
isMemberOfWorkItems
.
The implementation is based on the methods of a
release
passed to the constructor.
ResourceAssignmentContext
Constructor Summary | |
DefaultResource(ResourceAssignmentContext cbh,
java.lang.String key,
java.lang.String name)
The constructor. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
boolean |
isMemberOfWorkItems(WfAssignment assignment)
Checks if a given is
associated with this resource. |
void |
release(WfAssignment fromAssignment,
java.lang.String releaseInfo)
Signals to the resource that it is no longer needed for a specific assignment. |
java.lang.String |
resourceKey()
Retrieve the key of a resource. |
java.lang.String |
resourceName()
Retrieve the name of a resource. |
java.util.Collection |
workItems()
This method returns the s
associated with a resource. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultResource(ResourceAssignmentContext cbh, java.lang.String key, java.lang.String name)
key
- the resource's keyname
- the resource's nameMethod Detail |
public java.lang.String resourceKey() throws java.rmi.RemoteException
resourceKey
in interface WfResource
java.rmi.RemoteException
- problems accessing resourcepublic java.lang.String resourceName() throws java.rmi.RemoteException
resourceName
in interface WfResource
java.rmi.RemoteException
- problems accessing resourcepublic java.util.Collection workItems() throws java.rmi.RemoteException, java.lang.IllegalStateException
WfAssignments
s
associated with a resource.
workItems
in interface WfResource
WfAssignments
s.
java.rmi.RemoteException
- if a system-level error occurs.
java.lang.IllegalStateException
- if the resource has become invalid. This is actually a
remapping of the NoSuchResourceException
thrown by ResourceAssignmentService.workItems()
. It
must be remapped because this method's signature is specified
by
WfResource.workItems()
.public boolean isMemberOfWorkItems(WfAssignment assignment) throws java.rmi.RemoteException, java.lang.IllegalStateException
WfAssignment
is
associated with this resource.
isMemberOfWorkItems
in interface WfResource
assignment
- the assignment in question.
true
if the association exists.
java.rmi.RemoteException
- if a system-level error occurs. This is actually a remapping
of the NoSuchResourceException
thrown by
ResourceAssignmentService.isMemberOfWorkItems(...)
.
It must be remapped because this method's signature is
specified by WfResource.isMemberOfWorkItems(...)
.
java.lang.IllegalStateException
- if the resource has become invalid.public void release(WfAssignment fromAssignment, java.lang.String releaseInfo) throws java.rmi.RemoteException, NotAssignedException
removeAssignment
on the activity.
release
in interface WfResource
fromAssignment
- the specific assignment.releaseInfo
- specifies additional information on the reason for realizing
the resource as input.
NotAssignedException
- if the resource is not associated with the given assignment.
java.rmi.RemoteException
- if a system-level error occurs.public int hashCode()
public boolean equals(java.lang.Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |