com.groiss.wf
Interface Session

All Superinterfaces:
java.rmi.Remote

public interface Session
extends java.rmi.Remote

Use on RMI client to access server services.


Method Summary
 void commit()
          Commit the current transaction.
 java.lang.Object execute(java.lang.Object obj, java.lang.String method, java.lang.Object[] args)
          Execute a method on the server via reflection.
 RemoteDMS getDMS()
          Get a DMS service.
 RemoteOrgData getOrgData()
          Get a OrgData service.
 java.rmi.Remote getService(java.lang.String classname)
          This method returns a service interface to the client.
 RemoteStore getStore()
          Get a store service.
 User getUser()
          Get the current user.
 RemoteWfEngine getWfEngine()
          Get a WfEngine service
 void logout()
          Terminate the session.
 void rollback()
          Rollback the current transaction.
 

Method Detail

commit

void commit()
            throws java.lang.Exception
Commit the current transaction.

Throws:
java.lang.Exception

rollback

void rollback()
              throws java.lang.Exception
Rollback the current transaction.

Throws:
java.lang.Exception

logout

void logout()
            throws java.lang.Exception
Terminate the session.

Throws:
java.lang.Exception

getStore

RemoteStore getStore()
                     throws java.rmi.RemoteException
Get a store service.

Throws:
java.rmi.RemoteException

getDMS

RemoteDMS getDMS()
                 throws java.rmi.RemoteException
Get a DMS service.

Throws:
java.rmi.RemoteException

getWfEngine

RemoteWfEngine getWfEngine()
                           throws java.rmi.RemoteException
Get a WfEngine service

Throws:
java.rmi.RemoteException

getOrgData

RemoteOrgData getOrgData()
                         throws java.rmi.RemoteException
Get a OrgData service.

Throws:
java.rmi.RemoteException

getUser

User getUser()
             throws java.rmi.RemoteException
Get the current user.

Throws:
java.rmi.RemoteException

getService

java.rmi.Remote getService(java.lang.String classname)
                           throws java.lang.Exception
This method returns a service interface to the client.

Throws:
java.lang.Exception

execute

java.lang.Object execute(java.lang.Object obj,
                         java.lang.String method,
                         java.lang.Object[] args)
                         throws java.lang.Exception
Execute a method on the server via reflection.

Parameters:
obj - the target object
method - the name of the method
args - the arguments for the method call
Returns:
the result of the method call
Throws:
java.lang.Exception


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.