Skip to content
Success

Changes

Summary

  1. Include the model name in topic notifications (commit: 9d68852) (details)
  2. fixed NPE due to missing service EClass (commit: a648fd6) (details)
  3. Expose #getProviders(String modelPackageUri, String model) from the twin (commit: 6eebd84) (details)
  4. Reinstate final modifier for GenericDto (commit: 61101a6) (details)
Commit 9d68852a61656138c22694f9e0988f6b0a9a1e95 by timothyjward
Include the model name in topic notifications

Filtering at the model level is extremely useful as it permits efficient tracking of multiple providers using the same model. The model URI is required to ensure strict uniqueness, however the model uri is difficult to represent in topic syntax, and would need large amounts of escaping. The trade off is therefore to allow the model name to be used in the topic for rapid checking, with the filter being available for more precise matching if needed.

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: 9d68852)
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/notification/impl/NotificationSenderTest.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/notification/ResourceActionNotification.java
The file was modifiednorthbound/rest/src/main/java/org/eclipse/sensinact/northbound/rest/impl/RestNorthbound.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/notification/ResourceDataNotification.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/notification/ResourceMetaDataNotification.java
The file was modifiednorthbound/websocket/src/main/java/org/eclipse/sensinact/northbound/ws/impl/WebSocketEndpoint.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/notification/LifecycleNotification.java
The file was modifiedsouthbound/virtual/virtual-temperature-sensor/src/main/java/org/eclipse/sensinact/gateway/southbound/virtual/temperature/VirtualTemperatureDto.java
The file was modifiednorthbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/notification/ResourceNotificationsTest.java
The file was modifiednorthbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SessionSubscribeTest.java
Commit a648fd6334494a065bf1355a64b37a945dcffeed by j.albert
fixed NPE due to missing service EClass

Signed-off-by: Juergen Albert <j.albert@data-in-motion.biz>
(commit: a648fd6)
The file was addedcore/emf-api/src/main/java/org/eclipse/sensinact/core/emf/model/EMFModelBuilder.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/impl/ServiceBuilderImpl.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/impl/ModelBuilderImpl.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/impl/SensinactModelManagerImpl.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/model/Model.java
The file was modifiedcore/impl/src/test/java/org/eclipse/sensinact/core/integration/EMFUpdateServiceTest.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/impl/ServiceImpl.java
The file was addedcore/emf-api/src/main/java/org/eclipse/sensinact/core/emf/model/EMFServiceBuilder.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/nexus/ModelNexus.java
The file was modifiedcore/emf-api/src/main/java/org/eclipse/sensinact/core/emf/model/SensinactEMFModelManager.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/impl/SetValueCommand.java
The file was addedcore/emf-api/src/main/java/org/eclipse/sensinact/core/emf/model/EMFModel.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/model/impl/ModelImpl.java
The file was addedcore/emf-api/src/main/java/org/eclipse/sensinact/core/emf/model/EMFService.java
Commit 6eebd84301fc3794c5a9dd773c3bcde0d8733afe by timothyjward
Expose #getProviders(String modelPackageUri, String model) from the twin

The method getProviders(String, String) existed in the EMF Twin, but not the base twin. As we already use the model package uri extensively in that interface we should expose it here as well.

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: 6eebd84)
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/twin/SensinactDigitalTwin.java
Commit 61101a6c9a361235909f11624cf1e8ea199fb126 by timothyjward
Reinstate final modifier for GenericDto

The EMF dto altered the GenericDto so that it could extend it. The GenericDto was intentionally final to prevent usage mistakes in the API. There are few fields and we should copy them.

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: 61101a6)
The file was modifiedcore/emf-api/src/main/java/org/eclipse/sensinact/core/emf/dto/EMFGenericDto.java
The file was modifiedcore/api/src/main/java/org/eclipse/sensinact/core/push/dto/GenericDto.java
The file was modifiedcore/impl/src/main/java/org/eclipse/sensinact/core/extract/impl/EMFGenericDtoDataExtractor.java