Changes

Summary

  1. Added marker interface for DeviceManagementServices (details)
  2. Added ResponseCode-specific exceptions and refactored Exception usage (details)
  3. Added common method to check if KapuaResponseMessage is ACCEPTED (details)
  4. Small change to BrokerSteps on DeviceConfiguration handling (details)
  5. Added a bunch of generics and question marks to fix rawusage and unchecked castings (details)
  6. Made KapuaId a KapuaSerializable child (details)
  7. Added DeviceManagementExceptionMappers to REST APIs (details)
  8. Increased from 1 sec to 2 sec to all wait time in JobEngine tests (details)
Commit 9a88b5e274f90fe62d80594dad5fc3b1038680d6 by Alberto Codutti
Added marker interface for DeviceManagementServices

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
The file was modifiedservice/api/src/main/java/org/eclipse/kapua/service/KapuaService.java (diff)
The file was addedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/DeviceManagementService.java
The file was modifiedservice/device/management/bundle/api/src/main/java/org/eclipse/kapua/service/device/management/bundle/DeviceBundleManagementService.java (diff)
The file was modifiedservice/device/management/asset/api/src/main/java/org/eclipse/kapua/service/device/management/asset/DeviceAssetManagementService.java (diff)
The file was modifiedservice/device/management/packages/api/src/main/java/org/eclipse/kapua/service/device/management/packages/DevicePackageManagementService.java (diff)
The file was modifiedservice/device/management/configuration/api/src/main/java/org/eclipse/kapua/service/device/management/snapshot/DeviceSnapshotManagementService.java (diff)
The file was modifiedservice/device/management/request/api/src/main/java/org/eclipse/kapua/service/device/management/request/DeviceRequestManagementService.java (diff)
The file was modifiedservice/device/commons/src/main/java/org/eclipse/kapua/service/device/management/commons/AbstractDeviceManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/inventory/api/src/main/java/org/eclipse/kapua/service/device/management/inventory/DeviceInventoryManagementService.java (diff)
The file was modifiedservice/device/management/command/api/src/main/java/org/eclipse/kapua/service/device/management/command/DeviceCommandManagementService.java (diff)
The file was modifiedservice/device/call/api/src/main/java/org/eclipse/kapua/service/device/call/DeviceCall.java (diff)
The file was modifiedservice/device/management/configuration/api/src/main/java/org/eclipse/kapua/service/device/management/configuration/DeviceConfigurationManagementService.java (diff)
Commit ada4631f3d9ee9de54e8267cfbd59c509a711ed2 by Alberto Codutti
Added ResponseCode-specific exceptions and refactored Exception usage

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
The file was removedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementConnectionErrorCodes.java
The file was removedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceRequestBadMethodException.java
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageUninstallStatusManagementException.java
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageManagementResponseException.java
The file was removedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceResponseBadRequestException.java
The file was removedservice/device/management/inventory/internal/src/main/java/org/eclipse/kapua/service/device/management/inventory/internal/exception/InventoryManagementResponseException.java
The file was modifiedservice/device/management/api/src/main/resources/device-management-error-messages.properties (diff)
The file was removedservice/device/management/command/internal/src/main/java/org/eclipse/kapua/service/device/management/command/internal/exception/CommandExecuteManagementException.java
The file was removedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/configuration/internal/exception/ConfigurationPutManagementException.java
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageUninstallExecuteManagementException.java
The file was removedservice/device/management/asset/internal/src/main/java/org/eclipse/kapua/service/device/management/asset/internal/exception/AssetReadManagementException.java
The file was addedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementResponseBadRequestException.java
The file was removedservice/device/management/bundle/internal/src/main/java/org/eclipse/kapua/service/device/management/bundle/internal/exception/BundleManagementResponseErrorCodes.java
The file was removedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementRequestErrorCodes.java
The file was removedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/configuration/internal/exception/ConfigurationManagementResponseErrorCodes.java
The file was modifiedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementResponseException.java (diff)
The file was removedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementTimeoutErrorCodes.java
The file was modifiedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceNotConnectedException.java (diff)
The file was modifiedservice/device/management/command/internal/src/main/java/org/eclipse/kapua/service/device/management/command/internal/DeviceCommandManagementServiceImpl.java (diff)
The file was removedservice/device/management/inventory/internal/src/main/java/org/eclipse/kapua/service/device/management/inventory/internal/exception/DeviceInventoryGetManagementException.java
The file was modifiedservice/device/commons/src/main/java/org/eclipse/kapua/service/device/management/commons/AbstractDeviceManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementErrorCodes.java (diff)
The file was removedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementResponseErrorCodes.java
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageDownloadStopManagementException.java
The file was removedservice/device/management/asset/internal/src/main/java/org/eclipse/kapua/service/device/management/asset/internal/exception/AssetManagementResponseErrorCodes.java
The file was addedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementResponseInternalErrorException.java
The file was modifiedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementTimeoutException.java (diff)
The file was removedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/snapshot/internal/exception/SnapshotManagementResponseException.java
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageDownloadExecuteManagementException.java
The file was removedservice/device/management/bundle/internal/src/main/java/org/eclipse/kapua/service/device/management/bundle/internal/exception/BundleGetManagementException.java
The file was modifiedservice/device/management/inventory/internal/src/main/java/org/eclipse/kapua/service/device/management/inventory/internal/DeviceInventoryManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/request/internal/src/main/java/org/eclipse/kapua/service/device/management/request/internal/DeviceRequestManagementServiceImpl.java (diff)
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageGetManagementException.java
The file was removedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceResponseInternalErrorException.java
The file was removedservice/device/management/command/internal/src/main/java/org/eclipse/kapua/service/device/management/command/internal/exception/CommandManagementResponseErrorCodes.java
The file was removedservice/device/management/bundle/internal/src/main/java/org/eclipse/kapua/service/device/management/bundle/internal/exception/BundleManagementResponseException.java
The file was addedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementResponseNotFoundException.java
The file was removedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/snapshot/internal/exception/SnapshotRollbackManagementException.java
The file was removedservice/device/management/asset/internal/src/main/java/org/eclipse/kapua/service/device/management/asset/internal/exception/AssetGetManagementException.java
The file was modifiedservice/device/management/bundle/internal/src/main/java/org/eclipse/kapua/service/device/management/bundle/internal/DeviceBundleManagementServiceImpl.java (diff)
The file was removedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceResponseNotFoundException.java
The file was modifiedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementRequestException.java (diff)
The file was removedservice/device/management/inventory/internal/src/main/java/org/eclipse/kapua/service/device/management/inventory/internal/exception/InventoryManagementResponseErrorCodes.java
The file was modifiedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/configuration/internal/DeviceConfigurationManagementServiceImpl.java (diff)
The file was removedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/configuration/internal/exception/ConfigurationManagementResponseException.java
The file was removedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/snapshot/internal/exception/SnapshotManagementResponseErrorCodes.java
The file was addedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementRequestBadMethodException.java
The file was removedservice/device/management/asset/internal/src/main/java/org/eclipse/kapua/service/device/management/asset/internal/exception/AssetManagementResponseException.java
The file was removedservice/device/management/command/internal/src/main/java/org/eclipse/kapua/service/device/management/command/internal/exception/CommandManagementResponseException.java
The file was modifiedservice/device/management/asset/internal/src/main/java/org/eclipse/kapua/service/device/management/asset/internal/DeviceAssetManagementServiceImpl.java (diff)
The file was modifiedservice/device/api/src/main/java/org/eclipse/kapua/service/device/management/message/response/KapuaResponseMessage.java (diff)
The file was modifiedservice/device/commons/src/main/java/org/eclipse/kapua/service/device/management/commons/call/DeviceCallExecutor.java (diff)
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageManagementResponseErrorCodes.java
The file was removedservice/device/management/asset/internal/src/main/java/org/eclipse/kapua/service/device/management/asset/internal/exception/AssetWriteManagementException.java
The file was modifiedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/snapshot/internal/DeviceSnapshotManagementServiceImpl.java (diff)
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageDownloadStatusManagementException.java
The file was removedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementSendErrorCodes.java
The file was addedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementResponseUnknownCodeException.java
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageInstallExecuteManagementException.java
The file was addedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementResponseCodeException.java
The file was addedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementResponseContentException.java
The file was modifiedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/DevicePackageManagementServiceImpl.java (diff)
The file was removedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/exception/PackageInstallStatusManagementException.java
The file was removedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/configuration/internal/exception/ConfigurationGetManagementException.java
The file was addedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementRequestContentException.java
The file was modifiedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementSendException.java (diff)
The file was removedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/snapshot/internal/exception/SnapshotGetManagementException.java
The file was modifiedservice/device/management/configuration/api/src/main/java/org/eclipse/kapua/service/device/management/configuration/DeviceComponentConfiguration.java (diff)
The file was modifiedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceNeverConnectedException.java (diff)
Commit 0820f89dc10775548ba600808e5101205687f461 by Alberto Codutti
Added common method to check if KapuaResponseMessage is ACCEPTED

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
The file was modifiedservice/device/management/api/src/main/java/org/eclipse/kapua/service/device/management/exception/DeviceManagementErrorCodes.java (diff)
The file was modifiedservice/device/management/command/internal/src/main/java/org/eclipse/kapua/service/device/management/command/internal/DeviceCommandManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/asset/internal/src/main/java/org/eclipse/kapua/service/device/management/asset/internal/DeviceAssetManagementServiceImpl.java (diff)
The file was modifiedservice/device/commons/src/main/java/org/eclipse/kapua/service/device/management/commons/AbstractDeviceManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/bundle/internal/src/main/java/org/eclipse/kapua/service/device/management/bundle/internal/DeviceBundleManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/packages/internal/src/main/java/org/eclipse/kapua/service/device/management/packages/internal/DevicePackageManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/configuration/internal/DeviceConfigurationManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/snapshot/internal/DeviceSnapshotManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/inventory/internal/src/main/java/org/eclipse/kapua/service/device/management/inventory/internal/DeviceInventoryManagementServiceImpl.java (diff)
Commit c9c1b94f6fcd122c2ec4751976102e4e08dbf544 by Alberto Codutti
Small change to BrokerSteps on DeviceConfiguration handling

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
The file was modifiedservice/device/registry/test-steps/src/main/java/org/eclipse/kapua/service/device/registry/steps/BrokerSteps.java (diff)
Commit 82c22540e97646de323dc66ba02563cfe724da5b by Alberto Codutti
Added a bunch of generics and question marks to fix rawusage and unchecked castings

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
The file was modifiedservice/device/management/asset/internal/src/main/java/org/eclipse/kapua/service/device/management/asset/internal/DeviceAssetManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/bundle/internal/src/main/java/org/eclipse/kapua/service/device/management/bundle/internal/DeviceBundleManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/configuration/internal/DeviceConfigurationManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/configuration/internal/src/main/java/org/eclipse/kapua/service/device/management/snapshot/internal/DeviceSnapshotManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/command/internal/src/main/java/org/eclipse/kapua/service/device/management/command/internal/DeviceCommandManagementServiceImpl.java (diff)
The file was modifiedservice/device/management/inventory/internal/src/main/java/org/eclipse/kapua/service/device/management/inventory/internal/DeviceInventoryManagementServiceImpl.java (diff)
Commit a13533dd59904682d722939fc4f95cbaa02ad718 by Alberto Codutti
Made KapuaId a KapuaSerializable child

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
The file was modifiedservice/api/src/main/java/org/eclipse/kapua/model/id/KapuaId.java (diff)
Commit 0050d044cecab2bb3ff237d0c2a5a199b99b8e70 by Alberto Codutti
Added DeviceManagementExceptionMappers to REST APIs

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/mapper/DeviceManagementSendExceptionMapper.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/mapper/DeviceManagementTimeoutExceptionMapper.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/model/DeviceManagementResponseContentExceptionInfo.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/model/DeviceManagementResponseCodeExceptionInfo.java
The file was modifiedrest-api/web/src/main/java/org/eclipse/kapua/app/api/web/JaxbContextResolver.java (diff)
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/mapper/DeviceManagementResponseContentExceptionMapper.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/model/DeviceManagementRequestContentExceptionInfo.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/model/DeviceManagementTimeoutExceptionInfo.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/model/DeviceManagementSendExceptionInfo.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/model/DeviceNotConnectedExceptionInfo.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/mapper/DeviceNotConnectedExceptionMapper.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/mapper/DeviceManagementRequestContentExceptionMapper.java
The file was addedrest-api/core/src/main/java/org/eclipse/kapua/app/api/core/exception/mapper/DeviceManagementResponseCodeExceptionMapper.java
Commit 3ae6dadc74937fe5c8a0480aebd904fb2e5b7f69 by Alberto Codutti
Increased from 1 sec to 2 sec to all wait time in JobEngine tests

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
The file was modifiedqa/integration/src/test/resources/features/jobEngine/JobEngineServiceRestartOnlineDeviceI9n.feature (diff)
The file was modifiedqa/integration/src/test/resources/features/jobEngine/JobEngineServiceStartOnlineDeviceI9n.feature (diff)