X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fclamp%2Fclds%2Ftosca%2Fupdate%2Fexecution%2FToscaMetadataExecutor.java;h=924011901ac5f0c75a68ff7fb2a25f89cee7f542;hb=e65d457a2dfd6ebb5e1f5a28b74f05c16c285dc3;hp=dbd8ee1bca88745708397783b636d85fe8adb227;hpb=afac3121bfacc4d81903b1d8492613b0b77d3298;p=clamp.git diff --git a/src/main/java/org/onap/clamp/clds/tosca/update/execution/ToscaMetadataExecutor.java b/src/main/java/org/onap/clamp/clds/tosca/update/execution/ToscaMetadataExecutor.java index dbd8ee1b..92401190 100644 --- a/src/main/java/org/onap/clamp/clds/tosca/update/execution/ToscaMetadataExecutor.java +++ b/src/main/java/org/onap/clamp/clds/tosca/update/execution/ToscaMetadataExecutor.java @@ -32,8 +32,6 @@ import javax.annotation.PostConstruct; import org.onap.clamp.clds.tosca.update.execution.cds.ToscaMetadataCdsProcess; import org.onap.clamp.clds.tosca.update.execution.target.ToscaMetadataTargetProcess; import org.onap.clamp.loop.service.Service; -import org.onap.clamp.tosca.Dictionary; -import org.onap.clamp.tosca.DictionaryElement; import org.onap.clamp.tosca.DictionaryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -73,38 +71,5 @@ public class ToscaMetadataExecutor { public void init() { mapOfProcesses.put("CDS", new ToscaMetadataCdsProcess()); mapOfProcesses.put("CSAR_RESOURCES", new ToscaMetadataTargetProcess()); - - preProvisionDictionaryTable(); } - - private void preProvisionDictionaryTable() { - // Set up dictionary elements - Dictionary actorDictionary = new Dictionary(); - actorDictionary.setName("DefaultActor"); - actorDictionary.setSecondLevelDictionary(0); - actorDictionary.setSubDictionaryType(""); - - DictionaryElement elementSo = new DictionaryElement(); - elementSo.setName("SO"); - elementSo.setShortName("SO"); - elementSo.setType("string"); - elementSo.setDescription("SO component"); - actorDictionary.addDictionaryElements(elementSo); - - DictionaryElement elementSdnc = new DictionaryElement(); - elementSdnc.setName("SDNC"); - elementSdnc.setShortName("SDNC"); - elementSdnc.setType("string"); - elementSdnc.setDescription("SDNC component"); - actorDictionary.addDictionaryElements(elementSdnc); - - DictionaryElement elementCds = new DictionaryElement(); - elementCds.setName("CDS"); - elementCds.setShortName("CDS"); - elementCds.setType("string"); - elementCds.setDescription("CDS component"); - actorDictionary.addDictionaryElements(elementCds); - - dictionaryService.saveOrUpdateDictionary(actorDictionary); - } }