org.enhydra.shark.corba.poa
Class WfResourceCORBA

java.lang.Object
  extended byorg.omg.PortableServer.Servant
      extended byorg.omg.WorkflowModel.WfResourcePOA
          extended byorg.enhydra.shark.corba.poa.WfResourceCORBA
All Implemented Interfaces:
BaseBusinessObjectOperations, org.omg.CORBA.portable.InvokeHandler, WfResourceOperations

public class WfResourceCORBA
extends WfResourcePOA

WfResourceImpl - Workflow Resource Object implementation.

Version:
1.0
Author:
David Forslund

Constructor Summary
protected WfResourceCORBA(org.omg.CORBA.ORB orb, Collective toJoin, WfResource sharkRes)
          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 org.omg.WorkflowModel.WfResourcePOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WfResourceCORBA

protected WfResourceCORBA(org.omg.CORBA.ORB orb,
                          Collective toJoin,
                          WfResource sharkRes)
Creates a new WfResource

Parameters:
orb -
sharkRes - a WfResource
Method Detail

how_many_work_item

public int how_many_work_item()
                       throws BaseException
Gets the number of work items currently assigned to this resource.

Throws:
BaseException

get_iterator_work_item

public WfAssignmentIterator get_iterator_work_item()
                                            throws BaseException
Gets an iterator of work items.

Throws:
BaseException

get_sequence_work_item

public WfAssignment[] get_sequence_work_item(int max_number)
                                      throws BaseException
Gets the work items.

Returns:
List of WfAssignment objects.
Throws:
BaseException

is_member_of_work_items

public boolean is_member_of_work_items(WfAssignment member)
                                throws BaseException
Checks if an assignment object is associated with this resource

Returns:
true if assignment is part of the work list for this resource.
Throws:
BaseException

resource_key

public java.lang.String resource_key()
                              throws BaseException
Gets the resource username.

Throws:
BaseException

resource_name

public java.lang.String resource_name()
                               throws BaseException
Gets the resource name.

Throws:
BaseException

release

public void release(WfAssignment from_assigment,
                    java.lang.String release_info)
             throws BaseException,
                    NotAssigned
Release the resouce from the assignment.

Throws:
BaseException
NotAssigned

equals

public boolean equals(java.lang.Object obj)
It is assumed that there can't be two or more resources having the same resource key.


toString

public java.lang.String toString()