|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.session.XMASession
at.spardat.xma.session.XMASessionClient
Manages all active Components at the client that are executing in a single JVM and belong to exactly one server side application instance.
| Field Summary | |
static int |
defaultKeepAliveInterval
default intervall between keepAlive calls in seconds. |
| Constructor Summary | |
XMASessionClient(at.spardat.xma.boot.transport.XMA_URI uri,
at.spardat.xma.boot.comp.AppContainer appcIn)
Constructor. |
|
| Method Summary | |
void |
addExternalEventListener(ExternalEventListener listener)
Adds an ExternalEventListener to the listeners of the session. |
void |
addGlobalEventListener(GlobalEventListener listener)
The added GlobalEventListener will be notifyed by server events. |
void |
callGlobalEventListener(java.util.Collection globalEvents)
Calls globalEvent() at the registered listeners with the GlobalEvents from the paramter globalEvents. |
boolean |
contextChangeServer(javax.security.auth.Subject subject)
Does a server side context change. |
at.spardat.xma.boot.comp.AppContainer |
getAppContainer()
Get the application container used by the boot runtime to manage the component files of this application. |
byte[] |
getApplicationVersion()
Application Hash-Code built from application descriptors. |
IComponentClient |
getComponent(java.lang.String componentName)
Creates a Component of the same application. |
IComponentClient |
getComponentExtern(java.lang.String componentName)
Creates a Component from an other application. |
java.util.Iterator |
getComponents()
Returns an Iterator over the list of registered Components. |
XMAContext |
getContext()
Returns the execution context of this session. |
java.lang.String |
getId()
Gets the id of the session; with http-comunication this is the session cookie. |
short[] |
getIdsOfDeadComponents()
Returns a newly created array of ids of dead components. |
at.spardat.xma.boot.logger.Logger |
getLogger()
Get the client side logger |
PluginManager |
getPluginManager()
Returns the PluginManager that must be used to retrieve client side plugin implementations. |
java.lang.String |
getRuntimeProperty(java.lang.String key)
Returns the property with the specified key in the runtime properties. |
java.lang.String |
getRuntimeProperty(java.lang.String key,
java.lang.String defaultValue)
Returns the property with the specified key in the runtime properties. |
javax.security.auth.Subject |
getSubject()
Returns the subject as supplied by the JAAS conforming login module. |
at.spardat.xma.boot.transport.XMA_URI |
getUri()
Gets the application-uri |
byte[] |
inverseTransform(java.lang.String transform,
byte[] data)
|
boolean |
isAtServer()
Returns true if this session is in the server JVM. |
boolean |
isNeedEncryption()
Get if this session uses SSL-Encryption for session management calls to the server. |
boolean |
keepAlive()
Does an empty server request to prevent inactivity timeout. |
java.util.Properties |
launchExtern(java.lang.String component,
java.util.Properties input,
org.eclipse.swt.widgets.Composite parent)
Launch method for modal Components of other applications. |
java.util.Properties |
launchRelative(java.lang.String component,
java.util.Properties input,
org.eclipse.swt.widgets.Composite parent)
Launch method for modal Components of the same application. |
boolean |
login()
Does a client and server side login with the configured authentication plugin. |
boolean |
login(java.util.Properties props)
Does a client and server side login with the configured authentication plugin. |
boolean |
loginServer(javax.security.auth.Subject subject)
Does a server side login. |
void |
logout()
Does a client and server side logout with the configured authentication plugin. |
java.util.Properties |
notifyExternalEvent(ExternalEvent event)
notifies all listeners of the ExternalEvent. |
void |
registerComponent(ComponentClient c)
Registers a Component with this Session. |
void |
removeComponent(ComponentClient c)
Deregisters a given Component. |
void |
removeExternalEventListener(ExternalEventListener listener)
Removes an ExternalEventListener to the listeners of the session. |
boolean |
removeGlobalEventListener(GlobalEventListener listener)
removes the GlobalEventListener. |
void |
resetDeadComponentList()
Empties the list of dead component ids. |
java.lang.Object |
serverGetPreLoginInfo()
Gets the pre login information from the server. |
void |
setId(java.lang.String string)
Sets the id of the session; with http-comunication this is the session cookie. |
void |
setNeedEncryption(boolean enc)
Sets if SSL-Encryption is neccessary for session management calls to the server. |
| Methods inherited from class at.spardat.xma.session.XMASession |
checkPermission, getApplicationVersionShort |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int defaultKeepAliveInterval
| Constructor Detail |
public XMASessionClient(at.spardat.xma.boot.transport.XMA_URI uri,
at.spardat.xma.boot.comp.AppContainer appcIn)
| Method Detail |
public boolean login()
login in interface at.spardat.xma.boot.component.IRtXMASessionClientat.spardat.enterprise.exc.SysException - if the authentication plugin does not provide
exactly one XMAContext, or some Exception occured in the
authentication plugin.public boolean login(java.util.Properties props)
login in interface at.spardat.xma.boot.component.IRtXMASessionClientprops - input data for the login module; will be propagated as options to initialize.
at.spardat.enterprise.exc.SysException - if the authentication plugin does not provide
exactly one XMAContext, or some Exception occured in the
authentication plugin.public XMAContext getContext()
getContext in class XMASessionpublic javax.security.auth.Subject getSubject()
getSubject in class XMASessionpublic void registerComponent(ComponentClient c)
c - the Component to register.public void removeComponent(ComponentClient c)
c - the Component to deregister.public short[] getIdsOfDeadComponents()
public void resetDeadComponentList()
public java.util.Iterator getComponents()
public java.lang.String getId()
getId in interface at.spardat.xma.boot.component.IRtXMASessionClientpublic void setId(java.lang.String string)
setId in interface at.spardat.xma.boot.component.IRtXMASessionClientstring - the new session id.public at.spardat.xma.boot.transport.XMA_URI getUri()
public PluginManager getPluginManager()
getPluginManager in class XMASessionpublic void logout()
logout in interface at.spardat.xma.boot.component.IRtXMASessionClientpublic boolean loginServer(javax.security.auth.Subject subject)
public java.lang.Object serverGetPreLoginInfo()
public boolean keepAlive()
public boolean contextChangeServer(javax.security.auth.Subject subject)
public at.spardat.xma.boot.comp.AppContainer getAppContainer()
getAppContainer in interface at.spardat.xma.boot.component.IRtXMASessionClientpublic IComponentClient getComponent(java.lang.String componentName)
componentName - the relative uri of the desired component. relative uris are
relative to the uri of this session (see getUri()).
public IComponentClient getComponentExtern(java.lang.String componentName)
componentName - the absolute uri of the desired component in another
webapplication.
public java.util.Properties launchRelative(java.lang.String component,
java.util.Properties input,
org.eclipse.swt.widgets.Composite parent)
component - relative name of the component within the applicationinput - input properties
public java.util.Properties launchExtern(java.lang.String component,
java.util.Properties input,
org.eclipse.swt.widgets.Composite parent)
component - abslute uri of the componentinput - input properties
public at.spardat.xma.boot.logger.Logger getLogger()
public byte[] getApplicationVersion()
getApplicationVersion in class XMASessionpublic boolean isNeedEncryption()
public void setNeedEncryption(boolean enc)
enc - true means use SSL-Encryptionpublic java.lang.String getRuntimeProperty(java.lang.String key)
null if the property is not found.
key - the hashtable key.
public java.lang.String getRuntimeProperty(java.lang.String key,
java.lang.String defaultValue)
key - the hashtable key.defaultValue - a default value.
public byte[] inverseTransform(java.lang.String transform,
byte[] data)
inverseTransform in interface at.spardat.xma.boot.component.IRtXMASessionClientpublic void addExternalEventListener(ExternalEventListener listener)
listener - public void removeExternalEventListener(ExternalEventListener listener)
listener - public java.util.Properties notifyExternalEvent(ExternalEvent event)
event -
public boolean isAtServer()
XMASession
isAtServer in class XMASessionXMASession.isAtServer()public void addGlobalEventListener(GlobalEventListener listener)
public boolean removeGlobalEventListener(GlobalEventListener listener)
public void callGlobalEventListener(java.util.Collection globalEvents)
globalEvents - Collection with GlobalEvents.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||