-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Remaining MQTTSubmodelRepo Methods #544
Implement Remaining MQTTSubmodelRepo Methods #544
Conversation
@@ -9,5 +9,8 @@ This feature provides hierarchical MQTT eventing for a multitude of events: | |||
| SubmodelElement Created | sm-repository/$repoId/submodels/$submodelIdBase64URLEncoded/submodelElements/$idShortPath/created | Created SubmodelElement JSON | | |||
| SubmodelElement Updated | sm-repository/$repoId/submodels/$submodelIdBase64URLEncoded/submodelElements/$idShortPath/updated | Updated SubmodelElement JSON | | |||
| SubmodelElement Deleted | sm-repository/$repoId/submodels/$submodelIdBase64URLEncoded/submodelElements/$idShortPath/deleted | Deleted SubmodelElement JSON | | |||
| SubmodelElements Patched | sm-repository/$repoId/submodels/$submodelIdBase64URLEncoded/submodelElements/patched | Patched SubmodelElements JSON | | |||
| FileValue Updated | sm-repository/$repoId/submodels/$submodelIdBase64URLEncoded/submodelElements/$idShortPath/fileValue/$fileName/updated | Updated SubmodelElement JSON | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please change the topic to match the spec [1, 2] (.../$idShortPath/attachment/updated and /deleted
)? Also, no need for the $fileName
in the topic itself.
[1] https://app.swaggerhub.com/apis/Plattform_i40/SubmodelServiceSpecification/V3.0.1_SSP-001#/Submodel%20API/PutFileByPath
[2] https://app.swaggerhub.com/apis/Plattform_i40/SubmodelServiceSpecification/V3.0.1_SSP-001#/Submodel%20API/DeleteFileByPath
…//github.com/ShehriyarShariq-Fraunhofer/basyx-java-server-sdk into implement-remaining-mqttsubmodelrepo-methods
@Override | ||
public void patchSubmodelElements(String submodelId, List<SubmodelElement> submodelElementList) { | ||
decorated.patchSubmodelElements(submodelId, submodelElementList); | ||
List<SubmodelElement> patchedSubmodelElements = decorated.getSubmodelElements(submodelId, PaginationInfo.NO_LIMIT).getResult(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason to use the NO_LIMIT request to get the patched submodel elements again? They are already being passed as parameter.
…//github.com/ShehriyarShariq-Fraunhofer/basyx-java-server-sdk into implement-remaining-mqttsubmodelrepo-methods
Implemented eventing logic + tests for:
Closes #428