Class FSSessionImpl
java.lang.Object
de.xima.fc.fs.server.FSSessionImpl
- All Implemented Interfaces:
de.root1.simon.SimonUnreferenced, IFSSession, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallback(String callbackName, IFormDataAdapter saveFormData, Vorgang vorgang) Deprecated.will be removedbooleanMethod to perform a clean disconnect<TEvent extends Serializable>
voidfireEvent(TEvent event) Method to fire an event on the frontend-serverReturns information about the frontend server, e.g. formcycle version, Java version, OS version, SSL info, etc.booleanping()Method to ping the frontend serverPulls the configuration from the frontend server that can be edited via the backend UI.voidpushConfig(String name, byte[] data) Method to push a configuration file to the frontend servervoidpushConfigurableProperties(FSConfigurableProperties errorPagesConfig) Pushes the given configuration to the frontend server.voidrevokeRefreshToken(UUID refreshTokenId) Method to revoke a refresh-tokenvoidMethod to trigger the sync of the server configurationvoidtriggerPluginSync(PluginSyncData... syncData) Method to trigger the sync of pluginsvoid
-
Constructor Details
-
FSSessionImpl
public FSSessionImpl()
-
-
Method Details
-
callback
@Deprecated public void callback(String callbackName, IFormDataAdapter saveFormData, Vorgang vorgang) throws Exception Deprecated.will be removedDescription copied from interface:IFSSessionMethod to perform a callback on the frontend server- Specified by:
callbackin interfaceIFSSession- Parameters:
callbackName- Name of the callback handler to performsaveFormData- The form data adapter with which the callback should be performedvorgang- The form record to perform the callback with- Throws:
Exception- on errors while performing the callback
-
disconnect
public boolean disconnect()Description copied from interface:IFSSessionMethod to perform a clean disconnect- Specified by:
disconnectin interfaceIFSSession- Returns:
trueif the disconnect was successful,falseotherwise
-
fireEvent
Description copied from interface:IFSSessionMethod to fire an event on the frontend-server- Specified by:
fireEventin interfaceIFSSession- Type Parameters:
TEvent- the type of the event (must be serializable)- Parameters:
event-TEventthe event to fire
-
getServerInfo
Description copied from interface:IFSSessionReturns information about the frontend server, e.g. formcycle version, Java version, OS version, SSL info, etc.- Specified by:
getServerInfoin interfaceIFSSession- Returns:
FsServerInfoDtowith the server information
-
ping
public boolean ping()Description copied from interface:IFSSessionMethod to ping the frontend server- Specified by:
pingin interfaceIFSSession- Returns:
trueif successful,falseotherwise
-
pullConfigurableProperties
Description copied from interface:IFSSessionPulls the configuration from the frontend server that can be edited via the backend UI.- Specified by:
pullConfigurablePropertiesin interfaceIFSSession- Returns:
- The frontend server configuration. Never null, but may be empty.
-
pushConfig
Description copied from interface:IFSSessionMethod to push a configuration file to the frontend server- Specified by:
pushConfigin interfaceIFSSession- Parameters:
name- The name of the configuration filedata- Byte array with the data of the configuration file- Throws:
Exception- on errors while pushing the configuration file
-
pushConfigurableProperties
public void pushConfigurableProperties(FSConfigurableProperties errorPagesConfig) throws org.apache.commons.configuration2.ex.ConfigurationException Description copied from interface:IFSSessionPushes the given configuration to the frontend server.- Specified by:
pushConfigurablePropertiesin interfaceIFSSession- Parameters:
errorPagesConfig- The error pages config to push.- Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
revokeRefreshToken
Description copied from interface:IFSSessionMethod to revoke a refresh-token- Specified by:
revokeRefreshTokenin interfaceIFSSession- Parameters:
refreshTokenId-UUIDof the refresh-token to revoke
-
triggerConfigSync
public void triggerConfigSync()Description copied from interface:IFSSessionMethod to trigger the sync of the server configuration- Specified by:
triggerConfigSyncin interfaceIFSSession
-
triggerPluginSync
Description copied from interface:IFSSessionMethod to trigger the sync of plugins- Specified by:
triggerPluginSyncin interfaceIFSSession- Parameters:
syncData- PLugin sync data of the plugins to sync- Throws:
Exception- on errors
-
unreferenced
public void unreferenced()- Specified by:
unreferencedin interfacede.root1.simon.SimonUnreferenced
-