4071 Commits

Author SHA1 Message Date
Kai Zimmermann
8b1816f422 Fixed wrong status content generation in mgmt API.
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
2016-03-03 17:06:58 +01:00
Kai Zimmermann
da66e81157 Set proper random generation.
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
2016-03-03 12:51:01 +01:00
Michael Hirsch
f15ba53a28 Merge pull request #60 from bsinno/upgrade-eclipselink-weave
ok merging.
2016-03-03 12:04:13 +01:00
Kai Zimmermann
7b0bfe5a0d Merge pull request #62 from bsinno/fix_wrong_amqp_message_converter
👍 merged
2016-03-03 11:59:11 +01:00
Michael Hirsch
74731d39ce fix retrieving the wrong message converter for converting messages over
amqp

Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-03-03 10:57:57 +01:00
Jonathan Philip Knoblauch
e731543313 Fix for sonar rule: Fields and methods should not have conflicting names
Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>
2016-03-03 10:52:55 +01:00
Kai Zimmermann
8c4b7e1750 Upgraded eclipse link weave to 2.6.2 2016-03-03 10:35:09 +01:00
Kai Zimmermann
cfe8375577 Made update execution more random 2016-03-03 10:16:19 +01:00
Kai Zimmermann
b7f94891a4 Migrated to lambda 2016-03-03 10:15:59 +01:00
asharani-murugesh
a9f8479cf6 Deployment view : Set id for action confirmation popup
Signed-off-by: asharani-murugesh <asharani.murugesh@in.bosch.com>
2016-03-02 17:43:52 +01:00
Michael Hirsch
0633ba14bb Merge pull request #57 from bsinno/Multiple_VHost_Connection
ok merging.
2016-03-02 15:12:00 +01:00
SirWayne
2082507218 Merge branch 'master' into Multiple_VHost_Connection 2016-03-02 14:47:23 +01:00
SirWayne
052d50e98d Merge branch 'Clean_Code' into Multiple_VHost_Connection
Conflicts:
	hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/amqp/AmqpMessageHandlerServiceTest.java


Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
2016-03-02 14:14:09 +01:00
SirWayne
5dc1032a8f Merge remote-tracking branch 'origin/master' into
Multiple_VHost_Connection
2016-03-02 13:32:11 +01:00
Kai Zimmermann
13a0e5d98f Merge remote-tracking branch 'eclipse/master' into optimize_simulator_throughput 2016-03-02 13:08:07 +01:00
Kai Zimmermann
762183ae12 Merge pull request #58 from bsinno/Clean_Code
👍 merged
2016-03-02 13:05:12 +01:00
Kai Zimmermann
fbff46c7bd Removed component 2016-03-02 12:57:51 +01:00
Kai Zimmermann
f1cdd122e2 Merge pull request #59 from bsinno/event_push_strategy
👍 merged
2016-03-02 12:54:21 +01:00
Dennis Melzer
d014e81b73 Update AmqpMessageHandlerService.java 2016-03-02 12:50:00 +01:00
Michael Hirsch
d28ea67e89 remove author tag from javadoc
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-03-02 11:25:43 +01:00
Kai Zimmermann
22f94da9eb Commented new factorypath entry 2016-03-02 10:22:27 +01:00
Kai Zimmermann
6f39769692 Removed out commented code.
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
2016-03-02 10:20:47 +01:00
asharani-murugesh
3a344e2e49 Renamed the component id's
Signed-off-by: asharani-murugesh <asharani.murugesh@in.bosch.com>
2016-03-02 09:59:22 +01:00
Michael Hirsch
5efcc295bc clean code do early return.
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-03-02 09:00:10 +01:00
Michael Hirsch
229e7c54af introduce a push strategy to the HawkbitUI and a delayed push
implementation to avoid UI freezes when too many events are dispatched
to the UI

Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-03-02 07:33:22 +01:00
Kai Zimmermann
031cca7c1c Removed sleep.
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
2016-03-01 17:12:59 +01:00
asharani-murugesh
7937c16c9b Rollout progress bar custom render changed to html renderer
Packages refactored

