aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/main/java/org/openecomp
diff options
context:
space:
mode:
authorshrek2000 <orenkle@amdocs.com>2018-04-24 16:46:33 +0300
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-04-25 14:22:16 +0000
commitd71a8de8c7b688eabb250e524dc4f6000b3233b6 (patch)
tree38c550f0f78084cd19c79e997f5a5ece37751bd5 /common-be/src/main/java/org/openecomp
parentad3c41b5693b4f0b2a151e9c3221551e24f8264d (diff)
Delete workflow artifact and add artifact to CSAR
Added delete artifact codes, add artifact to CSAR and refactored operation Business logic. Change-Id: Iaad3f26795633076d1362bfd33631acc9fcf7aa1 Issue-ID: SDC-1060 Signed-off-by: shrek2000 <orenkle@amdocs.com>
Diffstat (limited to 'common-be/src/main/java/org/openecomp')
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinition.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinition.java
index 21c73e3ee8..0283f4ca46 100644
--- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinition.java
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InterfaceOperationDataDefinition.java
@@ -22,13 +22,14 @@ import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonCreator;
import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
+import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.ARTIFACT_UUID;
import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.DESCRIPTION;
-import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_WORKFLOW_ID;
import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.TOSCA_RESOURCE_NAME;
import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.UNIQUE_ID;
import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_INPUT_PARAMETERS;
import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_OPERATION_TYPE;
import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_OUTPUT_PARAMETERS;
+
public class InterfaceOperationDataDefinition extends ToscaDataDefinition implements Serializable {
@JsonCreator
@@ -44,7 +45,7 @@ public class InterfaceOperationDataDefinition extends ToscaDataDefinition implem
setDescription(iodd.getDescription());
setToscaResourceName(iodd.getToscaResourceName());
setOperationType(iodd.getOperationType());
- setWorkflowId(iodd.getWorkflowId());
+ setArtifactUUID(iodd.getArtifactUUID());
}
public ListDataDefinition<InterfaceOperationParamDataDefinition> getInputParams() {
@@ -93,10 +94,10 @@ public class InterfaceOperationDataDefinition extends ToscaDataDefinition implem
setToscaPresentationValue(TOSCA_RESOURCE_NAME, toscaResourceName);
}
- public String getWorkflowId() {
- return (String) getToscaPresentationValue(IO_WORKFLOW_ID);
+ public String getArtifactUUID() {
+ return (String) getToscaPresentationValue(ARTIFACT_UUID);
}
- public void setWorkflowId(String workflowId) {
- setToscaPresentationValue(IO_WORKFLOW_ID, workflowId);
+ public void setArtifactUUID(String artifactUUID) {
+ setToscaPresentationValue(ARTIFACT_UUID, artifactUUID);
}
}