org.enhydra.shark
Class SharkConnectionImpl

java.lang.Object
  extended by org.enhydra.shark.SharkConnectionImpl
All Implemented Interfaces:
java.io.Serializable, SharkConnection

public class SharkConnectionImpl
extends java.lang.Object
implements SharkConnection, java.io.Serializable

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

Version:
1.1
Author:
Sasa Bojanic, Vladimir Puskas
See Also:
Serialized Form

Constructor Summary
protected SharkConnectionImpl()
           
 
Method Summary
 void attachToHandle(WMSessionHandle extshandle)
           
protected  void checkSecurity(java.lang.String methodName, java.util.Map d)
           
 void connect(WMConnectInfo connectInfo)
           
 void disconnect()
           
protected  void finalize()
           
 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)
           
 WfAssignment getAssignment(java.lang.String procId, java.lang.String assId)
           
 WfAssignment getAssignment(java.lang.String procId, java.lang.String actId, java.lang.String username)
           
 WfProcess getProcess(java.lang.String procId)
           
 WfProcessMgr getProcessMgr(java.lang.String name)
           
 WfResource getResource(java.lang.String username)
           
 WfResource getResourceObject()
           
 WMSessionHandle getSessionHandle()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SharkConnectionImpl

protected SharkConnectionImpl()
Method Detail

connect

public void connect(WMConnectInfo connectInfo)
             throws java.lang.Exception
Specified by:
connect in interface SharkConnection
Throws:
java.lang.Exception

attachToHandle

public void attachToHandle(WMSessionHandle extshandle)
                    throws java.lang.Exception
Specified by:
attachToHandle in interface SharkConnection
Throws:
java.lang.Exception

disconnect

public void disconnect()
                throws java.lang.Exception
Specified by:
disconnect in interface SharkConnection
Throws:
java.lang.Exception

getSessionHandle

public WMSessionHandle getSessionHandle()
                                 throws java.lang.Exception
Specified by:
getSessionHandle in interface SharkConnection
Throws:
java.lang.Exception

getResourceObject

public WfResource getResourceObject()
                             throws java.lang.Exception
Specified by:
getResourceObject in interface SharkConnection
Throws:
java.lang.Exception

get_iterator_processmgr

public WfProcessMgrIterator get_iterator_processmgr()
                                             throws java.lang.Exception
Specified by:
get_iterator_processmgr in interface SharkConnection
Throws:
java.lang.Exception

get_sequence_processmgr

public WfProcessMgr[] get_sequence_processmgr(int max_number)
                                       throws java.lang.Exception
Specified by:
get_sequence_processmgr in interface SharkConnection
Throws:
java.lang.Exception

get_iterator_resource

public WfResourceIterator get_iterator_resource()
                                         throws java.lang.Exception
Specified by:
get_iterator_resource in interface SharkConnection
Throws:
java.lang.Exception

get_sequence_resource

public WfResource[] get_sequence_resource(int max_number)
                                   throws java.lang.Exception
Specified by:
get_sequence_resource in interface SharkConnection
Throws:
java.lang.Exception

getProcessMgr

public WfProcessMgr getProcessMgr(java.lang.String name)
                           throws java.lang.Exception
Specified by:
getProcessMgr in interface SharkConnection
Throws:
java.lang.Exception

getResource

public WfResource getResource(java.lang.String username)
                       throws java.lang.Exception
Specified by:
getResource in interface SharkConnection
Throws:
java.lang.Exception

getProcess

public WfProcess getProcess(java.lang.String procId)
                     throws java.lang.Exception
Specified by:
getProcess in interface SharkConnection
Throws:
java.lang.Exception

getActivity

public WfActivity getActivity(java.lang.String procId,
                              java.lang.String actId)
                       throws java.lang.Exception
Specified by:
getActivity in interface SharkConnection
Throws:
java.lang.Exception

getAssignment

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

getAssignment

public WfAssignment getAssignment(java.lang.String procId,
                                  java.lang.String assId)
                           throws java.lang.Exception
Specified by:
getAssignment in interface SharkConnection
Throws:
java.lang.Exception

get_iterator_assignment

public WfAssignmentIterator get_iterator_assignment()
                                             throws java.lang.Exception,
                                                    NotConnected
Specified by:
get_iterator_assignment in interface SharkConnection
Throws:
java.lang.Exception
NotConnected

get_iterator_process

public WfProcessIterator get_iterator_process()
                                       throws java.lang.Exception,
                                              NotConnected
Specified by:
get_iterator_process in interface SharkConnection
Throws:
java.lang.Exception
NotConnected

get_iterator_activity

public WfActivityIterator get_iterator_activity()
                                         throws java.lang.Exception,
                                                NotConnected
Specified by:
get_iterator_activity in interface SharkConnection
Throws:
java.lang.Exception
NotConnected

checkSecurity

protected void checkSecurity(java.lang.String methodName,
                             java.util.Map d)
                      throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable