Package de.mid.innovator.m2msdk.model
Class ClientSession
java.lang.Object
de.mid.innovator.m2msdk.model.ClientSession
- All Implemented Interfaces:
SessionInterface,Serializable,Remote
Session running on client holding all client models and forwarding to server
models.
- Version:
- 11.2.1
- Author:
- jmback
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClientSession(SessionInterface localSession, LookNFeel lookNFeel) Create a client session based on an existing session. -
Method Summary
Modifier and TypeMethodDescriptionvoidEnd the current session and finalize all included objects.Get the client environment.getEnv()Get the Environment for the model transformation.Get the pool of all icons.getLog()Get log model.Get generic meta model.Get the configuration for the model transformation.Get the option model with all options.Get parser for all expressions.Get progress model.Get session on server.Get the type pool.Get workspace.booleantoString()
-
Constructor Details
-
ClientSession
Create a client session based on an existing session. If there is no existing session, the new session will use a local server session, else if may use a remote server session.- Parameters:
localSession- existing local client session- Throws:
M2MException- error occured
-
-
Method Details
-
getLookNFeel
-
getServerSession
Get session on server.- Returns:
- session on server if this is the client session, else null
- Throws:
AbortException
-
getClientEnv
Description copied from interface:SessionInterfaceGet the client environment. It can be used for environment variables and variables from registry. Only on client.- Specified by:
getClientEnvin interfaceSessionInterface- Returns:
- environment
-
getEnv
Description copied from interface:SessionInterfaceGet the Environment for the model transformation.- Specified by:
getEnvin interfaceSessionInterface- Returns:
- environment
-
getIconPool
Description copied from interface:SessionInterfaceGet the pool of all icons. Only on client.- Specified by:
getIconPoolin interfaceSessionInterface- Returns:
- icon pool
-
getLog
Description copied from interface:SessionInterfaceGet log model.- Specified by:
getLogin interfaceSessionInterface- Returns:
- Log model
-
getMetaModel
Description copied from interface:SessionInterfaceGet generic meta model.- Specified by:
getMetaModelin interfaceSessionInterface- Returns:
- Meta model
-
getModelTransformationConfiguration
Description copied from interface:SessionInterfaceGet the configuration for the model transformation.- Specified by:
getModelTransformationConfigurationin interfaceSessionInterface- Returns:
- configuration for the model transformation
-
getOptionModel
Description copied from interface:SessionInterfaceGet the option model with all options.- Specified by:
getOptionModelin interfaceSessionInterface- Returns:
- option model
-
getParser
Description copied from interface:SessionInterfaceGet parser for all expressions.- Specified by:
getParserin interfaceSessionInterface- Returns:
- Parser to evaluate expressions
-
getProgress
Description copied from interface:SessionInterfaceGet progress model.- Specified by:
getProgressin interfaceSessionInterface- Returns:
- Progress model
-
getTypePool
Description copied from interface:SessionInterfaceGet the type pool. Server and client have own type pools.- Specified by:
getTypePoolin interfaceSessionInterface- Returns:
- type pool
-
getWorkspace
Description copied from interface:SessionInterfaceGet workspace.- Specified by:
getWorkspacein interfaceSessionInterface- Returns:
- Workspace
-
finalizeSession
public void finalizeSession()Description copied from interface:SessionInterfaceEnd the current session and finalize all included objects. Close fies, streams, registry, etc.- Specified by:
finalizeSessionin interfaceSessionInterface
-
isFinished
- Specified by:
isFinishedin interfaceSessionInterface- Throws:
RemoteException
-
toString
-