org.enhydra.shark.corba
Class SharkConnectionCORBA

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byorg.enhydra.shark.corba.WorkflowService._SharkConnectionImplBase
          extended byorg.enhydra.shark.corba.SharkConnectionCORBA
All Implemented Interfaces:
Collective, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.InvokeHandler, org.omg.CORBA.Object, java.io.Serializable, SharkConnection, SharkConnectionOperations

public class SharkConnectionCORBA
extends _SharkConnectionImplBase
implements Collective

The client interface through which client accesses the engine objects, and performs the various actions on engine.

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

Nested Class Summary
 
Nested classes inherited from class org.enhydra.shark.corba.Collective
Collective.CollectiveCORBA
 
Method Summary
 void __disband(org.omg.CORBA.ORB _orb)
           
 void __leave(org.omg.CORBA.Object obj)
           
 void __recruit(org.omg.CORBA.Object obj)
           
 void connect(java.lang.String userId, java.lang.String password, java.lang.String engineName, java.lang.String scope)
           
 WfProcess createProcess(java.lang.String pkgId, java.lang.String pDefId)
           
 WfProcess createProcessWithRequester(WfRequester requester, java.lang.String pkgId, java.lang.String pDefId)
           
 void disconnect()
           
 void doneWith(org.omg.CORBA.Object toDisconnect)
           
 WfActivityIterator get_iterator_activity()
           
 WfAssignmentIterator get_iterator_assignment()
           
 WfProcessIterator get_iterator_process()
           
 WfProcessMgrIterator get_iterator_processmgr()
           
 WfResourceIterator get_iterator_resource()
           
 WfProcessMgr[] get_sequence_processmgr(int max_number)
           
 WfResource[] get_sequence_resource(int max_number)
           
 WfActivity getActivity(java.lang.String procId, java.lang.String actId)
           
 WfDataEventAudit[] getActivitySequenceDataHistory(java.lang.String procId, java.lang.String actId, int max_number)
           
 WfStateEventAudit[] getActivitySequenceStateHistory(java.lang.String procId, java.lang.String actId, int max_number)
           
 WfAssignment getAssignment(java.lang.String procId, java.lang.String actId, java.lang.String username)
           
 WfAssignment getAssignmentById(java.lang.String procId, java.lang.String assId)
           
 WfCreateProcessEventAudit getCreateProcessHistory(java.lang.String procId)
           
 WfProcess getProcess(java.lang.String procId)
           
 WfProcessMgr getProcessMgr(java.lang.String name)
           
 WfProcessMgr getProcessMgrByXPDLDefinition(java.lang.String pkgId, java.lang.String pDefId)
           
 WfDataEventAudit[] getProcessSequenceDataHistory(java.lang.String procId, int max_number)
           
 WfStateEventAudit[] getProcessSequenceStateHistory(java.lang.String procId, int max_number)
           
 WfResource getResource(java.lang.String username)
           
 WfResource getResourceObject()
           
 WfAssignmentEventAudit[] getSequenceAssignmentHistory(java.lang.String procId, java.lang.String actId, int max_number)
           
 void removeProcessRequester(java.lang.String procId)
           
 void shutdown()
           
 
Methods inherited from class org.enhydra.shark.corba.WorkflowService._SharkConnectionImplBase
_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, equals, hashCode, toString
 
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
 

Method Detail

connect

public void connect(java.lang.String userId,
                    java.lang.String password,
                    java.lang.String engineName,
                    java.lang.String scope)
             throws BaseException,
                    ConnectFailed
Specified by:
connect in interface SharkConnectionOperations
Throws:
BaseException
ConnectFailed

disconnect

public void disconnect()
                throws BaseException,
                       NotConnected
Specified by:
disconnect in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getResourceObject

public WfResource getResourceObject()
                             throws BaseException,
                                    NotConnected
Specified by:
getResourceObject in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

get_iterator_processmgr

public WfProcessMgrIterator get_iterator_processmgr()
                                             throws BaseException,
                                                    NotConnected
Specified by:
get_iterator_processmgr in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

get_sequence_processmgr

public WfProcessMgr[] get_sequence_processmgr(int max_number)
                                       throws BaseException,
                                              NotConnected
Specified by:
get_sequence_processmgr in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

get_iterator_resource

public WfResourceIterator get_iterator_resource()
                                         throws BaseException,
                                                NotConnected
Specified by:
get_iterator_resource in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

get_sequence_resource

public WfResource[] get_sequence_resource(int max_number)
                                   throws BaseException,
                                          NotConnected
Specified by:
get_sequence_resource in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getProcessMgr

public WfProcessMgr getProcessMgr(java.lang.String name)
                           throws BaseException,
                                  NotConnected
Specified by:
getProcessMgr in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getProcessMgrByXPDLDefinition

