SDN Controller Blueprints Processor Model Beans 61/64561/2
authorSingal, Kapil (ks220y) <ks220y@att.com>
Wed, 5 Sep 2018 02:11:04 +0000 (22:11 -0400)
committerSingal, Kapil (ks220y) <ks220y@att.com>
Wed, 5 Sep 2018 02:14:49 +0000 (22:14 -0400)
Creating SDN Controller Blueprints Processor Model Java Beans to Parse Model

Change-Id: Ib0d1425d0e814ffecf4ce0d1798dd607aa3e2af0
Issue-ID: CCSDK-494
Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
26 files changed:
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ArtifactDefinition.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ArtifactType.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/CapabilityAssignment.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/CapabilityDefinition.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ConstraintClause.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/DataType.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/EntrySchema.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/Implementation.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/InterfaceAssignment.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/InterfaceDefinition.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/NodeTemplate.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/NodeType.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/OperationAssignment.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/OperationDefinition.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/PropertyDefinition.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/RelationshipTemplate.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/RequirementAssignment.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/RequirementDefinition.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ResourceAssignment.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ServiceTemplate.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/TopologyTemplate.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/Workflow.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/dict/ResourceDefinition.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/dict/SourcesDefinition.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/dict/SourcesProperties.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml [new file with mode: 0644]

diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ArtifactDefinition.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ArtifactDefinition.java
new file mode 100644 (file)
index 0000000..7fcd790
--- /dev/null
@@ -0,0 +1,105 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+/**\r
+ * ArtifactDefinition.java Purpose: Provide ArtifactDefinition TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class ArtifactDefinition {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String type;\r
+    private String file;\r
+    private String repository;\r
+    private String description;\r
+    @JsonProperty("deploy_Path")\r
+    private String deployPath;\r
+    // Used for Template Type\r
+    private String content;\r
+    private String mappingContent;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public String getFile() {\r
+        return file;\r
+    }\r
+\r
+    public void setFile(String file) {\r
+        this.file = file;\r
+    }\r
+\r
+    public String getRepository() {\r
+        return repository;\r
+    }\r
+\r
+    public void setRepository(String repository) {\r
+        this.repository = repository;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public String getDeployPath() {\r
+        return deployPath;\r
+    }\r
+\r
+    public void setDeployPath(String deployPath) {\r
+        this.deployPath = deployPath;\r
+    }\r
+\r
+    public String getContent() {\r
+        return content;\r
+    }\r
+\r
+    public void setContent(String content) {\r
+        this.content = content;\r
+    }\r
+\r
+    public String getMappingContent() {\r
+        return mappingContent;\r
+    }\r
+\r
+    public void setMappingContent(String mappingContent) {\r
+        this.mappingContent = mappingContent;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ArtifactType.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ArtifactType.java
new file mode 100644 (file)
index 0000000..b651b54
--- /dev/null
@@ -0,0 +1,102 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.List;\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+public class ArtifactType {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String description;\r
+    private String version;\r
+    private Map<String, String> metadata;\r
+    @JsonProperty("derived_from")\r
+    private String derivedFrom;\r
+    private Map<String, PropertyDefinition> properties;\r
+    @JsonProperty("mime_type")\r
+    private String mimeType;\r
+    @JsonProperty("file_ext")\r
+    private List<String> fileExt;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public String getVersion() {\r
+        return version;\r
+    }\r
+\r
+    public void setVersion(String version) {\r
+        this.version = version;\r
+    }\r
+\r
+    public Map<String, String> getMetadata() {\r
+        return metadata;\r
+    }\r
+\r
+    public void setMetadata(Map<String, String> metadata) {\r
+        this.metadata = metadata;\r
+    }\r
+\r
+    public String getDerivedFrom() {\r
+        return derivedFrom;\r
+    }\r
+\r
+    public void setDerivedFrom(String derivedFrom) {\r
+        this.derivedFrom = derivedFrom;\r
+    }\r
+\r
+    public Map<String, PropertyDefinition> getProperties() {\r
+        return properties;\r
+    }\r
+\r
+    public void setProperties(Map<String, PropertyDefinition> properties) {\r
+        this.properties = properties;\r
+    }\r
+\r
+    public String getMimeType() {\r
+        return mimeType;\r
+    }\r
+\r
+    public void setMimeType(String mimeType) {\r
+        this.mimeType = mimeType;\r
+    }\r
+\r
+    public List<String> getFileExt() {\r
+        return fileExt;\r
+    }\r
+\r
+    public void setFileExt(List<String> fileExt) {\r
+        this.fileExt = fileExt;\r
+    }\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/CapabilityAssignment.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/CapabilityAssignment.java
new file mode 100644 (file)
index 0000000..45c79fb
--- /dev/null
@@ -0,0 +1,49 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * CapabilityAssignment.java Purpose: Provide CapabilityAssignment TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class CapabilityAssignment {\r
+    @JsonIgnore\r
+    private String id;\r
+    private Map<String, Object> properties;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public Map<String, Object> getProperties() {\r
+        return properties;\r
+    }\r
+\r
+    public void setProperties(Map<String, Object> properties) {\r
+        this.properties = properties;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/CapabilityDefinition.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/CapabilityDefinition.java
new file mode 100644 (file)
index 0000000..b64fa5e
--- /dev/null
@@ -0,0 +1,88 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.List;\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+/**\r
+ * CapabilityDefinition.java Purpose: Provide CapabilityDefinition TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class CapabilityDefinition {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String type;\r
+    private String description;\r
+    private Map<String, PropertyDefinition> properties;\r
+    @JsonProperty("valid_source_types")\r
+    private List<String> validSourceTypes;\r
+    private List<Object> occurrences;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public Map<String, PropertyDefinition> getProperties() {\r
+        return properties;\r
+    }\r
+\r
+    public void setProperties(Map<String, PropertyDefinition> properties) {\r
+        this.properties = properties;\r
+    }\r
+\r
+    public List<String> getValidSourceTypes() {\r
+        return validSourceTypes;\r
+    }\r
+\r
+    public void setValidSourceTypes(List<String> validSourceTypes) {\r
+        this.validSourceTypes = validSourceTypes;\r
+    }\r
+\r
+    public List<Object> getOccurrences() {\r
+        return occurrences;\r
+    }\r
+\r
+    public void setOccurrences(List<Object> occurrences) {\r
+        this.occurrences = occurrences;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ConstraintClause.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ConstraintClause.java
new file mode 100644 (file)
index 0000000..12842b5
--- /dev/null
@@ -0,0 +1,150 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.List;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+/**\r
+ * ConstraintClause.java Purpose: 3.5.2 Constraint clause.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class ConstraintClause {\r
+    @JsonProperty("equal")\r
+    private Object equal;\r
+\r
+    @JsonProperty("greater_than")\r
+    private Object greaterThan;\r
+\r
+    @JsonProperty("greater_or_equal")\r
+    private Object greaterOrEqual;\r
+\r
+    @JsonProperty("less_than")\r
+    private Object lessThan;\r
+\r
+    @JsonProperty("less_or_equal")\r
+    private Object lessOrEqual;\r
+\r
+    @JsonProperty("in_range")\r
+    private Object inRange;\r
+\r
+    @JsonProperty("valid_values")\r
+    private List<Object> validValues;\r
+\r
+    @JsonProperty("length")\r
+    private Object length;\r
+\r
+    @JsonProperty("min_length")\r
+    private Object minLength;\r
+\r
+    @JsonProperty("max_length")\r
+    private Object maxLength;\r
+\r
+    @JsonProperty("pattern")\r
+    private String pattern;\r
+\r
+    public Object getEqual() {\r
+        return equal;\r
+    }\r
+\r
+    public void setEqual(Object equal) {\r
+        this.equal = equal;\r
+    }\r
+\r
+    public Object getGreaterThan() {\r
+        return greaterThan;\r
+    }\r
+\r
+    public void setGreaterThan(Object greaterThan) {\r
+        this.greaterThan = greaterThan;\r
+    }\r
+\r
+    public Object getGreaterOrEqual() {\r
+        return greaterOrEqual;\r
+    }\r
+\r
+    public void setGreaterOrEqual(Object greaterOrEqual) {\r
+        this.greaterOrEqual = greaterOrEqual;\r
+    }\r
+\r
+    public Object getLessThan() {\r
+        return lessThan;\r
+    }\r
+\r
+    public void setLessThan(Object lessThan) {\r
+        this.lessThan = lessThan;\r
+    }\r
+\r
+    public Object getLessOrEqual() {\r
+        return lessOrEqual;\r
+    }\r
+\r
+    public void setLessOrEqual(Object lessOrEqual) {\r
+        this.lessOrEqual = lessOrEqual;\r
+    }\r
+\r
+    public Object getInRange() {\r
+        return inRange;\r
+    }\r
+\r
+    public void setInRange(Object inRange) {\r
+        this.inRange = inRange;\r
+    }\r
+\r
+    public List<Object> getValidValues() {\r
+        return validValues;\r
+    }\r
+\r
+    public void setValidValues(List<Object> validValues) {\r
+        this.validValues = validValues;\r
+    }\r
+\r
+    public Object getLength() {\r
+        return length;\r
+    }\r
+\r
+    public void setLength(Object length) {\r
+        this.length = length;\r
+    }\r
+\r
+    public Object getMinLength() {\r
+        return minLength;\r
+    }\r
+\r
+    public void setMinLength(Object minLength) {\r
+        this.minLength = minLength;\r
+    }\r
+\r
+    public Object getMaxLength() {\r
+        return maxLength;\r
+    }\r
+\r
+    public void setMaxLength(Object maxLength) {\r
+        this.maxLength = maxLength;\r
+    }\r
+\r
+    public String getPattern() {\r
+        return pattern;\r
+    }\r
+\r
+    public void setPattern(String pattern) {\r
+        this.pattern = pattern;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/DataType.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/DataType.java
new file mode 100644 (file)
index 0000000..2a3bfa8
--- /dev/null
@@ -0,0 +1,88 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.List;\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+/**\r
+ * DataType.java Purpose: Provide DataType TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class DataType {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String version;\r
+    private String description;\r
+    @JsonProperty("derived_from")\r
+    private String derivedFrom;\r
+    private List<Map<String, Object>> constraints;\r
+    private Map<String, PropertyDefinition> properties;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getVersion() {\r
+        return version;\r
+    }\r
+\r
+    public void setVersion(String version) {\r
+        this.version = version;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public String getDerivedFrom() {\r
+        return derivedFrom;\r
+    }\r
+\r
+    public void setDerivedFrom(String derivedFrom) {\r
+        this.derivedFrom = derivedFrom;\r
+    }\r
+\r
+    public List<Map<String, Object>> getConstraints() {\r
+        return constraints;\r
+    }\r
+\r
+    public void setConstraints(List<Map<String, Object>> constraints) {\r
+        this.constraints = constraints;\r
+    }\r
+\r
+    public Map<String, PropertyDefinition> getProperties() {\r
+        return properties;\r
+    }\r
+\r
+    public void setProperties(Map<String, PropertyDefinition> properties) {\r
+        this.properties = properties;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/EntrySchema.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/EntrySchema.java
new file mode 100644 (file)
index 0000000..b98cfd3
--- /dev/null
@@ -0,0 +1,36 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+/**\r
+ * EntrySchema.java Purpose: Provide EntrySchema TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class EntrySchema {\r
+    private String type;\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/Implementation.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/Implementation.java
new file mode 100644 (file)
index 0000000..016a8cf
--- /dev/null
@@ -0,0 +1,49 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.List;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * Implementation.java Purpose: Provide Operation Implementation TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class Implementation {\r
+    @JsonIgnore\r
+    private String primary;\r
+    private List<String> dependencies;\r
+\r
+    public String getPrimary() {\r
+        return primary;\r
+    }\r
+\r
+    public void setPrimary(String primary) {\r
+        this.primary = primary;\r
+    }\r
+\r
+    public List<String> getDependencies() {\r
+        return dependencies;\r
+    }\r
+\r
+    public void setDependencies(List<String> dependencies) {\r
+        this.dependencies = dependencies;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/InterfaceAssignment.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/InterfaceAssignment.java
new file mode 100644 (file)
index 0000000..fc7f56f
--- /dev/null
@@ -0,0 +1,58 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * InterfaceAssignment.java Purpose: Provide InterfaceAssignment TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class InterfaceAssignment {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String type;\r
+    private Map<String, OperationAssignment> operations;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public Map<String, OperationAssignment> getOperations() {\r
+        return operations;\r
+    }\r
+\r
+    public void setOperations(Map<String, OperationAssignment> operations) {\r
+        this.operations = operations;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/InterfaceDefinition.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/InterfaceDefinition.java
new file mode 100644 (file)
index 0000000..d3cbbd5
--- /dev/null
@@ -0,0 +1,58 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * InterfaceAssignment.java Purpose: Provide InterfaceAssignment TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class InterfaceDefinition {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String type;\r
+    private Map<String, OperationDefinition> operations;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public Map<String, OperationDefinition> getOperations() {\r
+        return operations;\r
+    }\r
+\r
+    public void setOperations(Map<String, OperationDefinition> operations) {\r
+        this.operations = operations;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/NodeTemplate.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/NodeTemplate.java
new file mode 100644 (file)
index 0000000..489a89b
--- /dev/null
@@ -0,0 +1,112 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * NodeTemplate.java Purpose: Provide NodeTemplate TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class NodeTemplate {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String description;\r
+    private String type;\r
+    private Map<String, String> metadata;\r
+    private Map<String, Object> properties;\r
+    private Map<String, InterfaceAssignment> interfaces;\r
+    private Map<String, ArtifactDefinition> artifacts;\r
+    private Map<String, CapabilityAssignment> capabilities;\r
+    private Map<String, RequirementAssignment> requirements;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public Map<String, String> getMetadata() {\r
+        return metadata;\r
+    }\r
+\r
+    public void setMetadata(Map<String, String> metadata) {\r
+        this.metadata = metadata;\r
+    }\r
+\r
+    public Map<String, Object> getProperties() {\r
+        return properties;\r
+    }\r
+\r
+    public void setProperties(Map<String, Object> properties) {\r
+        this.properties = properties;\r
+    }\r
+\r
+    public Map<String, InterfaceAssignment> getInterfaces() {\r
+        return interfaces;\r
+    }\r
+\r
+    public void setInterfaces(Map<String, InterfaceAssignment> interfaces) {\r
+        this.interfaces = interfaces;\r
+    }\r
+\r
+    public Map<String, ArtifactDefinition> getArtifacts() {\r
+        return artifacts;\r
+    }\r
+\r
+    public void setArtifacts(Map<String, ArtifactDefinition> artifacts) {\r
+        this.artifacts = artifacts;\r
+    }\r
+\r
+    public Map<String, CapabilityAssignment> getCapabilities() {\r
+        return capabilities;\r
+    }\r
+\r
+    public void setCapabilities(Map<String, CapabilityAssignment> capabilities) {\r
+        this.capabilities = capabilities;\r
+    }\r
+\r
+    public Map<String, RequirementAssignment> getRequirements() {\r
+        return requirements;\r
+    }\r
+\r
+    public void setRequirements(Map<String, RequirementAssignment> requirements) {\r
+        this.requirements = requirements;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/NodeType.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/NodeType.java
new file mode 100644 (file)
index 0000000..5d55846
--- /dev/null
@@ -0,0 +1,114 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+/**\r
+ * NodeType.java Purpose: Provide NodeType TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class NodeType {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String description;\r
+    private String version;\r
+    private Map<String, String> metadata;\r
+    @JsonProperty("derived_from")\r
+    private String derivedFrom;\r
+    private Map<String, PropertyDefinition> properties;\r
+    private Map<String, CapabilityDefinition> capabilities;\r
+    private Map<String, RequirementDefinition> requirements;\r
+    private Map<String, InterfaceDefinition> interfaces;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public String getVersion() {\r
+        return version;\r
+    }\r
+\r
+    public void setVersion(String version) {\r
+        this.version = version;\r
+    }\r
+\r
+    public Map<String, String> getMetadata() {\r
+        return metadata;\r
+    }\r
+\r
+    public void setMetadata(Map<String, String> metadata) {\r
+        this.metadata = metadata;\r
+    }\r
+\r
+    public String getDerivedFrom() {\r
+        return derivedFrom;\r
+    }\r
+\r
+    public void setDerivedFrom(String derivedFrom) {\r
+        this.derivedFrom = derivedFrom;\r
+    }\r
+\r
+    public Map<String, PropertyDefinition> getProperties() {\r
+        return properties;\r
+    }\r
+\r
+    public void setProperties(Map<String, PropertyDefinition> properties) {\r
+        this.properties = properties;\r
+    }\r
+\r
+    public Map<String, CapabilityDefinition> getCapabilities() {\r
+        return capabilities;\r
+    }\r
+\r
+    public void setCapabilities(Map<String, CapabilityDefinition> capabilities) {\r
+        this.capabilities = capabilities;\r
+    }\r
+\r
+    public Map<String, RequirementDefinition> getRequirements() {\r
+        return requirements;\r
+    }\r
+\r
+    public void setRequirements(Map<String, RequirementDefinition> requirements) {\r
+        this.requirements = requirements;\r
+    }\r
+\r
+    public Map<String, InterfaceDefinition> getInterfaces() {\r
+        return interfaces;\r
+    }\r
+\r
+    public void setInterfaces(Map<String, InterfaceDefinition> interfaces) {\r
+        this.interfaces = interfaces;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/OperationAssignment.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/OperationAssignment.java
new file mode 100644 (file)
index 0000000..8df81f5
--- /dev/null
@@ -0,0 +1,76 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * OperationAssignment.java Purpose: Provide OperationAssignment TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class OperationAssignment {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String description;\r
+    private String implementation;\r
+    private Map<String, Object> inputs;\r
+    private Map<String, Object> outputs;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public String getImplementation() {\r
+        return implementation;\r
+    }\r
+\r
+    public void setImplementation(String implementation) {\r
+        this.implementation = implementation;\r
+    }\r
+\r
+    public Map<String, Object> getInputs() {\r
+        return inputs;\r
+    }\r
+\r
+    public void setInputs(Map<String, Object> inputs) {\r
+        this.inputs = inputs;\r
+    }\r
+\r
+    public Map<String, Object> getOutputs() {\r
+        return outputs;\r
+    }\r
+\r
+    public void setOutputs(Map<String, Object> outputs) {\r
+        this.outputs = outputs;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/OperationDefinition.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/OperationDefinition.java
new file mode 100644 (file)
index 0000000..9a1d3dd
--- /dev/null
@@ -0,0 +1,76 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * OperationDefinition.java Purpose: Provide OperationDefinition TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class OperationDefinition {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String description;\r
+    private Implementation implementation;\r
+    private Map<String, PropertyDefinition> inputs;\r
+    private Map<String, PropertyDefinition> outputs;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public Implementation getImplementation() {\r
+        return implementation;\r
+    }\r
+\r
+    public void setImplementation(Implementation implementation) {\r
+        this.implementation = implementation;\r
+    }\r
+\r
+    public Map<String, PropertyDefinition> getInputs() {\r
+        return inputs;\r
+    }\r
+\r
+    public void setInputs(Map<String, PropertyDefinition> inputs) {\r
+        this.inputs = inputs;\r
+    }\r
+\r
+    public Map<String, PropertyDefinition> getOutputs() {\r
+        return outputs;\r
+    }\r
+\r
+    public void setOutputs(Map<String, PropertyDefinition> outputs) {\r
+        this.outputs = outputs;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/PropertyDefinition.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/PropertyDefinition.java
new file mode 100644 (file)
index 0000000..b4a3a8f
--- /dev/null
@@ -0,0 +1,125 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.HashMap;\r
+import java.util.List;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+/**\r
+ * PropertyDefinition.java Purpose: Provide PropertyDefinition TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class PropertyDefinition {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String description;\r
+    private Boolean required;\r
+    private String type;\r
+    @JsonProperty("default")\r
+    private Object defaultValue;\r
+    private String status;\r
+    private List<HashMap<String, Object>> constraints;\r
+    @JsonProperty("entry_schema")\r
+    private EntrySchema entrySchema;\r
+    private Object value;\r
+\r
+    @Override\r
+    public String toString() {\r
+        StringBuilder builder = new StringBuilder("[");\r
+        builder.append(" type :" + getType());\r
+        builder.append(", value :" + getValue());\r
+        builder.append("]");\r
+        return builder.toString();\r
+    }\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public Boolean getRequired() {\r
+        return required;\r
+    }\r
+\r
+    public void setRequired(Boolean required) {\r
+        this.required = required;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public Object getDefaultValue() {\r
+        return defaultValue;\r
+    }\r
+\r
+    public void setDefaultValue(Object defaultValue) {\r
+        this.defaultValue = defaultValue;\r
+    }\r
+\r
+    public String getStatus() {\r
+        return status;\r
+    }\r
+\r
+    public void setStatus(String status) {\r
+        this.status = status;\r
+    }\r
+\r
+    public List<HashMap<String, Object>> getConstraints() {\r
+        return constraints;\r
+    }\r
+\r
+    public void setConstraints(List<HashMap<String, Object>> constraints) {\r
+        this.constraints = constraints;\r
+    }\r
+\r
+    public EntrySchema getEntrySchema() {\r
+        return entrySchema;\r
+    }\r
+\r
+    public void setEntrySchema(EntrySchema entrySchema) {\r
+        this.entrySchema = entrySchema;\r
+    }\r
+\r
+    public Object getValue() {\r
+        return value;\r
+    }\r
+\r
+    public void setValue(Object value) {\r
+        this.value = value;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/RelationshipTemplate.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/RelationshipTemplate.java
new file mode 100644 (file)
index 0000000..b0de587
--- /dev/null
@@ -0,0 +1,56 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+\r
+/**\r
+ * RelationshipTemplate.java Purpose: Provide RelationshipTemplate TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class RelationshipTemplate {\r
+    private String description;\r
+    private String type;\r
+    private Map<String, PropertyDefinition> properties;\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public Map<String, PropertyDefinition> getProperties() {\r
+        return properties;\r
+    }\r
+\r
+    public void setProperties(Map<String, PropertyDefinition> properties) {\r
+        this.properties = properties;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/RequirementAssignment.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/RequirementAssignment.java
new file mode 100644 (file)
index 0000000..b6d35d6
--- /dev/null
@@ -0,0 +1,67 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * RequirementAssignment.java Purpose: Provide RequirementAssignment TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class RequirementAssignment {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String capability;\r
+    private String node;\r
+    // Relationship Type or Relationship Template\r
+    private String relationship;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getCapability() {\r
+        return capability;\r
+    }\r
+\r
+    public void setCapability(String capability) {\r
+        this.capability = capability;\r
+    }\r
+\r
+    public String getNode() {\r
+        return node;\r
+    }\r
+\r
+    public void setNode(String node) {\r
+        this.node = node;\r
+    }\r
+\r
+    public String getRelationship() {\r
+        return relationship;\r
+    }\r
+\r
+    public void setRelationship(String relationship) {\r
+        this.relationship = relationship;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/RequirementDefinition.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/RequirementDefinition.java
new file mode 100644 (file)
index 0000000..68b2c41
--- /dev/null
@@ -0,0 +1,85 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.List;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * RequirementDefinition.java Purpose: Provide RequirementDefinition TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class RequirementDefinition {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String description;\r
+    private String capability;\r
+    private String node;\r
+    private String relationship;\r
+    private List<Object> occurrences;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public String getCapability() {\r
+        return capability;\r
+    }\r
+\r
+    public void setCapability(String capability) {\r
+        this.capability = capability;\r
+    }\r
+\r
+    public String getNode() {\r
+        return node;\r
+    }\r
+\r
+    public void setNode(String node) {\r
+        this.node = node;\r
+    }\r
+\r
+    public String getRelationship() {\r
+        return relationship;\r
+    }\r
+\r
+    public void setRelationship(String relationship) {\r
+        this.relationship = relationship;\r
+    }\r
+\r
+    public List<Object> getOccurrences() {\r
+        return occurrences;\r
+    }\r
+\r
+    public void setOccurrences(List<Object> occurrences) {\r
+        this.occurrences = occurrences;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ResourceAssignment.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ResourceAssignment.java
new file mode 100644 (file)
index 0000000..b84f6e3
--- /dev/null
@@ -0,0 +1,165 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Date;\r
+import java.util.List;\r
+import com.fasterxml.jackson.annotation.JsonFormat;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+/**\r
+ * ResourceAssignment.java Purpose: Provide ResourceAssignment Custom TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class ResourceAssignment {\r
+\r
+    private String name;\r
+\r
+    @JsonProperty("property")\r
+    private PropertyDefinition property;\r
+\r
+    @JsonProperty("input-param")\r
+    private Boolean inputParameter;\r
+\r
+    @JsonProperty("dictionary-name")\r
+    private String dictionaryName;\r
+\r
+    @JsonProperty("dictionary-source")\r
+    private String dictionarySource;\r
+\r
+    @JsonProperty("dependencies")\r
+    private List<String> dependencies;\r
+\r
+    @JsonProperty("version")\r
+    private int version;\r
+\r
+    @JsonProperty("status")\r
+    private String status;\r
+\r
+    @JsonProperty("message")\r
+    private String message;\r
+\r
+    @JsonProperty("updated-date")\r
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy hh:mm:ss")\r
+    private Date updatedDate;\r
+\r
+    @JsonProperty("updated-by")\r
+    private String updatedBy;\r
+\r
+    @Override\r
+    public String toString() {\r
+        StringBuilder builder = new StringBuilder("[");\r
+        builder.append("name = " + name);\r
+        builder.append(", source = " + dictionarySource);\r
+        if (dependencies != null) {\r
+            builder.append(", dependencies = " + dependencies);\r
+        }\r
+        builder.append("]");\r
+        return builder.toString();\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public PropertyDefinition getProperty() {\r
+        return property;\r
+    }\r
+\r
+    public void setProperty(PropertyDefinition property) {\r
+        this.property = property;\r
+    }\r
+\r
+    public Boolean getInputParameter() {\r
+        return inputParameter;\r
+    }\r
+\r
+    public void setInputParameter(Boolean inputParameter) {\r
+        this.inputParameter = inputParameter;\r
+    }\r
+\r
+    public String getDictionaryName() {\r
+        return dictionaryName;\r
+    }\r
+\r
+    public void setDictionaryName(String dictionaryName) {\r
+        this.dictionaryName = dictionaryName;\r
+    }\r
+\r
+    public String getDictionarySource() {\r
+        return dictionarySource;\r
+    }\r
+\r
+    public void setDictionarySource(String dictionarySource) {\r
+        this.dictionarySource = dictionarySource;\r
+    }\r
+\r
+    public List<String> getDependencies() {\r
+        return dependencies;\r
+    }\r
+\r
+    public void setDependencies(List<String> dependencies) {\r
+        this.dependencies = dependencies;\r
+    }\r
+\r
+    public int getVersion() {\r
+        return version;\r
+    }\r
+\r
+    public void setVersion(int version) {\r
+        this.version = version;\r
+    }\r
+\r
+    public String getStatus() {\r
+        return status;\r
+    }\r
+\r
+    public void setStatus(String status) {\r
+        this.status = status;\r
+    }\r
+\r
+    public String getMessage() {\r
+        return message;\r
+    }\r
+\r
+    public void setMessage(String message) {\r
+        this.message = message;\r
+    }\r
+\r
+    public Date getUpdatedDate() {\r
+        return updatedDate;\r
+    }\r
+\r
+    public void setUpdatedDate(Date updatedDate) {\r
+        this.updatedDate = updatedDate;\r
+    }\r
+\r
+    public String getUpdatedBy() {\r
+        return updatedBy;\r
+    }\r
+\r
+    public void setUpdatedBy(String updatedBy) {\r
+        this.updatedBy = updatedBy;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ServiceTemplate.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/ServiceTemplate.java
new file mode 100644 (file)
index 0000000..ea9efa1
--- /dev/null
@@ -0,0 +1,118 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+/**\r
+ * ServiceTemplate.java Purpose: Provide ServiceTemplate TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class ServiceTemplate {\r
+    @JsonIgnore\r
+    private String id;\r
+    @JsonProperty("tosca_definitions_version")\r
+    private String toscaDefinitionsVersion;\r
+    private Map<String, String> metadata;\r
+    private String description;\r
+    @JsonProperty("dsl_definitions")\r
+    private Map<String, Object> dslDefinitions;\r
+    @JsonProperty("topology_template")\r
+    private TopologyTemplate topologyTemplate;\r
+    @JsonProperty("artifact_types")\r
+    private Map<String, ArtifactType> artifactTypes;\r
+    @JsonProperty("node_types")\r
+    private Map<String, NodeType> nodeTypes;\r
+    @JsonProperty("data_types")\r
+    private Map<String, DataType> dataTypes;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getToscaDefinitionsVersion() {\r
+        return toscaDefinitionsVersion;\r
+    }\r
+\r
+    public void setToscaDefinitionsVersion(String toscaDefinitionsVersion) {\r
+        this.toscaDefinitionsVersion = toscaDefinitionsVersion;\r
+    }\r
+\r
+    public Map<String, String> getMetadata() {\r
+        return metadata;\r
+    }\r
+\r
+    public void setMetadata(Map<String, String> metadata) {\r
+        this.metadata = metadata;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public Map<String, Object> getDslDefinitions() {\r
+        return dslDefinitions;\r
+    }\r
+\r
+    public void setDslDefinitions(Map<String, Object> dslDefinitions) {\r
+        this.dslDefinitions = dslDefinitions;\r
+    }\r
+\r
+    public TopologyTemplate getTopologyTemplate() {\r
+        return topologyTemplate;\r
+    }\r
+\r
+    public void setTopologyTemplate(TopologyTemplate topologyTemplate) {\r
+        this.topologyTemplate = topologyTemplate;\r
+    }\r
+\r
+    public Map<String, NodeType> getNodeTypes() {\r
+        return nodeTypes;\r
+    }\r
+\r
+    public void setNodeTypes(Map<String, NodeType> nodeTypes) {\r
+        this.nodeTypes = nodeTypes;\r
+    }\r
+\r
+    public Map<String, DataType> getDataTypes() {\r
+        return dataTypes;\r
+    }\r
+\r
+    public void setDataTypes(Map<String, DataType> dataTypes) {\r
+        this.dataTypes = dataTypes;\r
+    }\r
+\r
+    public Map<String, ArtifactType> getArtifactTypes() {\r
+        return artifactTypes;\r
+    }\r
+\r
+    public void setArtifactTypes(Map<String, ArtifactType> artifactTypes) {\r
+        this.artifactTypes = artifactTypes;\r
+    }\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/TopologyTemplate.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/TopologyTemplate.java
new file mode 100644 (file)
index 0000000..5e775f1
--- /dev/null
@@ -0,0 +1,97 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+/**\r
+ * TopologyTemplate.java Purpose: Provide TopologyTemplate TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class TopologyTemplate {\r
+    @JsonIgnore\r
+    private String id;\r
+    private String description;\r
+    private Map<String, PropertyDefinition> inputs;\r
+    @JsonProperty("node_templates")\r
+    private Map<String, NodeTemplate> nodeTemplates;\r
+    @JsonProperty("relationship_templates")\r
+    private Map<String, RelationshipTemplate> relationshipTemplates;\r
+    private Map<String, CapabilityAssignment> capabilities;\r
+    private Map<String, Workflow> workflows;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getDescription() {\r
+        return description;\r
+    }\r
+\r
+    public void setDescription(String description) {\r
+        this.description = description;\r
+    }\r
+\r
+    public Map<String, PropertyDefinition> getInputs() {\r
+        return inputs;\r
+    }\r
+\r
+    public void setInputs(Map<String, PropertyDefinition> inputs) {\r
+        this.inputs = inputs;\r
+    }\r
+\r
+    public Map<String, NodeTemplate> getNodeTemplates() {\r
+        return nodeTemplates;\r
+    }\r
+\r
+    public void setNodeTemplates(Map<String, NodeTemplate> nodeTemplates) {\r
+        this.nodeTemplates = nodeTemplates;\r
+    }\r
+\r
+    public Map<String, RelationshipTemplate> getRelationshipTemplates() {\r
+        return relationshipTemplates;\r
+    }\r
+\r
+    public void setRelationshipTemplates(Map<String, RelationshipTemplate> relationshipTemplates) {\r
+        this.relationshipTemplates = relationshipTemplates;\r
+    }\r
+\r
+    public Map<String, CapabilityAssignment> getCapabilities() {\r
+        return capabilities;\r
+    }\r
+\r
+    public void setCapabilities(Map<String, CapabilityAssignment> capabilities) {\r
+        this.capabilities = capabilities;\r
+    }\r
+\r
+    public Map<String, Workflow> getWorkflows() {\r
+        return workflows;\r
+    }\r
+\r
+    public void setWorkflows(Map<String, Workflow> workflows) {\r
+        this.workflows = workflows;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/Workflow.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/Workflow.java
new file mode 100644 (file)
index 0000000..733743c
--- /dev/null
@@ -0,0 +1,39 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data;\r
+\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+\r
+/**\r
+ * Workflow.java Purpose: Provide Workflow TOSCO Model POJO bean.\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class Workflow {\r
+    @JsonIgnore\r
+    private String id;\r
+\r
+    public String getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(String id) {\r
+        this.id = id;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/dict/ResourceDefinition.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/dict/ResourceDefinition.java
new file mode 100644 (file)
index 0000000..e374aeb
--- /dev/null
@@ -0,0 +1,103 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data.dict;\r
+\r
+import java.util.Map;\r
+import org.onap.ccsdk.config.model.data.PropertyDefinition;\r
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+@JsonIgnoreProperties(ignoreUnknown = true)\r
+public class ResourceDefinition {\r
+    private String tags;\r
+\r
+    @JsonProperty(value = "name", required = true)\r
+    private String name;\r
+\r
+    @JsonProperty(value = "property")\r
+    private PropertyDefinition property;\r
+\r
+    @JsonProperty(value = "updated-by")\r
+    private String updatedBy;\r
+\r
+    @JsonProperty(value = "resource-type", required = true)\r
+    private String resourceType;\r
+\r
+    @JsonProperty(value = "resource-path", required = true)\r
+    private String resourcePath;\r
+\r
+    @JsonProperty(value = "sources", required = true)\r
+    private Map<String, SourcesDefinition> sourcesDefinition;\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public PropertyDefinition getProperty() {\r
+        return property;\r
+    }\r
+\r
+    public void setProperty(PropertyDefinition property) {\r
+        this.property = property;\r
+    }\r
+\r
+    public String getTags() {\r
+        return tags;\r
+    }\r
+\r
+    public void setTags(String tags) {\r
+        this.tags = tags;\r
+    }\r
+\r
+    public String getUpdatedBy() {\r
+        return updatedBy;\r
+    }\r
+\r
+    public void setUpdatedBy(String updatedBy) {\r
+        this.updatedBy = updatedBy;\r
+    }\r
+\r
+    public String getResourceType() {\r
+        return resourceType;\r
+    }\r
+\r
+    public void setResourceType(String resourceType) {\r
+        this.resourceType = resourceType;\r
+    }\r
+\r
+    public String getResourcePath() {\r
+        return resourcePath;\r
+    }\r
+\r
+    public void setResourcePath(String resourcePath) {\r
+        this.resourcePath = resourcePath;\r
+    }\r
+\r
+    public Map<String, SourcesDefinition> getSources() {\r
+        return sourcesDefinition;\r
+    }\r
+\r
+    public void setSources(Map<String, SourcesDefinition> sourcesDefinition) {\r
+        this.sourcesDefinition = sourcesDefinition;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/dict/SourcesDefinition.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/dict/SourcesDefinition.java
new file mode 100644 (file)
index 0000000..6b9fc0a
--- /dev/null
@@ -0,0 +1,46 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data.dict;\r
+\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+public class SourcesDefinition {\r
+\r
+    @JsonProperty(value = "type", required = true)\r
+    private String type;\r
+\r
+    @JsonProperty(value = "properties", required = true)\r
+    private SourcesProperties properties;\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public SourcesProperties getProperties() {\r
+        return properties;\r
+    }\r
+\r
+    public void setProperties(SourcesProperties properties) {\r
+        this.properties = properties;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/dict/SourcesProperties.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/dict/SourcesProperties.java
new file mode 100644 (file)
index 0000000..5817631
--- /dev/null
@@ -0,0 +1,135 @@
+/*\r
+ * Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.ccsdk.config.model.data.dict;\r
+\r
+import java.util.List;\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+public class SourcesProperties {\r
+\r
+    private String key;\r
+\r
+    @JsonProperty(value = "name")\r
+    private String name;\r
+\r
+    @JsonProperty(value = "base")\r
+    private String base;\r
+\r
+    @JsonProperty(value = "type")\r
+    private String type;\r
+\r
+    @JsonProperty(value = "query")\r
+    private String query;\r
+\r
+    @JsonProperty(value = "url-path")\r
+    private String urlPath;\r
+\r
+    @JsonProperty(value = "path")\r
+    private String path;\r
+\r
+    @JsonProperty("input-key-mapping")\r
+    private Map<String, String> inputKeyMapping;\r
+\r
+    @JsonProperty("output-key-mapping")\r
+    private Map<String, String> outputKeyMapping;\r
+\r
+    @JsonProperty("key-dependencies")\r
+    private List<String> dependencies;\r
+\r
+    public String getKey() {\r
+        return key;\r
+    }\r
+\r
+    public void setKey(String key) {\r
+        this.key = key;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public String getBase() {\r
+        return base;\r
+    }\r
+\r
+    public void setBase(String base) {\r
+        this.base = base;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public String getQuery() {\r
+        return query;\r
+    }\r
+\r
+    public void setQuery(String query) {\r
+        this.query = query;\r
+    }\r
+\r
+    public String getUrlPath() {\r
+        return urlPath;\r
+    }\r
+\r
+    public void setUrlPath(String urlPath) {\r
+        this.urlPath = urlPath;\r
+    }\r
+\r
+    public String getPath() {\r
+        return path;\r
+    }\r
+\r
+    public void setPath(String path) {\r
+        this.path = path;\r
+    }\r
+\r
+    public Map<String, String> getInputKeyMapping() {\r
+        return inputKeyMapping;\r
+    }\r
+\r
+    public void setInputKeyMapping(Map<String, String> inputKeyMapping) {\r
+        this.inputKeyMapping = inputKeyMapping;\r
+    }\r
+\r
+    public Map<String, String> getOutputKeyMapping() {\r
+        return outputKeyMapping;\r
+    }\r
+\r
+    public void setOutputKeyMapping(Map<String, String> outputKeyMapping) {\r
+        this.outputKeyMapping = outputKeyMapping;\r
+    }\r
+\r
+    public List<String> getDependencies() {\r
+        return dependencies;\r
+    }\r
+\r
+    public void setDependencies(List<String> dependencies) {\r
+        this.dependencies = dependencies;\r
+    }\r
+\r
+}\r
diff --git a/blueprints-processor/plugin/model-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml b/blueprints-processor/plugin/model-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml
new file mode 100644 (file)
index 0000000..2bfab86
--- /dev/null
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+  Copyright © 2017-2018 AT&T Intellectual Property.\r
+  Modifications Copyright © 2018 IBM.\r
+  \r
+  Licensed under the Apache License, Version 2.0 (the "License");\r
+  you may not use this file except in compliance with the License.\r
+  You may obtain a copy of the License at\r
+  \r
+      http://www.apache.org/licenses/LICENSE-2.0\r
+  \r
+  Unless required by applicable law or agreed to in writing, software\r
+  distributed under the License is distributed on an "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+  See the License for the specific language governing permissions and\r
+  limitations under the License.\r
+-->\r
+\r
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"\r
+       xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"\r
+       odl:use-default-for-reference-types="true">\r
+\r
+       <!-- Dependency -->\r
+\r
+       <reference id="configResourceService"\r
+               interface="org.onap.ccsdk.config.data.adaptor.service.ConfigResourceService" />\r
+\r
+       <reference id="configRestAdaptorService"\r
+               interface="org.onap.ccsdk.config.rest.adaptor.service.ConfigRestAdaptorService" />\r
+\r
+       <!-- Expose the Common Component Bean -->\r
+       <bean id="configModelNode"\r
+               class="org.onap.ccsdk.config.model.service.ConfigModelNode">\r
+       </bean>\r
+\r
+       <service ref="configModelNode"\r
+               interface="org.onap.ccsdk.config.model.service.ConfigModelNode" />\r
+\r
+       <bean id="configModelService"\r
+               class="org.onap.ccsdk.config.model.service.ConfigModelServiceImpl">\r
+               <argument ref="configRestAdaptorService" />\r
+       </bean>\r
+\r
+       <service ref="configModelService"\r
+               interface="org.onap.ccsdk.config.model.service.ConfigModelService" />\r
+\r
+\r
+       <!-- ComponentNode -->\r
+\r
+       <bean id="componentNodeService"\r
+               class="org.onap.ccsdk.config.model.service.ComponentNodeServiceImpl">\r
+               <argument ref="blueprintBundleContext" />\r
+               <argument ref="configResourceService" />\r
+               <argument ref="configRestAdaptorService" />\r
+       </bean>\r
+\r
+       <service ref="componentNodeService"\r
+               interface="org.onap.ccsdk.config.model.service.ComponentNodeService" />\r
+\r
+       <bean id="componentNodeDelegate"\r
+               class="org.onap.ccsdk.config.model.service.ComponentNodeDelegate">\r
+               <argument ref="componentNodeService" />\r
+       </bean>\r
+\r
+       <service ref="componentNodeDelegate"\r
+               interface="org.onap.ccsdk.config.model.service.ComponentNodeDelegate" />\r
+\r
+</blueprint>\r