Signed-off-by: asharani-murugesh <asharani.murugesh@in.bosch.com>
2016-03-01 13:59:57 +01:00
SirWayne
e791954e13 Add a generic check for configuration validator
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
2016-03-01 10:31:30 +01:00
SirWayne
5973413cbe Add Javadoc and remove message converter from base class
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
2016-03-01 08:37:50 +01:00
SirWayne
c9c36ea435 Add description for asserts in test cases
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
2016-02-29 15:34:07 +01:00
asharani-murugesh
bb873e88a7 removed unused import
Signed-off-by: asharani-murugesh <asharani.murugesh@in.bosch.com>
2016-02-29 14:42:59 +01:00
Nonnenmacher Fabian (INST-ICM/BSV-AS)
0e9991b0a4 Added missing licence header
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
2016-02-29 14:28:44 +01:00
asharani-murugesh
e9528adb44 Merge branch 'master' into Rollout_migrate_table_to_grid 2016-02-29 13:30:26 +01:00
Nonnenmacher Fabian
ce6f40f512 Added FunctionalInterface annotation, which got lost during rebasing
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
2016-02-29 13:19:45 +01:00
Nonnenmacher Fabian (INST-ICM/BSV-AS)
05ce99bf3d Added missing Headers, removed @Auther comment
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
2016-02-29 13:19:28 +01:00
Nonnenmacher Fabian (INST-ICM/BSV-AS)
d183322522 Changed caption from checkbox to tooltip
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
2016-02-29 13:19:13 +01:00
Michael Hirsch
4ca1bdf9ef fix tests by setting the SystemSecurityContext to prevent NPE in tests
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-02-29 13:19:08 +01:00
Fabian Nonnenmacher
2be4922615 Added System Security Context as attribute to AbstractControllerAuthenticationFilter
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>
2016-02-29 13:18:58 +01:00
Fabian Nonnenmacher
57e040aec1 Fixup merge conflict
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
2016-02-29 13:18:42 +01:00
Fabian Nonnenmacher
016350de4e Moved SystemManagementResources in other package than SystemResources
* moved classes to new package to seperate it from SystemResource
* updated references

Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
2016-02-29 13:18:27 +01:00
Fabian Nonnenmacher
ffa46afc7a Removed old REST api for changing configuration values
Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
2016-02-29 13:18:12 +01:00
Fabian Nonnenmacher
08d4509249 Added tests for REST api
- added acceptance test for every possible methode type
- added negative tests for restcalls which leads to bad requests

Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
2016-02-29 13:17:56 +01:00
Fabian Nonnenmacher
aee254244a Smaller Improvements of configuration REST-API
* 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>
2016-02-29 13:17:41 +01:00
Fabian Nonnenmacher
c39753001e Bugfix: Setting and getting configuration values
- 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>
2016-02-29 13:17:28 +01:00
Fabian Nonnenmacher
6a88f2a3f4 Added Permission for TenantConfiguration changes
- 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>
2016-02-29 13:17:13 +01:00
Fabian Nonnenmacher
ec79e9bd19 Added REST interfaces for tenant configuration
- 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>
2016-02-29 13:16:57 +01:00
Fabian Nonnenmacher
4be880587a Added validation before saving TenantConfiguration and updated tests
* 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>
2016-02-29 13:16:42 +01:00
Fabian Nonnenmacher
d83286c94a Changed validation method to throw exception/SpServerError
* 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>
2016-02-29 13:16:27 +01:00
Fabian Nonnenmacher
a5a0dc17f6 Removed PollConfigurationHelper and not used Exceptions
- 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>
2016-02-29 13:16:13 +01:00
Fabian Nonnenmacher
49486755b2 Revert "changed datamodel, integrated poll configuration into tenant meta data table"
This reverts commit 9d147aada710cc2333723604fa8893e4f2f0515f.

Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>

Conflicts:
	hawkbit-core/src/main/java/org/eclipse/hawkbit/ControllerPollProperties.java
	hawkbit-repository/src/main/java/org/eclipse/hawkbit/repository/model/TenantMetaData.java
2016-02-29 13:15:59 +01:00