Renamed NF fields in catalog db pojo 60/88360/1
authorMerkel, Jeff <jeff.merkel@att.com>
Thu, 23 May 2019 14:33:57 +0000 (10:33 -0400)
committerBenjamin, Max (mb388a) <mb388a@us.att.com>
Thu, 23 May 2019 14:34:07 +0000 (10:34 -0400)
- Renamed Nf properties to just Function, Role, Type.

Change-Id: I0cec751e783c1fb7abdcf9f9565eadf89e0ac32c
Issue-ID: SO-1914
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java
mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/ConfigurationResourceCustomization.java

index edf8ff3..486697b 100644 (file)
@@ -696,12 +696,12 @@ public class ToscaResourceInstaller {
                 .setModelCustomizationUUID(metadata.getValue(SdcPropertyNames.PROPERTY_NAME_CUSTOMIZATIONUUID));
         configCustomizationResource.setModelInstanceName(nodeTemplate.getName());
 
-        configCustomizationResource.setNfFunction(toscaResourceStructure.getSdcCsarHelper()
-                .getNodeTemplatePropertyLeafValue(nodeTemplate, SdcPropertyNames.PROPERTY_NAME_NFFUNCTION));
-        configCustomizationResource.setNfRole(toscaResourceStructure.getSdcCsarHelper()
-                .getNodeTemplatePropertyLeafValue(nodeTemplate, SdcPropertyNames.PROPERTY_NAME_NFROLE));
-        configCustomizationResource.setNfType(toscaResourceStructure.getSdcCsarHelper()
-                .getNodeTemplatePropertyLeafValue(nodeTemplate, SdcPropertyNames.PROPERTY_NAME_NFTYPE));
+        configCustomizationResource.setFunction(
+                toscaResourceStructure.getSdcCsarHelper().getNodeTemplatePropertyLeafValue(nodeTemplate, "function"));
+        configCustomizationResource.setRole(
+                toscaResourceStructure.getSdcCsarHelper().getNodeTemplatePropertyLeafValue(nodeTemplate, "role"));
+        configCustomizationResource.setType(
+                toscaResourceStructure.getSdcCsarHelper().getNodeTemplatePropertyLeafValue(nodeTemplate, "type"));
         configCustomizationResource
                 .setServiceProxyResourceCustomizationUUID(spResourceCustomization.getModelCustomizationUUID());
 
index 4599c97..278417c 100644 (file)
@@ -64,13 +64,13 @@ public class ConfigurationResourceCustomization implements Serializable {
     private String modelInstanceName;
 
     @Column(name = "CONFIGURATION_FUNCTION")
-    private String nfFunction;
+    private String function;
 
     @Column(name = "CONFIGURATION_TYPE")
-    private String nfType;
+    private String type;
 
     @Column(name = "CONFIGURATION_ROLE")
-    private String nfRole;
+    private String role;
 
     @Column(name = "CREATION_TIMESTAMP", updatable = false)
     @Temporal(TemporalType.TIMESTAMP)
@@ -120,28 +120,28 @@ public class ConfigurationResourceCustomization implements Serializable {
         this.modelInstanceName = modelInstanceName;
     }
 
-    public String getNfFunction() {
-        return nfFunction;
+    public String getFunction() {
+        return function;
     }
 
-    public void setNfFunction(String nfFunction) {
-        this.nfFunction = nfFunction;
+    public void setFunction(String function) {
+        this.function = function;
     }
 
-    public String getNfType() {
-        return nfType;
+    public String getType() {
+        return type;
     }
 
-    public void setNfType(String nfType) {
-        this.nfType = nfType;
+    public void setType(String type) {
+        this.type = type;
     }
 
-    public String getNfRole() {
-        return nfRole;
+    public String getRole() {
+        return role;
     }
 
-    public void setNfRole(String nfRole) {
-        this.nfRole = nfRole;
+    public void setRole(String role) {
+        this.role = role;
     }
 
     public Date getCreated() {
@@ -186,8 +186,8 @@ public class ConfigurationResourceCustomization implements Serializable {
     @Override
     public String toString() {
         return new ToStringBuilder(this).append("id", id).append("modelCustomizationUUID", modelCustomizationUUID)
-                .append("modelInstanceName", modelInstanceName).append("nfFunction", nfFunction)
-                .append("nfType", nfType).append("nfRole", nfRole).append("created", created)
+                .append("modelInstanceName", modelInstanceName).append("function", function).append("type", type)
+                .append("role", role).append("created", created)
                 // .append("serviceProxyResourceCustomization", serviceProxyResourceCustomization)
                 .append("configResourceCustomization", configResourceCustomization)
                 .append("configurationResource", configurationResource).append("service", service).toString();