|
17 | 17 |
|
18 | 18 | import java.io.Serializable; |
19 | 19 | import java.util.List; |
20 | | -import java.util.Optional; |
21 | 20 |
|
| 21 | +import javax.annotation.Nullable; |
22 | 22 | import javax.ejb.Remote; |
23 | 23 |
|
24 | 24 | import de.symeda.sormas.api.BaseFacade; |
|
29 | 29 | */ |
30 | 30 | @Remote |
31 | 31 | public interface SystemConfigurationValueFacade |
32 | | - extends |
33 | | - BaseFacade<SystemConfigurationValueDto, SystemConfigurationValueIndexDto, SystemConfigurationValueReferenceDto, SystemConfigurationValueCriteria>, |
34 | | - Serializable { |
| 32 | + extends |
| 33 | + BaseFacade<SystemConfigurationValueDto, SystemConfigurationValueIndexDto, SystemConfigurationValueReferenceDto, SystemConfigurationValueCriteria>, |
| 34 | + Serializable { |
35 | 35 |
|
36 | | - /** |
37 | | - * Retrieves system configuration values by their UUIDs. |
38 | | - * |
39 | | - * @param uuids the list of UUIDs |
40 | | - * @return the list of matching system configuration value DTOs |
41 | | - */ |
42 | | - List<SystemConfigurationValueDto> getByUuids(List<String> uuids); |
| 36 | + /** |
| 37 | + * Retrieves system configuration values by their UUIDs. |
| 38 | + * |
| 39 | + * @param uuids |
| 40 | + * the list of UUIDs |
| 41 | + * @return the list of matching system configuration value DTOs |
| 42 | + */ |
| 43 | + List<SystemConfigurationValueDto> getByUuids(List<String> uuids); |
43 | 44 |
|
44 | | - /** |
45 | | - * Retrieves all UUIDs of system configuration values. |
46 | | - * |
47 | | - * @return the list of all UUIDs |
48 | | - */ |
49 | | - List<String> getAllUuids(); |
| 45 | + /** |
| 46 | + * Retrieves all UUIDs of system configuration values. |
| 47 | + * |
| 48 | + * @return the list of all UUIDs |
| 49 | + */ |
| 50 | + List<String> getAllUuids(); |
50 | 51 |
|
51 | | - /** |
52 | | - * Retrieves a configuration value associated with the given key. |
53 | | - * The implementors should assure that proper caching is used. |
54 | | - * |
55 | | - * @param key The key of the configuration value to retrieve. |
56 | | - * @return the value of the configuration. |
57 | | - */ |
58 | | - Optional<String> getValue(Config key); |
| 52 | + /** |
| 53 | + * Retrieves a configuration value associated with the given key. |
| 54 | + * The implementors should assure that proper caching is used. |
| 55 | + * |
| 56 | + * @param key |
| 57 | + * The key of the configuration value to retrieve. |
| 58 | + * @return the value of the configuration. |
| 59 | + */ |
| 60 | + @Nullable |
| 61 | + String getValue(Config key); |
59 | 62 |
|
60 | | - /** |
61 | | - * Checks if a configuration value exists for the given key. |
62 | | - * |
63 | | - * @param key The key to check. |
64 | | - * @return true if the configuration value exists, false otherwise. |
65 | | - */ |
| 63 | + /** |
| 64 | + * Checks if a configuration value exists for the given key. |
| 65 | + * |
| 66 | + * @param key |
| 67 | + * The key to check. |
| 68 | + * @return true if the configuration value exists, false otherwise. |
| 69 | + */ |
66 | 70 | boolean exists(Config key); |
67 | 71 |
|
68 | | - /** |
69 | | - * Clears the caches and reloads the system configuration values from the database. |
70 | | - */ |
71 | | - void loadData(); |
| 72 | + /** |
| 73 | + * Clears the caches and reloads the system configuration values from the database. |
| 74 | + */ |
| 75 | + void loadData(); |
72 | 76 | } |
0 commit comments