From b6d953c506c08a5369c0be7242ef3ce3ec888452 Mon Sep 17 00:00:00 2001 From: vasraz Date: Fri, 5 Feb 2021 19:24:06 +0000 Subject: Implement Attributes/Outputs BE (part 2) This commit includes support for: - declare Attribute as Output - undeclare Attribute as Output - export 'Tosca Artifacts' with Attributes/Outputs Change-Id: Iedfbf936e439fd2f7d252b660fe2c42b8d9b9113 Signed-off-by: Vasyl Razinkov Issue-ID: SDC-3448 --- .../src/main/java/org/openecomp/sdc/be/dao/api/ActionStatus.java | 4 ++++ .../java/org/openecomp/sdc/be/dao/jsongraph/types/EdgeLabelEnum.java | 2 ++ .../java/org/openecomp/sdc/be/dao/jsongraph/types/VertexTypeEnum.java | 2 ++ 3 files changed, 8 insertions(+) (limited to 'catalog-dao') diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/api/ActionStatus.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/api/ActionStatus.java index 1d0c54b747..aceaf95d3d 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/api/ActionStatus.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/api/ActionStatus.java @@ -102,6 +102,10 @@ public enum ActionStatus { CFVC_LOOP_DETECTED, INPUT_ALREADY_EXIST, + // Outputs + OUTPUT_IS_NOT_CHILD_OF_COMPONENT, + OUTPUT_ALREADY_EXIST, + //Forwarding Path related FORWARDING_PATH_NAME_MAXIMUM_LENGTH, FORWARDING_PATH_NAME_ALREADY_IN_USE, FORWARDING_PATH_NAME_EMPTY, FORWARDING_PATH_PROTOCOL_MAXIMUM_LENGTH, FORWARDING_PATH_DESTINATION_PORT_MAXIMUM_LENGTH, diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgeLabelEnum.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgeLabelEnum.java index dab74441e9..67d44067fc 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgeLabelEnum.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgeLabelEnum.java @@ -42,9 +42,11 @@ public enum EdgeLabelEnum { CREATOR, SUB_CATEGORY, INPUTS, + OUTPUTS, GROUPS, INST_PROPERTIES, INST_INPUTS, + INST_OUTPUTS, INST_ATTRIBUTES, INST_GROUPS, SERVICE_API_ARTIFACTS, diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/types/VertexTypeEnum.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/types/VertexTypeEnum.java index 8697f6643a..9868eb83e5 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/types/VertexTypeEnum.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/types/VertexTypeEnum.java @@ -69,10 +69,12 @@ public enum VertexTypeEnum { ADDITIONAL_INFORMATION ("additional_information", AdditionalInfoParameterDataDefinition.class), USER ("user", null), INPUTS ("inputs", PropertyDataDefinition.class), + OUTPUTS ("outputs", AttributeDataDefinition.class), GROUPS ("groups", GroupDataDefinition.class), INST_ATTRIBUTES ("instAttributes", MapAttributesDataDefinition.class), INST_PROPERTIES ("instProperties", MapPropertiesDataDefinition.class), INST_INPUTS ("instInputs", MapPropertiesDataDefinition.class), + INST_OUTPUTS ("instOutputs", MapAttributesDataDefinition.class), INST_GROUPS ("instGroups", MapGroupsDataDefinition.class), SERVICE_API_ARTIFACTS ("serviceApiArtifacts", ArtifactDataDefinition.class), CALCULATED_CAPABILITIES ("calculatedCapabilities", MapListCapabilityDataDefinition.class), -- cgit 1.2.3-korg