This is necessary, because the tenant configuration methods are only accessable with specific permissions.
With the SystemSecurityContext methods can be executed as SystemRunner and therefor we can set permissions.
* updated the chaine of condtructors to set the context in the filter class
* added SystemRunner permission to TenantConfigurationManagement
* Autowired the system context to AMQP and HTTP controller
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>
- 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>
* 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>