|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.shark.corba.WfResourceHelper
public class WfResourceHelper
WfResourceHelper - Helper class to be able to implement method WfAssignment.set_assignee(). Only required method to be implemented is resource_key().
Constructor Summary | |
---|---|
protected |
WfResourceHelper(java.lang.String username)
Creates a new WfResource |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
It is assumed that there can't be two or more resources having the same resource key. |
WfAssignmentIterator |
get_iterator_work_item()
Gets an iterator of work items. |
WfAssignment[] |
get_sequence_work_item(int max_number)
Gets the work items. |
int |
how_many_work_item()
Gets the number of work items currently assigned to this resource. |
boolean |
is_member_of_work_items(WfAssignment member)
Checks if an assignment object is associated with this resource |
void |
release(WfAssignment from_assigment,
java.lang.String release_info)
Release the resouce from the assignment. |
java.lang.String |
resource_key()
Gets the resource username. |
java.lang.String |
resource_name()
Gets the resource name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected WfResourceHelper(java.lang.String username)
username
- - Uniquely identifies the resourceMethod Detail |
---|
public int how_many_work_item() throws BaseException
how_many_work_item
in interface WfResource
BaseException
public WfAssignmentIterator get_iterator_work_item() throws BaseException
get_iterator_work_item
in interface WfResource
BaseException
public WfAssignment[] get_sequence_work_item(int max_number) throws BaseException
get_sequence_work_item
in interface WfResource
BaseException
public boolean is_member_of_work_items(WfAssignment member) throws BaseException
is_member_of_work_items
in interface WfResource
BaseException
public java.lang.String resource_key() throws BaseException
resource_key
in interface WfResource
BaseException
public java.lang.String resource_name() throws BaseException
resource_name
in interface WfResource
BaseException
public void release(WfAssignment from_assigment, java.lang.String release_info) throws BaseException, NotAssigned
release
in interface WfResource
BaseException
NotAssigned
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |