SDN Controller Blueprints Processor Model Beans 63/64563/1
authorSingal, Kapil (ks220y) <ks220y@att.com>
Wed, 5 Sep 2018 02:18:17 +0000 (22:18 -0400)
committerSingal, Kapil (ks220y) <ks220y@att.com>
Wed, 5 Sep 2018 02:18:17 +0000 (22:18 -0400)
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>
12 files changed:
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelConstant.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ConfigModelException.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/ValidTypes.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/ActionIdentifiers.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/CommonHeader.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Flags.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/Status.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionRequest.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/data/api/TransactionResponse.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModel.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ConfigModelContent.java [new file with mode: 0644]
blueprints-processor/plugin/model-provider/src/main/java/org/onap/ccsdk/config/model/domain/ResourceDictionary.java [new file with mode: 0644]

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 (file)
index 0000000..a9a3b25
--- /dev/null
@@ -0,0 +1,147 @@
+/*\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;\r
+\r
+public class ConfigModelConstant {\r
+\r
+    private ConfigModelConstant() {\r
+\r
+    }\r
+\r
+    public static final String STATUS_CODE_SUCCESS = "200";\r
+    public static final String STATUS_CODE_FAILURE = "400";\r
+\r
+    public static final String STATUS_SUCCESS = "success";\r
+    public static final String STATUS_FAILURE = "failure";\r
+    public static final String STATUS_SKIPPED = "skipped";\r
+\r
+    public static final String CONFIG_STATUS_PENDING = "pending";\r
+    public static final String CONFIG_STATUS_FAILED = "failed";\r
+    public static final String CONFIG_STATUS_SUCCESS = "success";\r
+\r
+    public static final String USER_SYSTEM = "System";\r
+    public static final String PROTOCOL_NETCONF = "netconf";\r
+\r
+    public static final String MODEL_CONTENT_TYPE_TOSCA_JSON = "TOSCA_JSON";\r
+    public static final String MODEL_CONTENT_TYPE_TOSCA_YAML = "TOSCA_YAML";\r
+    public static final String MODEL_CONTENT_TYPE_TEMPLATE = "TEMPLATE";\r
+    public static final String MODEL_CONTENT_TYPE_YANG = "YANG";\r
+    public static final String MODEL_CONTENT_TYPE_SCHEMA = "SCHEMA";\r
+\r
+    public static final String SERVICE_TEMPLATE_KEY_ARTIFACT_AUTHOR = "author";\r
+    public static final String SERVICE_TEMPLATE_KEY_ARTIFACT_NAME = "service-template-name";\r
+    public static final String SERVICE_TEMPLATE_KEY_ARTIFACT_VERSION = "service-template-version";\r
+\r
+    public static final String MODEL_DEFINITION_TYPE_NODE_TYPE = "node_type";\r
+    public static final String MODEL_DEFINITION_TYPE_CAPABILITY_TYPE = "capability_type";\r
+    public static final String MODEL_DEFINITION_TYPE_RELATIONSHIP_TYPE = "relationship_type";\r
+    public static final String MODEL_DEFINITION_TYPE_DATA_TYPE = "data_type";\r
+    public static final String MODEL_DEFINITION_TYPE_ARTIFACT_TYPE = "artifact_type";\r
+\r
+    public static final String MODEL_TYPE_DATA_TYPE = "tosca.datatypes.Root";\r
+    public static final String MODEL_TYPE_DATA_TYPE_DYNAMIC = "tosca.datatypes.Dynamic";\r
+    public static final String MODEL_TYPE_NODE_TYPE = "tosca.nodes.Root";\r
+\r
+    public static final String MODEL_TYPE_NODE_DG = "tosca.nodes.DG";\r
+    public static final String MODEL_TYPE_NODE_COMPONENT = "tosca.nodes.Component";\r
+    public static final String MODEL_TYPE_NODE_COMPONENT_PYTHON = "tosca.nodes.Component.Python";\r
+    public static final String MODEL_TYPE_NODE_VNF = "tosca.nodes.Vnf";\r
+    public static final String MODEL_TYPE_NODE_ARTIFACT = "tosca.nodes.Artifact";\r
+\r
+    public static final String MODEL_TYPE_ARTIFACT_TEMPLATE = "tosca.artifact.Template";\r
+    public static final String MODEL_TYPE_ARTIFACT_LICENCE = "tosca.artifacts.Licence";\r
+\r
+    public static final String MODEL_TYPE_RELATIONSHIPS_DEPENDS_ON = "tosca.relationships.DependsOn";\r
+    public static final String MODEL_TYPE_RELATIONSHIPS_HOSTED_ON = "tosca.relationships.HostedOn";\r
+    public static final String MODEL_TYPE_RELATIONSHIPS_CONNECTS_TO = "tosca.relationships.ConnectsTo";\r
+    public static final String MODEL_TYPE_RELATIONSHIPS_ATTACH_TO = "tosca.relationships.AttachesTo";\r
+    public static final String MODEL_TYPE_RELATIONSHIPS_ROUTES_TO = "tosca.relationships.RoutesTo";\r
+\r
+    public static final String NODE_TEMPLATE_TYPE_ARTIFACT_CONFIG_TEMPLATE = "artifact-config-template";\r
+\r
+    public static final String CAPABILITY_PROPERTY_MAPPING = "mapping";\r
+    public static final String CAPABILITY_PROPERTY_CONTENT = "content";\r
+\r
+    public static final String SOURCE_INPUT = "input";\r
+    public static final String SOURCE_DEFAULT = "default";\r
+    public static final String SOURCE_MDSAL = "mdsal";\r
+    public static final String SOURCE_DB = "db";\r
+    public static final String SOURCE_COMPONENT = "component";\r
+\r
+    public static final String PROPERTY_STATUS = "status";\r
+    public static final String PROPERTY_ERROR_CODE = "error-code";\r
+    public static final String PROPERTY_ERROR_MESSAGE = "error-message";\r
+\r
+    public static final String PROPERTY_REQUEST_INPUT = "request-input";\r
+    public static final String PROPERTY_REQUEST_HEADER = "request-header";\r
+    public static final String PROPERTY_REQUEST_PAYLOAD = "request-payload";\r
+\r
+    public static final String PROPERTY_RESPONSE_PAYLOAD = "response-payload";\r
+    public static final String PROPERTY_RESPONSE_JSON_NODE = "response-json-node";\r
+\r
+    public static final String PROPERTY_PAYLOAD = "payload";\r
+    public static final String PROPERTY_INPUTS = "inputs";\r
+    public static final String PROPERTY_ORGINATOR_ID = "originator-id";\r
+    public static final String PROPERTY_API_VERSION = "api-ver";\r
+    public static final String PROPERTY_REQUEST_ID = "request-id";\r
+    public static final String PROPERTY_SUB_REQUEST_ID = "sub-request-id";\r
+    public static final String PROPERTY_REQUEST = "request";\r
+    public static final String PROPERTY_RECIPE = "action";\r
+\r
+    public static final String PROPERTY_SELECTOR = "prifix";\r
+    public static final String PROPERTY_NODE_TEMPLATES = "node_templates";\r
+    public static final String PROPERTY_NODE_TYPES = "node_types";\r
+    public static final String PROPERTY_DATA_TYPES = "data_types";\r
+    public static final String PROPERTY_ACTION_NAME = "action-name";\r
+    public static final String PROPERTY_ACTION_PREFIX = "action-prefix";\r
+    public static final String PROPERTY_TEMPLATE_NAME = "template-name";\r
+\r
+    public static final String PROPERTY_CURRENT_INTERFACE = "current-interface";\r
+    public static final String PROPERTY_CURRENT_OPERATION = "current-operation";\r
+    public static final String PROPERTY_CURRENT_IMPLEMENTATION = "current-implementation";\r
+    public static final String PROPERTY_CURRENT_NODETYPE_DERIVED_FROM = "current-node-type-derived-from";\r
+    public static final String PROPERTY_CURRENT_RESOURCE_ASSIGNMENT = "current-resource-assignment";\r
+    public static final String PROPERTY_CURRENT_DICTIONARY_DEFINITION = "current-dictionary-definition";\r
+    public static final String PROPERTY_RESOURCE_ASSIGNMENTS_DATA = "resource-assignments-data";\r
+\r
+    public static final String PROPERTY_RECIPE_NAMES = "action-names";\r
+    public static final String PROPERTY_DICTIONARIES = "dictionaries";\r
+    public static final String PROPERTY_RESOURCE_ASSIGNMENTS = "resource-assignments";\r
+    public static final String PROPERTY_RESOURCE_KEY = "resource-key";\r
+    public static final String PROPERTY_RESOURCE_NAME = "resource-name";\r
+    public static final String PROPERTY_RESERVATION_ID = "reservation-id";\r
+\r
+    public static final String PROPERTY_NODE_TEMPLATES_DOT = "node_templates.";\r
+    public static final String PROPERTY_NODE_TYPES_DOT = "node_types.";\r
+    public static final String PROPERTY_DATA_TYPES_DOT = "data_types.";\r
+    public static final String PROPERTY_INPUTS_DOT = "inputs.";\r
+    public static final String PROPERTY_ARTIFACTS_DOT = "artifacts.";\r
+    public static final String PROPERTY_DICTIONARY_KEY_DOT = "dictionary-key.";\r
+    public static final String PROPERTY_TEMPLATE_KEY_DOT = "template-key.";\r
+    public static final String PROPERTY_RECIPE_KEY_DOT = "recipe-key.";\r
+\r
+    public static final String PROPERTY_DOT_STATUS = ".status";\r
+    public static final String PROPERTY_DOT_ERROR_MESSAGE = ".error-message";\r
+\r
+    public static final String EXPRESSION_GET_INPUT = "get_input";\r
+    public static final String EXPRESSION_GET_ATTRIBUTE = "get_attribute";\r
+    public static final String EXPRESSION_SET_VALUE = "set_value";\r
+\r
+    public static final String CONFIG_PROPERTY_MAP_KEY_PREFIX = "org.onap.ccsdk.sli.adaptors.";\r
+\r
+}\r
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 (file)
index 0000000..4936c3b
--- /dev/null
@@ -0,0 +1,50 @@
+/*\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;\r
+\r
+/**\r
+ * ConfigGeneratorException.java Purpose: Provide Configuration Generator ConfigGeneratorException\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class ConfigModelException extends Exception {\r
+\r
+    /**\r
+     *\r
+     */\r
+    private static final long serialVersionUID = 1L;\r
+\r
+    /**\r
+     * This is a ConfigGeneratorException constructor\r
+     *\r
+     * @param message\r
+     */\r
+    public ConfigModelException(String message) {\r
+        super(message);\r
+    }\r
+\r
+    /**\r
+     * This is a ConfigGeneratorException constructor\r
+     *\r
+     * @param message\r
+     */\r
+    public ConfigModelException(String message, Throwable cause) {\r
+        super(message, cause);\r
+    }\r
+\r
+}\r
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 (file)
index 0000000..6cadcc8
--- /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;\r
+\r
+import java.util.ArrayList;\r
+import java.util.List;\r
+\r
+/**\r
+ * ValidTypes.java Purpose: Provide Configuration Generator ValidTypes\r
+ *\r
+ * @version 1.0\r
+ */\r
+public class ValidTypes {\r
+\r
+    public static final String DATA_TYPE_STRING = "string";\r
+    public static final String DATA_TYPE_INTEGER = "integer";\r
+    public static final String DATA_TYPE_FLOAT = "float";\r
+    public static final String DATA_TYPE_BOOLEAN = "boolean";\r
+    public static final String DATA_TYPE_TIMESTAMP = "timestamp";\r
+    public static final String DATA_TYPE_NULL = "null";\r
+    public static final String DATA_TYPE_LIST = "list";\r
+    public static final String DATA_TYPE_LONGTEXT = "longtext";\r
+\r
+    private ValidTypes() {\r
+\r
+    }\r
+\r
+    public static List<String> getValidModelTypes() {\r
+        List<String> validTypes = new ArrayList<>();\r
+        validTypes.add(ConfigModelConstant.MODEL_DEFINITION_TYPE_DATA_TYPE);\r
+        validTypes.add(ConfigModelConstant.MODEL_DEFINITION_TYPE_NODE_TYPE);\r
+        validTypes.add(ConfigModelConstant.MODEL_DEFINITION_TYPE_CAPABILITY_TYPE);\r
+        validTypes.add(ConfigModelConstant.MODEL_DEFINITION_TYPE_RELATIONSHIP_TYPE);\r
+        return validTypes;\r
+    }\r
+\r
+    public static List<String> getValidNodeTypes() {\r
+        List<String> validTypes = new ArrayList<>();\r
+        validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_DG);\r
+        validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_COMPONENT);\r
+        validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_VNF);\r
+        validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_ARTIFACT);\r
+        return validTypes;\r
+    }\r
+\r
+    public static List<String> getValidDerivedFrom() {\r
+        List<String> validTypes = new ArrayList<>();\r
+        validTypes.add(ConfigModelConstant.MODEL_TYPE_DATA_TYPE_DYNAMIC);\r
+        validTypes.add(ConfigModelConstant.MODEL_TYPE_DATA_TYPE);\r
+        validTypes.add(ConfigModelConstant.MODEL_TYPE_NODE_TYPE);\r
+        return validTypes;\r
+    }\r
+\r
+    public static List<String> getValidDataTypeDerivedFrom() {\r
+        List<String> validTypes = new ArrayList<>();\r
+        validTypes.add(ConfigModelConstant.MODEL_TYPE_DATA_TYPE_DYNAMIC);\r
+        validTypes.add(ConfigModelConstant.MODEL_TYPE_DATA_TYPE);\r
+        return validTypes;\r
+    }\r
+\r
+    public static List<String> getValidPropertType() {\r
+        List<String> validTypes = new ArrayList<>();\r
+        validTypes.add(DATA_TYPE_STRING);\r
+        validTypes.add(DATA_TYPE_INTEGER);\r
+        validTypes.add(DATA_TYPE_FLOAT);\r
+        validTypes.add(DATA_TYPE_BOOLEAN);\r
+        validTypes.add(DATA_TYPE_TIMESTAMP);\r
+        validTypes.add(DATA_TYPE_NULL);\r
+        validTypes.add(DATA_TYPE_LIST);\r
+        return validTypes;\r
+    }\r
+\r
+    public static List<String> getPrimitivePropertType() {\r
+        List<String> validTypes = new ArrayList<>();\r
+        validTypes.add(DATA_TYPE_STRING);\r
+        validTypes.add(DATA_TYPE_INTEGER);\r
+        validTypes.add(DATA_TYPE_FLOAT);\r
+        validTypes.add(DATA_TYPE_BOOLEAN);\r
+        validTypes.add(DATA_TYPE_TIMESTAMP);\r
+        validTypes.add(DATA_TYPE_NULL);\r
+        return validTypes;\r
+    }\r
+\r
+    public static List<String> getListPropertType() {\r
+        List<String> validTypes = new ArrayList<>();\r
+        validTypes.add(DATA_TYPE_LIST);\r
+        return validTypes;\r
+    }\r
+\r
+}\r
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 (file)
index 0000000..cadfe1b
--- /dev/null
@@ -0,0 +1,62 @@
+/*\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.api;\r
+\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+public class ActionIdentifiers {\r
+    @JsonProperty("service-template-name")\r
+    private String serviceTemplateName;\r
+    @JsonProperty("service-template-version")\r
+    private String serviceTemplateVersion;\r
+    @JsonProperty("action-name")\r
+    private String actionName;\r
+    private String mode;\r
+\r
+    public String getServiceTemplateName() {\r
+        return serviceTemplateName;\r
+    }\r
+\r
+    public void setServiceTemplateName(String serviceTemplateName) {\r
+        this.serviceTemplateName = serviceTemplateName;\r
+    }\r
+\r
+    public String getServiceTemplateVersion() {\r
+        return serviceTemplateVersion;\r
+    }\r
+\r
+    public void setServiceTemplateVersion(String serviceTemplateVersion) {\r
+        this.serviceTemplateVersion = serviceTemplateVersion;\r
+    }\r
+\r
+    public String getActionName() {\r
+        return actionName;\r
+    }\r
+\r
+    public void setActionName(String actionName) {\r
+        this.actionName = actionName;\r
+    }\r
+\r
+    public String getMode() {\r
+        return mode;\r
+    }\r
+\r
+    public void setMode(String mode) {\r
+        this.mode = mode;\r
+    }\r
+}\r
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 (file)
index 0000000..d816307
--- /dev/null
@@ -0,0 +1,82 @@
+/*\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.api;\r
+\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+public class CommonHeader {\r
+\r
+    private String timestamp;\r
+    @JsonProperty("api-ver")\r
+    private String apiVer;\r
+    @JsonProperty("originator-id")\r
+    private String originatorId;\r
+    @JsonProperty("request-id")\r
+    private String requestId;\r
+    @JsonProperty("sub-request-id")\r
+    private String subRequestId;\r
+    private Flags flags;\r
+\r
+    public String getTimestamp() {\r
+        return timestamp;\r
+    }\r
+\r
+    public void setTimestamp(String timestamp) {\r
+        this.timestamp = timestamp;\r
+    }\r
+\r
+    public String getApiVer() {\r
+        return apiVer;\r
+    }\r
+\r
+    public void setApiVer(String apiVer) {\r
+        this.apiVer = apiVer;\r
+    }\r
+\r
+    public String getOriginatorId() {\r
+        return originatorId;\r
+    }\r
+\r
+    public void setOriginatorId(String originatorId) {\r
+        this.originatorId = originatorId;\r
+    }\r
+\r
+    public String getRequestId() {\r
+        return requestId;\r
+    }\r
+\r
+    public void setRequestId(String requestId) {\r
+        this.requestId = requestId;\r
+    }\r
+\r
+    public String getSubRequestId() {\r
+        return subRequestId;\r
+    }\r
+\r
+    public void setSubRequestId(String subRequestId) {\r
+        this.subRequestId = subRequestId;\r
+    }\r
+\r
+    public Flags getFlags() {\r
+        return flags;\r
+    }\r
+\r
+    public void setFlags(Flags flags) {\r
+        this.flags = flags;\r
+    }\r
+}\r
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 (file)
index 0000000..81adc74
--- /dev/null
@@ -0,0 +1,40 @@
+/*\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.api;\r
+\r
+public class Flags {\r
+    private boolean force;\r
+    private Integer ttl;\r
+\r
+    public boolean isForce() {\r
+        return force;\r
+    }\r
+\r
+    public void setForce(boolean force) {\r
+        this.force = force;\r
+    }\r
+\r
+    public Integer getTtl() {\r
+        return ttl;\r
+    }\r
+\r
+    public void setTtl(Integer ttl) {\r
+        this.ttl = ttl;\r
+    }\r
+\r
+}\r
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 (file)
index 0000000..7c678e9
--- /dev/null
@@ -0,0 +1,61 @@
+/*\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.api;\r
+\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+public class Status {\r
+\r
+    private Integer code;\r
+    @JsonProperty("error-message")\r
+    private String errorMessage;\r
+    private String message;\r
+    private String completed;\r
+\r
+    public Integer getCode() {\r
+        return code;\r
+    }\r
+\r
+    public void setCode(Integer code) {\r
+        this.code = code;\r
+    }\r
+\r
+    public String getErrorMessage() {\r
+        return errorMessage;\r
+    }\r
+\r
+    public void setErrorMessage(String errorMessage) {\r
+        this.errorMessage = errorMessage;\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 String getCompleted() {\r
+        return completed;\r
+    }\r
+\r
+    public void setCompleted(String completed) {\r
+        this.completed = completed;\r
+    }\r
+}\r
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 (file)
index 0000000..ebfa97f
--- /dev/null
@@ -0,0 +1,45 @@
+/*\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.api;\r
+\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+public class TransactionRequest {\r
+\r
+    @JsonProperty("transaction-request-id")\r
+    private String transactionRequestId;\r
+    @JsonProperty("message-type")\r
+    private String messageType;\r
+\r
+    public String getTransactionRequestId() {\r
+        return transactionRequestId;\r
+    }\r
+\r
+    public void setTransactionRequestId(String transactionRequestId) {\r
+        this.transactionRequestId = transactionRequestId;\r
+    }\r
+\r
+    public String getMessageType() {\r
+        return messageType;\r
+    }\r
+\r
+    public void setMessageType(String messageType) {\r
+        this.messageType = messageType;\r
+    }\r
+\r
+}\r
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 (file)
index 0000000..6a7b2e3
--- /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.api;\r
+\r
+import java.util.List;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+public class TransactionResponse {\r
+\r
+    @JsonProperty("transaction-request-id")\r
+    private String transactionRequestId;\r
+    @JsonProperty("event-message")\r
+    private List<String> eventMessage;\r
+\r
+    public String getTransactionRequestId() {\r
+        return transactionRequestId;\r
+    }\r
+\r
+    public void setTransactionRequestId(String transactionRequestId) {\r
+        this.transactionRequestId = transactionRequestId;\r
+    }\r
+\r
+    public List<String> getEventMessage() {\r
+        return eventMessage;\r
+    }\r
+\r
+    public void setEventMessage(List<String> eventMessage) {\r
+        this.eventMessage = eventMessage;\r
+    }\r
+\r
+}\r
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 (file)
index 0000000..9821fd0
--- /dev/null
@@ -0,0 +1,231 @@
+/*\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.domain;\r
+\r
+import java.io.Serializable;\r
+import java.util.Date;\r
+import java.util.List;\r
+import com.fasterxml.jackson.annotation.JsonFormat;\r
+\r
+public class ConfigModel implements Serializable {\r
+\r
+    private Long id;\r
+    private String serviceUUID;\r
+    private String distributionId;\r
+    private String serviceName;\r
+    private String serviceDescription;\r
+    private String resourceUUID;\r
+    private String resourceInstanceName;\r
+    private String resourceName;\r
+    private String resourceVersion;\r
+    private String resourceType;\r
+    private String artifactUUId;\r
+    private String artifactType;\r
+    private String artifactVersion;\r
+    private String artifactDescription;\r
+    private Integer internalVersion;\r
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "MM/dd/yyyy KK:mm:ss a Z")\r
+    private Date createdDate = new Date();\r
+    private String artifactName;\r
+    private String published;\r
+    private String updatedBy;\r
+    private String tags;\r
+    @SuppressWarnings("squid:S1948")\r
+    private List<ConfigModelContent> configModelContents;\r
+\r
+    @Override\r
+    public String toString() {\r
+        StringBuilder buffer = new StringBuilder("[");\r
+        buffer.append("id = " + id);\r
+        buffer.append(", artifactType = " + artifactType);\r
+        buffer.append(", artifactVersion = " + artifactVersion);\r
+        buffer.append(", artifactName = " + artifactName);\r
+        buffer.append(", active = " + published);\r
+        buffer.append("]");\r
+        return buffer.toString();\r
+    }\r
+\r
+    public Long getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(Long id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public String getServiceUUID() {\r
+        return serviceUUID;\r
+    }\r
+\r
+    public void setServiceUUID(String serviceUUID) {\r
+        this.serviceUUID = serviceUUID;\r
+    }\r
+\r
+    public String getDistributionId() {\r
+        return distributionId;\r
+    }\r
+\r
+    public void setDistributionId(String distributionId) {\r
+        this.distributionId = distributionId;\r
+    }\r
+\r
+    public String getServiceName() {\r
+        return serviceName;\r
+    }\r
+\r
+    public void setServiceName(String serviceName) {\r
+        this.serviceName = serviceName;\r
+    }\r
+\r
+    public String getServiceDescription() {\r
+        return serviceDescription;\r
+    }\r
+\r
+    public void setServiceDescription(String serviceDescription) {\r
+        this.serviceDescription = serviceDescription;\r
+    }\r
+\r
+    public String getResourceUUID() {\r
+        return resourceUUID;\r
+    }\r
+\r
+    public void setResourceUUID(String resourceUUID) {\r
+        this.resourceUUID = resourceUUID;\r
+    }\r
+\r
+    public String getResourceInstanceName() {\r
+        return resourceInstanceName;\r
+    }\r
+\r
+    public void setResourceInstanceName(String resourceInstanceName) {\r
+        this.resourceInstanceName = resourceInstanceName;\r
+    }\r
+\r
+    public String getResourceName() {\r
+        return resourceName;\r
+    }\r
+\r
+    public void setResourceName(String resourceName) {\r
+        this.resourceName = resourceName;\r
+    }\r
+\r
+    public String getResourceVersion() {\r
+        return resourceVersion;\r
+    }\r
+\r
+    public void setResourceVersion(String resourceVersion) {\r
+        this.resourceVersion = resourceVersion;\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 getArtifactUUId() {\r
+        return artifactUUId;\r
+    }\r
+\r
+    public void setArtifactUUId(String artifactUUId) {\r
+        this.artifactUUId = artifactUUId;\r
+    }\r
+\r
+    public String getArtifactType() {\r
+        return artifactType;\r
+    }\r
+\r
+    public void setArtifactType(String artifactType) {\r
+        this.artifactType = artifactType;\r
+    }\r
+\r
+    public String getArtifactVersion() {\r
+        return artifactVersion;\r
+    }\r
+\r
+    public void setArtifactVersion(String artifactVersion) {\r
+        this.artifactVersion = artifactVersion;\r
+    }\r
+\r
+    public String getArtifactDescription() {\r
+        return artifactDescription;\r
+    }\r
+\r
+    public void setArtifactDescription(String artifactDescription) {\r
+        this.artifactDescription = artifactDescription;\r
+    }\r
+\r
+    public Integer getInternalVersion() {\r
+        return internalVersion;\r
+    }\r
+\r
+    public void setInternalVersion(Integer internalVersion) {\r
+        this.internalVersion = internalVersion;\r
+    }\r
+\r
+    public Date getCreatedDate() {\r
+        return createdDate;\r
+    }\r
+\r
+    public void setCreatedDate(Date createdDate) {\r
+        this.createdDate = createdDate;\r
+    }\r
+\r
+    public String getArtifactName() {\r
+        return artifactName;\r
+    }\r
+\r
+    public void setArtifactName(String artifactName) {\r
+        this.artifactName = artifactName;\r
+    }\r
+\r
+    public String getPublished() {\r
+        return published;\r
+    }\r
+\r
+    public void setPublished(String published) {\r
+        this.published = published;\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 getTags() {\r
+        return tags;\r
+    }\r
+\r
+    public void setTags(String tags) {\r
+        this.tags = tags;\r
+    }\r
+\r
+    public List<ConfigModelContent> getConfigModelContents() {\r
+        return configModelContents;\r
+    }\r
+\r
+    public void setConfigModelContents(List<ConfigModelContent> configModelContents) {\r
+        this.configModelContents = configModelContents;\r
+    }\r
+\r
+}\r
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 (file)
index 0000000..d1ef5fe
--- /dev/null
@@ -0,0 +1,91 @@
+/*\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.domain;\r
+\r
+import java.util.Date;\r
+import com.fasterxml.jackson.annotation.JsonFormat;\r
+\r
+public class ConfigModelContent {\r
+\r
+    private Long id;\r
+    private String name;\r
+    private String contentType;\r
+    private String description;\r
+    private String content;\r
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "MM/dd/yyyy KK:mm:ss a Z")\r
+    private Date createdDate = new Date();\r
+\r
+    @Override\r
+    public String toString() {\r
+        StringBuilder buffer = new StringBuilder("[");\r
+        buffer.append("id = " + id);\r
+        buffer.append(", name = " + name);\r
+        buffer.append(", type = " + contentType);\r
+        buffer.append("]");\r
+        return buffer.toString();\r
+    }\r
+\r
+    public Long getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(Long id) {\r
+        this.id = id;\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 getContentType() {\r
+        return contentType;\r
+    }\r
+\r
+    public void setContentType(String type) {\r
+        this.contentType = 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 String getContent() {\r
+        return content;\r
+    }\r
+\r
+    public void setContent(String content) {\r
+        this.content = content;\r
+    }\r
+\r
+    public Date getCreatedDate() {\r
+        return createdDate;\r
+    }\r
+\r
+    public void setCreatedDate(Date createdDate) {\r
+        this.createdDate = createdDate;\r
+    }\r
+\r
+}\r
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 (file)
index 0000000..163566c
--- /dev/null
@@ -0,0 +1,162 @@
+/*\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.domain;\r
+\r
+import java.io.Serializable;\r
+import java.util.Date;\r
+\r
+public class ResourceDictionary implements Serializable {\r
+    private static final long serialVersionUID = 1L;\r
+\r
+    private Long id;\r
+    private String name;\r
+    private String resourcePath;\r
+    private String resourceType;\r
+    private String dataType;\r
+    private String entrySchema;\r
+    private String validValues;\r
+    private String sampleValue;\r
+    private String definition;\r
+    private String description;\r
+    private String tags;\r
+    private Date creationDate;\r
+    private String updatedBy;\r
+\r
+    @Override\r
+    public String toString() {\r
+        StringBuilder buffer = new StringBuilder("[");\r
+        buffer.append("id = " + id);\r
+        buffer.append(", name = " + name);\r
+        buffer.append(", resourcePath = " + resourcePath);\r
+        buffer.append(", resourceType = " + resourceType);\r
+        buffer.append(", dataType = " + dataType);\r
+        buffer.append(", entrySchema = " + entrySchema);\r
+        buffer.append(", validValues = " + validValues);\r
+        buffer.append(", definition =" + definition);\r
+        buffer.append(", description = " + description);\r
+        buffer.append(", tags = " + tags);\r
+        buffer.append(", creationDate = " + creationDate);\r
+        buffer.append("]");\r
+        return buffer.toString();\r
+    }\r
+\r
+    public Long getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(Long id) {\r
+        this.id = id;\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 getResourcePath() {\r
+        return resourcePath;\r
+    }\r
+\r
+    public void setResourcePath(String resourcePath) {\r
+        this.resourcePath = resourcePath;\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 getDataType() {\r
+        return dataType;\r
+    }\r
+\r
+    public void setDataType(String dataType) {\r
+        this.dataType = dataType;\r
+    }\r
+\r
+    public String getEntrySchema() {\r
+        return entrySchema;\r
+    }\r
+\r
+    public void setEntrySchema(String entrySchema) {\r
+        this.entrySchema = entrySchema;\r
+    }\r
+\r
+    public String getValidValues() {\r
+        return validValues;\r
+    }\r
+\r
+    public void setValidValues(String validValues) {\r
+        this.validValues = validValues;\r
+    }\r
+\r
+    public String getSampleValue() {\r
+        return sampleValue;\r
+    }\r
+\r
+    public void setSampleValue(String sampleValue) {\r
+        this.sampleValue = sampleValue;\r
+    }\r
+\r
+    public String getDefinition() {\r
+        return definition;\r
+    }\r
+\r
+    public void setDefinition(String definition) {\r
+        this.definition = definition;\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 getTags() {\r
+        return tags;\r
+    }\r
+\r
+    public void setTags(String tags) {\r
+        this.tags = tags;\r
+    }\r
+\r
+    public Date getCreationDate() {\r
+        return creationDate;\r
+    }\r
+\r
+    public void setCreationDate(Date creationDate) {\r
+        this.creationDate = creationDate;\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