org.enhydra.shark.corba.poa
Class SharkConnectionCORBA

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.enhydra.shark.corba.WorkflowService.SharkConnectionPOA
          extended by org.enhydra.shark.corba.poa.SharkConnectionCORBA
All Implemented Interfaces:
Collective, SharkConnectionOperations, org.omg.CORBA.portable.InvokeHandler

public class SharkConnectionCORBA
extends SharkConnectionPOA
implements Collective

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

Version:
0.2
Author:
David Forslund

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.enhydra.shark.corba.poa.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.SharkConnectionPOA
_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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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