From 6945280985ea10eeb9585aadbe80a7d7759ba397 Mon Sep 17 00:00:00 2001 From: "Boslet, Cory" Date: Wed, 21 Oct 2020 10:53:01 -0400 Subject: Update Resource Bean Add original service resource id field Issue-ID: SO-3324 Signed-off-by: Benjamin, Max (mb388a) Change-Id: I73703b50cc61669eb40b1516f7ce90639ca87ba2 --- .../src/main/java/org/onap/so/bpmn/core/domain/Resource.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bpmn') diff --git a/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/Resource.java b/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/Resource.java index 62a2e9370e..57b8c1387d 100644 --- a/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/Resource.java +++ b/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/Resource.java @@ -30,6 +30,7 @@ public abstract class Resource extends JsonWrapper implements Serializable { private static final long serialVersionUID = 1L; private String resourceId; // TODO name this field just id instead, should be the id of the object as it is in aai + private String originalResourceId; protected ResourceType resourceType; // Enum of vnf or network or allotted resource protected ModelInfo modelInfo; private long concurrencyCounter = 1L; @@ -52,6 +53,14 @@ public abstract class Resource extends JsonWrapper implements Serializable { this.resourceId = resourceId; } + public String getOriginalResourceId() { + return originalResourceId; + } + + public void setOriginalResourceId(String originalResourceId) { + this.originalResourceId = originalResourceId; + } + public ModelInfo getModelInfo() { return modelInfo; } -- cgit 1.2.3-korg