Package pro.taskana.common.api
Interface ConfigurationService
-
- All Known Implementing Classes:
ConfigurationServiceImpl
public interface ConfigurationServiceThe Configuration Service manages all custom configuration options.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getValue
Optional<Object> getValue(String attribute)
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
Map<String,Object> getAllCustomAttributes()
Retrieve all custom attributes from the database.- Returns:
- the custom attributes from the database
-
-