diff --git a/lib/taskana-core/src/main/java/pro/taskana/common/api/ConfigurationService.java b/lib/taskana-core/src/main/java/pro/taskana/common/api/ConfigurationService.java index fd8c16bca..8b91bed70 100644 --- a/lib/taskana-core/src/main/java/pro/taskana/common/api/ConfigurationService.java +++ b/lib/taskana-core/src/main/java/pro/taskana/common/api/ConfigurationService.java @@ -6,6 +6,14 @@ import java.util.Optional; /** The Configuration Service manages all custom configuration options. */ public interface ConfigurationService { + /** + * Retrieve a specific value from all custom attributes. + * + * @param attribute the attribute key + * @return the attribute value or nothing if the attribute does not exist + */ + Optional getValue(String attribute); + /** * Retrieve all custom attributes from the database. * @@ -19,12 +27,4 @@ public interface ConfigurationService { * @param customAttributes the new custom attributes which should be persisted */ void setAllCustomAttributes(Map customAttributes); - - /** - * Retrieve a specific value from all custom attributes. - * - * @param attribute the attribute key - * @return the attribute value or nothing if the attribute does not exist - */ - Optional getValue(String attribute); } diff --git a/lib/taskana-core/src/main/java/pro/taskana/user/api/UserService.java b/lib/taskana-core/src/main/java/pro/taskana/user/api/UserService.java index 31b4bdbde..01e4bf1be 100644 --- a/lib/taskana-core/src/main/java/pro/taskana/user/api/UserService.java +++ b/lib/taskana-core/src/main/java/pro/taskana/user/api/UserService.java @@ -19,19 +19,6 @@ public interface UserService { */ User newUser(); - /** - * Gets a {@linkplain User}. - * - *

If a {@linkplain User} with the specified {@linkplain User#getId() id} is existing in the - * database, it is returned. - * - * @param id the {@linkplain User#getId() id} of the {@linkplain User} to be retrieved - * @return the retrieved {@linkplain User} - * @throws UserNotFoundException if there does not exist a {@linkplain User} with the specified - * {@linkplain User#getId() id} inside the database - */ - User getUser(String id) throws UserNotFoundException; - /** * Creates a new {@linkplain User}. * @@ -60,6 +47,19 @@ public interface UserService { User createUser(User userToCreate) throws InvalidArgumentException, NotAuthorizedException, UserAlreadyExistException; + /** + * Gets a {@linkplain User}. + * + *

If a {@linkplain User} with the specified {@linkplain User#getId() id} is existing in the + * database, it is returned. + * + * @param id the {@linkplain User#getId() id} of the {@linkplain User} to be retrieved + * @return the retrieved {@linkplain User} + * @throws UserNotFoundException if there does not exist a {@linkplain User} with the specified + * {@linkplain User#getId() id} inside the database + */ + User getUser(String id) throws UserNotFoundException; + /** * Updates an existing {@linkplain User}. *