|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IServer
The IServer
interface defines the methods which are necessary for
remote server implementations.
Method Summary | |
---|---|
Object |
createSession(ChangedHashtable<String,Object> pProperties)
Creates a new session for an application. |
Object |
createSubSession(Object pSessionId,
ChangedHashtable<String,Object> pProperties)
Creates a sub session of an application. |
void |
destroySession(Object pSessionId)
Destroyes a session of an application. |
Object |
execute(Object pSessionId,
String pObjectName,
String pMethod,
Object... pParams)
Executes a method call. |
Object |
executeAction(Object pSessionId,
String pAction,
Object... pParams)
Executes an action call. |
void |
executeActionCallBack(Object pSessionId,
Object pCallBackId,
String pAction,
Object... pParams)
Executes an asynchronous action call. |
void |
executeCallBack(Object pSessionId,
Object pCallBackId,
String pObjectName,
String pMethod,
Object... pParams)
Executes an asynchronous method call. |
List<ResultObject> |
getCallBackResults(Object pSessionId)
Returns all available objects of an asynchronous execution. |
AbstractObjectProvider |
getObjectProvider()
Gets the AbstractObjectProvider . |
ChangedHashtable<String,Object> |
getProperties(Object pSessionId)
Gets all session properties. |
Object |
getProperty(Object pSessionId,
String pName)
Gets the value of a session property. |
AbstractSessionManager |
getSessionManager()
Gets the AbstractSessionManager . |
Object[] |
setAndCheckAlive(Object pSessionId,
Object... pSubSessionId)
Sets the alive state for a session and validates the alive state of sub sessions. |
void |
setNewPassword(Object pSessionId,
String pOldPassword,
String pNewPassword)
Sets a new password for the user of a session. |
void |
setProperty(Object pSessionId,
String pName,
Object pValue)
Sets a session property. |
Method Detail |
---|
AbstractObjectProvider getObjectProvider()
AbstractObjectProvider
.
AbstractSessionManager getSessionManager()
AbstractSessionManager
.
Object createSession(ChangedHashtable<String,Object> pProperties) throws Throwable
pProperties
- the initial session properties
Session
Throwable
- if the session can not be createdObject createSubSession(Object pSessionId, ChangedHashtable<String,Object> pProperties) throws Throwable
pSessionId
- session identifierpProperties
- the initial session properties
SubSession
Throwable
- if the session can not be createdvoid destroySession(Object pSessionId)
pSessionId
- session identifierObject execute(Object pSessionId, String pObjectName, String pMethod, Object... pParams) throws Throwable
pSessionId
- session identifierpObjectName
- server object name/aliaspMethod
- method name which should be calledpParams
- parameters for the method call
Throwable
- if an error occurs during executionvoid executeCallBack(Object pSessionId, Object pCallBackId, String pObjectName, String pMethod, Object... pParams) throws Throwable
pSessionId
- session identifierpCallBackId
- the callback identifierpObjectName
- server object name/aliaspMethod
- method name which should be calledpParams
- parameters for the method call
Throwable
- if an error occurs during executionObject executeAction(Object pSessionId, String pAction, Object... pParams) throws Throwable
pSessionId
- session identifierpAction
- action which should be calledpParams
- parameters for the action call
Throwable
- if an error occurs during executionvoid executeActionCallBack(Object pSessionId, Object pCallBackId, String pAction, Object... pParams) throws Throwable
pSessionId
- session identifierpCallBackId
- the callback identifierpAction
- action which should be calledpParams
- parameters for the action call
Throwable
- if an error occurs during executionList<ResultObject> getCallBackResults(Object pSessionId) throws Throwable
pSessionId
- session identifier
Throwable
- if an error occurs during executionvoid setProperty(Object pSessionId, String pName, Object pValue) throws Throwable
pSessionId
- the session identifierpName
- the property namepValue
- the value of the property or null
to delete the property
Throwable
- if an error occurs during executionObject getProperty(Object pSessionId, String pName) throws Throwable
pSessionId
- the session identifierpName
- the property name
null
if the property is not available
Throwable
- if an error occurs during executionChangedHashtable<String,Object> getProperties(Object pSessionId) throws Throwable
pSessionId
- the session identifier
ChangedHashtable
with property names and values
Throwable
- if an error occurs during executionObject[] setAndCheckAlive(Object pSessionId, Object... pSubSessionId) throws Throwable
pSessionId
- the session idpSubSessionId
- the sub session ids
Throwable
- if an error occurs during executionvoid setNewPassword(Object pSessionId, String pOldPassword, String pNewPassword) throws Throwable
pSessionId
- the session idpOldPassword
- the old passwordpNewPassword
- the new password
Throwable
- if an error occurs during execution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |