Skip to content
  • Jörg Richter's avatar
    ChildTopics API: remove setRef() method (4x) (#341) · 1b7e6117
    Jörg Richter authored
    BREAKING CHANGE
    
    systems.dmx.core.ChildTopics
    
    remove the 4 setRef() methods:
    
    ChildTopics setRef(String compDefUri, long refTopicId);
    ChildTopics setRef(String compDefUri, long refTopicId, ChildTopicsModel relatingAssocChildTopics);
    ChildTopics setRef(String compDefUri, String refTopicUri);
    ChildTopics setRef(String compDefUri, String refTopicUri, ChildTopicsModel relatingAssocChildTopics);
    
    CODE TRANSFORMATION
    
    Instead of
    
        topic.getChildTopics().setRef(compDefUri, ...);
    
    write
    
        topic.update(mf.newChildTopicsModel().set(compDefUri, mf.newTopicReferenceModel(...)));
    
    Note: "newTopicReferenceModel" is about to get a shorter Name, e.g. "topicRef"
    1b7e6117