Class FormRecordMessageExtensionDataHelper
java.lang.Object
de.xima.fc.workflow.model.nodes.FormRecordMessageExtensionDataHelper
Helper class for accessing the extension data of
plugin message services.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionCrates a new instance of the helper for the given client.Crates a new instance of the helper for the given client.<TConfig extends Serializable>
TConfiggetConfigData(Projekt project, IPluginMessageService<TConfig> pluginMessageService) <TConfig extends Serializable>
TConfiggetConfigData(Map<String, Serializable> props, IPluginMessageService<TConfig> extension) Get the config data of the given plugin message service extension.getConfigDataMap(Projekt project) Get the service extension properties of the given project.voidsetConfigDataMap(Projekt project, Map<String, Serializable> configData) Sets the service extension properties for the given project.
-
Method Details
-
forClient
Crates a new instance of the helper for the given client.- Parameters:
clientUuid- UUID of the client- Returns:
- a new instance of the helper
-
forClient
Crates a new instance of the helper for the given client.- Parameters:
client- the client- Returns:
- a new instance of the helper
-
getConfigData
public <TConfig extends Serializable> TConfig getConfigData(Map<String, Serializable> props, IPluginMessageService<TConfig> extension) Get the config data of the given plugin message service extension.- Type Parameters:
TConfig- the type of the config data model class- Parameters:
props- a map of all plugin message service properties. These are assumed to be up-to-date (seeIPluginMessageConfigExtension.getUpdateTransitions()).extension- the plugin message service extension- Returns:
- the config data or
nullif the extension isnullor the properties are empty
-
getConfigData
public <TConfig extends Serializable> TConfig getConfigData(Projekt project, IPluginMessageService<TConfig> pluginMessageService) -
getConfigDataMap
Get the service extension properties of the given project.- Parameters:
project- the project to get the service extension properties from- Returns:
- the service extension properties or an empty map if there are no properties
-
setConfigDataMap
Sets the service extension properties for the given project.- Parameters:
project- the project to set the service extension propertiesconfigData- the service extension properties to set
-