public WfProcessMgr getProcessMgrByXPDLDefinition(java.lang.String pkgId,
                                                  java.lang.String pDefId)
                                           throws BaseException,
                                                  NotConnected
Specified by:
getProcessMgrByXPDLDefinition in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getProcess

public WfProcess getProcess(java.lang.String procId)
                     throws BaseException,
                            NotConnected
Specified by:
getProcess in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getActivity

public WfActivity getActivity(java.lang.String procId,
                              java.lang.String actId)
                       throws BaseException,
                              NotConnected
Specified by:
getActivity in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getResource

public WfResource getResource(java.lang.String username)
                       throws BaseException,
                              NotConnected
Specified by:
getResource in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getAssignment

public WfAssignment getAssignment(java.lang.String procId,
                                  java.lang.String actId,
                                  java.lang.String username)
                           throws BaseException,
                                  NotConnected
Specified by:
getAssignment in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getAssignmentById

public WfAssignment getAssignmentById(java.lang.String procId,
                                      java.lang.String assId)
                               throws BaseException,
                                      NotConnected
Specified by:
getAssignmentById in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

get_iterator_assignment

public WfAssignmentIterator get_iterator_assignment()
                                             throws BaseException,
                                                    NotConnected
Specified by:
get_iterator_assignment in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

get_iterator_process

public WfProcessIterator get_iterator_process()
                                       throws BaseException,
                                              NotConnected
Specified by:
get_iterator_process in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

get_iterator_activity

public WfActivityIterator get_iterator_activity()
                                         throws BaseException,
                                                NotConnected
Specified by:
get_iterator_activity in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

createProcess

public WfProcess createProcess(java.lang.String pkgId,
                               java.lang.String pDefId)
                        throws BaseException,
                               NotConnected,
                               NotEnabled
Specified by:
createProcess in interface SharkConnectionOperations
Throws:
BaseException
NotConnected
NotEnabled

createProcessWithRequester

public WfProcess createProcessWithRequester(WfRequester requester,
                                            java.lang.String pkgId,
                                            java.lang.String pDefId)
                                     throws BaseException,
                                            NotConnected,
                                            NotEnabled,
                                            InvalidRequester,
                                            RequesterRequired
Specified by:
createProcessWithRequester in interface SharkConnectionOperations
Throws:
BaseException
NotConnected
NotEnabled
InvalidRequester
RequesterRequired

removeProcessRequester

public void removeProcessRequester(java.lang.String procId)
                            throws BaseException,
                                   NotConnected
Specified by:
removeProcessRequester in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getCreateProcessHistory

public WfCreateProcessEventAudit getCreateProcessHistory(java.lang.String procId)
                                                  throws BaseException,
                                                         NotConnected
Specified by:
getCreateProcessHistory in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getProcessSequenceDataHistory

public WfDataEventAudit[] getProcessSequenceDataHistory(java.lang.String procId,
                                                        int max_number)
                                                 throws BaseException,
                                                        NotConnected
Specified by:
getProcessSequenceDataHistory in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getProcessSequenceStateHistory

public WfStateEventAudit[] getProcessSequenceStateHistory(java.lang.String procId,
                                                          int max_number)
                                                   throws BaseException,
                                                          NotConnected
Specified by:
getProcessSequenceStateHistory in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getSequenceAssignmentHistory

public WfAssignmentEventAudit[] getSequenceAssignmentHistory(java.lang.String procId,
                                                             java.lang.String actId,
                                                             int max_number)
                                                      throws BaseException,
                                                             NotConnected
Specified by:
getSequenceAssignmentHistory in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getActivitySequenceDataHistory

public WfDataEventAudit[] getActivitySequenceDataHistory(java.lang.String procId,
                                                         java.lang.String actId,
                                                         int max_number)
                                                  throws BaseException,
                                                         NotConnected
Specified by:
getActivitySequenceDataHistory in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

getActivitySequenceStateHistory

public WfStateEventAudit[] getActivitySequenceStateHistory(java.lang.String procId,
                                                           java.lang.String actId,
                                                           int max_number)
                                                    throws BaseException,
                                                           NotConnected
Specified by:
getActivitySequenceStateHistory in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

shutdown

public void shutdown()
              throws BaseException,
                     NotConnected
Specified by:
shutdown in interface SharkConnectionOperations
Throws:
BaseException
NotConnected

__recruit

public void __recruit(org.omg.CORBA.Object obj)
Specified by:
__recruit in interface Collective

__leave

public void __leave(org.omg.CORBA.Object obj)
Specified by:
__leave in interface Collective

__disband

public void __disband(org.omg.CORBA.ORB _orb)
Specified by:
__disband in interface Collective

doneWith

public void doneWith(org.omg.CORBA.Object toDisconnect)
Specified by:
doneWith in interface SharkConnectionOperations