Package de.xima.fc.workflow.model.nodes
Class FormRecordMessageExtensionDataHelper
- java.lang.Object
-
- de.xima.fc.workflow.model.nodes.FormRecordMessageExtensionDataHelper
-
public class FormRecordMessageExtensionDataHelper extends Object
Helper class for accessing the extension data ofplugin message services
.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormRecordMessageExtensionDataHelper
forClient(Mandant client)
Crates a new instance of the helper for the given client.static FormRecordMessageExtensionDataHelper
forClient(UUID clientUuid)
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.Map<String,Serializable>
getConfigDataMap(Projekt project)
Get the service extension properties of the given project.void
setConfigDataMap(Projekt project, Map<String,Serializable> configData)
Sets the service extension properties for the given project.
-
-
-
Method Detail
-
forClient
public static FormRecordMessageExtensionDataHelper forClient(UUID clientUuid)
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
public static FormRecordMessageExtensionDataHelper forClient(Mandant client)
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
null
if the extension isnull
or the properties are empty
-
getConfigData
public <TConfig extends Serializable> TConfig getConfigData(Projekt project, IPluginMessageService<TConfig> pluginMessageService)
-
getConfigDataMap
public Map<String,Serializable> getConfigDataMap(Projekt project)
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
public void setConfigDataMap(Projekt project, Map<String,Serializable> configData)
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
-
-