summaryrefslogtreecommitdiffstats
path: root/blueprints-processor/plugin/model-provider
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2018-09-04 22:18:17 -0400
committerSingal, Kapil (ks220y) <ks220y@att.com>2018-09-04 22:18:17 -0400
commit1ebe1fde1c94bc8c3bdf794465c2244fda38c6b0 (patch)
tree813f9257aa0f7bd8aed4708e45f481e6650eb276 /blueprints-processor/plugin/model-provider
parent915e7b8e2b04a7418561d0e67aecb80d18b9ba1d (diff)
SDN Controller Blueprints Processor Model Beans
Creating SDN Controller Blueprints Processor Model Java Beans to Parse Model - 2 Change-Id: I18881335d37d492e6478ec74d96da0f04b8127e7 Issue-ID: CCSDK-494 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Diffstat (limited to 'blueprints-processor/plugin/model-provider')
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelConstant.java147
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelException.java50
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ValidTypes.java105
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/ActionIdentifiers.java62
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/CommonHeader.java82
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Flags.java40
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Status.java61
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionRequest.java45
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionResponse.java46
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModel.java231
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModelContent.java91
-rw-r--r--blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ResourceDictionary.java162
12 files changed, 1122 insertions, 0 deletions
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelConstant.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelConstant.java
new file mode 100644
index 000000000..a9a3b2546
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelConstant.java
@@ -0,0 +1,147 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model;
+
+public class ConfigModelConstant {
+
+ private ConfigModelConstant() {
+
+ }
+
+ public static final String STATUS_CODE_SUCCESS = "200";
+ public static final String STATUS_CODE_FAILURE = "400";
+
+ public static final String STATUS_SUCCESS = "success";
+ public static final String STATUS_FAILURE = "failure";
+ public static final String STATUS_SKIPPED = "skipped";
+
+ public static final String CONFIG_STATUS_PENDING = "pending";
+ public static final String CONFIG_STATUS_FAILED = "failed";
+ public static final String CONFIG_STATUS_SUCCESS = "success";
+
+ public static final String USER_SYSTEM = "System";
+ public static final String PROTOCOL_NETCONF = "netconf";
+
+ public static final String MODEL_CONTENT_TYPE_TOSCA_JSON = "TOSCA_JSON";
+ public static final String MODEL_CONTENT_TYPE_TOSCA_YAML = "TOSCA_YAML";
+ public static final String MODEL_CONTENT_TYPE_TEMPLATE = "TEMPLATE";
+ public static final String MODEL_CONTENT_TYPE_YANG = "YANG";
+ public static final String MODEL_CONTENT_TYPE_SCHEMA = "SCHEMA";
+
+ public static final String SERVICE_TEMPLATE_KEY_ARTIFACT_AUTHOR = "author";
+ public static final String SERVICE_TEMPLATE_KEY_ARTIFACT_NAME = "service-template-name";
+ public static final String SERVICE_TEMPLATE_KEY_ARTIFACT_VERSION = "service-template-version";
+
+ public static final String MODEL_DEFINITION_TYPE_NODE_TYPE = "node_type";
+ public static final String MODEL_DEFINITION_TYPE_CAPABILITY_TYPE = "capability_type";
+ public static final String MODEL_DEFINITION_TYPE_RELATIONSHIP_TYPE = "relationship_type";
+ public static final String MODEL_DEFINITION_TYPE_DATA_TYPE = "data_type";
+ public static final String MODEL_DEFINITION_TYPE_ARTIFACT_TYPE = "artifact_type";
+
+ public static final String MODEL_TYPE_DATA_TYPE = "tosca.datatypes.Root";
+ public static final String MODEL_TYPE_DATA_TYPE_DYNAMIC = "tosca.datatypes.Dynamic";
+ public static final String MODEL_TYPE_NODE_TYPE = "tosca.nodes.Root";
+
+ public static final String MODEL_TYPE_NODE_DG = "tosca.nodes.DG";
+ public static final String MODEL_TYPE_NODE_COMPONENT = "tosca.nodes.Component";
+ public static final String MODEL_TYPE_NODE_COMPONENT_PYTHON = "tosca.nodes.Component.Python";
+ public static final String MODEL_TYPE_NODE_VNF = "tosca.nodes.Vnf";
+ public static final String MODEL_TYPE_NODE_ARTIFACT = "tosca.nodes.Artifact";
+
+ public static final String MODEL_TYPE_ARTIFACT_TEMPLATE = "tosca.artifact.Template";
+ public static final String MODEL_TYPE_ARTIFACT_LICENCE = "tosca.artifacts.Licence";
+
+ public static final String MODEL_TYPE_RELATIONSHIPS_DEPENDS_ON = "tosca.relationships.DependsOn";
+ public static final String MODEL_TYPE_RELATIONSHIPS_HOSTED_ON = "tosca.relationships.HostedOn";
+ public static final String MODEL_TYPE_RELATIONSHIPS_CONNECTS_TO = "tosca.relationships.ConnectsTo";
+ public static final String MODEL_TYPE_RELATIONSHIPS_ATTACH_TO = "tosca.relationships.AttachesTo";
+ public static final String MODEL_TYPE_RELATIONSHIPS_ROUTES_TO = "tosca.relationships.RoutesTo";
+
+ public static final String NODE_TEMPLATE_TYPE_ARTIFACT_CONFIG_TEMPLATE = "artifact-config-template";
+
+ public static final String CAPABILITY_PROPERTY_MAPPING = "mapping";
+ public static final String CAPABILITY_PROPERTY_CONTENT = "content";
+
+ public static final String SOURCE_INPUT = "input";
+ public static final String SOURCE_DEFAULT = "default";
+ public static final String SOURCE_MDSAL = "mdsal";
+ public static final String SOURCE_DB = "db";
+ public static final String SOURCE_COMPONENT = "component";
+
+ public static final String PROPERTY_STATUS = "status";
+ public static final String PROPERTY_ERROR_CODE = "error-code";
+ public static final String PROPERTY_ERROR_MESSAGE = "error-message";
+
+ public static final String PROPERTY_REQUEST_INPUT = "request-input";
+ public static final String PROPERTY_REQUEST_HEADER = "request-header";
+ public static final String PROPERTY_REQUEST_PAYLOAD = "request-payload";
+
+ public static final String PROPERTY_RESPONSE_PAYLOAD = "response-payload";
+ public static final String PROPERTY_RESPONSE_JSON_NODE = "response-json-node";
+
+ public static final String PROPERTY_PAYLOAD = "payload";
+ public static final String PROPERTY_INPUTS = "inputs";
+ public static final String PROPERTY_ORGINATOR_ID = "originator-id";
+ public static final String PROPERTY_API_VERSION = "api-ver";
+ public static final String PROPERTY_REQUEST_ID = "request-id";
+ public static final String PROPERTY_SUB_REQUEST_ID = "sub-request-id";
+ public static final String PROPERTY_REQUEST = "request";
+ public static final String PROPERTY_RECIPE = "action";
+
+ public static final String PROPERTY_SELECTOR = "prifix";
+ public static final String PROPERTY_NODE_TEMPLATES = "node_templates";
+ public static final String PROPERTY_NODE_TYPES = "node_types";
+ public static final String PROPERTY_DATA_TYPES = "data_types";
+ public static final String PROPERTY_ACTION_NAME = "action-name";
+ public static final String PROPERTY_ACTION_PREFIX = "action-prefix";
+ public static final String PROPERTY_TEMPLATE_NAME = "template-name";
+
+ public static final String PROPERTY_CURRENT_INTERFACE = "current-interface";
+ public static final String PROPERTY_CURRENT_OPERATION = "current-operation";
+ public static final String PROPERTY_CURRENT_IMPLEMENTATION = "current-implementation";
+ public static final String PROPERTY_CURRENT_NODETYPE_DERIVED_FROM = "current-node-type-derived-from";
+ public static final String PROPERTY_CURRENT_RESOURCE_ASSIGNMENT = "current-resource-assignment";
+ public static final String PROPERTY_CURRENT_DICTIONARY_DEFINITION = "current-dictionary-definition";
+ public static final String PROPERTY_RESOURCE_ASSIGNMENTS_DATA = "resource-assignments-data";
+
+ public static final String PROPERTY_RECIPE_NAMES = "action-names";
+ public static final String PROPERTY_DICTIONARIES = "dictionaries";
+ public static final String PROPERTY_RESOURCE_ASSIGNMENTS = "resource-assignments";
+ public static final String PROPERTY_RESOURCE_KEY = "resource-key";
+ public static final String PROPERTY_RESOURCE_NAME = "resource-name";
+ public static final String PROPERTY_RESERVATION_ID = "reservation-id";
+
+ public static final String PROPERTY_NODE_TEMPLATES_DOT = "node_templates.";
+ public static final String PROPERTY_NODE_TYPES_DOT = "node_types.";
+ public static final String PROPERTY_DATA_TYPES_DOT = "data_types.";
+ public static final String PROPERTY_INPUTS_DOT = "inputs.";
+ public static final String PROPERTY_ARTIFACTS_DOT = "artifacts.";
+ public static final String PROPERTY_DICTIONARY_KEY_DOT = "dictionary-key.";
+ public static final String PROPERTY_TEMPLATE_KEY_DOT = "template-key.";
+ public static final String PROPERTY_RECIPE_KEY_DOT = "recipe-key.";
+
+ public static final String PROPERTY_DOT_STATUS = ".status";
+ public static final String PROPERTY_DOT_ERROR_MESSAGE = ".error-message";
+
+ public static final String EXPRESSION_GET_INPUT = "get_input";
+ public static final String EXPRESSION_GET_ATTRIBUTE = "get_attribute";
+ public static final String EXPRESSION_SET_VALUE = "set_value";
+
+ public static final String CONFIG_PROPERTY_MAP_KEY_PREFIX = "org.onap.ccsdk.sli.adaptors.";
+
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelException.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelException.java
new file mode 100644
index 000000000..4936c3b23
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelException.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model;
+
+/**
+ * ConfigGeneratorException.java Purpose: Provide Configuration Generator ConfigGeneratorException
+ *
+ * @version 1.0
+ */
+public class ConfigModelException extends Exception {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * This is a ConfigGeneratorException constructor
+ *
+ * @param message
+ */
+ public ConfigModelException(String message) {
+ super(message);
+ }
+
+ /**
+ * This is a ConfigGeneratorException constructor
+ *
+ * @param message
+ */
+ public ConfigModelException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ValidTypes.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ValidTypes.java
new file mode 100644
index 000000000..6cadcc8a0
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ValidTypes.java
@@ -0,0 +1,105 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * ValidTypes.java Purpose: Provide Configuration Generator ValidTypes
+ *
+ * @version 1.0
+ */
+public class ValidTypes {
+
+ public static final String DATA_TYPE_STRING = "string";
+ public static final String DATA_TYPE_INTEGER = "integer";
+ public static final String DATA_TYPE_FLOAT = "float";
+ public static final String DATA_TYPE_BOOLEAN = "boolean";
+ public static final String DATA_TYPE_TIMESTAMP = "timestamp";
+ public static final String DATA_TYPE_NULL = "null";
+ public static final String DATA_TYPE_LIST = "list";
+ public static final String DATA_TYPE_LONGTEXT = "longtext";
+
+ private ValidTypes() {
+
+ }
+
+ public static List<String> getValidModelTypes() {
+ List<String> validTypes = new ArrayList<>();
+ validTypes.add(ConfigModelConstant.MODEL_DEFINITION_TYPE_DATA_TYPE);
+ validTypes.add(ConfigModelConstant.MODEL_DEFINITION_TYPE_NODE_TYPE);
+ validTypes.add(ConfigModelConstant.MODEL_DEFINITION_TYPE_CAPABILITY_TYPE);
+ validTypes.add(ConfigModelConstant.MODEL_DEFINITION_TYPE_RELATIONSHIP_TYPE);
+ return validTypes;
+ }
+
+ public static List<String> getValidNodeTypes() {
+ List<String> validTypes = new ArrayList<>();
+ validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_DG);
+ validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_COMPONENT);
+ validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_VNF);
+ validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_ARTIFACT);
+ return validTypes;
+ }
+
+ public static List<String> getValidDerivedFrom() {
+ List<String> validTypes = new ArrayList<>();
+ validTypes.add(ConfigModelConstant.MODEL_TYPE_DATA_TYPE_DYNAMIC);
+ validTypes.add(ConfigModelConstant.MODEL_TYPE_DATA_TYPE);
+ validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_TYPE);
+ return validTypes;
+ }
+
+ public static List<String> getValidDataTypeDerivedFrom() {
+ List<String> validTypes = new ArrayList<>();
+ validTypes.add(ConfigModelConstant.MODEL_TYPE_DATA_TYPE_DYNAMIC);
+ validTypes.add(ConfigModelConstant.MODEL_TYPE_DATA_TYPE);
+ return validTypes;
+ }
+
+ public static List<String> getValidPropertType() {
+ List<String> validTypes = new ArrayList<>();
+ validTypes.add(DATA_TYPE_STRING);
+ validTypes.add(DATA_TYPE_INTEGER);
+ validTypes.add(DATA_TYPE_FLOAT);
+ validTypes.add(DATA_TYPE_BOOLEAN);
+ validTypes.add(DATA_TYPE_TIMESTAMP);
+ validTypes.add(DATA_TYPE_NULL);
+ validTypes.add(DATA_TYPE_LIST);
+ return validTypes;
+ }
+
+ public static List<String> getPrimitivePropertType() {
+ List<String> validTypes = new ArrayList<>();
+ validTypes.add(DATA_TYPE_STRING);
+ validTypes.add(DATA_TYPE_INTEGER);
+ validTypes.add(DATA_TYPE_FLOAT);
+ validTypes.add(DATA_TYPE_BOOLEAN);
+ validTypes.add(DATA_TYPE_TIMESTAMP);
+ validTypes.add(DATA_TYPE_NULL);
+ return validTypes;
+ }
+
+ public static List<String> getListPropertType() {
+ List<String> validTypes = new ArrayList<>();
+ validTypes.add(DATA_TYPE_LIST);
+ return validTypes;
+ }
+
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/ActionIdentifiers.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/ActionIdentifiers.java
new file mode 100644
index 000000000..cadfe1b62
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/ActionIdentifiers.java
@@ -0,0 +1,62 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model.data.api;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class ActionIdentifiers {
+ @JsonProperty("service-template-name")
+ private String serviceTemplateName;
+ @JsonProperty("service-template-version")
+ private String serviceTemplateVersion;
+ @JsonProperty("action-name")
+ private String actionName;
+ private String mode;
+
+ public String getServiceTemplateName() {
+ return serviceTemplateName;
+ }
+
+ public void setServiceTemplateName(String serviceTemplateName) {
+ this.serviceTemplateName = serviceTemplateName;
+ }
+
+ public String getServiceTemplateVersion() {
+ return serviceTemplateVersion;
+ }
+
+ public void setServiceTemplateVersion(String serviceTemplateVersion) {
+ this.serviceTemplateVersion = serviceTemplateVersion;
+ }
+
+ public String getActionName() {
+ return actionName;
+ }
+
+ public void setActionName(String actionName) {
+ this.actionName = actionName;
+ }
+
+ public String getMode() {
+ return mode;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/CommonHeader.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/CommonHeader.java
new file mode 100644
index 000000000..d816307d1
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/CommonHeader.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model.data.api;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class CommonHeader {
+
+ private String timestamp;
+ @JsonProperty("api-ver")
+ private String apiVer;
+ @JsonProperty("originator-id")
+ private String originatorId;
+ @JsonProperty("request-id")
+ private String requestId;
+ @JsonProperty("sub-request-id")
+ private String subRequestId;
+ private Flags flags;
+
+ public String getTimestamp() {
+ return timestamp;
+ }
+
+ public void setTimestamp(String timestamp) {
+ this.timestamp = timestamp;
+ }
+
+ public String getApiVer() {
+ return apiVer;
+ }
+
+ public void setApiVer(String apiVer) {
+ this.apiVer = apiVer;
+ }
+
+ public String getOriginatorId() {
+ return originatorId;
+ }
+
+ public void setOriginatorId(String originatorId) {
+ this.originatorId = originatorId;
+ }
+
+ public String getRequestId() {
+ return requestId;
+ }
+
+ public void setRequestId(String requestId) {
+ this.requestId = requestId;
+ }
+
+ public String getSubRequestId() {
+ return subRequestId;
+ }
+
+ public void setSubRequestId(String subRequestId) {
+ this.subRequestId = subRequestId;
+ }
+
+ public Flags getFlags() {
+ return flags;
+ }
+
+ public void setFlags(Flags flags) {
+ this.flags = flags;
+ }
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Flags.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Flags.java
new file mode 100644
index 000000000..81adc7416
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Flags.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model.data.api;
+
+public class Flags {
+ private boolean force;
+ private Integer ttl;
+
+ public boolean isForce() {
+ return force;
+ }
+
+ public void setForce(boolean force) {
+ this.force = force;
+ }
+
+ public Integer getTtl() {
+ return ttl;
+ }
+
+ public void setTtl(Integer ttl) {
+ this.ttl = ttl;
+ }
+
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Status.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Status.java
new file mode 100644
index 000000000..7c678e9ab
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Status.java
@@ -0,0 +1,61 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model.data.api;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class Status {
+
+ private Integer code;
+ @JsonProperty("error-message")
+ private String errorMessage;
+ private String message;
+ private String completed;
+
+ public Integer getCode() {
+ return code;
+ }
+
+ public void setCode(Integer code) {
+ this.code = code;
+ }
+
+ public String getErrorMessage() {
+ return errorMessage;
+ }
+
+ public void setErrorMessage(String errorMessage) {
+ this.errorMessage = errorMessage;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public String getCompleted() {
+ return completed;
+ }
+
+ public void setCompleted(String completed) {
+ this.completed = completed;
+ }
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionRequest.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionRequest.java
new file mode 100644
index 000000000..ebfa97f5d
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionRequest.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model.data.api;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class TransactionRequest {
+
+ @JsonProperty("transaction-request-id")
+ private String transactionRequestId;
+ @JsonProperty("message-type")
+ private String messageType;
+
+ public String getTransactionRequestId() {
+ return transactionRequestId;
+ }
+
+ public void setTransactionRequestId(String transactionRequestId) {
+ this.transactionRequestId = transactionRequestId;
+ }
+
+ public String getMessageType() {
+ return messageType;
+ }
+
+ public void setMessageType(String messageType) {
+ this.messageType = messageType;
+ }
+
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionResponse.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionResponse.java
new file mode 100644
index 000000000..6a7b2e335
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionResponse.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model.data.api;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class TransactionResponse {
+
+ @JsonProperty("transaction-request-id")
+ private String transactionRequestId;
+ @JsonProperty("event-message")
+ private List<String> eventMessage;
+
+ public String getTransactionRequestId() {
+ return transactionRequestId;
+ }
+
+ public void setTransactionRequestId(String transactionRequestId) {
+ this.transactionRequestId = transactionRequestId;
+ }
+
+ public List<String> getEventMessage() {
+ return eventMessage;
+ }
+
+ public void setEventMessage(List<String> eventMessage) {
+ this.eventMessage = eventMessage;
+ }
+
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModel.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModel.java
new file mode 100644
index 000000000..9821fd0eb
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModel.java
@@ -0,0 +1,231 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model.domain;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+public class ConfigModel implements Serializable {
+
+ private Long id;
+ private String serviceUUID;
+ private String distributionId;
+ private String serviceName;
+ private String serviceDescription;
+ private String resourceUUID;
+ private String resourceInstanceName;
+ private String resourceName;
+ private String resourceVersion;
+ private String resourceType;
+ private String artifactUUId;
+ private String artifactType;
+ private String artifactVersion;
+ private String artifactDescription;
+ private Integer internalVersion;
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "MM/dd/yyyy KK:mm:ss a Z")
+ private Date createdDate = new Date();
+ private String artifactName;
+ private String published;
+ private String updatedBy;
+ private String tags;
+ @SuppressWarnings("squid:S1948")
+ private List<ConfigModelContent> configModelContents;
+
+ @Override
+ public String toString() {
+ StringBuilder buffer = new StringBuilder("[");
+ buffer.append("id = " + id);
+ buffer.append(", artifactType = " + artifactType);
+ buffer.append(", artifactVersion = " + artifactVersion);
+ buffer.append(", artifactName = " + artifactName);
+ buffer.append(", active = " + published);
+ buffer.append("]");
+ return buffer.toString();
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getServiceUUID() {
+ return serviceUUID;
+ }
+
+ public void setServiceUUID(String serviceUUID) {
+ this.serviceUUID = serviceUUID;
+ }
+
+ public String getDistributionId() {
+ return distributionId;
+ }
+
+ public void setDistributionId(String distributionId) {
+ this.distributionId = distributionId;
+ }
+
+ public String getServiceName() {
+ return serviceName;
+ }
+
+ public void setServiceName(String serviceName) {
+ this.serviceName = serviceName;
+ }
+
+ public String getServiceDescription() {
+ return serviceDescription;
+ }
+
+ public void setServiceDescription(String serviceDescription) {
+ this.serviceDescription = serviceDescription;
+ }
+
+ public String getResourceUUID() {
+ return resourceUUID;
+ }
+
+ public void setResourceUUID(String resourceUUID) {
+ this.resourceUUID = resourceUUID;
+ }
+
+ public String getResourceInstanceName() {
+ return resourceInstanceName;
+ }
+
+ public void setResourceInstanceName(String resourceInstanceName) {
+ this.resourceInstanceName = resourceInstanceName;
+ }
+
+ public String getResourceName() {
+ return resourceName;
+ }
+
+ public void setResourceName(String resourceName) {
+ this.resourceName = resourceName;
+ }
+
+ public String getResourceVersion() {
+ return resourceVersion;
+ }
+
+ public void setResourceVersion(String resourceVersion) {
+ this.resourceVersion = resourceVersion;
+ }
+
+ public String getResourceType() {
+ return resourceType;
+ }
+
+ public void setResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ }
+
+ public String getArtifactUUId() {
+ return artifactUUId;
+ }
+
+ public void setArtifactUUId(String artifactUUId) {
+ this.artifactUUId = artifactUUId;
+ }
+
+ public String getArtifactType() {
+ return artifactType;
+ }
+
+ public void setArtifactType(String artifactType) {
+ this.artifactType = artifactType;
+ }
+
+ public String getArtifactVersion() {
+ return artifactVersion;
+ }
+
+ public void setArtifactVersion(String artifactVersion) {
+ this.artifactVersion = artifactVersion;
+ }
+
+ public String getArtifactDescription() {
+ return artifactDescription;
+ }
+
+ public void setArtifactDescription(String artifactDescription) {
+ this.artifactDescription = artifactDescription;
+ }
+
+ public Integer getInternalVersion() {
+ return internalVersion;
+ }
+
+ public void setInternalVersion(Integer internalVersion) {
+ this.internalVersion = internalVersion;
+ }
+
+ public Date getCreatedDate() {
+ return createdDate;
+ }
+
+ public void setCreatedDate(Date createdDate) {
+ this.createdDate = createdDate;
+ }
+
+ public String getArtifactName() {
+ return artifactName;
+ }
+
+ public void setArtifactName(String artifactName) {
+ this.artifactName = artifactName;
+ }
+
+ public String getPublished() {
+ return published;
+ }
+
+ public void setPublished(String published) {
+ this.published = published;
+ }
+
+ public String getUpdatedBy() {
+ return updatedBy;
+ }
+
+ public void setUpdatedBy(String updatedBy) {
+ this.updatedBy = updatedBy;
+ }
+
+ public String getTags() {
+ return tags;
+ }
+
+ public void setTags(String tags) {
+ this.tags = tags;
+ }
+
+ public List<ConfigModelContent> getConfigModelContents() {
+ return configModelContents;
+ }
+
+ public void setConfigModelContents(List<ConfigModelContent> configModelContents) {
+ this.configModelContents = configModelContents;
+ }
+
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModelContent.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModelContent.java
new file mode 100644
index 000000000..d1ef5fef8
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModelContent.java
@@ -0,0 +1,91 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+public class ConfigModelContent {
+
+ private Long id;
+ private String name;
+ private String contentType;
+ private String description;
+ private String content;
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "MM/dd/yyyy KK:mm:ss a Z")
+ private Date createdDate = new Date();
+
+ @Override
+ public String toString() {
+ StringBuilder buffer = new StringBuilder("[");
+ buffer.append("id = " + id);
+ buffer.append(", name = " + name);
+ buffer.append(", type = " + contentType);
+ buffer.append("]");
+ return buffer.toString();
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getContentType() {
+ return contentType;
+ }
+
+ public void setContentType(String type) {
+ this.contentType = type;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public Date getCreatedDate() {
+ return createdDate;
+ }
+
+ public void setCreatedDate(Date createdDate) {
+ this.createdDate = createdDate;
+ }
+
+}
diff --git a/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ResourceDictionary.java b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ResourceDictionary.java
new file mode 100644
index 000000000..163566c3c
--- /dev/null
+++ b/blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ResourceDictionary.java
@@ -0,0 +1,162 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.config.model.domain;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class ResourceDictionary implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ private Long id;
+ private String name;
+ private String resourcePath;
+ private String resourceType;
+ private String dataType;
+ private String entrySchema;
+ private String validValues;
+ private String sampleValue;
+ private String definition;
+ private String description;
+ private String tags;
+ private Date creationDate;
+ private String updatedBy;
+
+ @Override
+ public String toString() {
+ StringBuilder buffer = new StringBuilder("[");
+ buffer.append("id = " + id);
+ buffer.append(", name = " + name);
+ buffer.append(", resourcePath = " + resourcePath);
+ buffer.append(", resourceType = " + resourceType);
+ buffer.append(", dataType = " + dataType);
+ buffer.append(", entrySchema = " + entrySchema);
+ buffer.append(", validValues = " + validValues);
+ buffer.append(", definition =" + definition);
+ buffer.append(", description = " + description);
+ buffer.append(", tags = " + tags);
+ buffer.append(", creationDate = " + creationDate);
+ buffer.append("]");
+ return buffer.toString();
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getResourcePath() {
+ return resourcePath;
+ }
+
+ public void setResourcePath(String resourcePath) {
+ this.resourcePath = resourcePath;
+ }
+
+ public String getResourceType() {
+ return resourceType;
+ }
+
+ public void setResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ }
+
+ public String getDataType() {
+ return dataType;
+ }
+
+ public void setDataType(String dataType) {
+ this.dataType = dataType;
+ }
+
+ public String getEntrySchema() {
+ return entrySchema;
+ }
+
+ public void setEntrySchema(String entrySchema) {
+ this.entrySchema = entrySchema;
+ }
+
+ public String getValidValues() {
+ return validValues;
+ }
+
+ public void setValidValues(String validValues) {
+ this.validValues = validValues;
+ }
+
+ public String getSampleValue() {
+ return sampleValue;
+ }
+
+ public void setSampleValue(String sampleValue) {
+ this.sampleValue = sampleValue;
+ }
+
+ public String getDefinition() {
+ return definition;
+ }
+
+ public void setDefinition(String definition) {
+ this.definition = definition;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getTags() {
+ return tags;
+ }
+
+ public void setTags(String tags) {
+ this.tags = tags;
+ }
+
+ public Date getCreationDate() {
+ return creationDate;
+ }
+
+ public void setCreationDate(Date creationDate) {
+ this.creationDate = creationDate;
+ }
+
+ public String getUpdatedBy() {
+ return updatedBy;
+ }
+
+ public void setUpdatedBy(String updatedBy) {
+ this.updatedBy = updatedBy;
+ }
+
+}