Plugin dev: more Core API support for update operations
-
Core API: at the moment
ChildTopicsModel
'ssetRef()
andaddRef()
methods do not support specifying a value for the created association. Additionally to the current methods there should be ones with anassoc
parameter:ChildTopicsModel setRef(String compDefUri, long refTopicId, AssocModel assoc); ChildTopicsModel setRef(String compDefUri, String refTopicUri, AssocModel assoc); ChildTopicsModel addRef(String compDefUri, long refTopicId, AssocModel assoc); ChildTopicsModel addRef(String compDefUri, String refTopicUri, AssocModel assoc);
-
At the moment Core's
ModelFactory
provides a method for creating an association model with a composite value (ChildTopicsModel
). Additionally there should be a method for creating one with a simple value:AssocModel newAssocModel(SimpleValue value);
Without these methods the desired result can only be achieved by utilization of more lower-level methods, which makes plugin code very ugly/unreadable.
@gev FYI