Class FormRecordMessageExtensionDataHelper


  • public class FormRecordMessageExtensionDataHelper
    extends Object
    Helper class for accessing the extension data of plugin message services.
    Since:
    8.4.0
    Author:
    XIMA MEDIA GmbH
    • 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 (see IPluginMessageConfigExtension.getUpdateTransitions()).
        extension - the plugin message service extension
        Returns:
        the config data or null if the extension is null or the properties are empty
      • 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 properties
        configData - the service extension properties to set