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)
Commit
d221b6126804814251557f7d4cda8d11e7c9300d
by timothyjward
Implement model deletion in the Model Manager
The model manager API provides a deletion method, but this was not implemented. This commit implements deletion logic, which delegates to the Model Nexus. The Model Nexus:
1. Finds the Model 2. If found it deletes any and all providers using the model, then it deletes the model from its owning EPackage 3. If the EPackage is now empty of models then the EPackage is removed from the Model Nexus
The ModelImpl has also been updated to check the the model is still registered before allowing any action. This prevents deleted models from being used after they are deleted.
Signed-off-by: Tim Ward <timothyjward@apache.org> (commit: d221b61)
Commit
068be1017ad07f297a0316652e66e9dec2412304
by timothyjward
Add support for nullable data which should not create a resource
In some cases null is a valid value to return, but should not be used to initialize a resource. For example if a DTO contains some optional resources which may never be set for some providers, but will be set for others, and those resources may be null, then this was not previously possible
Signed-off-by: Tim Ward <timothyjward@apache.org> (commit: 068be10)
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)
Commit
c9be1b379b44dcb0c5400ff44d4664ab3202c764
by timothyjward
Fix missing check in SetValueCommand
The UPDATE_IF_PRESENT logic would always run even if the data value was not null. This has been fixed and regression tests added for all NullAction behaviours.
Signed-off-by: Tim Ward <timothyjward@apache.org> (commit: c9be1b3)