Package pro.taskana.common.internal
Class ConfigurationServiceImpl
java.lang.Object
pro.taskana.common.internal.ConfigurationServiceImpl
- All Implemented Interfaces:
ConfigurationService
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationServiceImpl(InternalTaskanaEngine internalTaskanaEngine, ConfigurationMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSecureAccess(boolean securityEnabled) Retrieve all custom attributes from the database.Retrieve a specific value from all custom attributes.voidsetAllCustomAttributes(Map<String, ?> customAttributes) Override all custom attributes with the provided one.void
-
Constructor Details
-
ConfigurationServiceImpl
public ConfigurationServiceImpl(InternalTaskanaEngine internalTaskanaEngine, ConfigurationMapper mapper)
-
-
Method Details
-
checkSecureAccess
public void checkSecureAccess(boolean securityEnabled) -
setupDefaultCustomAttributes
public void setupDefaultCustomAttributes() -
getAllCustomAttributes
Description copied from interface:ConfigurationServiceRetrieve all custom attributes from the database.- Specified by:
getAllCustomAttributesin interfaceConfigurationService- Returns:
- the custom attributes from the database
-
setAllCustomAttributes
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
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
-