From 178ba1bb44868ba69d4c8a92398383a4104a85e5 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 19 Jan 2023 14:45:30 +0100 Subject: [PATCH] Added WORKFLOW_PHASE [#24458] --- CHANGELOG.md | 3 +- .../shared/geoportal/ResultDocumentDV.java | 2 ++ .../shared/geoportal/WORKFLOW_PHASE.java | 34 +++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/WORKFLOW_PHASE.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 7323568..bcb74d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [v2.0.1] - 2022-01-12 +## [v2.0.1] - 2022-01-19 #### Bug fixes @@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - [#23927] Integrated with Relationship definition in UCD - [#23834] Integrated with the create/view/delete Relationship facility - [#24136] Integrated the temporal dimension on the front-end side +- [#24458] Published projects cannot be edited/updated ## [v1.4.0] - 2022-06-08 diff --git a/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/ResultDocumentDV.java b/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/ResultDocumentDV.java index 5c83d5a..959c8c3 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/ResultDocumentDV.java +++ b/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/ResultDocumentDV.java @@ -18,6 +18,8 @@ public class ResultDocumentDV extends DocumentDV implements Serializable { private List listRelationshipDV; private GeoJSON spatialReference; + + private WORKFLOW_PHASE worflowPhase; //never used. Just for serialization in GWT /** * diff --git a/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/WORKFLOW_PHASE.java b/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/WORKFLOW_PHASE.java new file mode 100644 index 0000000..8350eb3 --- /dev/null +++ b/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/WORKFLOW_PHASE.java @@ -0,0 +1,34 @@ +package org.gcube.application.geoportalcommon.shared.geoportal; + +/** + * The Enum WORKFLOW_PHASE. + * + * @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it + * + * Jan 19, 2023 + */ +public enum WORKFLOW_PHASE { + + PUBLISHED("Published"); //Should be always the last one + + private String label; + + /** + * Instantiates a new workflow phase. + * + * @param label the label + */ + WORKFLOW_PHASE(String label) { + this.label = label; + } + + /** + * Gets the label. + * + * @return the label + */ + public String getLabel() { + return label; + } + +}