Package pro.taskana.common.internal
Class ConfigurationServiceImpl
- java.lang.Object
-
- pro.taskana.common.internal.ConfigurationServiceImpl
-
- All Implemented Interfaces:
ConfigurationService
public class ConfigurationServiceImpl extends Object implements ConfigurationService
-
-
Constructor Summary
Constructors Constructor Description ConfigurationServiceImpl(InternalTaskanaEngine internalTaskanaEngine, ConfigurationMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckSecureAccess(boolean securityEnabled)Map<String,Object>getAllCustomAttributes()Retrieve all custom attributes from the database.Optional<Object>getValue(String attribute)Retrieve a specific value from all custom attributes.voidsetAllCustomAttributes(Map<String,?> customAttributes)Override all custom attributes with the provided one.voidsetupDefaultCustomAttributes()
-
-
-
Constructor Detail
-
ConfigurationServiceImpl
public ConfigurationServiceImpl(InternalTaskanaEngine internalTaskanaEngine, ConfigurationMapper mapper)
-
-
Method Detail
-
checkSecureAccess
public void checkSecureAccess(boolean securityEnabled)
-
setupDefaultCustomAttributes
public void setupDefaultCustomAttributes()
-
getAllCustomAttributes
public Map<String,Object> getAllCustomAttributes()
Description copied from interface:ConfigurationServiceRetrieve all custom attributes from the database.- Specified by:
getAllCustomAttributesin interfaceConfigurationService- Returns:
- the custom attributes from the database
-
setAllCustomAttributes
public void setAllCustomAttributes(Map<String,?> customAttributes)
Description copied from interface:ConfigurationServiceOverride all custom attributes with the provided one.- Specified by:
setAllCustomAttributesin interfaceConfigurationService- Parameters:
customAttributes- the new custom attributes which should be persisted
-
getValue
public Optional<Object> getValue(String attribute)
Description copied from interface:ConfigurationServiceRetrieve a specific value from all custom attributes.- Specified by:
getValuein interfaceConfigurationService- Parameters:
attribute- the attribute key- Returns:
- the attribute value or nothing if the attribute does not exist
-
-