diff options
Diffstat (limited to 'common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFields.java')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFields.java | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFields.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFields.java index 2ec5b286b8..36d0f40311 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFields.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFields.java @@ -105,10 +105,8 @@ public enum JsonPresentationFields { HEAT_PARAMETERS("heatParameters", null), GENERATED_FROM_ID("generatedFromId", null), - // end artifacts - //property DEFINITION("definition", null), DEFAULT_VALUE("defaultValue", null), @@ -236,20 +234,20 @@ public enum JsonPresentationFields { IS_VSP_ARCHIVED("isVspArchived", GraphPropertyEnum.IS_VSP_ARCHIVED), CI_IS_ORIGIN_ARCHIVED("isOriginArchived", null), - //Interface Operation - IO_OPERATION_TYPE("operationType",null), - IO_INPUT_PARAMETERS("inputParams",null), - IO_OUTPUT_PARAMETERS("outputParams",null), + //Interface Operation + IO_OPERATION_TYPE("operationType", null), + IO_INPUT_PARAMETERS("inputParams", null), + IO_OUTPUT_PARAMETERS("outputParams", null), IO_PARAM_NAME("paramName", null), IO_PARAM_ID("paramId", null), IO_NAME("name", null), - IO_MANDATORY("mandatory", null), - IO_TYPE("type", null), - IO_PROPERTY("property", null), - IO_WORKFLOW_NAME("workflowName", null), - IO_WORKFLOW_VERSION("workflowVersion", null), - IO_WORKFLOW_ID("workflowId", null), - IO_WORKFLOW_VERSION_ID("workflowVersionId", null), + IO_MANDATORY("mandatory", null), + IO_TYPE("type", null), + IO_PROPERTY("property", null), + IO_WORKFLOW_NAME("workflowName", null), + IO_WORKFLOW_VERSION("workflowVersion", null), + IO_WORKFLOW_ID("workflowId", null), + IO_WORKFLOW_VERSION_ID("workflowVersionId", null), IO_WORKFLOW_ASSOCIATION_TYPE("workflowAssociationType", null), //Interface @@ -274,11 +272,6 @@ public enum JsonPresentationFields { @ToString.Exclude private final GraphPropertyEnum storedAs; - @JsonValue - public String getPresentation() { - return presentation; - } - public static String getPresentationByGraphProperty(GraphPropertyEnum property) { for (JsonPresentationFields currPresentation : JsonPresentationFields.values()) { if (currPresentation.getStoredAs() == property) { @@ -298,4 +291,9 @@ public enum JsonPresentationFields { return null; } + @JsonValue + public String getPresentation() { + return presentation; + } + } |