aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Geerebaert <matthieu.geerebaert@orange.com>2019-10-23 14:04:12 +0000
committerGerrit Code Review <gerrit@onap.org>2019-10-23 14:04:12 +0000
commit1287c0c0642c2ad7ea6b55e937c232376ca4b478 (patch)
treeaf14f181c1321a343e7ef04f526a9e05cedf5da9
parent20d150e87e9e46402daa34ff16cab048663232d8 (diff)
parentc1b9665d9f74d39df21d116682e507006479a2f2 (diff)
Merge "NBI to SO: cloudowner value"
-rw-r--r--src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/CloudConfiguration.java20
-rw-r--r--src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java4
2 files changed, 20 insertions, 4 deletions
diff --git a/src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/CloudConfiguration.java b/src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/CloudConfiguration.java
index 9cb6b40..0dca118 100644
--- a/src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/CloudConfiguration.java
+++ b/src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/CloudConfiguration.java
@@ -21,9 +21,12 @@ public class CloudConfiguration {
private String tenantId;
- public CloudConfiguration(String lcpCloudRegionId, String tenantId) {
+ private String cloudOwner;
+
+ public CloudConfiguration(String lcpCloudRegionId, String tenantId, String cloudOwner) {
this.lcpCloudRegionId = lcpCloudRegionId;
this.tenantId = tenantId;
+ this.cloudOwner = cloudOwner;
}
public String getLcpCloudRegionId() {
@@ -42,9 +45,20 @@ public class CloudConfiguration {
this.tenantId = tenantId;
}
+ public String getCloudOwner() {
+ return cloudOwner;
+ }
+
+ public void setCloudOwner(String cloudOwner) {
+ this.cloudOwner = cloudOwner;
+ }
+
@Override
public String toString() {
- return "CloudConfiguration{" + "lcpCloudRegionId='" + lcpCloudRegionId + '\'' + ", tenantId='" + tenantId + '\''
- + '}';
+ return "CloudConfiguration{" +
+ "lcpCloudRegionId='" + lcpCloudRegionId + '\'' +
+ ", tenantId='" + tenantId + '\'' +
+ ", cloudOwner='" + cloudOwner + '\'' +
+ '}';
}
}
diff --git a/src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java b/src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java
index 0caa093..deb4e55 100644
--- a/src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java
+++ b/src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java
@@ -74,6 +74,8 @@ public class PostSoProcessor {
@Value("${so.project.name}")
private String soProjectName;
+ @Value("${onap.cloudOwner}")
+ private String cloudOwner;
@Autowired
private ServiceOrderService serviceOrderService;
@@ -217,7 +219,7 @@ public class PostSoProcessor {
requestParameters.setaLaCarte(true);
requestDetails.setRequestParameters(requestParameters);
- CloudConfiguration cloudConfiguration = new CloudConfiguration(lcpCloudRegionId, tenantId);
+ CloudConfiguration cloudConfiguration = new CloudConfiguration(lcpCloudRegionId, tenantId, cloudOwner);
requestDetails.setCloudConfiguration(cloudConfiguration);
OwningEntity owningEntity = new OwningEntity();