001package systems.dmx.topicmaps.migrations; 002 003import systems.dmx.core.model.AssociationDefinitionModel; 004import systems.dmx.core.model.TopicTypeModel; 005import systems.dmx.core.service.Migration; 006 007 008 009/** 010 * Add "Private" flag to Topicmap. 011 * Runs ALWAYS. 012 * <p> 013 * Part of DM 4.8 014 */ 015public class Migration5 extends Migration { 016 017 @Override 018 public void run() { 019 dmx.createTopicType(mf.newTopicTypeModel("dmx.topicmaps.private", "Private", "dmx.core.boolean")); 020 dmx.getTopicType("dmx.topicmaps.topicmap").addAssocDef(mf.newAssociationDefinitionModel( 021 "dmx.core.composition_def", "dmx.topicmaps.topicmap", "dmx.topicmaps.private", 022 "dmx.core.one", "dmx.core.one" 023 )); 024 } 025}