summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEster Rotstein <er767y@att.com>2017-08-30 12:04:13 +0300
committerEster Rotstein <er767y@att.com>2017-08-30 12:05:20 +0300
commitbd0e3a362410fec91cd733e652beb41c5d7d3017 (patch)
treecb608461ad46d7c7f1fd3ad3ee7a4b4ddd1deb2e
parenta772738447edd9bd743c854cf54988424de95b5f (diff)
[SDC-259] Tenant Isolation - Context Distribution
Change-Id: I69d385c95b25587130ef323a4cf52aa786f60d14 Signed-off-by: Ester Rotstein <er767y@att.com>
-rw-r--r--sdc-distribution-client/src/main/java/org/openecomp/sdc/api/notification/INotificationData.java4
-rw-r--r--sdc-distribution-client/src/main/java/org/openecomp/sdc/impl/NotificationDataImpl.java18
2 files changed, 19 insertions, 3 deletions
diff --git a/sdc-distribution-client/src/main/java/org/openecomp/sdc/api/notification/INotificationData.java b/sdc-distribution-client/src/main/java/org/openecomp/sdc/api/notification/INotificationData.java
index df314ea..74ebf65 100644
--- a/sdc-distribution-client/src/main/java/org/openecomp/sdc/api/notification/INotificationData.java
+++ b/sdc-distribution-client/src/main/java/org/openecomp/sdc/api/notification/INotificationData.java
@@ -64,4 +64,8 @@ public interface INotificationData {
* Invariant UUID
*/
String getServiceInvariantUUID();
+
+ String getWorkloadContext();
+
+ void setWorkloadContext(String workloadContext);
}
diff --git a/sdc-distribution-client/src/main/java/org/openecomp/sdc/impl/NotificationDataImpl.java b/sdc-distribution-client/src/main/java/org/openecomp/sdc/impl/NotificationDataImpl.java
index 7ad3987..c60e2fd 100644
--- a/sdc-distribution-client/src/main/java/org/openecomp/sdc/impl/NotificationDataImpl.java
+++ b/sdc-distribution-client/src/main/java/org/openecomp/sdc/impl/NotificationDataImpl.java
@@ -38,6 +38,7 @@ class NotificationDataImpl implements INotificationData {
private String serviceInvariantUUID;
private List<JsonContainerResourceInstance> resources;
private List<ArtifactInfoImpl> serviceArtifacts;
+ private String workloadContext;
@Override
public String getDistributionID() {
@@ -86,10 +87,21 @@ class NotificationDataImpl implements INotificationData {
}
@Override
+ public String getWorkloadContext() {
+ return workloadContext;
+ }
+
+ @Override
+ public void setWorkloadContext(String workloadContext) {
+ this.workloadContext = workloadContext;
+ }
+
+ @Override
public String toString() {
- return "NotificationDataImpl [distributionID=" + distributionID
- + ", serviceName=" + serviceName + ", serviceVersion="
- + serviceVersion + ", serviceUUID=" + serviceUUID+"]";
+ return "NotificationDataImpl [distributionID=" + distributionID + ", serviceName=" + serviceName
+ + ", serviceVersion=" + serviceVersion + ", serviceUUID=" + serviceUUID + ", serviceDescription="
+ + serviceDescription + ", serviceInvariantUUID=" + serviceInvariantUUID + ", resources=" + resources
+ + ", serviceArtifacts=" + serviceArtifacts + ", workloadContext=" + workloadContext + "]";
}
@Override