Class ConfigurationServiceImpl

java.lang.Object
pro.taskana.common.internal.ConfigurationServiceImpl
All Implemented Interfaces:
ConfigurationService

public class ConfigurationServiceImpl extends Object implements ConfigurationService
  • Constructor Details

  • Method Details

    • checkSecureAccess

      public void checkSecureAccess(boolean securityEnabled)
    • setupDefaultCustomAttributes

      public void setupDefaultCustomAttributes()
    • getAllCustomAttributes

      public Map<String,Object> getAllCustomAttributes()
      Description copied from interface: ConfigurationService
      Retrieve all custom attributes from the database.
      Specified by:
      getAllCustomAttributes in interface ConfigurationService
      Returns:
      the custom attributes from the database
    • setAllCustomAttributes

      public void setAllCustomAttributes(Map<String,?> customAttributes)
      Description copied from interface: ConfigurationService
      Override all custom attributes with the provided one.
      Specified by:
      setAllCustomAttributes in interface ConfigurationService
      Parameters:
      customAttributes - the new custom attributes which should be persisted
    • getValue

      public Optional<Object> getValue(String attribute)
      Description copied from interface: ConfigurationService
      Retrieve a specific value from all custom attributes.
      Specified by:
      getValue in interface ConfigurationService
      Parameters:
      attribute - the attribute key
      Returns:
      the attribute value or nothing if the attribute does not exist