* changed resource path to "rest/v1/system/configs"
* added links to resources, to follow good practice recommendations
* added GET methode for parent resource system/configs
* fade out null values in json
* marked some json properties as mandatory
TMP
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
- removed cache from global getter, because it was overriding the cache of
the tenant specific getter
- changed Type of AuthName key, type of key was not important before the huge
configuration refactoring
- fixed test conditions
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
- created SpringEvalExpression for the right to change tenant configuration
- added this authorization filter to every tenant configuration related method
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
- added GET, DELETE and PUT function on configuration value interfaces
- changed Exception in TenantConfigurationManagement for correct mapping to HTTP Status
- added function to get global configurations from TenantConfigurationManagement, to have
only one class for handling these configuration values
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
* run the validation methodes inside the storing methode, to make sure that only
valid values are written inside the database
* updated TenantConfigurationManagementTest to match the validation
* added new Tests to test all validators
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
* changed error handling from return value to throw exceptions, to give the user a feedback what was wrong
* added ValidationException to ResponseExceptionHandler, to map the correct REST status codes
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
- removed PollConfigurationHelper and coresspending test, because it was replaced by TenantConfigurationManagement
- removed very specific configuration exceptions, because they are not needed anymore
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
- moved fucntions to TenantConfigurationManagement, for better function capseling
- updated references
- updated references in tests, tests were succesfully
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
* use new methods to store polling Configuration
* refactored DurationConfigField, added Builder
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
* changed Return type to wrapper object, adding additional meta data stored in the database
* updated all calls of this method
* updated function calls in tests
* verified correct execution of correspending tests
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
* added DurationHelper to have access to Convertion in every class
* removed tenant specific getter and setter from PollConfigurationHelper
* changed getter and setter in TenantMetaData to use DurationObjects instead of Strings
* updated UI to call new functions
* updated module tests
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
* modified AuthentificationUI to use same Interface as Polling Configuration UI
* renaming of Interface "ConfigurationElement" -> "ConfigurationItem"
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
* added DurationConfigField (Field which contains a DurationConfigField and a Checkbox)
* added labels to messages.properties
* added new Interface ConfigurationElement, with functionallity which is important for saving the data
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
- added min and max values to config files
- updated ControllerPollProperties: added getter and setter of min and max values
- updated PollConfigurationHelper: added getter for different values
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
* calender popup should only show the time selector, because the modified DurationField only uses this value
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
* updated architectural concept os subview
** added base class BaseConfigurationView
** updated interface ConfigurationGroup
* updated message strings for new pollign configurations
* implemented new vaadin compontent DurationField (extends DateTimeField)
TODO:
* update positioning of DurationFields
* update validation of user input, espacilly against min and max value
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
- add description to assertions in unit tests
- make inner classes static
- remove out-commented code
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>