Commit aca74c05 authored by Jörg Richter's avatar Jörg Richter

ChildTopics API: remove setDeletionRef() method (2x) (#341)

BREAKING CHANGE

systems.dmx.core.ChildTopics

remove the 2 setDeletionRef() methods:

ChildTopics setDeletionRef(String compDefUri, long refTopicId);
ChildTopics setDeletionRef(String compDefUri, String refTopicUri);

CODE TRANSFORMATION

Instead of

    topic.getChildTopics().setDeletionRef(compDefUri, ...);

write

    topic.update(mf.newChildTopicsModel().set(compDefUri, mf.newTopicDeletionModel(...)));

Note: "newTopicDeletionModel" is about to get a shorter Name, e.g. "delRef"
parent 1b7e6117
Pipeline #9904 passed with stages
in 7 minutes and 54 seconds
......@@ -119,12 +119,6 @@ public interface ChildTopics extends Iterable<String> {
// === Manipulators ===
// --- Single-valued Children ---
ChildTopics setDeletionRef(String compDefUri, long refTopicId);
ChildTopics setDeletionRef(String compDefUri, String refTopicUri);
// --- Multiple-valued Children ---
// TODO: add add(String compDefUri, RelatedTopicModel value)? Compare to ChildTopicsModel
......
......@@ -206,18 +206,6 @@ class ChildTopicsImpl implements ChildTopics {
// === Manipulators ===
// --- Single-valued Children ---
@Override
public ChildTopics setDeletionRef(String compDefUri, long refTopicId) {
return _updateOne(compDefUri, mf.newTopicDeletionModel(refTopicId));
}
@Override
public ChildTopics setDeletionRef(String compDefUri, String refTopicUri) {
return _updateOne(compDefUri, mf.newTopicDeletionModel(refTopicUri));
}
// --- Multiple-valued Children ---
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment