org.enhydra.shark.corba
Class WfResourceCORBA

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byorg.omg.WorkflowModel._WfResourceImplBase
          extended byorg.enhydra.shark.corba.WfResourceCORBA
All Implemented Interfaces:
BaseBusinessObject, BaseBusinessObjectOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.InvokeHandler, org.omg.CORBA.Object, java.io.Serializable, WfResource, WfResourceOperations

public class WfResourceCORBA
extends _WfResourceImplBase

WfResourceImpl - Workflow Resource Object implementation.

Version:
1.0
Author:
Sasa Bojanic
See Also:
Serialized Form

Constructor Summary
protected WfResourceCORBA(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._WfResourceImplBase
_ids, _invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

WfResourceCORBA

protected WfResourceCORBA(Collective toJoin,
                          WfResource sharkRes)
Creates a new WfResource

Parameters:
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()