[SDC-259] Tenant Isolation - Context Distribution 43/9343/1
authorEster Rotstein <er767y@att.com>
Wed, 30 Aug 2017 09:04:13 +0000 (12:04 +0300)
committerEster Rotstein <er767y@att.com>
Wed, 30 Aug 2017 09:05:20 +0000 (12:05 +0300)
Change-Id: I69d385c95b25587130ef323a4cf52aa786f60d14
Signed-off-by: Ester Rotstein <er767y@att.com>
sdc-distribution-client/src/main/java/org/openecomp/sdc/api/notification/INotificationData.java
sdc-distribution-client/src/main/java/org/openecomp/sdc/impl/NotificationDataImpl.java

index df314ea..74ebf65 100644 (file)
@@ -64,4 +64,8 @@ public interface INotificationData {
         * Invariant UUID
         */
        String getServiceInvariantUUID();
+
+       String getWorkloadContext();
+
+       void setWorkloadContext(String workloadContext);
 }
index 7ad3987..c60e2fd 100644 (file)
@@ -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() {
@@ -85,11 +86,22 @@ class NotificationDataImpl implements INotificationData {
                this.serviceDescription = serviceDescription;
        }
 
+       @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