aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
authorwsliwka <wojciech.sliwka@nokia.com>2019-09-25 13:13:32 +0200
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-06-23 07:57:02 +0200
commit447fa891f14d0c6e379ca4d5bf326802aa91bb62 (patch)
tree673a3fb82a114bf1a3dd97f6f9d2f56ae3bddde0 /src/main/java/org/onap
parentbe074cb3a1d77adeb6a8f9b560e705e343b7638d (diff)
Extend service model
extend service model by adding orchestrationType Issue-ID: AAI-2594 Signed-off-by: wsliwka <wojciech.sliwka@nokia.com> Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I34de40005b6ddad0cd71ccb20fae94f7f45c6257
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r--src/main/java/org/onap/aai/babel/xml/generator/api/AaiModelGenerator.java1
-rw-r--r--src/main/java/org/onap/aai/babel/xml/generator/model/Model.java12
2 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/org/onap/aai/babel/xml/generator/api/AaiModelGenerator.java b/src/main/java/org/onap/aai/babel/xml/generator/api/AaiModelGenerator.java
index 0aaf8fc..384d87d 100644
--- a/src/main/java/org/onap/aai/babel/xml/generator/api/AaiModelGenerator.java
+++ b/src/main/java/org/onap/aai/babel/xml/generator/api/AaiModelGenerator.java
@@ -101,6 +101,7 @@ public class AaiModelGenerator {
modelVer.setModelVersion(model.getModelVersion());
modelVer.setModelVersionId(model.getModelNameVersionId());
modelVer.setModelElements(new ModelElements());
+ modelVer.setOrchestrationType(model.getInstantiationType());
return modelVer;
}
diff --git a/src/main/java/org/onap/aai/babel/xml/generator/model/Model.java b/src/main/java/org/onap/aai/babel/xml/generator/model/Model.java
index 84b5489..c33127e 100644
--- a/src/main/java/org/onap/aai/babel/xml/generator/model/Model.java
+++ b/src/main/java/org/onap/aai/babel/xml/generator/model/Model.java
@@ -67,6 +67,12 @@ public abstract class Model {
model.modelDescription = value;
}
},
+ ORCHESTRATION_TYPE("instantiationType"){
+ @Override
+ public void populate(Model model, String value) {
+ model.instantiationType = value;
+ }
+ },
NAME_AND_DESCRIPTION("providing_service_name") {
@Override
public void populate(Model model, String value) {
@@ -103,7 +109,7 @@ public abstract class Model {
private String modelNameVersionId; // model-version-id
private String modelVersion;
private String modelDescription;
-
+ private String instantiationType;
protected Set<Resource> resources = new HashSet<>();
protected Set<Widget> widgets = new HashSet<>();
@@ -208,6 +214,10 @@ public abstract class Model {
return modelNameVersionId;
}
+ public String getInstantiationType() {
+ return instantiationType;
+ }
+
/**
* Gets widget version id.
*