Interface IFSSession
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
FSSessionImpl
Interface of the client session on the frontend server after authentication
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionvoidcallback(String callbackHandlerName, IFormDataAdapter formData, Vorgang process) Method to perform a callback on the frontend serverbooleanMethod 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 configurableProperties) 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 plugins
-
Method Details
-
callback
void callback(String callbackHandlerName, IFormDataAdapter formData, Vorgang process) throws Exception Method to perform a callback on the frontend server- Parameters:
callbackHandlerName- Name of the callback handler to performformData- The form data adapter with which the callback should be performedprocess- The form record to perform the callback with- Throws:
Exception- on errors while performing the callback
-
pushConfig
-
pullConfigurableProperties
Pulls the configuration from the frontend server that can be edited via the backend UI.- Returns:
- The frontend server configuration. Never null, but may be empty.
- Throws:
Exception- When the pull fails.
-
pushConfigurableProperties
Pushes the given configuration to the frontend server.- Parameters:
configurableProperties- The error pages config to push.- Throws:
Exception- When the push fails.
-
triggerPluginSync
Method to trigger the sync of plugins- Parameters:
syncData- PLugin sync data of the plugins to sync- Throws:
Exception- on errors
-
triggerConfigSync
void triggerConfigSync()Method to trigger the sync of the server configuration -
revokeRefreshToken
-
disconnect
boolean disconnect()Method to perform a clean disconnect- Returns:
trueif the disconnect was successful,falseotherwise
-
getServerInfo
FsServerInfoDto getServerInfo()Returns information about the frontend server, e.g. formcycle version, Java version, OS version, SSL info, etc.- Returns:
FsServerInfoDtowith the server information
-
ping
boolean ping()Method to ping the frontend server- Returns:
trueif successful,falseotherwise
-
fireEvent
Method to fire an event on the frontend-server- Type Parameters:
TEvent- the type of the event (must be serializable)- Parameters:
event-TEventthe event to fire- Throws:
IllegalArgumentException- if the event is nullIllegalStateException- if no event handler is found for the event type
-