Package pro.taskana.common.api
Interface ConfigurationService
- All Known Implementing Classes:
ConfigurationServiceImpl
public interface ConfigurationService
The Configuration Service manages all custom configuration options.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve 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.
-
Method Details
-
getValue
Retrieve a specific value from all custom attributes.- Parameters:
attribute- the attribute key- Returns:
- the attribute value or nothing if the attribute does not exist
-
getAllCustomAttributes
Retrieve all custom attributes from the database.- Returns:
- the custom attributes from the database
-
setAllCustomAttributes
Override all custom attributes with the provided one.- Parameters:
customAttributes- the new custom attributes which should be persisted
-