From fa90d62ecade68596026cd247e2cbfced586038c Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 23 Feb 2023 11:51:50 +0100 Subject: [PATCH 01/25] first implementation of the UnPublish step --- default-lc-managers/CHANGELOG.md | 6 +- default-lc-managers/pom.xml | 2 +- .../AbstractLifeCycleManager.java | 21 ++++-- .../implementations/AbstractPlugin.java | 6 +- .../implementations/Default3PhaseManager.java | 13 ++-- .../plugins/implementations/RoleManager.java | 19 ++++-- .../SimpleLifeCycleManager.java | 65 +++++++++++++++++-- .../executions/GuardedEventManager.java | 5 +- .../executions/GuardedExecution.java | 9 +-- .../executions/GuardedStepExecution.java | 5 +- 10 files changed, 115 insertions(+), 36 deletions(-) diff --git a/default-lc-managers/CHANGELOG.md b/default-lc-managers/CHANGELOG.md index 7c9afa5..184ecbe 100644 --- a/default-lc-managers/CHANGELOG.md +++ b/default-lc-managers/CHANGELOG.md @@ -1,9 +1,13 @@ # Changelog for org.gcube.application.cms.ckan-plugin +## [v1.1.0-SNAPSHOT] - 2023-02-23 + +- [#24570] Integrated the UnPublish operation + ## [v1.0.1] - 2023-01-10 - Pom updates -- ## [v1.0.0] - 2022-02-24 +## [v1.0.0] - 2022-02-24 - First release This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). diff --git a/default-lc-managers/pom.xml b/default-lc-managers/pom.xml index 3d3ac25..863f9ae 100644 --- a/default-lc-managers/pom.xml +++ b/default-lc-managers/pom.xml @@ -5,7 +5,7 @@ 4.0.0 default-lc-managers - 1.0.1 + 1.1.0-SNAPSHOT gCube CMS - Default LC Managers diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractLifeCycleManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractLifeCycleManager.java index faddf7d..f54a53e 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractLifeCycleManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractLifeCycleManager.java @@ -1,12 +1,22 @@ package org.gcube.application.cms.plugins.implementations; -import lombok.Setter; -import lombok.extern.slf4j.Slf4j; +import java.util.HashMap; +import java.util.Map; + import org.gcube.application.cms.implementations.ProjectAccess; import org.gcube.application.cms.implementations.utils.UserUtils; import org.gcube.application.cms.plugins.LifecycleManager; import org.gcube.application.cms.plugins.PluginManagerInterface; -import org.gcube.application.cms.plugins.faults.*; +import org.gcube.application.cms.plugins.faults.EventException; +import org.gcube.application.cms.plugins.faults.InitializationException; +import org.gcube.application.cms.plugins.faults.InsufficientPrivileges; +import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException; +import org.gcube.application.cms.plugins.faults.InvalidProfileException; +import org.gcube.application.cms.plugins.faults.MaterializationException; +import org.gcube.application.cms.plugins.faults.ShutDownException; +import org.gcube.application.cms.plugins.faults.StepException; +import org.gcube.application.cms.plugins.faults.UnrecognizedEventException; +import org.gcube.application.cms.plugins.faults.UnrecognizedStepException; import org.gcube.application.cms.plugins.implementations.executions.GuardedEventManager; import org.gcube.application.cms.plugins.implementations.executions.GuardedStepExecution; import org.gcube.application.cms.plugins.reports.EventExecutionReport; @@ -25,10 +35,9 @@ import org.gcube.application.geoportal.common.model.plugins.OperationDescriptor; import org.gcube.application.geoportal.common.model.plugins.PluginDescriptor; import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.useCaseDescriptor.HandlerDeclaration; -import org.gcube.application.geoportal.common.utils.ContextUtils; -import java.util.HashMap; -import java.util.Map; +import lombok.Setter; +import lombok.extern.slf4j.Slf4j; @Slf4j public abstract class AbstractLifeCycleManager extends AbstractPlugin implements LifecycleManager { diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractPlugin.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractPlugin.java index c0fe6d7..5bee548 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractPlugin.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractPlugin.java @@ -1,13 +1,13 @@ package org.gcube.application.cms.plugins.implementations; +import java.util.List; +import java.util.Map; + import org.gcube.application.cms.plugins.Plugin; import org.gcube.application.cms.plugins.faults.InvalidProfileException; import org.gcube.application.geoportal.common.model.useCaseDescriptor.HandlerDeclaration; import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor; -import java.util.List; -import java.util.Map; - public abstract class AbstractPlugin implements Plugin { diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java index f27c8ad..ac9e275 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java @@ -1,7 +1,7 @@ package org.gcube.application.cms.plugins.implementations; -import com.vdurmont.semver4j.Semver; -import lombok.extern.slf4j.Slf4j; +import java.util.Collections; + import org.bson.Document; import org.gcube.application.cms.plugins.IndexerPluginInterface; import org.gcube.application.cms.plugins.LifecycleManager; @@ -20,14 +20,16 @@ import org.gcube.application.geoportal.common.model.plugins.OperationDescriptor; import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.utils.Files; -import java.util.Collections; +import com.vdurmont.semver4j.Semver; + +import lombok.extern.slf4j.Slf4j; @Slf4j public class Default3PhaseManager extends SimpleLifeCycleManager implements LifecycleManager { protected static class Phases { public static final String PENDING_APPROVAL="Pending Approval"; - public static final String PUBLISHED="Published"; + public static final String PUBLISHED=SimpleLifeCycleManager.Phases.PUBLISHED; } @@ -92,6 +94,9 @@ public class Default3PhaseManager extends SimpleLifeCycleManager implements Life return executeReject(theReport); } }); + + //Updated by Francesco + setStep(super.unPublishStep()); } public Default3PhaseManager() { diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/RoleManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/RoleManager.java index ad5db3f..1d30152 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/RoleManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/RoleManager.java @@ -1,16 +1,23 @@ package org.gcube.application.cms.plugins.implementations; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.*; -import lombok.extern.slf4j.Slf4j; +import java.util.HashMap; +import java.util.List; + +import javax.xml.bind.annotation.XmlRootElement; + import org.gcube.application.cms.serialization.Serialization; import org.gcube.application.geoportal.common.model.document.accounting.User; import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.useCaseDescriptor.HandlerDeclaration; -import javax.xml.bind.annotation.XmlRootElement; -import java.util.HashMap; -import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import lombok.ToString; +import lombok.extern.slf4j.Slf4j; @Slf4j @ToString diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java index e9e36f5..7d25e96 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java @@ -1,6 +1,9 @@ package org.gcube.application.cms.plugins.implementations; -import lombok.extern.slf4j.Slf4j; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + import org.bson.Document; import org.gcube.application.cms.plugins.IndexerPluginInterface; import org.gcube.application.cms.plugins.LifecycleManager; @@ -10,7 +13,12 @@ import org.gcube.application.cms.plugins.faults.IndexingException; import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException; import org.gcube.application.cms.plugins.faults.MaterializationException; import org.gcube.application.cms.plugins.implementations.executions.GuardedStepExecution; -import org.gcube.application.cms.plugins.reports.*; +import org.gcube.application.cms.plugins.reports.DocumentHandlingReport; +import org.gcube.application.cms.plugins.reports.EventExecutionReport; +import org.gcube.application.cms.plugins.reports.IndexDocumentReport; +import org.gcube.application.cms.plugins.reports.MaterializationReport; +import org.gcube.application.cms.plugins.reports.Report; +import org.gcube.application.cms.plugins.reports.StepExecutionReport; import org.gcube.application.cms.plugins.requests.BaseExecutionRequest; import org.gcube.application.cms.plugins.requests.BaseRequest; import org.gcube.application.cms.plugins.requests.IndexDocumentRequest; @@ -28,9 +36,7 @@ import org.gcube.application.geoportal.common.model.useCaseDescriptor.HandlerDec import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor; import org.gcube.application.geoportal.common.utils.Files; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; +import lombok.extern.slf4j.Slf4j; @Slf4j public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements LifecycleManager { @@ -41,14 +47,22 @@ public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements public SimpleLifeCycleManager() { DESCRIPTOR.setId(PLUGIN_ID); } + + //Updated by Francesco + protected static class Phases { + public static final String PUBLISHED="Published"; + public static final String UNPUBLISHED="UnPublished"; + } - + //Updated by Francesco private static class Steps { public static final OperationDescriptor PUBLISH = new OperationDescriptor("PUBLISH","Materialize & index project"); + public static final OperationDescriptor UNPUBLISH = new OperationDescriptor("UNPUBLISH","UnPublish the project. DeMaterialize and DeIndex the project"); static{ PUBLISH.setAppliableToPhases(Collections.singletonList(LifecycleInformation.CommonPhases.DRAFT_PHASE)); + UNPUBLISH.setAppliableToPhases(Collections.singletonList(Phases.PUBLISHED)); } } @@ -112,11 +126,48 @@ public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements theReport = index(theReport,indexer,getPublicIndexParams(theReport.getTheRequest())); // setPhase if(theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) - theReport.getToSetLifecycleInformation().setPhase("PUBLISHED"); + //TODO CHANGED THE SET PHASE ID + //theReport.getToSetLifecycleInformation().setPhase("PUBLISHED"); + theReport.getToSetLifecycleInformation().setPhase(Phases.PUBLISHED); } return theReport; } }); + + setStep(unPublishStep()); + } + + //Updated by Francesco + protected GuardedStepExecution unPublishStep() { + + return new GuardedStepExecution(Steps.UNPUBLISH) { + @Override + protected StepExecutionReport run() throws Exception { + + //DeMaterialize + JSONPathWrapper wrapper = new JSONPathWrapper(theReport.getTheRequest().getDocument().getTheDocument().toJson()); + for (String s : wrapper.getMatchingPaths("$..[?(@." + RegisteredFileSet.PAYLOADS + ")]")){ + log.info("Requesting dematerialization for {} ",s); + for(MaterializationPlugin mat : getMaterializers(theReport.getTheRequest())) + theReport = deMaterialize(theReport,mat,new Document("fileSetPath",s)); + if(!theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) + break; + } + //DeIndex + if(theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) { + for(IndexerPluginInterface indexer : getIndexers(theReport.getTheRequest())) { + log.info("Requesting deindexing for {} ",indexer.getDescriptor()); + theReport = deIndex(theReport,indexer,getPublicIndexParams(theReport.getTheRequest())); + } + } + + if(theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) + theReport.getToSetLifecycleInformation().setPhase(LifecycleInformation.CommonPhases.DRAFT_PHASE); + + + return theReport; + } + }; } protected void blockNonDraft(EventExecutionReport report) throws InvalidPluginRequestException { diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedEventManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedEventManager.java index eabc58c..4239382 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedEventManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedEventManager.java @@ -1,11 +1,12 @@ package org.gcube.application.cms.plugins.implementations.executions; -import lombok.NonNull; -import lombok.extern.slf4j.Slf4j; import org.gcube.application.cms.plugins.reports.EventExecutionReport; import org.gcube.application.cms.plugins.requests.EventExecutionRequest; import org.gcube.application.geoportal.common.model.plugins.OperationDescriptor; +import lombok.NonNull; +import lombok.extern.slf4j.Slf4j; + @Slf4j public abstract class GuardedEventManager extends GuardedExecution{ diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedExecution.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedExecution.java index 6d73209..2321da6 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedExecution.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedExecution.java @@ -1,9 +1,5 @@ package org.gcube.application.cms.plugins.implementations.executions; -import lombok.Getter; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; import org.gcube.application.cms.plugins.faults.InsufficientPrivileges; import org.gcube.application.cms.plugins.faults.StepException; import org.gcube.application.cms.plugins.reports.DocumentHandlingReport; @@ -12,6 +8,11 @@ import org.gcube.application.geoportal.common.model.plugins.OperationDescriptor; import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.useCaseDescriptor.HandlerDeclaration; +import lombok.Getter; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + @Slf4j @RequiredArgsConstructor diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedStepExecution.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedStepExecution.java index ab58540..32ccc8e 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedStepExecution.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedStepExecution.java @@ -1,13 +1,14 @@ package org.gcube.application.cms.plugins.implementations.executions; -import org.gcube.application.cms.plugins.implementations.RoleManager; -import lombok.NonNull; import org.gcube.application.cms.plugins.faults.InsufficientPrivileges; +import org.gcube.application.cms.plugins.implementations.RoleManager; import org.gcube.application.cms.plugins.reports.StepExecutionReport; import org.gcube.application.cms.plugins.requests.StepExecutionRequest; import org.gcube.application.geoportal.common.model.plugins.OperationDescriptor; import org.gcube.application.geoportal.common.model.rest.ConfigurationException; +import lombok.NonNull; + public abstract class GuardedStepExecution extends GuardedExecution{ From e059e9cfa710efe8a4ac929177962b2161bfadca Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 23 Feb 2023 16:03:26 +0100 Subject: [PATCH 02/25] Organized the UCDs per INFRA/{VRE} --- D4S_UCDs/DEV/devVRE/Concessioni.json | 651 +++++++++++++++++++ D4S_UCDs/DEV/devVRE/Concessioni_estere.json | 651 +++++++++++++++++++ D4S_UCDs/DEV/devVRE/Esquilino.json | 481 ++++++++++++++ D4S_UCDs/PRE/preVRE/Concessioni.json | 651 +++++++++++++++++++ D4S_UCDs/PRE/preVRE/Concessioni_estere.json | 651 +++++++++++++++++++ D4S_UCDs/PRE/preVRE/Esquilino.json | 481 ++++++++++++++ D4S_UCDs/PROD/Esquiline/Esquilino.json | 459 ++++++++++++++ D4S_UCDs/PROD/GNA/Concessioni.json | 653 ++++++++++++++++++++ D4S_UCDs/PROD/GNA/Concessioni_estere.json | 653 ++++++++++++++++++++ 9 files changed, 5331 insertions(+) create mode 100644 D4S_UCDs/DEV/devVRE/Concessioni.json create mode 100644 D4S_UCDs/DEV/devVRE/Concessioni_estere.json create mode 100644 D4S_UCDs/DEV/devVRE/Esquilino.json create mode 100644 D4S_UCDs/PRE/preVRE/Concessioni.json create mode 100644 D4S_UCDs/PRE/preVRE/Concessioni_estere.json create mode 100644 D4S_UCDs/PRE/preVRE/Esquilino.json create mode 100644 D4S_UCDs/PROD/Esquiline/Esquilino.json create mode 100644 D4S_UCDs/PROD/GNA/Concessioni.json create mode 100644 D4S_UCDs/PROD/GNA/Concessioni_estere.json diff --git a/D4S_UCDs/DEV/devVRE/Concessioni.json b/D4S_UCDs/DEV/devVRE/Concessioni.json new file mode 100644 index 0000000..4c5a116 --- /dev/null +++ b/D4S_UCDs/DEV/devVRE/Concessioni.json @@ -0,0 +1,651 @@ +{ + "_id": "profiledConcessioni", + "_version": "1.0.0", + "_name": "Indagini svolte in regime di concessione", + "_schema": { + "abstractRelazione": { + "_min": 1, + "_children": [ + { + "filesetIta": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "filesetEng": { + "_type": "RegisteredFileSet" + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "relazioneScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "immaginiRappresentative": { + "_max": 4, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "posizionamentoScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "pianteFineScavo": { + "_max": -1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + } + }, + "_description": "Embedded profile for concessioni [mibac] management", + "_creationInfo": { + "_user": { + "_username": "fabio.sinibaldi" + } + }, + "_dataAccessPolicies": [ + {"_policy": {"_read": "any","_write": "any"}, + "_roles": ["Data-Manager"]}, + {"_policy": {"_read": "own","_write": "own"}, + "_roles": ["Data-Editor"]}, + {"_policy": {"_read": "any","_write": "none"}, + "_roles": ["Member"], + "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, + {"_policy": {"_read": "none","_write": "none"}, + "_roles": []} + ], + "_handlers": [ + { + "_id": "GNA-CONCESSIONI-LC", + "_type": "LifecycleManagement", + "_configuration": { + "step_access": [ + { + "STEP": "SUBMIT-FOR-REVIEW", + "roles": [] + }, + { + "STEP": "REJECT-DRAFT", + "roles": [ + "Data-Manager" + ] + }, + { + "STEP": "APPROVE-SUBMITTED", + "roles": [ + "Data-Manager" + ] + } + ] + } + }, + { + "_id": "SDI-Default-Materializer", + "_type": "Materializer", + "_configuration": { + "registeredFileSetPaths": [ + { + "schemaField": "pianteFineScavo", + "documentPath": "pianteFineScavo[*].fileset" + }, + { + "schemaField": "posizionamentoScavo", + "documentPath": "posizionamentoScavo.fileset" + } + ] + } + }, + { + "_id": "SDI-Indexer-Plugin", + "_type": "Indexer", + "_configuration": { + "bboxEvaluation": [ + "$..posizionamentoScavo.._bbox" + ], + "explicitFieldMapping": [ + { + "name": "nome", + "path": "$._theDocument.nome", + "type": "TEXT" + }, + { + "name": "anno", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "descrizione", + "path": "$._theDocument.iontroduzione", + "type": "TEXT" + }, + { + "name": "contenuto", + "path": "$._theDocument.descrizioneContenuto", + "type": "TEXT" + }, + { + "name": "autore", + "path": "$._theDocument.authors", + "type": "TEXT" + }, + { + "name": "contributore", + "path": "$._theDocument.contributore", + "type": "TEXT" + }, + { + "name": "titolare", + "path": "$._theDocument.titolari", + "type": "TEXT" + }, + { + "name": "responsabile", + "path": "$._theDocument.responsabile", + "type": "TEXT" + }, + { + "name": "editore", + "path": "$._theDocument.editore", + "type": "TEXT" + }, + { + "name": "finanziamento", + "path": "$._theDocument.fontiFinanziamento", + "type": "TEXT" + }, + { + "name": "soggetto", + "path": "$._theDocument.soggetto", + "type": "TEXT" + }, + { + "name": "risorse", + "path": "$._theDocument.risorseCorrelate", + "type": "TEXT" + }, + { + "name": "date_scavo", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "data_archiviazione", + "path": "$._info._lastEditInfo._instant", + "type": "TEXT" + }, + { + "name": "versione", + "path": "$._version", + "type": "TEXT" + }, + { + "name": "licenza", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "titolare_licenza", + "path": "$._theDocument.titolareLicenza", + "type": "TEXT" + }, + { + "name": "accesso", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "parole_chiave", + "path": "$._theDocument.paroleChiaveLibere", + "type": "TEXT" + } + ], + "jslt": {}, + "additionalLayers": [ + { + "source": { + "url": "..." + }, + "toSetTitle": "" + } + ] + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Informazioni_di_progetto", + "sectionName": "$.", + "sectionTitle": "Informazioni di Progetto" + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Abstract_Relazione_di_Scavo", + "sectionName": "abstractRelazione", + "sectionTitle": "Abstract della Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + }, + { + "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", + "fieldName": "filesetEng" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Relazione_di_Scavo", + "sectionName": "relazioneScavo", + "sectionTitle": "Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Relazione scientifica (in PDF)", + "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Immagine_Rappresentativa_di_Scavo", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 4, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Posizionamento_dell_area_di_indagine", + "sectionName": "posizionamentoScavo", + "sectionTitle": "Posizionamento dell'Area di Indagine", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Pianta_di_fine_Scavo", + "sectionName": "pianteFineScavo", + "sectionTitle": "Piante di Fine Indagine", + "parentName": "$.", + "minOccurs": 0, + "maxOccurs": 0, + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } + ], + "saveStep": "" + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Author/s", + "paths": [ + "_theDocument.authors" + ], + "operator": "$and", + "searchable": false, + "sortable": true, + "asResult": true + }, + { + "label": "Project Start (yyyy-mm-dd)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": false, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start (YEAR)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } +} +, + { + "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", + "_type": "TIMELINE_JSON_TEMPLATE", + "_configuration": { + "tjt_document": { + "content": "$.nome", + "title": "$.nome", + "start": "$.dataInizioProgetto", + "end": "$.dataFineProgetto" + } + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": [], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Submit the Project (for review)", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "id": "reject", + "title": "Reject", + "call_STEPS": [ + "REJECT-DRAFT" + ], + "description": "Reject the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "approve", + "title": "Approve", + "call_STEPS": [ + "APPROVE-SUBMITTED" + ], + "description": "Approve the Project", + "display_on_phase": [ + "Pending Approval" + ] + } + ] + } + } + ], + "_relationshipDefinitions" : [ + {"_id": "precedes", "_label" : "Precede", + "_reverseRelationId" : "follows"}, + {"_id": "follows", "_label" : "Segue", + "_reverseRelationId" : "precedes"} + ] +} diff --git a/D4S_UCDs/DEV/devVRE/Concessioni_estere.json b/D4S_UCDs/DEV/devVRE/Concessioni_estere.json new file mode 100644 index 0000000..e5d7a17 --- /dev/null +++ b/D4S_UCDs/DEV/devVRE/Concessioni_estere.json @@ -0,0 +1,651 @@ +{ + "_id": "concessioni-estere", + "_version": "1.0.0", + "_name": "Missioni archeologiche italiane all'estero", + "_schema": { + "abstractRelazione": { + "_min": 1, + "_children": [ + { + "filesetIta": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "filesetEng": { + "_type": "RegisteredFileSet" + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "relazioneScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "immaginiRappresentative": { + "_max": 4, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "posizionamentoScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "pianteFineScavo": { + "_max": -1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + } + }, + "_description": "Embedded profile for concessioni estere [mibac] management", + "_creationInfo": { + "_user": { + "_username": "fabio.sinibaldi" + } + }, + "_dataAccessPolicies": [ + {"_policy": {"_read": "any","_write": "any"}, + "_roles": ["Data-Manager"]}, + {"_policy": {"_read": "own","_write": "own"}, + "_roles": ["Data-Editor"]}, + {"_policy": {"_read": "any","_write": "none"}, + "_roles": ["Member"], + "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, + {"_policy": {"_read": "none","_write": "none"}, + "_roles": []} + ], + "_handlers": [ + { + "_id": "GNA-CONCESSIONI-LC", + "_type": "LifecycleManagement", + "_configuration": { + "step_access": [ + { + "STEP": "SUBMIT-FOR-REVIEW", + "roles": [] + }, + { + "STEP": "REJECT-DRAFT", + "roles": [ + "Data-Manager" + ] + }, + { + "STEP": "APPROVE-SUBMITTED", + "roles": [ + "Data-Manager" + ] + } + ] + } + }, + { + "_id": "SDI-Default-Materializer", + "_type": "Materializer", + "_configuration": { + "registeredFileSetPaths": [ + { + "schemaField": "pianteFineScavo", + "documentPath": "pianteFineScavo[*].fileset" + }, + { + "schemaField": "posizionamentoScavo", + "documentPath": "posizionamentoScavo.fileset" + } + ] + } + }, + { + "_id": "SDI-Indexer-Plugin", + "_type": "Indexer", + "_configuration": { + "bboxEvaluation": [ + "$..posizionamentoScavo.._bbox" + ], + "explicitFieldMapping": [ + { + "name": "nome", + "path": "$._theDocument.nome", + "type": "TEXT" + }, + { + "name": "anno", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "descrizione", + "path": "$._theDocument.iontroduzione", + "type": "TEXT" + }, + { + "name": "contenuto", + "path": "$._theDocument.descrizioneContenuto", + "type": "TEXT" + }, + { + "name": "autore", + "path": "$._theDocument.authors", + "type": "TEXT" + }, + { + "name": "contributore", + "path": "$._theDocument.contributore", + "type": "TEXT" + }, + { + "name": "titolare", + "path": "$._theDocument.titolari", + "type": "TEXT" + }, + { + "name": "responsabile", + "path": "$._theDocument.responsabile", + "type": "TEXT" + }, + { + "name": "editore", + "path": "$._theDocument.editore", + "type": "TEXT" + }, + { + "name": "finanziamento", + "path": "$._theDocument.fontiFinanziamento", + "type": "TEXT" + }, + { + "name": "soggetto", + "path": "$._theDocument.soggetto", + "type": "TEXT" + }, + { + "name": "risorse", + "path": "$._theDocument.risorseCorrelate", + "type": "TEXT" + }, + { + "name": "date_scavo", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "data_archiviazione", + "path": "$._info._lastEditInfo._instant", + "type": "TEXT" + }, + { + "name": "versione", + "path": "$._version", + "type": "TEXT" + }, + { + "name": "licenza", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "titolare_licenza", + "path": "$._theDocument.titolareLicenza", + "type": "TEXT" + }, + { + "name": "accesso", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "parole_chiave", + "path": "$._theDocument.paroleChiaveLibere", + "type": "TEXT" + } + ], + "jslt": {}, + "additionalLayers": [ + { + "source": { + "url": "..." + }, + "toSetTitle": "" + } + ] + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Informazioni_di_progetto", + "sectionName": "$.", + "sectionTitle": "Informazioni di Progetto" + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Abstract_Relazione_di_Scavo", + "sectionName": "abstractRelazione", + "sectionTitle": "Abstract della Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + }, + { + "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", + "fieldName": "filesetEng" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Relazione_di_Scavo", + "sectionName": "relazioneScavo", + "sectionTitle": "Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Relazione scientifica (in PDF)", + "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Immagine_Rappresentativa_di_Scavo", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 4, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Posizionamento_dell_area_di_indagine", + "sectionName": "posizionamentoScavo", + "sectionTitle": "Posizionamento dell'Area di Indagine", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Pianta_di_fine_Scavo", + "sectionName": "pianteFineScavo", + "sectionTitle": "Piante di Fine Indagine", + "parentName": "$.", + "minOccurs": 0, + "maxOccurs": 0, + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } + ], + "saveStep": "" + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Author/s", + "paths": [ + "_theDocument.authors" + ], + "operator": "$and", + "searchable": false, + "sortable": true, + "asResult": true + }, + { + "label": "Project Start (yyyy-mm-dd)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": false, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start (YEAR)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } +} +, + { + "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", + "_type": "TIMELINE_JSON_TEMPLATE", + "_configuration": { + "tjt_document": { + "content": "$.nome", + "title": "$.nome", + "start": "$.dataInizioProgetto", + "end": "$.dataFineProgetto" + } + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": [], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Submit the Project (for review)", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "id": "reject", + "title": "Reject", + "call_STEPS": [ + "REJECT-DRAFT" + ], + "description": "Reject the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "approve", + "title": "Approve", + "call_STEPS": [ + "APPROVE-SUBMITTED" + ], + "description": "Approve the Project", + "display_on_phase": [ + "Pending Approval" + ] + } + ] + } + } + ], + "_relationshipDefinitions" : [ + {"_id": "precedes", "_label" : "Precede", + "_reverseRelationId" : "follows"}, + {"_id": "follows", "_label" : "Segue", + "_reverseRelationId" : "precedes"} + ] +} diff --git a/D4S_UCDs/DEV/devVRE/Esquilino.json b/D4S_UCDs/DEV/devVRE/Esquilino.json new file mode 100644 index 0000000..43dae3e --- /dev/null +++ b/D4S_UCDs/DEV/devVRE/Esquilino.json @@ -0,0 +1,481 @@ +{ + "_id": "esquilino", + "_version": "1.0.0", + "_name": "Esquilino", + "_schema": { + "fonteInformazione" :{ + "_children": [ + {"filesetIta": {"_type": "RegisteredFileSet"}} + ] + }, + "documentazioneScientifica" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + }, + "immaginiRappresentative" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + }, + "datiAltimetrici" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + }, + "planimetria" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + } + }, + "_description": "UCD for Equilino", + "_creationInfo": { + "_user": { + "_username": "fabio.sinibaldi" + } + }, + "_dataAccessPolicies": [ + {"_policy": {"_read": "any","_write": "any"}, + "_roles": ["Data-Manager"]}, + {"_policy": {"_read": "own","_write": "own"}, + "_roles": ["Data-Editor"]}, + {"_policy": {"_read": "any","_write": "none"}, + "_roles": ["Member"], + "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}"}}, + {"_policy": {"_read": "none","_write": "none"}, + "_roles": []} + ], + "_handlers": [ + { + "_id": "DEFAULT-SINGLE-STEP", + "_type": "LifecycleManagement", + "_configuration": { + "step_access": [ + { + "STEP": "PUBLISH", + "roles": ["Data-Manager","Data-Editor"] + } + ] + } + }, + { + "_id": "SDI-Default-Materializer", + "_type": "Materializer", + "_configuration": { + "registeredFileSetPaths": [ + { + "schemaField": "datiAltimetrici", + "documentPath": "datiAltimetrici[*].fileset" + }, + { + "schemaField": "planimetria", + "documentPath": "planimetria.fileset" + } + ] + } + }, + { + "_id": "SDI-Indexer-Plugin", + "_type": "Indexer", + "_configuration": { + "bboxEvaluation": [ + "$..planimetria.._bbox" + ], + "explicitFieldMapping": [ + { + "name": "definizione", + "path": "$._theDocument.definizione", + "type": "TEXT" + }, + { + "name": "denominazione", + "path": "$._theDocument.denominazione", + "type": "TEXT" + }, + { + "name": "descrizione", + "path": "$._theDocument.descrizione", + "type": "TEXT" + }, + { + "name": "cronologia", + "path": "$._theDocument.cronologia", + "type": "TEXT" + }, + { + "name": "codice_partizione_archeologica", + "path": "$._theDocument.codice_partizione_archeologica", + "type": "TEXT" + }, + { + "name": "modalita_acquisizione", + "path": "$._theDocument.modalita_acquisizione", + "type": "TEXT" + }, + { + "name": "contributore", + "path": "$._theDocument.contributore", + "type": "TEXT" + }, + { + "name": "titolare_dati", + "path": "$._theDocument.titolare_dati", + "type": "TEXT" + }, + { + "name": "soggetto", + "path": "$._theDocument.soggetto", + "type": "TEXT" + }, + { + "name": "copyright", + "path": "$._theDocument.copyright", + "type": "TEXT" + } + ], + "jslt": {}, + "additionalLayers": [ + { + "source": { + "url": "..." + }, + "toSetTitle": "" + } + ] + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Dati_Descrittivi", + "sectionName": "$.", + "sectionTitle": "Dati Descrittivi" + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Fonte_Informazione", + "sectionName": "fonteInformazione", + "sectionTitle": "Fonte dell'informazione", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.fonteInformazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Documentazione_Scientifica", + "sectionName": "documentazioneScientifica", + "sectionTitle": "Documentazione scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Documentazione scientifica (in PDF)", + "fieldDefinition": "$.documentazioneScientifica._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Immagine", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 10, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Dati_Altimetrici", + "sectionName": "datiAltimetrici", + "sectionTitle": "Dati Altimetrici", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.datiAltimetrici._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Planimetria", + "sectionName": "planimetria", + "sectionTitle": "Planimetria", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.planimetria._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } + ], + "saveStep": "" + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.definizione", + "_theDocument.denominazione", + "_theDocument.descrizione", + "_theDocument.cronologia", + "_theDocument.codice_partizione_archeologica", + "_theDocument.modalita_acquisizione", + "_theDocument.contributore", + "_theDocument.titolare_dati", + "_theDocument.soggetto", + "_theDocument.copyright" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Definition", + "paths": [ + "_theDocument.definizione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Name", + "paths": [ + "_theDocument.denominazione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Code", + "paths": [ + "_theDocument.codice_partizione_archeologica" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.contributore", + "_theDocument.titolare_dati" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Chronology", + "paths": [ + "_theDocument.cronologia" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.definizione", + "_theDocument.denominazione", + "_theDocument.descrizione", + "_theDocument.cronologia", + "_theDocument.codice_partizione_archeologica", + "_theDocument.modalita_acquisizione", + "_theDocument.contributore", + "_theDocument.titolare_dati", + "_theDocument.soggetto", + "_theDocument.copyright" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Definition", + "paths": [ + "_theDocument.definizione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Name", + "paths": [ + "_theDocument.denominazione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Code", + "paths": [ + "_theDocument.codice_partizione_archeologica" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.contributore", + "_theDocument.titolare_dati" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Chronology", + "paths": [ + "_theDocument.cronologia" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } +} +, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": ["PUBLISH"], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Submit the Project (for review)", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "id": "reject", + "title": "Reject", + "call_STEPS": [ + "REJECT-DRAFT" + ], + "description": "Reject the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "approve", + "title": "Approve", + "call_STEPS": [ + "APPROVE-SUBMITTED" + ], + "description": "Approve the Project", + "display_on_phase": [ + "Pending Approval" + ] + } + ] + } +} +] +} diff --git a/D4S_UCDs/PRE/preVRE/Concessioni.json b/D4S_UCDs/PRE/preVRE/Concessioni.json new file mode 100644 index 0000000..4c5a116 --- /dev/null +++ b/D4S_UCDs/PRE/preVRE/Concessioni.json @@ -0,0 +1,651 @@ +{ + "_id": "profiledConcessioni", + "_version": "1.0.0", + "_name": "Indagini svolte in regime di concessione", + "_schema": { + "abstractRelazione": { + "_min": 1, + "_children": [ + { + "filesetIta": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "filesetEng": { + "_type": "RegisteredFileSet" + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "relazioneScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "immaginiRappresentative": { + "_max": 4, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "posizionamentoScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "pianteFineScavo": { + "_max": -1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + } + }, + "_description": "Embedded profile for concessioni [mibac] management", + "_creationInfo": { + "_user": { + "_username": "fabio.sinibaldi" + } + }, + "_dataAccessPolicies": [ + {"_policy": {"_read": "any","_write": "any"}, + "_roles": ["Data-Manager"]}, + {"_policy": {"_read": "own","_write": "own"}, + "_roles": ["Data-Editor"]}, + {"_policy": {"_read": "any","_write": "none"}, + "_roles": ["Member"], + "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, + {"_policy": {"_read": "none","_write": "none"}, + "_roles": []} + ], + "_handlers": [ + { + "_id": "GNA-CONCESSIONI-LC", + "_type": "LifecycleManagement", + "_configuration": { + "step_access": [ + { + "STEP": "SUBMIT-FOR-REVIEW", + "roles": [] + }, + { + "STEP": "REJECT-DRAFT", + "roles": [ + "Data-Manager" + ] + }, + { + "STEP": "APPROVE-SUBMITTED", + "roles": [ + "Data-Manager" + ] + } + ] + } + }, + { + "_id": "SDI-Default-Materializer", + "_type": "Materializer", + "_configuration": { + "registeredFileSetPaths": [ + { + "schemaField": "pianteFineScavo", + "documentPath": "pianteFineScavo[*].fileset" + }, + { + "schemaField": "posizionamentoScavo", + "documentPath": "posizionamentoScavo.fileset" + } + ] + } + }, + { + "_id": "SDI-Indexer-Plugin", + "_type": "Indexer", + "_configuration": { + "bboxEvaluation": [ + "$..posizionamentoScavo.._bbox" + ], + "explicitFieldMapping": [ + { + "name": "nome", + "path": "$._theDocument.nome", + "type": "TEXT" + }, + { + "name": "anno", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "descrizione", + "path": "$._theDocument.iontroduzione", + "type": "TEXT" + }, + { + "name": "contenuto", + "path": "$._theDocument.descrizioneContenuto", + "type": "TEXT" + }, + { + "name": "autore", + "path": "$._theDocument.authors", + "type": "TEXT" + }, + { + "name": "contributore", + "path": "$._theDocument.contributore", + "type": "TEXT" + }, + { + "name": "titolare", + "path": "$._theDocument.titolari", + "type": "TEXT" + }, + { + "name": "responsabile", + "path": "$._theDocument.responsabile", + "type": "TEXT" + }, + { + "name": "editore", + "path": "$._theDocument.editore", + "type": "TEXT" + }, + { + "name": "finanziamento", + "path": "$._theDocument.fontiFinanziamento", + "type": "TEXT" + }, + { + "name": "soggetto", + "path": "$._theDocument.soggetto", + "type": "TEXT" + }, + { + "name": "risorse", + "path": "$._theDocument.risorseCorrelate", + "type": "TEXT" + }, + { + "name": "date_scavo", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "data_archiviazione", + "path": "$._info._lastEditInfo._instant", + "type": "TEXT" + }, + { + "name": "versione", + "path": "$._version", + "type": "TEXT" + }, + { + "name": "licenza", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "titolare_licenza", + "path": "$._theDocument.titolareLicenza", + "type": "TEXT" + }, + { + "name": "accesso", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "parole_chiave", + "path": "$._theDocument.paroleChiaveLibere", + "type": "TEXT" + } + ], + "jslt": {}, + "additionalLayers": [ + { + "source": { + "url": "..." + }, + "toSetTitle": "" + } + ] + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Informazioni_di_progetto", + "sectionName": "$.", + "sectionTitle": "Informazioni di Progetto" + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Abstract_Relazione_di_Scavo", + "sectionName": "abstractRelazione", + "sectionTitle": "Abstract della Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + }, + { + "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", + "fieldName": "filesetEng" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Relazione_di_Scavo", + "sectionName": "relazioneScavo", + "sectionTitle": "Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Relazione scientifica (in PDF)", + "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Immagine_Rappresentativa_di_Scavo", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 4, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Posizionamento_dell_area_di_indagine", + "sectionName": "posizionamentoScavo", + "sectionTitle": "Posizionamento dell'Area di Indagine", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Pianta_di_fine_Scavo", + "sectionName": "pianteFineScavo", + "sectionTitle": "Piante di Fine Indagine", + "parentName": "$.", + "minOccurs": 0, + "maxOccurs": 0, + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } + ], + "saveStep": "" + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Author/s", + "paths": [ + "_theDocument.authors" + ], + "operator": "$and", + "searchable": false, + "sortable": true, + "asResult": true + }, + { + "label": "Project Start (yyyy-mm-dd)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": false, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start (YEAR)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } +} +, + { + "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", + "_type": "TIMELINE_JSON_TEMPLATE", + "_configuration": { + "tjt_document": { + "content": "$.nome", + "title": "$.nome", + "start": "$.dataInizioProgetto", + "end": "$.dataFineProgetto" + } + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": [], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Submit the Project (for review)", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "id": "reject", + "title": "Reject", + "call_STEPS": [ + "REJECT-DRAFT" + ], + "description": "Reject the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "approve", + "title": "Approve", + "call_STEPS": [ + "APPROVE-SUBMITTED" + ], + "description": "Approve the Project", + "display_on_phase": [ + "Pending Approval" + ] + } + ] + } + } + ], + "_relationshipDefinitions" : [ + {"_id": "precedes", "_label" : "Precede", + "_reverseRelationId" : "follows"}, + {"_id": "follows", "_label" : "Segue", + "_reverseRelationId" : "precedes"} + ] +} diff --git a/D4S_UCDs/PRE/preVRE/Concessioni_estere.json b/D4S_UCDs/PRE/preVRE/Concessioni_estere.json new file mode 100644 index 0000000..e5d7a17 --- /dev/null +++ b/D4S_UCDs/PRE/preVRE/Concessioni_estere.json @@ -0,0 +1,651 @@ +{ + "_id": "concessioni-estere", + "_version": "1.0.0", + "_name": "Missioni archeologiche italiane all'estero", + "_schema": { + "abstractRelazione": { + "_min": 1, + "_children": [ + { + "filesetIta": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "filesetEng": { + "_type": "RegisteredFileSet" + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "relazioneScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "immaginiRappresentative": { + "_max": 4, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "posizionamentoScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "pianteFineScavo": { + "_max": -1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + } + }, + "_description": "Embedded profile for concessioni estere [mibac] management", + "_creationInfo": { + "_user": { + "_username": "fabio.sinibaldi" + } + }, + "_dataAccessPolicies": [ + {"_policy": {"_read": "any","_write": "any"}, + "_roles": ["Data-Manager"]}, + {"_policy": {"_read": "own","_write": "own"}, + "_roles": ["Data-Editor"]}, + {"_policy": {"_read": "any","_write": "none"}, + "_roles": ["Member"], + "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, + {"_policy": {"_read": "none","_write": "none"}, + "_roles": []} + ], + "_handlers": [ + { + "_id": "GNA-CONCESSIONI-LC", + "_type": "LifecycleManagement", + "_configuration": { + "step_access": [ + { + "STEP": "SUBMIT-FOR-REVIEW", + "roles": [] + }, + { + "STEP": "REJECT-DRAFT", + "roles": [ + "Data-Manager" + ] + }, + { + "STEP": "APPROVE-SUBMITTED", + "roles": [ + "Data-Manager" + ] + } + ] + } + }, + { + "_id": "SDI-Default-Materializer", + "_type": "Materializer", + "_configuration": { + "registeredFileSetPaths": [ + { + "schemaField": "pianteFineScavo", + "documentPath": "pianteFineScavo[*].fileset" + }, + { + "schemaField": "posizionamentoScavo", + "documentPath": "posizionamentoScavo.fileset" + } + ] + } + }, + { + "_id": "SDI-Indexer-Plugin", + "_type": "Indexer", + "_configuration": { + "bboxEvaluation": [ + "$..posizionamentoScavo.._bbox" + ], + "explicitFieldMapping": [ + { + "name": "nome", + "path": "$._theDocument.nome", + "type": "TEXT" + }, + { + "name": "anno", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "descrizione", + "path": "$._theDocument.iontroduzione", + "type": "TEXT" + }, + { + "name": "contenuto", + "path": "$._theDocument.descrizioneContenuto", + "type": "TEXT" + }, + { + "name": "autore", + "path": "$._theDocument.authors", + "type": "TEXT" + }, + { + "name": "contributore", + "path": "$._theDocument.contributore", + "type": "TEXT" + }, + { + "name": "titolare", + "path": "$._theDocument.titolari", + "type": "TEXT" + }, + { + "name": "responsabile", + "path": "$._theDocument.responsabile", + "type": "TEXT" + }, + { + "name": "editore", + "path": "$._theDocument.editore", + "type": "TEXT" + }, + { + "name": "finanziamento", + "path": "$._theDocument.fontiFinanziamento", + "type": "TEXT" + }, + { + "name": "soggetto", + "path": "$._theDocument.soggetto", + "type": "TEXT" + }, + { + "name": "risorse", + "path": "$._theDocument.risorseCorrelate", + "type": "TEXT" + }, + { + "name": "date_scavo", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "data_archiviazione", + "path": "$._info._lastEditInfo._instant", + "type": "TEXT" + }, + { + "name": "versione", + "path": "$._version", + "type": "TEXT" + }, + { + "name": "licenza", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "titolare_licenza", + "path": "$._theDocument.titolareLicenza", + "type": "TEXT" + }, + { + "name": "accesso", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "parole_chiave", + "path": "$._theDocument.paroleChiaveLibere", + "type": "TEXT" + } + ], + "jslt": {}, + "additionalLayers": [ + { + "source": { + "url": "..." + }, + "toSetTitle": "" + } + ] + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Informazioni_di_progetto", + "sectionName": "$.", + "sectionTitle": "Informazioni di Progetto" + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Abstract_Relazione_di_Scavo", + "sectionName": "abstractRelazione", + "sectionTitle": "Abstract della Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + }, + { + "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", + "fieldName": "filesetEng" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Relazione_di_Scavo", + "sectionName": "relazioneScavo", + "sectionTitle": "Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Relazione scientifica (in PDF)", + "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Immagine_Rappresentativa_di_Scavo", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 4, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Posizionamento_dell_area_di_indagine", + "sectionName": "posizionamentoScavo", + "sectionTitle": "Posizionamento dell'Area di Indagine", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Pianta_di_fine_Scavo", + "sectionName": "pianteFineScavo", + "sectionTitle": "Piante di Fine Indagine", + "parentName": "$.", + "minOccurs": 0, + "maxOccurs": 0, + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } + ], + "saveStep": "" + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Author/s", + "paths": [ + "_theDocument.authors" + ], + "operator": "$and", + "searchable": false, + "sortable": true, + "asResult": true + }, + { + "label": "Project Start (yyyy-mm-dd)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": false, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start (YEAR)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } +} +, + { + "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", + "_type": "TIMELINE_JSON_TEMPLATE", + "_configuration": { + "tjt_document": { + "content": "$.nome", + "title": "$.nome", + "start": "$.dataInizioProgetto", + "end": "$.dataFineProgetto" + } + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": [], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Submit the Project (for review)", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "id": "reject", + "title": "Reject", + "call_STEPS": [ + "REJECT-DRAFT" + ], + "description": "Reject the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "approve", + "title": "Approve", + "call_STEPS": [ + "APPROVE-SUBMITTED" + ], + "description": "Approve the Project", + "display_on_phase": [ + "Pending Approval" + ] + } + ] + } + } + ], + "_relationshipDefinitions" : [ + {"_id": "precedes", "_label" : "Precede", + "_reverseRelationId" : "follows"}, + {"_id": "follows", "_label" : "Segue", + "_reverseRelationId" : "precedes"} + ] +} diff --git a/D4S_UCDs/PRE/preVRE/Esquilino.json b/D4S_UCDs/PRE/preVRE/Esquilino.json new file mode 100644 index 0000000..43dae3e --- /dev/null +++ b/D4S_UCDs/PRE/preVRE/Esquilino.json @@ -0,0 +1,481 @@ +{ + "_id": "esquilino", + "_version": "1.0.0", + "_name": "Esquilino", + "_schema": { + "fonteInformazione" :{ + "_children": [ + {"filesetIta": {"_type": "RegisteredFileSet"}} + ] + }, + "documentazioneScientifica" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + }, + "immaginiRappresentative" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + }, + "datiAltimetrici" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + }, + "planimetria" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + } + }, + "_description": "UCD for Equilino", + "_creationInfo": { + "_user": { + "_username": "fabio.sinibaldi" + } + }, + "_dataAccessPolicies": [ + {"_policy": {"_read": "any","_write": "any"}, + "_roles": ["Data-Manager"]}, + {"_policy": {"_read": "own","_write": "own"}, + "_roles": ["Data-Editor"]}, + {"_policy": {"_read": "any","_write": "none"}, + "_roles": ["Member"], + "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}"}}, + {"_policy": {"_read": "none","_write": "none"}, + "_roles": []} + ], + "_handlers": [ + { + "_id": "DEFAULT-SINGLE-STEP", + "_type": "LifecycleManagement", + "_configuration": { + "step_access": [ + { + "STEP": "PUBLISH", + "roles": ["Data-Manager","Data-Editor"] + } + ] + } + }, + { + "_id": "SDI-Default-Materializer", + "_type": "Materializer", + "_configuration": { + "registeredFileSetPaths": [ + { + "schemaField": "datiAltimetrici", + "documentPath": "datiAltimetrici[*].fileset" + }, + { + "schemaField": "planimetria", + "documentPath": "planimetria.fileset" + } + ] + } + }, + { + "_id": "SDI-Indexer-Plugin", + "_type": "Indexer", + "_configuration": { + "bboxEvaluation": [ + "$..planimetria.._bbox" + ], + "explicitFieldMapping": [ + { + "name": "definizione", + "path": "$._theDocument.definizione", + "type": "TEXT" + }, + { + "name": "denominazione", + "path": "$._theDocument.denominazione", + "type": "TEXT" + }, + { + "name": "descrizione", + "path": "$._theDocument.descrizione", + "type": "TEXT" + }, + { + "name": "cronologia", + "path": "$._theDocument.cronologia", + "type": "TEXT" + }, + { + "name": "codice_partizione_archeologica", + "path": "$._theDocument.codice_partizione_archeologica", + "type": "TEXT" + }, + { + "name": "modalita_acquisizione", + "path": "$._theDocument.modalita_acquisizione", + "type": "TEXT" + }, + { + "name": "contributore", + "path": "$._theDocument.contributore", + "type": "TEXT" + }, + { + "name": "titolare_dati", + "path": "$._theDocument.titolare_dati", + "type": "TEXT" + }, + { + "name": "soggetto", + "path": "$._theDocument.soggetto", + "type": "TEXT" + }, + { + "name": "copyright", + "path": "$._theDocument.copyright", + "type": "TEXT" + } + ], + "jslt": {}, + "additionalLayers": [ + { + "source": { + "url": "..." + }, + "toSetTitle": "" + } + ] + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Dati_Descrittivi", + "sectionName": "$.", + "sectionTitle": "Dati Descrittivi" + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Fonte_Informazione", + "sectionName": "fonteInformazione", + "sectionTitle": "Fonte dell'informazione", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.fonteInformazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Documentazione_Scientifica", + "sectionName": "documentazioneScientifica", + "sectionTitle": "Documentazione scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Documentazione scientifica (in PDF)", + "fieldDefinition": "$.documentazioneScientifica._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Immagine", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 10, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Dati_Altimetrici", + "sectionName": "datiAltimetrici", + "sectionTitle": "Dati Altimetrici", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.datiAltimetrici._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Planimetria", + "sectionName": "planimetria", + "sectionTitle": "Planimetria", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.planimetria._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } + ], + "saveStep": "" + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.definizione", + "_theDocument.denominazione", + "_theDocument.descrizione", + "_theDocument.cronologia", + "_theDocument.codice_partizione_archeologica", + "_theDocument.modalita_acquisizione", + "_theDocument.contributore", + "_theDocument.titolare_dati", + "_theDocument.soggetto", + "_theDocument.copyright" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Definition", + "paths": [ + "_theDocument.definizione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Name", + "paths": [ + "_theDocument.denominazione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Code", + "paths": [ + "_theDocument.codice_partizione_archeologica" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.contributore", + "_theDocument.titolare_dati" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Chronology", + "paths": [ + "_theDocument.cronologia" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.definizione", + "_theDocument.denominazione", + "_theDocument.descrizione", + "_theDocument.cronologia", + "_theDocument.codice_partizione_archeologica", + "_theDocument.modalita_acquisizione", + "_theDocument.contributore", + "_theDocument.titolare_dati", + "_theDocument.soggetto", + "_theDocument.copyright" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Definition", + "paths": [ + "_theDocument.definizione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Name", + "paths": [ + "_theDocument.denominazione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Code", + "paths": [ + "_theDocument.codice_partizione_archeologica" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.contributore", + "_theDocument.titolare_dati" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Chronology", + "paths": [ + "_theDocument.cronologia" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } +} +, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": ["PUBLISH"], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Submit the Project (for review)", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "id": "reject", + "title": "Reject", + "call_STEPS": [ + "REJECT-DRAFT" + ], + "description": "Reject the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "approve", + "title": "Approve", + "call_STEPS": [ + "APPROVE-SUBMITTED" + ], + "description": "Approve the Project", + "display_on_phase": [ + "Pending Approval" + ] + } + ] + } +} +] +} diff --git a/D4S_UCDs/PROD/Esquiline/Esquilino.json b/D4S_UCDs/PROD/Esquiline/Esquilino.json new file mode 100644 index 0000000..d5547ed --- /dev/null +++ b/D4S_UCDs/PROD/Esquiline/Esquilino.json @@ -0,0 +1,459 @@ +{ + "_id": "esquilino", + "_version": "1.0.0", + "_name": "Esquilino", + "_schema": { + "fonteInformazione" :{ + "_children": [ + {"filesetIta": {"_type": "RegisteredFileSet"}} + ] + }, + "documentazioneScientifica" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + }, + "immaginiRappresentative" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + }, + "datiAltimetrici" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + }, + "planimetria" :{ + "_children": [ + {"fileset": {"_type": "RegisteredFileSet"}} + ] + } + }, + "_description": "UCD for Equilino", + "_creationInfo": { + "_user": { + "_username": "fabio.sinibaldi" + } + }, + "_dataAccessPolicies": [ + {"_policy": {"_read": "any","_write": "any"}, + "_roles": ["Data-Manager"]}, + {"_policy": {"_read": "own","_write": "own"}, + "_roles": ["Data-Editor"]}, + {"_policy": {"_read": "any","_write": "none"}, + "_roles": ["Member"], + "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}"}}, + {"_policy": {"_read": "none","_write": "none"}, + "_roles": []} + ], + "_handlers": [ + { + "_id": "DEFAULT-SINGLE-STEP", + "_type": "LifecycleManagement", + "_configuration": { + "step_access": [ + { + "STEP": "PUBLISH", + "roles": ["Data-Manager","Data-Editor"] + } + ] + } + }, + { + "_id": "SDI-Default-Materializer", + "_type": "Materializer", + "_configuration": { + "registeredFileSetPaths": [ + { + "schemaField": "datiAltimetrici", + "documentPath": "datiAltimetrici[*].fileset" + }, + { + "schemaField": "planimetria", + "documentPath": "planimetria.fileset" + } + ] + } + }, + { + "_id": "SDI-Indexer-Plugin", + "_type": "Indexer", + "_configuration": { + "bboxEvaluation": [ + "$..planimetria.._bbox" + ], + "explicitFieldMapping": [ + { + "name": "definizione", + "path": "$._theDocument.definizione", + "type": "TEXT" + }, + { + "name": "denominazione", + "path": "$._theDocument.denominazione", + "type": "TEXT" + }, + { + "name": "descrizione", + "path": "$._theDocument.descrizione", + "type": "TEXT" + }, + { + "name": "cronologia", + "path": "$._theDocument.cronologia", + "type": "TEXT" + }, + { + "name": "codice_partizione_archeologica", + "path": "$._theDocument.codice_partizione_archeologica", + "type": "TEXT" + }, + { + "name": "modalita_acquisizione", + "path": "$._theDocument.modalita_acquisizione", + "type": "TEXT" + }, + { + "name": "contributore", + "path": "$._theDocument.contributore", + "type": "TEXT" + }, + { + "name": "titolare_dati", + "path": "$._theDocument.titolare_dati", + "type": "TEXT" + }, + { + "name": "soggetto", + "path": "$._theDocument.soggetto", + "type": "TEXT" + }, + { + "name": "copyright", + "path": "$._theDocument.copyright", + "type": "TEXT" + } + ], + "jslt": {}, + "additionalLayers": [ + { + "source": { + "url": "..." + }, + "toSetTitle": "" + } + ] + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Dati_Descrittivi", + "sectionName": "$.", + "sectionTitle": "Dati Descrittivi" + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Fonte_Informazione", + "sectionName": "fonteInformazione", + "sectionTitle": "Fonte dell'informazione", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.fonteInformazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Documentazione_Scientifica", + "sectionName": "documentazioneScientifica", + "sectionTitle": "Documentazione scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Documentazione scientifica (in PDF)", + "fieldDefinition": "$.documentazioneScientifica._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Immagine", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 10, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Dati_Altimetrici", + "sectionName": "datiAltimetrici", + "sectionTitle": "Dati Altimetrici", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.datiAltimetrici._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Planimetria", + "sectionName": "planimetria", + "sectionTitle": "Planimetria", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.planimetria._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } + ], + "saveStep": "" + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.definizione", + "_theDocument.denominazione", + "_theDocument.descrizione", + "_theDocument.cronologia", + "_theDocument.codice_partizione_archeologica", + "_theDocument.modalita_acquisizione", + "_theDocument.contributore", + "_theDocument.titolare_dati", + "_theDocument.soggetto", + "_theDocument.copyright" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Definition", + "paths": [ + "_theDocument.definizione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Name", + "paths": [ + "_theDocument.denominazione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Code", + "paths": [ + "_theDocument.codice_partizione_archeologica" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.contributore", + "_theDocument.titolare_dati" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Chronology", + "paths": [ + "_theDocument.cronologia" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.definizione", + "_theDocument.denominazione", + "_theDocument.descrizione", + "_theDocument.cronologia", + "_theDocument.codice_partizione_archeologica", + "_theDocument.modalita_acquisizione", + "_theDocument.contributore", + "_theDocument.titolare_dati", + "_theDocument.soggetto", + "_theDocument.copyright" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Definition", + "paths": [ + "_theDocument.definizione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Name", + "paths": [ + "_theDocument.denominazione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Code", + "paths": [ + "_theDocument.codice_partizione_archeologica" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.contributore", + "_theDocument.titolare_dati" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Chronology", + "paths": [ + "_theDocument.cronologia" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } +} +, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": ["PUBLISH"], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "publish", + "title": "Publish the Project", + "call_STEPS": [ + "PUBLISH" + ], + "description": "Publish the Project", + "display_on_phase": [ + "DRAFT" + ] + } + ] + } +} +] +} diff --git a/D4S_UCDs/PROD/GNA/Concessioni.json b/D4S_UCDs/PROD/GNA/Concessioni.json new file mode 100644 index 0000000..a8faa40 --- /dev/null +++ b/D4S_UCDs/PROD/GNA/Concessioni.json @@ -0,0 +1,653 @@ +{ + "_id": "profiledConcessioni", + "_version": "1.0.0", + "_name": "Indagini svolte in regime di concessione", + "_schema": { + "abstractRelazione": { + "_min": 1, + "_children": [ + { + "filesetIta": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "filesetEng": { + "_type": "RegisteredFileSet" + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "relazioneScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "immaginiRappresentative": { + "_max": 4, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "posizionamentoScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "pianteFineScavo": { + "_max": -1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + } + }, + "_description": "Embedded profile for concessioni [mibac] management", + "_creationInfo": { + "_user": { + "_username": "fabio.sinibaldi" + } + }, + "_dataAccessPolicies": [ + {"_policy": {"_read": "any","_write": "any"}, + "_roles": ["Data-Manager"]}, + {"_policy": {"_read": "own","_write": "own"}, + "_roles": ["Data-Editor"]}, + {"_policy": {"_read": "any","_write": "none"}, + "_roles": ["Member"], + "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, + {"_policy": {"_read": "none","_write": "none"}, + "_roles": []} + ], + "_handlers": [ + { + "_id": "GNA-CONCESSIONI-LC", + "_type": "LifecycleManagement", + "_configuration": { + "step_access": [ + { + "STEP": "SUBMIT-FOR-REVIEW", + "roles": [] + }, + { + "STEP": "REJECT-DRAFT", + "roles": [ + "Data-Manager" + ] + }, + { + "STEP": "APPROVE-SUBMITTED", + "roles": [ + "Data-Manager" + ] + } + ] + } + }, + { + "_id": "SDI-Default-Materializer", + "_type": "Materializer", + "_configuration": { + "registeredFileSetPaths": [ + { + "schemaField": "pianteFineScavo", + "documentPath": "pianteFineScavo[*].fileset" + }, + { + "schemaField": "posizionamentoScavo", + "documentPath": "posizionamentoScavo.fileset" + } + ] + } + }, + { + "_id": "SDI-Indexer-Plugin", + "_type": "Indexer", + "_configuration": { + "bboxEvaluation": [ + "$..posizionamentoScavo.._bbox" + ], + "explicitFieldMapping": [ + { + "name": "nome", + "path": "$._theDocument.nome", + "type": "TEXT" + }, + { + "name": "anno", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "descrizione", + "path": "$._theDocument.iontroduzione", + "type": "TEXT" + }, + { + "name": "contenuto", + "path": "$._theDocument.descrizioneContenuto", + "type": "TEXT" + }, + { + "name": "autore", + "path": "$._theDocument.authors", + "type": "TEXT" + }, + { + "name": "contributore", + "path": "$._theDocument.contributore", + "type": "TEXT" + }, + { + "name": "titolare", + "path": "$._theDocument.titolari", + "type": "TEXT" + }, + { + "name": "responsabile", + "path": "$._theDocument.responsabile", + "type": "TEXT" + }, + { + "name": "editore", + "path": "$._theDocument.editore", + "type": "TEXT" + }, + { + "name": "finanziamento", + "path": "$._theDocument.fontiFinanziamento", + "type": "TEXT" + }, + { + "name": "soggetto", + "path": "$._theDocument.soggetto", + "type": "TEXT" + }, + { + "name": "risorse", + "path": "$._theDocument.risorseCorrelate", + "type": "TEXT" + }, + { + "name": "date_scavo", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "data_archiviazione", + "path": "$._info._lastEditInfo._instant", + "type": "TEXT" + }, + { + "name": "versione", + "path": "$._version", + "type": "TEXT" + }, + { + "name": "licenza", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "titolare_licenza", + "path": "$._theDocument.titolareLicenza", + "type": "TEXT" + }, + { + "name": "accesso", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "parole_chiave", + "path": "$._theDocument.paroleChiaveLibere", + "type": "TEXT" + } + ], + "jslt": {}, + "additionalLayers": [ + { + "source": { + "url": "..." + }, + "toSetTitle": "" + } + ] + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Informazioni_di_progetto", + "sectionName": "$.", + "sectionTitle": "Informazioni di Progetto" + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Abstract_Relazione_di_Scavo", + "sectionName": "abstractRelazione", + "sectionTitle": "Abstract della Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + }, + { + "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", + "fieldName": "filesetEng" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Relazione_di_Scavo", + "sectionName": "relazioneScavo", + "sectionTitle": "Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Relazione scientifica (in PDF)", + "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Immagine_Rappresentativa_di_Scavo", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 4, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Posizionamento_dell_area_di_indagine", + "sectionName": "posizionamentoScavo", + "sectionTitle": "Posizionamento dell'Area di Indagine", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Pianta_di_fine_Scavo", + "sectionName": "pianteFineScavo", + "sectionTitle": "Piante di Fine Indagine", + "parentName": "$.", + "minOccurs": 0, + "maxOccurs": 0, + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } + ], + "saveStep": "SUBMIT-FOR-REVIEW" + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Author/s", + "paths": [ + "_theDocument.authors" + ], + "operator": "$and", + "searchable": false, + "sortable": true, + "asResult": true + }, + { + "label": "Project Start (yyyy-mm-dd)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": false, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start (YEAR)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } +} +, + { + "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", + "_type": "TIMELINE_JSON_TEMPLATE", + "_configuration": { + "tjt_document": { + "content": "$.nome", + "title": "$.nome", + "start": "$.dataInizioProgetto", + "end": "$.dataFineProgetto" + } + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Submit the Project (for review)", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "id": "reject", + "title": "Reject", + "call_STEPS": [ + "REJECT-DRAFT" + ], + "description": "Reject the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "approve", + "title": "Approve", + "call_STEPS": [ + "APPROVE-SUBMITTED" + ], + "description": "Approve the Project", + "display_on_phase": [ + "Pending Approval" + ] + } + ] + } + } + ], + "_relationshipDefinitions" : [ + {"_id": "precedes", "_label" : "Precede", + "_reverseRelationId" : "follows"}, + {"_id": "follows", "_label" : "Segue", + "_reverseRelationId" : "precedes"} + ] +} diff --git a/D4S_UCDs/PROD/GNA/Concessioni_estere.json b/D4S_UCDs/PROD/GNA/Concessioni_estere.json new file mode 100644 index 0000000..c3ea2a7 --- /dev/null +++ b/D4S_UCDs/PROD/GNA/Concessioni_estere.json @@ -0,0 +1,653 @@ +{ + "_id": "concessioni-estere", + "_version": "1.0.0", + "_name": "Missioni archeologiche italiane all'estero", + "_schema": { + "abstractRelazione": { + "_min": 1, + "_children": [ + { + "filesetIta": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "filesetEng": { + "_type": "RegisteredFileSet" + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "relazioneScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "immaginiRappresentative": { + "_max": 4, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "posizionamentoScavo": { + "_max": 1, + "_min": 1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + }, + "pianteFineScavo": { + "_max": -1, + "_children": [ + { + "fileset": { + "_type": "RegisteredFileSet", + "_min": 1 + } + }, + { + "title": { + "_min": 1 + } + } + ] + } + }, + "_description": "Embedded profile for concessioni estere [mibac] management", + "_creationInfo": { + "_user": { + "_username": "fabio.sinibaldi" + } + }, + "_dataAccessPolicies": [ + {"_policy": {"_read": "any","_write": "any"}, + "_roles": ["Data-Manager"]}, + {"_policy": {"_read": "own","_write": "own"}, + "_roles": ["Data-Editor"]}, + {"_policy": {"_read": "any","_write": "none"}, + "_roles": ["Member"], + "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, + {"_policy": {"_read": "none","_write": "none"}, + "_roles": []} + ], + "_handlers": [ + { + "_id": "GNA-CONCESSIONI-LC", + "_type": "LifecycleManagement", + "_configuration": { + "step_access": [ + { + "STEP": "SUBMIT-FOR-REVIEW", + "roles": [] + }, + { + "STEP": "REJECT-DRAFT", + "roles": [ + "Data-Manager" + ] + }, + { + "STEP": "APPROVE-SUBMITTED", + "roles": [ + "Data-Manager" + ] + } + ] + } + }, + { + "_id": "SDI-Default-Materializer", + "_type": "Materializer", + "_configuration": { + "registeredFileSetPaths": [ + { + "schemaField": "pianteFineScavo", + "documentPath": "pianteFineScavo[*].fileset" + }, + { + "schemaField": "posizionamentoScavo", + "documentPath": "posizionamentoScavo.fileset" + } + ] + } + }, + { + "_id": "SDI-Indexer-Plugin", + "_type": "Indexer", + "_configuration": { + "bboxEvaluation": [ + "$..posizionamentoScavo.._bbox" + ], + "explicitFieldMapping": [ + { + "name": "nome", + "path": "$._theDocument.nome", + "type": "TEXT" + }, + { + "name": "anno", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "descrizione", + "path": "$._theDocument.iontroduzione", + "type": "TEXT" + }, + { + "name": "contenuto", + "path": "$._theDocument.descrizioneContenuto", + "type": "TEXT" + }, + { + "name": "autore", + "path": "$._theDocument.authors", + "type": "TEXT" + }, + { + "name": "contributore", + "path": "$._theDocument.contributore", + "type": "TEXT" + }, + { + "name": "titolare", + "path": "$._theDocument.titolari", + "type": "TEXT" + }, + { + "name": "responsabile", + "path": "$._theDocument.responsabile", + "type": "TEXT" + }, + { + "name": "editore", + "path": "$._theDocument.editore", + "type": "TEXT" + }, + { + "name": "finanziamento", + "path": "$._theDocument.fontiFinanziamento", + "type": "TEXT" + }, + { + "name": "soggetto", + "path": "$._theDocument.soggetto", + "type": "TEXT" + }, + { + "name": "risorse", + "path": "$._theDocument.risorseCorrelate", + "type": "TEXT" + }, + { + "name": "date_scavo", + "path": "$._theDocument.dataFineProgetto", + "type": "TEXT" + }, + { + "name": "data_archiviazione", + "path": "$._info._lastEditInfo._instant", + "type": "TEXT" + }, + { + "name": "versione", + "path": "$._version", + "type": "TEXT" + }, + { + "name": "licenza", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "titolare_licenza", + "path": "$._theDocument.titolareLicenza", + "type": "TEXT" + }, + { + "name": "accesso", + "path": "$._info._access._license", + "type": "TEXT" + }, + { + "name": "parole_chiave", + "path": "$._theDocument.paroleChiaveLibere", + "type": "TEXT" + } + ], + "jslt": {}, + "additionalLayers": [ + { + "source": { + "url": "..." + }, + "toSetTitle": "" + } + ] + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Informazioni_di_progetto", + "sectionName": "$.", + "sectionTitle": "Informazioni di Progetto" + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Abstract_Relazione_di_Scavo", + "sectionName": "abstractRelazione", + "sectionTitle": "Abstract della Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + }, + { + "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", + "fieldName": "filesetEng" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Relazione_di_Scavo", + "sectionName": "relazioneScavo", + "sectionTitle": "Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Relazione scientifica (in PDF)", + "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Immagine_Rappresentativa_di_Scavo", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 4, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Posizionamento_dell_area_di_indagine", + "sectionName": "posizionamentoScavo", + "sectionTitle": "Posizionamento dell'Area di Indagine", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Pianta_di_fine_Scavo", + "sectionName": "pianteFineScavo", + "sectionTitle": "Piante di Fine Indagine", + "parentName": "$.", + "minOccurs": 0, + "maxOccurs": 0, + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } + ], + "saveStep": "SUBMIT-FOR-REVIEW" + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Author/s", + "paths": [ + "_theDocument.authors" + ], + "operator": "$and", + "searchable": false, + "sortable": true, + "asResult": true + }, + { + "label": "Project Start (yyyy-mm-dd)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] + } +}, + { + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": false, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start (YEAR)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } +} +, + { + "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", + "_type": "TIMELINE_JSON_TEMPLATE", + "_configuration": { + "tjt_document": { + "content": "$.nome", + "title": "$.nome", + "start": "$.dataInizioProgetto", + "end": "$.dataFineProgetto" + } + } + }, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Submit the Project (for review)", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "id": "reject", + "title": "Reject", + "call_STEPS": [ + "REJECT-DRAFT" + ], + "description": "Reject the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "approve", + "title": "Approve", + "call_STEPS": [ + "APPROVE-SUBMITTED" + ], + "description": "Approve the Project", + "display_on_phase": [ + "Pending Approval" + ] + } + ] + } + } + ], + "_relationshipDefinitions" : [ + {"_id": "precedes", "_label" : "Precede", + "_reverseRelationId" : "follows"}, + {"_id": "follows", "_label" : "Segue", + "_reverseRelationId" : "precedes"} + ] +} From 161c545174cb7fccb6c4eaec11763e7eb0b13469 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 23 Feb 2023 16:35:58 +0100 Subject: [PATCH 03/25] Added the UnPublish Step into "GNA-CONCESSIONI-LC" and "WORKFLOW_ACTION_LIST_GUI" --- D4S_UCDs/DEV/devVRE/Concessioni.json | 18 ++++++++++++++++++ D4S_UCDs/DEV/devVRE/Concessioni_estere.json | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/D4S_UCDs/DEV/devVRE/Concessioni.json b/D4S_UCDs/DEV/devVRE/Concessioni.json index 4c5a116..6a4eee2 100644 --- a/D4S_UCDs/DEV/devVRE/Concessioni.json +++ b/D4S_UCDs/DEV/devVRE/Concessioni.json @@ -129,7 +129,14 @@ "roles": [ "Data-Manager" ] + }, + { + "STEP": "UNPUBLISH", + "roles": [ + "Data-Manager" + ] } + ] } }, @@ -637,6 +644,17 @@ "display_on_phase": [ "Pending Approval" ] + }, + { + "id": "unpublish", + "title": "UnPublish", + "call_STEPS": [ + "UNPUBLISH" + ], + "description": "UnPublish the Project", + "display_on_phase": [ + "Published" + ] } ] } diff --git a/D4S_UCDs/DEV/devVRE/Concessioni_estere.json b/D4S_UCDs/DEV/devVRE/Concessioni_estere.json index e5d7a17..5be15ad 100644 --- a/D4S_UCDs/DEV/devVRE/Concessioni_estere.json +++ b/D4S_UCDs/DEV/devVRE/Concessioni_estere.json @@ -129,6 +129,12 @@ "roles": [ "Data-Manager" ] + }, + { + "STEP": "UNPUBLISH", + "roles": [ + "Data-Manager" + ] } ] } @@ -637,6 +643,17 @@ "display_on_phase": [ "Pending Approval" ] + }, + { + "id": "unpublish", + "title": "UnPublish", + "call_STEPS": [ + "UNPUBLISH" + ], + "description": "UnPublish the Project", + "display_on_phase": [ + "Published" + ] } ] } From df35df55b6770aa6296eafd4b008ddb6ee6b2533 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Thu, 23 Feb 2023 17:10:16 +0100 Subject: [PATCH 04/25] Update 'geoportal-service/pom.xml' update pom version to 1.0.13-SNAPSHOT --- geoportal-service/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoportal-service/pom.xml b/geoportal-service/pom.xml index 82c7ac5..f5d562b 100644 --- a/geoportal-service/pom.xml +++ b/geoportal-service/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.gcube.application geoportal-service - 1.0.12 + 1.0.13-SNAPSHOT Geoportal Service war From 3014d475bb56ea4138a094b65ef70e033b243c68 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Thu, 23 Feb 2023 17:13:59 +0100 Subject: [PATCH 05/25] Update 'geoportal-service/CHANGELOG.md' add new version on CHANGELOG --- geoportal-service/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/geoportal-service/CHANGELOG.md b/geoportal-service/CHANGELOG.md index c10350d..93415a3 100644 --- a/geoportal-service/CHANGELOG.md +++ b/geoportal-service/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog for org.gcube.application.geoportal-service +## [v1.0.13-SNAPSHOT] - 2023-02-23 +- Update version to next snapshot + ## [v1.0.12] - 2023-01-10 - Refactored UserUtils into framework plugin From caec2f54c6c2f7203f90ac45e0518d0f811aa118 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Mon, 27 Feb 2023 11:28:50 +0100 Subject: [PATCH 06/25] Activated the dev dependencies --- pom.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index c3f4017..0fd6852 100644 --- a/pom.xml +++ b/pom.xml @@ -22,16 +22,16 @@ https://code-repo.d4science.org/gCubeSystem - 2.0.2 - 2.1.1 - 3.6.3 - [1.0.0,2.0.0-SNAPSHOT) + + + + - - - - + 2.1.0-SNAPSHOT + 2.2.0-SNAPSHOT + 3.7.0-SNAPSHOT + [2.0.0-SNAPSHOT,3.0.0-SNAPSHOT) 1.0.3 From c5c5fdd6fec55fcabba05467d722973dcf089e0d Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Mon, 27 Feb 2023 14:42:39 +0100 Subject: [PATCH 07/25] Activated production dependencies --- pom.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 0fd6852..81e5368 100644 --- a/pom.xml +++ b/pom.xml @@ -22,16 +22,16 @@ https://code-repo.d4science.org/gCubeSystem - - - - + 2.0.2 + 2.1.1 + 3.6.3 + [1.0.0,2.0.0-SNAPSHOT) - 2.1.0-SNAPSHOT - 2.2.0-SNAPSHOT - 3.7.0-SNAPSHOT - [2.0.0-SNAPSHOT,3.0.0-SNAPSHOT) + + + + 1.0.3 From 0c536f2ddee760566c9e22bef5f96fa0e60f817c Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Tue, 28 Feb 2023 14:34:32 +0100 Subject: [PATCH 08/25] fixed enunciate api-doc path --- .../webapp/{docs => api-docs}/css/d4science_enunciate_custom.css | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename geoportal-service/src/main/webapp/{docs => api-docs}/css/d4science_enunciate_custom.css (100%) diff --git a/geoportal-service/src/main/webapp/docs/css/d4science_enunciate_custom.css b/geoportal-service/src/main/webapp/api-docs/css/d4science_enunciate_custom.css similarity index 100% rename from geoportal-service/src/main/webapp/docs/css/d4science_enunciate_custom.css rename to geoportal-service/src/main/webapp/api-docs/css/d4science_enunciate_custom.css From 2cd07f6f3bbdca478386703c23e5bc6f246c37b9 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Tue, 28 Feb 2023 14:44:40 +0100 Subject: [PATCH 09/25] added height: 100px; --- .../src/main/webapp/api-docs/css/d4science_enunciate_custom.css | 1 + 1 file changed, 1 insertion(+) diff --git a/geoportal-service/src/main/webapp/api-docs/css/d4science_enunciate_custom.css b/geoportal-service/src/main/webapp/api-docs/css/d4science_enunciate_custom.css index 9dae183..48a9abd 100644 --- a/geoportal-service/src/main/webapp/api-docs/css/d4science_enunciate_custom.css +++ b/geoportal-service/src/main/webapp/api-docs/css/d4science_enunciate_custom.css @@ -6,6 +6,7 @@ padding: 10px; background: white; width: 100%; + height: 100px; } .navbar-fixed-top { From 8d888a869e27e60c3601566704fa456747cfc3b3 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Tue, 28 Feb 2023 15:09:57 +0100 Subject: [PATCH 10/25] Removed -SNAPSHOT in order to deploy on PRE --- geoportal-service/CHANGELOG.md | 2 +- geoportal-service/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/geoportal-service/CHANGELOG.md b/geoportal-service/CHANGELOG.md index 93415a3..b813121 100644 --- a/geoportal-service/CHANGELOG.md +++ b/geoportal-service/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog for org.gcube.application.geoportal-service -## [v1.0.13-SNAPSHOT] - 2023-02-23 +## [v1.0.13] - 2023-02-23 - Update version to next snapshot ## [v1.0.12] - 2023-01-10 diff --git a/geoportal-service/pom.xml b/geoportal-service/pom.xml index f5d562b..4f5d02f 100644 --- a/geoportal-service/pom.xml +++ b/geoportal-service/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.gcube.application geoportal-service - 1.0.13-SNAPSHOT + 1.0.13 Geoportal Service war From c82f5a7ba9b43a037ae98ac8b2cf56333b6a8438 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 1 Mar 2023 11:22:40 +0100 Subject: [PATCH 11/25] Added -SNAPSHOT version --- geoportal-service/CHANGELOG.md | 2 +- geoportal-service/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/geoportal-service/CHANGELOG.md b/geoportal-service/CHANGELOG.md index b813121..93415a3 100644 --- a/geoportal-service/CHANGELOG.md +++ b/geoportal-service/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog for org.gcube.application.geoportal-service -## [v1.0.13] - 2023-02-23 +## [v1.0.13-SNAPSHOT] - 2023-02-23 - Update version to next snapshot ## [v1.0.12] - 2023-01-10 diff --git a/geoportal-service/pom.xml b/geoportal-service/pom.xml index 4f5d02f..f5d562b 100644 --- a/geoportal-service/pom.xml +++ b/geoportal-service/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.gcube.application geoportal-service - 1.0.13 + 1.0.13-SNAPSHOT Geoportal Service war From eab6a27c766c94b19a46b06820dc429c696976c5 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 1 Mar 2023 11:47:29 +0100 Subject: [PATCH 12/25] enabled the DEV environment --- pom.xml | 87 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/pom.xml b/pom.xml index 81e5368..2d146b5 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,5 @@ - 4.0.0 @@ -22,16 +23,16 @@ https://code-repo.d4science.org/gCubeSystem - 2.0.2 - 2.1.1 - 3.6.3 - [1.0.0,2.0.0-SNAPSHOT) + + + + - - - - + 2.1.0-SNAPSHOT + 2.2.0-SNAPSHOT + 3.7.0-SNAPSHOT + 1.0.3 @@ -75,10 +76,10 @@ cms-test-commons - use-cases + use-cases - + @@ -164,7 +165,7 @@ - + org.gcube.application.cms @@ -271,7 +272,7 @@ org.gcube.common storagehub-client-library - ${storagehub-version-range} + @@ -287,37 +288,37 @@ - + - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.codehaus.mojo - flatten-maven-plugin - [1.0.0,) - - flatten - - - - - false - - - - - - - - - + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.codehaus.mojo + flatten-maven-plugin + [1.0.0,) + + flatten + + + + + false + + + + + + + + + org.codehaus.mojo From 0edc6c6f1fbc29160c29a871fb011663db4581ee Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 1 Mar 2023 14:40:30 +0100 Subject: [PATCH 13/25] merged with master branch --- D4S_UCDs/PRE/preVRE/Concessioni.json | 704 ++++++++++++------------ D4S_UCDs/PRE/preVRE/Esquilino.json | 772 +++++++++++++++------------ 2 files changed, 803 insertions(+), 673 deletions(-) diff --git a/D4S_UCDs/PRE/preVRE/Concessioni.json b/D4S_UCDs/PRE/preVRE/Concessioni.json index 4c5a116..53a8d33 100644 --- a/D4S_UCDs/PRE/preVRE/Concessioni.json +++ b/D4S_UCDs/PRE/preVRE/Concessioni.json @@ -98,15 +98,43 @@ } }, "_dataAccessPolicies": [ - {"_policy": {"_read": "any","_write": "any"}, - "_roles": ["Data-Manager"]}, - {"_policy": {"_read": "own","_write": "own"}, - "_roles": ["Data-Editor"]}, - {"_policy": {"_read": "any","_write": "none"}, - "_roles": ["Member"], - "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, - {"_policy": {"_read": "none","_write": "none"}, - "_roles": []} + { + "_policy": { + "_read": "any", + "_write": "any" + }, + "_roles": [ + "Data-Manager" + ] + }, + { + "_policy": { + "_read": "own", + "_write": "own" + }, + "_roles": [ + "Data-Editor" + ] + }, + { + "_policy": { + "_read": "any", + "_write": "none" + }, + "_roles": [ + "Member" + ], + "_enforcer": { + "_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}" + } + }, + { + "_policy": { + "_read": "none", + "_write": "none" + }, + "_roles": [] + } ], "_handlers": [ { @@ -129,6 +157,12 @@ "roles": [ "Data-Manager" ] + }, + { + "STEP": "UNPUBLISH", + "roles": [ + "Data-Manager" + ] } ] } @@ -264,323 +298,322 @@ ] } }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Informazioni_di_progetto", - "sectionName": "$.", - "sectionTitle": "Informazioni di Progetto" - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Abstract_Relazione_di_Scavo", - "sectionName": "abstractRelazione", - "sectionTitle": "Abstract della Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - }, - { - "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", - "fieldName": "filesetEng" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Relazione_di_Scavo", - "sectionName": "relazioneScavo", - "sectionTitle": "Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Relazione scientifica (in PDF)", - "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Immagine_Rappresentativa_di_Scavo", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 4, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Posizionamento_dell_area_di_indagine", - "sectionName": "posizionamentoScavo", - "sectionTitle": "Posizionamento dell'Area di Indagine", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Pianta_di_fine_Scavo", - "sectionName": "pianteFineScavo", - "sectionTitle": "Piante di Fine Indagine", - "parentName": "$.", - "minOccurs": 0, - "maxOccurs": 0, - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "" - } - }, { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Informazioni_di_progetto", + "sectionName": "$.", + "sectionTitle": "Informazioni di Progetto" + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Abstract_Relazione_di_Scavo", + "sectionName": "abstractRelazione", + "sectionTitle": "Abstract della Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + }, + { + "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", + "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", + "fieldName": "filesetEng" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Relazione_di_Scavo", + "sectionName": "relazioneScavo", + "sectionTitle": "Relazione Scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Relazione scientifica (in PDF)", + "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Immagine_Rappresentativa_di_Scavo", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 4, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Posizionamento_dell_area_di_indagine", + "sectionName": "posizionamentoScavo", + "sectionTitle": "Posizionamento dell'Area di Indagine", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoNaMetadata", + "gcubeName": "Pianta_di_fine_Scavo", + "sectionName": "pianteFineScavo", + "sectionTitle": "Piante di Fine Indagine", + "parentName": "$.", + "minOccurs": 0, + "maxOccurs": 0, + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Author/s", - "paths": [ - "_theDocument.authors" - ], - "operator": "$and", - "searchable": false, - "sortable": true, - "asResult": true - }, - { - "label": "Project Start (yyyy-mm-dd)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false + "saveStep": "" } - ] - } -}, + }, { - "_id": "org.gcube.portlets.user.geoportal-basic-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": false, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start (YEAR)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Author/s", + "paths": [ + "_theDocument.authors" + ], + "operator": "$and", + "searchable": false, + "sortable": true, + "asResult": true + }, + { + "label": "Project Start (yyyy-mm-dd)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] } - ] - } -} -, + }, + { + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.nome", + "_theDocument.introduzione", + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile", + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Name", + "paths": [ + "_theDocument.nome" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Introduction", + "paths": [ + "_theDocument.introduzione" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": false, + "sortable": false, + "asResult": true + }, + { + "label": "Project Start (YEAR)", + "paths": [ + "_theDocument.dataInizioProgetto" + ], + "operator": "$and", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.authors", + "_theDocument.contributore", + "_theDocument.titolari", + "_theDocument.editore", + "_theDocument.responsabile" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Keywords", + "paths": [ + "_theDocument.paroleChiaveLibere", + "_theDocument.paroleChiaveICCD" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } + ] + } + }, { "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", "_type": "TIMELINE_JSON_TEMPLATE", @@ -637,15 +670,32 @@ "display_on_phase": [ "Pending Approval" ] + }, + { + "id": "unpublish", + "title": "UnPublish", + "call_STEPS": [ + "UNPUBLISH" + ], + "description": "UnPublish the Project", + "display_on_phase": [ + "Published" + ] } ] } } ], - "_relationshipDefinitions" : [ - {"_id": "precedes", "_label" : "Precede", - "_reverseRelationId" : "follows"}, - {"_id": "follows", "_label" : "Segue", - "_reverseRelationId" : "precedes"} + "_relationshipDefinitions": [ + { + "_id": "precedes", + "_label": "Precede", + "_reverseRelationId": "follows" + }, + { + "_id": "follows", + "_label": "Segue", + "_reverseRelationId": "precedes" + } ] -} +} \ No newline at end of file diff --git a/D4S_UCDs/PRE/preVRE/Esquilino.json b/D4S_UCDs/PRE/preVRE/Esquilino.json index 43dae3e..0150d32 100644 --- a/D4S_UCDs/PRE/preVRE/Esquilino.json +++ b/D4S_UCDs/PRE/preVRE/Esquilino.json @@ -3,29 +3,49 @@ "_version": "1.0.0", "_name": "Esquilino", "_schema": { - "fonteInformazione" :{ + "fonteInformazione": { "_children": [ - {"filesetIta": {"_type": "RegisteredFileSet"}} + { + "filesetIta": { + "_type": "RegisteredFileSet" + } + } ] }, - "documentazioneScientifica" :{ + "documentazioneScientifica": { "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} + { + "fileset": { + "_type": "RegisteredFileSet" + } + } ] }, - "immaginiRappresentative" :{ + "immaginiRappresentative": { "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} + { + "fileset": { + "_type": "RegisteredFileSet" + } + } ] }, - "datiAltimetrici" :{ + "datiAltimetrici": { "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} + { + "fileset": { + "_type": "RegisteredFileSet" + } + } ] }, - "planimetria" :{ + "planimetria": { "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} + { + "fileset": { + "_type": "RegisteredFileSet" + } + } ] } }, @@ -36,15 +56,43 @@ } }, "_dataAccessPolicies": [ - {"_policy": {"_read": "any","_write": "any"}, - "_roles": ["Data-Manager"]}, - {"_policy": {"_read": "own","_write": "own"}, - "_roles": ["Data-Editor"]}, - {"_policy": {"_read": "any","_write": "none"}, - "_roles": ["Member"], - "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}"}}, - {"_policy": {"_read": "none","_write": "none"}, - "_roles": []} + { + "_policy": { + "_read": "any", + "_write": "any" + }, + "_roles": [ + "Data-Manager" + ] + }, + { + "_policy": { + "_read": "own", + "_write": "own" + }, + "_roles": [ + "Data-Editor" + ] + }, + { + "_policy": { + "_read": "any", + "_write": "none" + }, + "_roles": [ + "Member" + ], + "_enforcer": { + "_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}" + } + }, + { + "_policy": { + "_read": "none", + "_write": "none" + }, + "_roles": [] + } ], "_handlers": [ { @@ -54,7 +102,16 @@ "step_access": [ { "STEP": "PUBLISH", - "roles": ["Data-Manager","Data-Editor"] + "roles": [ + "Data-Manager", + "Data-Editor" + ] + }, + { + "STEP": "UNPUBLISH", + "roles": [ + "Data-Manager" + ] } ] } @@ -145,337 +202,360 @@ ] } }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Dati_Descrittivi", - "sectionName": "$.", - "sectionTitle": "Dati Descrittivi" - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Fonte_Informazione", - "sectionName": "fonteInformazione", - "sectionTitle": "Fonte dell'informazione", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.fonteInformazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Documentazione_Scientifica", - "sectionName": "documentazioneScientifica", - "sectionTitle": "Documentazione scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Documentazione scientifica (in PDF)", - "fieldDefinition": "$.documentazioneScientifica._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Immagine", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 10, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Dati_Altimetrici", - "sectionName": "datiAltimetrici", - "sectionTitle": "Dati Altimetrici", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.datiAltimetrici._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Planimetria", - "sectionName": "planimetria", - "sectionTitle": "Planimetria", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.planimetria._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "" - } -}, { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.definizione", - "_theDocument.denominazione", - "_theDocument.descrizione", - "_theDocument.cronologia", - "_theDocument.codice_partizione_archeologica", - "_theDocument.modalita_acquisizione", - "_theDocument.contributore", - "_theDocument.titolare_dati", - "_theDocument.soggetto", - "_theDocument.copyright" + "_id": "org.gcube.portlets.user.geoportal-data-entry-app", + "_type": "DATA_ENTRY_GUI", + "_configuration": { + "gcubeProfiles": [ + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Dati_Descrittivi", + "sectionName": "$.", + "sectionTitle": "Dati Descrittivi" + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Fonte_Informazione", + "sectionName": "fonteInformazione", + "sectionTitle": "Fonte dell'informazione", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "$.fonteInformazione._children[?(@.filesetIta)]", + "fieldName": "filesetIta" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Documentazione_Scientifica", + "sectionName": "documentazioneScientifica", + "sectionTitle": "Documentazione scientifica", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Documentazione scientifica (in PDF)", + "fieldDefinition": "$.documentazioneScientifica._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Immagine", + "sectionName": "immaginiRappresentative", + "sectionTitle": "Immagini Rappresentative", + "minOccurs": 1, + "maxOccurs": 10, + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Dati_Altimetrici", + "sectionName": "datiAltimetrici", + "sectionTitle": "Dati Altimetrici", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.datiAltimetrici._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + }, + { + "gcubeSecondaryType": "GeoportalMetadata", + "gcubeName": "Esquilino_Planimetria", + "sectionName": "planimetria", + "sectionTitle": "Planimetria", + "parentName": "$.", + "filePaths": [ + { + "gcubeProfileFieldName": "File", + "fieldDefinition": "$.planimetria._children[?(@.fileset)]", + "fieldName": "fileset" + } + ] + } ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Definition", - "paths": [ - "_theDocument.definizione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Name", - "paths": [ - "_theDocument.denominazione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Code", - "paths": [ - "_theDocument.codice_partizione_archeologica" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.contributore", - "_theDocument.titolare_dati" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Chronology", - "paths": [ - "_theDocument.cronologia" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false + "saveStep": "" } - ] - } -}, + }, { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.definizione", - "_theDocument.denominazione", - "_theDocument.descrizione", - "_theDocument.cronologia", - "_theDocument.codice_partizione_archeologica", - "_theDocument.modalita_acquisizione", - "_theDocument.contributore", - "_theDocument.titolare_dati", - "_theDocument.soggetto", - "_theDocument.copyright" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Definition", - "paths": [ - "_theDocument.definizione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Name", - "paths": [ - "_theDocument.denominazione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Code", - "paths": [ - "_theDocument.codice_partizione_archeologica" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.contributore", - "_theDocument.titolare_dati" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Chronology", - "paths": [ - "_theDocument.cronologia" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.definizione", + "_theDocument.denominazione", + "_theDocument.descrizione", + "_theDocument.cronologia", + "_theDocument.codice_partizione_archeologica", + "_theDocument.modalita_acquisizione", + "_theDocument.contributore", + "_theDocument.titolare_dati", + "_theDocument.soggetto", + "_theDocument.copyright" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Definition", + "paths": [ + "_theDocument.definizione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Name", + "paths": [ + "_theDocument.denominazione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Code", + "paths": [ + "_theDocument.codice_partizione_archeologica" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.contributore", + "_theDocument.titolare_dati" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Chronology", + "paths": [ + "_theDocument.cronologia" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Creator", + "paths": [ + "_info._creationInfo._user._username" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Updated", + "paths": [ + "_info._lastEditInfo._instant" + ], + "operator": "$or", + "searchable": false, + "sortable": true, + "asResult": false + }, + { + "label": "Phase", + "paths": [ + "_lifecycleInformation._phase" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + }, + { + "label": "Status", + "paths": [ + "_lifecycleInformation._lastOperationStatus" + ], + "operator": "$or", + "searchable": true, + "sortable": true, + "asResult": false + } + ] } - ] - } -} -, + }, { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": ["PUBLISH"], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "submit_for_review", - "title": "Submit for Review", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Submit the Project (for review)", - "display_on_phase": [ - "DRAFT" - ] - }, - { - "id": "reject", - "title": "Reject", - "call_STEPS": [ - "REJECT-DRAFT" - ], - "description": "Reject the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "approve", - "title": "Approve", - "call_STEPS": [ - "APPROVE-SUBMITTED" - ], - "description": "Approve the Project", - "display_on_phase": [ - "Pending Approval" + "_id": "org.gcube.portlets.user.geoportal-data-list", + "_type": "BASIC_DATA_LIST_GUI", + "_configuration": { + "itemFields": [ + { + "label": "Any Field", + "paths": [ + "_theDocument.definizione", + "_theDocument.denominazione", + "_theDocument.descrizione", + "_theDocument.cronologia", + "_theDocument.codice_partizione_archeologica", + "_theDocument.modalita_acquisizione", + "_theDocument.contributore", + "_theDocument.titolare_dati", + "_theDocument.soggetto", + "_theDocument.copyright" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": false + }, + { + "label": "Definition", + "paths": [ + "_theDocument.definizione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Name", + "paths": [ + "_theDocument.denominazione" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Code", + "paths": [ + "_theDocument.codice_partizione_archeologica" + ], + "operator": "$and", + "searchable": true, + "sortable": true, + "asResult": true + }, + { + "label": "Director/Staff", + "paths": [ + "_theDocument.contributore", + "_theDocument.titolare_dati" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + }, + { + "label": "Chronology", + "paths": [ + "_theDocument.cronologia" + ], + "operator": "$or", + "searchable": true, + "sortable": false, + "asResult": true + } ] } - ] - } -} -] -} + }, + { + "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", + "_type": "WORKFLOW_ACTION_LIST_GUI", + "_configuration": { + "actionsDefinition": [ + { + "id": "post_creation_action", + "title": "Post Creation Action", + "call_STEPS": [ + "PUBLISH" + ], + "description": "Action fired after the Project creation", + "display_on_phase": [] + }, + { + "id": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "SUBMIT-FOR-REVIEW" + ], + "description": "Submit the Project (for review)", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "id": "reject", + "title": "Reject", + "call_STEPS": [ + "REJECT-DRAFT" + ], + "description": "Reject the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "approve", + "title": "Approve", + "call_STEPS": [ + "APPROVE-SUBMITTED" + ], + "description": "Approve the Project", + "display_on_phase": [ + "Pending Approval" + ] + }, + { + "id": "unpublish", + "title": "UnPublish", + "call_STEPS": [ + "UNPUBLISH" + ], + "description": "UnPublish the Project", + "display_on_phase": [ + "Published" + ] + }, + { + "id": "unpublish", + "title": "UnPublish", + "call_STEPS": [ + "UNPUBLISH" + ], + "description": "UnPublish the Project", + "display_on_phase": [ + "PUBLISHED" + ] + } + ] + } + } + ] +} \ No newline at end of file From 1431a06171725505bb0af689f6e5825260df64a2 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 1 Mar 2023 14:43:18 +0100 Subject: [PATCH 14/25] added storagehub-version-range --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2d146b5..3705f6e 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ 2.1.0-SNAPSHOT 2.2.0-SNAPSHOT 3.7.0-SNAPSHOT - + [2.0.0-SNAPSHOT,3.0.0-SNAPSHOT) 1.0.3 From 9c9bd0b382b32ffb7b15d8475498ee994da56833 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 1 Mar 2023 17:35:44 +0100 Subject: [PATCH 15/25] Added UNPULISH Operation in the Default3PhaseManager --- .../cms/plugins/implementations/Default3PhaseManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java index ac9e275..4af8e61 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java @@ -22,6 +22,7 @@ import org.gcube.application.geoportal.common.utils.Files; import com.vdurmont.semver4j.Semver; +import SimpleLifeCycleManager.Phases; import lombok.extern.slf4j.Slf4j; @Slf4j @@ -37,11 +38,13 @@ public class Default3PhaseManager extends SimpleLifeCycleManager implements Life public static final OperationDescriptor SUBMIT=new OperationDescriptor("SUBMIT-FOR-REVIEW","Submits the Draft for reviewing"); public static final OperationDescriptor REJECT=new OperationDescriptor("REJECT-DRAFT","Rejects the submitted Draft"); public static final OperationDescriptor APPROVE=new OperationDescriptor("APPROVE-SUBMITTED","Approves the submitted Draft"); + public static final OperationDescriptor UNPUBLISH = new OperationDescriptor("UNPUBLISH","UnPublish the project. DeMaterialize and DeIndex the project"); static { SUBMIT.setAppliableToPhases(Collections.singletonList(LifecycleInformation.CommonPhases.DRAFT_PHASE)); REJECT.setAppliableToPhases(Collections.singletonList(Phases.PENDING_APPROVAL)); APPROVE.setAppliableToPhases(Collections.singletonList(Phases.PENDING_APPROVAL)); + UNPUBLISH.setAppliableToPhases(Collections.singletonList(Phases.PUBLISHED)); } } From 6dd921fb056c65e0f8130c73125364652c28b0a9 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 1 Mar 2023 17:41:14 +0100 Subject: [PATCH 16/25] Using storagehub-version-range declaration --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3705f6e..8e7add4 100644 --- a/pom.xml +++ b/pom.xml @@ -272,7 +272,7 @@ org.gcube.common storagehub-client-library - + ${storagehub-version-range} From a6f9e5be9b9c0e5d66cb0a9f6ed0b6d90a84d07f Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 1 Mar 2023 17:44:25 +0100 Subject: [PATCH 17/25] fixed import --- .../cms/plugins/implementations/Default3PhaseManager.java | 1 - 1 file changed, 1 deletion(-) diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java index 4af8e61..4f036c1 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java @@ -22,7 +22,6 @@ import org.gcube.application.geoportal.common.utils.Files; import com.vdurmont.semver4j.Semver; -import SimpleLifeCycleManager.Phases; import lombok.extern.slf4j.Slf4j; @Slf4j From 0b8d2f3b4b26d483b8e6587fa617aa461b88caeb Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 2 Mar 2023 12:16:13 +0100 Subject: [PATCH 18/25] Added throw StepException --- .../cms/plugins/implementations/SimpleLifeCycleManager.java | 2 +- .../plugins/implementations/executions/GuardedExecution.java | 4 ++-- .../implementations/executions/GuardedStepExecution.java | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java index 7d25e96..e7fde22 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java @@ -143,7 +143,7 @@ public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements return new GuardedStepExecution(Steps.UNPUBLISH) { @Override protected StepExecutionReport run() throws Exception { - + log.info(Steps.UNPUBLISH+ " running..."); //DeMaterialize JSONPathWrapper wrapper = new JSONPathWrapper(theReport.getTheRequest().getDocument().getTheDocument().toJson()); for (String s : wrapper.getMatchingPaths("$..[?(@." + RegisteredFileSet.PAYLOADS + ")]")){ diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedExecution.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedExecution.java index 2321da6..35688f5 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedExecution.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/executions/GuardedExecution.java @@ -29,14 +29,14 @@ public abstract class GuardedExecution Date: Thu, 2 Mar 2023 13:57:18 +0100 Subject: [PATCH 19/25] Updated pom to 1.1.1-SNAPSHOT --- default-lc-managers/CHANGELOG.md | 2 +- default-lc-managers/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/default-lc-managers/CHANGELOG.md b/default-lc-managers/CHANGELOG.md index 184ecbe..c463695 100644 --- a/default-lc-managers/CHANGELOG.md +++ b/default-lc-managers/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog for org.gcube.application.cms.ckan-plugin -## [v1.1.0-SNAPSHOT] - 2023-02-23 +## [v1.1.1-SNAPSHOT] - 2023-02-23 - [#24570] Integrated the UnPublish operation diff --git a/default-lc-managers/pom.xml b/default-lc-managers/pom.xml index 863f9ae..55994a1 100644 --- a/default-lc-managers/pom.xml +++ b/default-lc-managers/pom.xml @@ -5,7 +5,7 @@ 4.0.0 default-lc-managers - 1.1.0-SNAPSHOT + 1.1.1-SNAPSHOT gCube CMS - Default LC Managers From fb5b64442e0e4fd9250285f010e01f6bf8000be1 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 3 Mar 2023 10:57:36 +0100 Subject: [PATCH 20/25] #24702 Fixed the 'default-lc-managers' dependency --- sdi-plugins/CHANGELOG.md | 4 + sdi-plugins/pom.xml | 175 +++++++++--------- .../cms/sdi/LayerCreationTest.java | 16 +- .../cms/sdi/plugins/GeoJSONTests.java | 4 +- .../cms/sdi/plugins/IndexerTest.java | 13 +- .../cms/sdi/plugins/MaterializerTests.java | 13 +- 6 files changed, 115 insertions(+), 110 deletions(-) diff --git a/sdi-plugins/CHANGELOG.md b/sdi-plugins/CHANGELOG.md index c401260..9e89d81 100644 --- a/sdi-plugins/CHANGELOG.md +++ b/sdi-plugins/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog for org.gcube.application.cms.sdi-plugins +## [v1.0.4-SNAPSHOT] - 2023-03-02 +- Fixed the import from joda-time to java.time +- [#24702] Fixed the default-lc-managers dependency + ## [v1.0.3] - 2023-01-24 - Fixes [#24476](https://support.d4science.org/issues/24476) diff --git a/sdi-plugins/pom.xml b/sdi-plugins/pom.xml index 24d34e6..97794d1 100644 --- a/sdi-plugins/pom.xml +++ b/sdi-plugins/pom.xml @@ -1,116 +1,117 @@ - 4.0.0 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - sdi-plugins - 1.0.3 - gCube CMS - SDI Plugins + sdi-plugins + 1.0.4-SNAPSHOT + gCube CMS - SDI Plugins - - org.gcube.application.cms - gcube-cms-suite - 1.0.4 - + + org.gcube.application.cms + gcube-cms-suite + 1.0.4 + - - https://code-repo.d4science.org/gCubeSystem - + + https://code-repo.d4science.org/gCubeSystem + - - - - org.gcube.application.cms - cms-plugin-framework - ${plugin-framework-version} - pom - import - - - + + + + org.gcube.application.cms + cms-plugin-framework + ${plugin-framework-version} + pom + import + + + - - scm:git:${gitBaseUrl}/gcube-cms-suite - scm:git:${gitBaseUrl}/gcube-cms-suite - ${gitBaseUrl}/gcube-cms-suite - + + scm:git:${gitBaseUrl}/gcube-cms-suite + scm:git:${gitBaseUrl}/gcube-cms-suite + ${gitBaseUrl}/gcube-cms-suite + - - - org.gcube.application.cms - cms-plugin-framework - + + + org.gcube.application.cms + cms-plugin-framework + - - org.gcube.application.cms - default-lc-managers - + + org.gcube.application.cms + default-lc-managers + provided + - - - org.gcube.spatial.data - gis-interface - [2.4.6,3.0.0-SNAPSHOT) - + + + org.gcube.spatial.data + gis-interface + [2.4.6,3.0.0-SNAPSHOT) + - - - org.gcube.data.transfer - data-transfer-library - [1.2.1,2.0.0-SNAPSHOT) - + + + org.gcube.data.transfer + data-transfer-library + [1.2.1,2.0.0-SNAPSHOT) + - - - net.postgis - postgis-jdbc - 2.5.0 - + + + net.postgis + postgis-jdbc + 2.5.0 + - + - - de.grundid.opendatalab - geojson-jackson - 1.14 - + + de.grundid.opendatalab + geojson-jackson + 1.14 + - - org.gcube.application.cms - cms-test-commons - test - + + org.gcube.application.cms + cms-test-commons + test + - + - - + + - - org.apache.maven.plugins - maven-assembly-plugin - - - make-uberjar - package - - - make-servicearchive - package - - - + + org.apache.maven.plugins + maven-assembly-plugin + + + make-uberjar + package + + + make-servicearchive + package + + + - - + + diff --git a/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/LayerCreationTest.java b/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/LayerCreationTest.java index ed76f92..e07ddb8 100644 --- a/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/LayerCreationTest.java +++ b/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/LayerCreationTest.java @@ -1,5 +1,11 @@ package org.gcube.application.cms.sdi; +import static org.junit.Assume.assumeTrue; + +import java.sql.SQLException; +import java.time.Instant; +import java.util.List; + import org.gcube.application.cms.implementations.ISInterface; import org.gcube.application.cms.implementations.ImplementationProvider; import org.gcube.application.cms.plugins.faults.InvalidProfileException; @@ -8,24 +14,14 @@ import org.gcube.application.cms.sdi.engine.PostgisTable; import org.gcube.application.cms.sdi.engine.SDIManagerWrapper; import org.gcube.application.cms.sdi.faults.SDIInteractionException; import org.gcube.application.cms.sdi.model.MappingObject; -import org.gcube.application.cms.sdi.plugins.SDIIndexerPlugin; import org.gcube.application.cms.tests.TestProfiles; import org.gcube.application.cms.tests.model.BasicTests; -import org.gcube.application.cms.tests.plugins.BasicPluginTest; import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.DatabaseConnection; import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor; import org.gcube.application.geoportal.common.utils.tests.GCubeTest; -import org.joda.time.Instant; -import org.joda.time.format.DateTimeFormatter; import org.junit.Test; -import java.sql.SQLException; -import java.text.SimpleDateFormat; -import java.util.List; - -import static org.junit.Assume.assumeTrue; - public class LayerCreationTest extends BasicTests { diff --git a/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/GeoJSONTests.java b/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/GeoJSONTests.java index 9df7895..650be7d 100644 --- a/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/GeoJSONTests.java +++ b/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/GeoJSONTests.java @@ -1,5 +1,7 @@ package org.gcube.application.cms.sdi.plugins; +import java.io.IOException; + import org.gcube.application.cms.serialization.Serialization; import org.gcube.application.geoportal.common.model.document.filesets.sdi.GCubeSDILayer; import org.gcube.application.geoportal.common.model.document.identification.SpatialReference; @@ -9,8 +11,6 @@ import org.geojson.LngLatAlt; import org.geojson.Point; import org.junit.Test; -import java.io.IOException; - public class GeoJSONTests { @Test diff --git a/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/IndexerTest.java b/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/IndexerTest.java index c4b9d41..7b98a57 100644 --- a/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/IndexerTest.java +++ b/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/IndexerTest.java @@ -1,6 +1,12 @@ package org.gcube.application.cms.sdi.plugins; -import com.fasterxml.jackson.core.JsonProcessingException; +import static junit.framework.TestCase.assertEquals; +import static junit.framework.TestCase.assertNotNull; +import static junit.framework.TestCase.assertTrue; +import static org.junit.Assume.assumeTrue; + +import java.util.Arrays; + import org.bson.Document; import org.gcube.application.cms.plugins.IndexerPluginInterface; import org.gcube.application.cms.plugins.faults.PluginExecutionException; @@ -25,10 +31,7 @@ import org.gcube.application.geoportal.common.utils.Files; import org.gcube.application.geoportal.common.utils.tests.GCubeTest; import org.junit.Test; -import java.util.Arrays; - -import static junit.framework.TestCase.*; -import static org.junit.Assume.assumeTrue; +import com.fasterxml.jackson.core.JsonProcessingException; public class IndexerTest extends BasicPluginTest { diff --git a/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/MaterializerTests.java b/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/MaterializerTests.java index cef51f2..4e91dd6 100644 --- a/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/MaterializerTests.java +++ b/sdi-plugins/src/test/java/org/gcube/application/cms/sdi/plugins/MaterializerTests.java @@ -1,6 +1,11 @@ package org.gcube.application.cms.sdi.plugins; -import com.fasterxml.jackson.core.JsonProcessingException; +import static junit.framework.TestCase.assertTrue; +import static org.junit.Assume.assumeTrue; + +import java.io.File; +import java.io.IOException; + import org.bson.Document; import org.gcube.application.cms.plugins.faults.PluginExecutionException; import org.gcube.application.cms.plugins.reports.MaterializationReport; @@ -20,11 +25,7 @@ import org.gcube.application.geoportal.common.utils.Files; import org.gcube.application.geoportal.common.utils.tests.GCubeTest; import org.junit.Test; -import java.io.File; -import java.io.IOException; - -import static junit.framework.TestCase.assertTrue; -import static org.junit.Assume.assumeTrue; +import com.fasterxml.jackson.core.JsonProcessingException; public class MaterializerTests extends BasicPluginTest { From e5fc626bd3189bd2509a7eb5d89ebaac0708c1bd Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 3 Mar 2023 11:06:23 +0100 Subject: [PATCH 21/25] #24702 Fixed the default-lc-managers dependency --- concessioni-lifecycle/CHANGELOG.md | 3 +++ concessioni-lifecycle/pom.xml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/concessioni-lifecycle/CHANGELOG.md b/concessioni-lifecycle/CHANGELOG.md index d31a592..0b6dca7 100644 --- a/concessioni-lifecycle/CHANGELOG.md +++ b/concessioni-lifecycle/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog for org.gcube.application.cms.concessioni-lifecycle +## [v1.0.4-SNAPSHOT] - 2023-03-03 +- [#24702] Fixed the default-lc-managers dependency + ## [v1.0.3] - 2023-01-10 - Pom updates - Fixes default access diff --git a/concessioni-lifecycle/pom.xml b/concessioni-lifecycle/pom.xml index f9595df..d942fb4 100644 --- a/concessioni-lifecycle/pom.xml +++ b/concessioni-lifecycle/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 concessioni-lifecycle - 1.0.3 + 1.0.4-SNAPSHOT GNA Concessioni Lifecycle @@ -44,6 +44,7 @@ org.gcube.application.cms default-lc-managers + provided From c1f26969091bda1f5aed075370c51fab111287e3 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 3 Mar 2023 11:09:33 +0100 Subject: [PATCH 22/25] #24702 Fixed the default-lc-managers dependency --- notifications-plugins/CHANGELOG.md | 3 +++ notifications-plugins/pom.xml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/notifications-plugins/CHANGELOG.md b/notifications-plugins/CHANGELOG.md index e151a7a..a68a226 100644 --- a/notifications-plugins/CHANGELOG.md +++ b/notifications-plugins/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog for org.gcube.application.cms.notifications-plugins +## [v1.0.3-SNAPSHOT] - 2023-03-03 +- [#24702] Fixed the default-lc-managers dependency + ## [v1.0.2] - 2023-01-10 - Pom updates diff --git a/notifications-plugins/pom.xml b/notifications-plugins/pom.xml index 108061c..56d72e4 100644 --- a/notifications-plugins/pom.xml +++ b/notifications-plugins/pom.xml @@ -5,7 +5,7 @@ 4.0.0 notifications-plugins - 1.0.2 + 1.0.3-SNAPSHOT gCube CMS - Notifications Plugins @@ -54,6 +54,7 @@ org.gcube.application.cms default-lc-managers + provided org.gcube.application.cms From c9ef00c108748ba790856bdcb1145eebfbf484ed Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 3 Mar 2023 12:33:27 +0100 Subject: [PATCH 23/25] improved logs --- .../AbstractLifeCycleManager.java | 7 ++++- .../implementations/Default3PhaseManager.java | 2 +- .../cms/plugins/SimpleLifecycleTests.java | 28 ++++++++++++++++++- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractLifeCycleManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractLifeCycleManager.java index f54a53e..551e70f 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractLifeCycleManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/AbstractLifeCycleManager.java @@ -127,7 +127,12 @@ public abstract class AbstractLifeCycleManager extends AbstractPlugin implements @Override public StepExecutionReport performStep(StepExecutionRequest request) throws StepException, InvalidPluginRequestException, InvalidProfileException, ConfigurationException, InsufficientPrivileges { - log.info("Serving Request {}",request); + log.info("Serving Request - caller {}, ucd id {}, document id {}, step {}", + request.getCaller(), + request.getUseCaseDescriptor().getId(), + request.getDocument().getId(), + request.getStep()); + log.debug("Serving Request full log {}",request); log.debug("Checking is STEP {} is supported by {}",request.getStep(),DESCRIPTOR.getId()); if(!registeredSteps.containsKey(request.getStep())) diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java index 4f036c1..82918bc 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java @@ -33,7 +33,7 @@ public class Default3PhaseManager extends SimpleLifeCycleManager implements Life } - protected static class STEPS{ + public static final class STEPS{ public static final OperationDescriptor SUBMIT=new OperationDescriptor("SUBMIT-FOR-REVIEW","Submits the Draft for reviewing"); public static final OperationDescriptor REJECT=new OperationDescriptor("REJECT-DRAFT","Rejects the submitted Draft"); public static final OperationDescriptor APPROVE=new OperationDescriptor("APPROVE-SUBMITTED","Approves the submitted Draft"); diff --git a/default-lc-managers/src/test/java/org/gcube/application/cms/plugins/SimpleLifecycleTests.java b/default-lc-managers/src/test/java/org/gcube/application/cms/plugins/SimpleLifecycleTests.java index 3bc4302..9db753a 100644 --- a/default-lc-managers/src/test/java/org/gcube/application/cms/plugins/SimpleLifecycleTests.java +++ b/default-lc-managers/src/test/java/org/gcube/application/cms/plugins/SimpleLifecycleTests.java @@ -1,8 +1,12 @@ package org.gcube.application.cms.plugins; +import org.gcube.application.cms.plugins.faults.StepException; +import org.gcube.application.cms.plugins.implementations.Default3PhaseManager; +import org.gcube.application.geoportal.common.model.plugins.OperationDescriptor; + public class SimpleLifecycleTests { - // NB cannot use test commons, need to separate modules + // NB cannot use test commons, need to separate modules // extends // BasicPluginTest { // @@ -21,4 +25,26 @@ public class SimpleLifecycleTests { // manager.performStep() // } + public static void main(String[] args) { + + System.out.println("Check start"); + OperationDescriptor op = Default3PhaseManager.STEPS.APPROVE; + + try { + // Check document phase + if (op.getAppliableToPhases() != null && !op.getAppliableToPhases().isEmpty()) { + String currentPhase = "Pending Approval"; + if (!op.getAppliableToPhases().contains(currentPhase)) { + System.out.println("check KO"); + throw new StepException( + "Document must be in one of the following phases : " + op.getAppliableToPhases()); + } + } + System.out.println("check OK"); + } catch (Exception e) { + e.printStackTrace(); + } + + } + } From 4cf6d1e5d422c87476c15e863c98662a9f1bb5c3 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 3 Mar 2023 14:38:11 +0100 Subject: [PATCH 24/25] DeIndexing have been separated for Simple and Default3Phase Manager --- .../implementations/Default3PhaseManager.java | 40 ++++++++++++++++++- .../SimpleLifeCycleManager.java | 13 ++---- 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java index 82918bc..57a5179 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java @@ -13,8 +13,10 @@ import org.gcube.application.cms.plugins.implementations.executions.GuardedStepE import org.gcube.application.cms.plugins.reports.EventExecutionReport; import org.gcube.application.cms.plugins.reports.StepExecutionReport; import org.gcube.application.cms.plugins.requests.BaseRequest; +import org.gcube.application.geoportal.common.model.JSONPathWrapper; import org.gcube.application.geoportal.common.model.configuration.Configuration; import org.gcube.application.geoportal.common.model.configuration.Index; +import org.gcube.application.geoportal.common.model.document.filesets.RegisteredFileSet; import org.gcube.application.geoportal.common.model.document.lifecycle.LifecycleInformation; import org.gcube.application.geoportal.common.model.plugins.OperationDescriptor; import org.gcube.application.geoportal.common.model.rest.ConfigurationException; @@ -98,7 +100,7 @@ public class Default3PhaseManager extends SimpleLifeCycleManager implements Life }); //Updated by Francesco - setStep(super.unPublishStep()); + setStep(d3PhaseUnPublishStep()); } public Default3PhaseManager() { @@ -107,6 +109,40 @@ public class Default3PhaseManager extends SimpleLifeCycleManager implements Life DESCRIPTOR.setVersion(new Semver("1.0.0")); DESCRIPTOR.setLabel("Default 3-Phase"); } + + //Updated by Francesco. DeIndexing (only) from PublicIndex and InternalIndex (GIS-CENTROIDS plugin with 'public' and "internal" flag) + protected GuardedStepExecution d3PhaseUnPublishStep() { + + return new GuardedStepExecution(STEPS.UNPUBLISH) { + @Override + protected StepExecutionReport run() throws Exception { + log.info( STEPS.UNPUBLISH+ " running..."); + //DeMaterialize + JSONPathWrapper wrapper = new JSONPathWrapper(theReport.getTheRequest().getDocument().getTheDocument().toJson()); + for (String s : wrapper.getMatchingPaths("$..[?(@." + RegisteredFileSet.PAYLOADS + ")]")){ + log.info("Requesting dematerialization for {} ",s); + for(MaterializationPlugin mat : getMaterializers(theReport.getTheRequest())) + theReport = deMaterialize(theReport,mat,new Document("fileSetPath",s)); + if(!theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) + break; + } + //DeIndex + if(theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) { + for(IndexerPluginInterface indexer : getIndexers(theReport.getTheRequest())) { + log.info("Requesting deindexing for {} ",indexer.getDescriptor()); + theReport = deIndex(theReport,indexer,getPublicIndexParams(theReport.getTheRequest())); + theReport = deIndex(theReport,indexer,getInternalIndexParams(theReport.getTheRequest())); + } + } + + if(theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) + theReport.getToSetLifecycleInformation().setPhase(LifecycleInformation.CommonPhases.DRAFT_PHASE); + + + return theReport; + } + }; + } @Override @@ -129,6 +165,8 @@ public class Default3PhaseManager extends SimpleLifeCycleManager implements Life } return toReturn; } + + protected Document getInternalIndexParams(BaseRequest req){ Document callParameters = new Document(); diff --git a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java index e7fde22..f2beee8 100644 --- a/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java +++ b/default-lc-managers/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java @@ -134,13 +134,8 @@ public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements } }); - setStep(unPublishStep()); - } - - //Updated by Francesco - protected GuardedStepExecution unPublishStep() { - - return new GuardedStepExecution(Steps.UNPUBLISH) { + //Updated by Francesco. DeIndexing (only) from PublicIndexParams (GIS-CENTROIDS plugin with 'public' flag) + setStep(new GuardedStepExecution(Steps.UNPUBLISH) { @Override protected StepExecutionReport run() throws Exception { log.info(Steps.UNPUBLISH+ " running..."); @@ -167,9 +162,9 @@ public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements return theReport; } - }; + }); } - + protected void blockNonDraft(EventExecutionReport report) throws InvalidPluginRequestException { Boolean force = false; try { From 7dade2d250dac64d75db8db98c3f574c59c453d4 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Mon, 6 Mar 2023 14:20:03 +0100 Subject: [PATCH 25/25] removed folders with UCDs --- D4S_UCDs/DEV/devVRE/Concessioni.json | 669 ------------------- D4S_UCDs/DEV/devVRE/Concessioni_estere.json | 668 ------------------- D4S_UCDs/DEV/devVRE/Esquilino.json | 481 -------------- D4S_UCDs/PRE/preVRE/Concessioni.json | 701 -------------------- D4S_UCDs/PRE/preVRE/Concessioni_estere.json | 651 ------------------ D4S_UCDs/PRE/preVRE/Esquilino.json | 561 ---------------- D4S_UCDs/PROD/Esquiline/Esquilino.json | 459 ------------- D4S_UCDs/PROD/GNA/Concessioni.json | 653 ------------------ D4S_UCDs/PROD/GNA/Concessioni_estere.json | 653 ------------------ 9 files changed, 5496 deletions(-) delete mode 100644 D4S_UCDs/DEV/devVRE/Concessioni.json delete mode 100644 D4S_UCDs/DEV/devVRE/Concessioni_estere.json delete mode 100644 D4S_UCDs/DEV/devVRE/Esquilino.json delete mode 100644 D4S_UCDs/PRE/preVRE/Concessioni.json delete mode 100644 D4S_UCDs/PRE/preVRE/Concessioni_estere.json delete mode 100644 D4S_UCDs/PRE/preVRE/Esquilino.json delete mode 100644 D4S_UCDs/PROD/Esquiline/Esquilino.json delete mode 100644 D4S_UCDs/PROD/GNA/Concessioni.json delete mode 100644 D4S_UCDs/PROD/GNA/Concessioni_estere.json diff --git a/D4S_UCDs/DEV/devVRE/Concessioni.json b/D4S_UCDs/DEV/devVRE/Concessioni.json deleted file mode 100644 index 6a4eee2..0000000 --- a/D4S_UCDs/DEV/devVRE/Concessioni.json +++ /dev/null @@ -1,669 +0,0 @@ -{ - "_id": "profiledConcessioni", - "_version": "1.0.0", - "_name": "Indagini svolte in regime di concessione", - "_schema": { - "abstractRelazione": { - "_min": 1, - "_children": [ - { - "filesetIta": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "filesetEng": { - "_type": "RegisteredFileSet" - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "relazioneScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "immaginiRappresentative": { - "_max": 4, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "posizionamentoScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "pianteFineScavo": { - "_max": -1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - } - }, - "_description": "Embedded profile for concessioni [mibac] management", - "_creationInfo": { - "_user": { - "_username": "fabio.sinibaldi" - } - }, - "_dataAccessPolicies": [ - {"_policy": {"_read": "any","_write": "any"}, - "_roles": ["Data-Manager"]}, - {"_policy": {"_read": "own","_write": "own"}, - "_roles": ["Data-Editor"]}, - {"_policy": {"_read": "any","_write": "none"}, - "_roles": ["Member"], - "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, - {"_policy": {"_read": "none","_write": "none"}, - "_roles": []} - ], - "_handlers": [ - { - "_id": "GNA-CONCESSIONI-LC", - "_type": "LifecycleManagement", - "_configuration": { - "step_access": [ - { - "STEP": "SUBMIT-FOR-REVIEW", - "roles": [] - }, - { - "STEP": "REJECT-DRAFT", - "roles": [ - "Data-Manager" - ] - }, - { - "STEP": "APPROVE-SUBMITTED", - "roles": [ - "Data-Manager" - ] - }, - { - "STEP": "UNPUBLISH", - "roles": [ - "Data-Manager" - ] - } - - ] - } - }, - { - "_id": "SDI-Default-Materializer", - "_type": "Materializer", - "_configuration": { - "registeredFileSetPaths": [ - { - "schemaField": "pianteFineScavo", - "documentPath": "pianteFineScavo[*].fileset" - }, - { - "schemaField": "posizionamentoScavo", - "documentPath": "posizionamentoScavo.fileset" - } - ] - } - }, - { - "_id": "SDI-Indexer-Plugin", - "_type": "Indexer", - "_configuration": { - "bboxEvaluation": [ - "$..posizionamentoScavo.._bbox" - ], - "explicitFieldMapping": [ - { - "name": "nome", - "path": "$._theDocument.nome", - "type": "TEXT" - }, - { - "name": "anno", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "descrizione", - "path": "$._theDocument.iontroduzione", - "type": "TEXT" - }, - { - "name": "contenuto", - "path": "$._theDocument.descrizioneContenuto", - "type": "TEXT" - }, - { - "name": "autore", - "path": "$._theDocument.authors", - "type": "TEXT" - }, - { - "name": "contributore", - "path": "$._theDocument.contributore", - "type": "TEXT" - }, - { - "name": "titolare", - "path": "$._theDocument.titolari", - "type": "TEXT" - }, - { - "name": "responsabile", - "path": "$._theDocument.responsabile", - "type": "TEXT" - }, - { - "name": "editore", - "path": "$._theDocument.editore", - "type": "TEXT" - }, - { - "name": "finanziamento", - "path": "$._theDocument.fontiFinanziamento", - "type": "TEXT" - }, - { - "name": "soggetto", - "path": "$._theDocument.soggetto", - "type": "TEXT" - }, - { - "name": "risorse", - "path": "$._theDocument.risorseCorrelate", - "type": "TEXT" - }, - { - "name": "date_scavo", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "data_archiviazione", - "path": "$._info._lastEditInfo._instant", - "type": "TEXT" - }, - { - "name": "versione", - "path": "$._version", - "type": "TEXT" - }, - { - "name": "licenza", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "titolare_licenza", - "path": "$._theDocument.titolareLicenza", - "type": "TEXT" - }, - { - "name": "accesso", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "parole_chiave", - "path": "$._theDocument.paroleChiaveLibere", - "type": "TEXT" - } - ], - "jslt": {}, - "additionalLayers": [ - { - "source": { - "url": "..." - }, - "toSetTitle": "" - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Informazioni_di_progetto", - "sectionName": "$.", - "sectionTitle": "Informazioni di Progetto" - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Abstract_Relazione_di_Scavo", - "sectionName": "abstractRelazione", - "sectionTitle": "Abstract della Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - }, - { - "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", - "fieldName": "filesetEng" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Relazione_di_Scavo", - "sectionName": "relazioneScavo", - "sectionTitle": "Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Relazione scientifica (in PDF)", - "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Immagine_Rappresentativa_di_Scavo", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 4, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Posizionamento_dell_area_di_indagine", - "sectionName": "posizionamentoScavo", - "sectionTitle": "Posizionamento dell'Area di Indagine", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Pianta_di_fine_Scavo", - "sectionName": "pianteFineScavo", - "sectionTitle": "Piante di Fine Indagine", - "parentName": "$.", - "minOccurs": 0, - "maxOccurs": 0, - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "" - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Author/s", - "paths": [ - "_theDocument.authors" - ], - "operator": "$and", - "searchable": false, - "sortable": true, - "asResult": true - }, - { - "label": "Project Start (yyyy-mm-dd)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - } - ] - } -}, - { - "_id": "org.gcube.portlets.user.geoportal-basic-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": false, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start (YEAR)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - } - ] - } -} -, - { - "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", - "_type": "TIMELINE_JSON_TEMPLATE", - "_configuration": { - "tjt_document": { - "content": "$.nome", - "title": "$.nome", - "start": "$.dataInizioProgetto", - "end": "$.dataFineProgetto" - } - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": [], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "submit_for_review", - "title": "Submit for Review", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Submit the Project (for review)", - "display_on_phase": [ - "DRAFT" - ] - }, - { - "id": "reject", - "title": "Reject", - "call_STEPS": [ - "REJECT-DRAFT" - ], - "description": "Reject the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "approve", - "title": "Approve", - "call_STEPS": [ - "APPROVE-SUBMITTED" - ], - "description": "Approve the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "unpublish", - "title": "UnPublish", - "call_STEPS": [ - "UNPUBLISH" - ], - "description": "UnPublish the Project", - "display_on_phase": [ - "Published" - ] - } - ] - } - } - ], - "_relationshipDefinitions" : [ - {"_id": "precedes", "_label" : "Precede", - "_reverseRelationId" : "follows"}, - {"_id": "follows", "_label" : "Segue", - "_reverseRelationId" : "precedes"} - ] -} diff --git a/D4S_UCDs/DEV/devVRE/Concessioni_estere.json b/D4S_UCDs/DEV/devVRE/Concessioni_estere.json deleted file mode 100644 index 5be15ad..0000000 --- a/D4S_UCDs/DEV/devVRE/Concessioni_estere.json +++ /dev/null @@ -1,668 +0,0 @@ -{ - "_id": "concessioni-estere", - "_version": "1.0.0", - "_name": "Missioni archeologiche italiane all'estero", - "_schema": { - "abstractRelazione": { - "_min": 1, - "_children": [ - { - "filesetIta": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "filesetEng": { - "_type": "RegisteredFileSet" - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "relazioneScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "immaginiRappresentative": { - "_max": 4, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "posizionamentoScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "pianteFineScavo": { - "_max": -1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - } - }, - "_description": "Embedded profile for concessioni estere [mibac] management", - "_creationInfo": { - "_user": { - "_username": "fabio.sinibaldi" - } - }, - "_dataAccessPolicies": [ - {"_policy": {"_read": "any","_write": "any"}, - "_roles": ["Data-Manager"]}, - {"_policy": {"_read": "own","_write": "own"}, - "_roles": ["Data-Editor"]}, - {"_policy": {"_read": "any","_write": "none"}, - "_roles": ["Member"], - "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, - {"_policy": {"_read": "none","_write": "none"}, - "_roles": []} - ], - "_handlers": [ - { - "_id": "GNA-CONCESSIONI-LC", - "_type": "LifecycleManagement", - "_configuration": { - "step_access": [ - { - "STEP": "SUBMIT-FOR-REVIEW", - "roles": [] - }, - { - "STEP": "REJECT-DRAFT", - "roles": [ - "Data-Manager" - ] - }, - { - "STEP": "APPROVE-SUBMITTED", - "roles": [ - "Data-Manager" - ] - }, - { - "STEP": "UNPUBLISH", - "roles": [ - "Data-Manager" - ] - } - ] - } - }, - { - "_id": "SDI-Default-Materializer", - "_type": "Materializer", - "_configuration": { - "registeredFileSetPaths": [ - { - "schemaField": "pianteFineScavo", - "documentPath": "pianteFineScavo[*].fileset" - }, - { - "schemaField": "posizionamentoScavo", - "documentPath": "posizionamentoScavo.fileset" - } - ] - } - }, - { - "_id": "SDI-Indexer-Plugin", - "_type": "Indexer", - "_configuration": { - "bboxEvaluation": [ - "$..posizionamentoScavo.._bbox" - ], - "explicitFieldMapping": [ - { - "name": "nome", - "path": "$._theDocument.nome", - "type": "TEXT" - }, - { - "name": "anno", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "descrizione", - "path": "$._theDocument.iontroduzione", - "type": "TEXT" - }, - { - "name": "contenuto", - "path": "$._theDocument.descrizioneContenuto", - "type": "TEXT" - }, - { - "name": "autore", - "path": "$._theDocument.authors", - "type": "TEXT" - }, - { - "name": "contributore", - "path": "$._theDocument.contributore", - "type": "TEXT" - }, - { - "name": "titolare", - "path": "$._theDocument.titolari", - "type": "TEXT" - }, - { - "name": "responsabile", - "path": "$._theDocument.responsabile", - "type": "TEXT" - }, - { - "name": "editore", - "path": "$._theDocument.editore", - "type": "TEXT" - }, - { - "name": "finanziamento", - "path": "$._theDocument.fontiFinanziamento", - "type": "TEXT" - }, - { - "name": "soggetto", - "path": "$._theDocument.soggetto", - "type": "TEXT" - }, - { - "name": "risorse", - "path": "$._theDocument.risorseCorrelate", - "type": "TEXT" - }, - { - "name": "date_scavo", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "data_archiviazione", - "path": "$._info._lastEditInfo._instant", - "type": "TEXT" - }, - { - "name": "versione", - "path": "$._version", - "type": "TEXT" - }, - { - "name": "licenza", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "titolare_licenza", - "path": "$._theDocument.titolareLicenza", - "type": "TEXT" - }, - { - "name": "accesso", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "parole_chiave", - "path": "$._theDocument.paroleChiaveLibere", - "type": "TEXT" - } - ], - "jslt": {}, - "additionalLayers": [ - { - "source": { - "url": "..." - }, - "toSetTitle": "" - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Informazioni_di_progetto", - "sectionName": "$.", - "sectionTitle": "Informazioni di Progetto" - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Abstract_Relazione_di_Scavo", - "sectionName": "abstractRelazione", - "sectionTitle": "Abstract della Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - }, - { - "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", - "fieldName": "filesetEng" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Relazione_di_Scavo", - "sectionName": "relazioneScavo", - "sectionTitle": "Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Relazione scientifica (in PDF)", - "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Immagine_Rappresentativa_di_Scavo", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 4, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Posizionamento_dell_area_di_indagine", - "sectionName": "posizionamentoScavo", - "sectionTitle": "Posizionamento dell'Area di Indagine", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Pianta_di_fine_Scavo", - "sectionName": "pianteFineScavo", - "sectionTitle": "Piante di Fine Indagine", - "parentName": "$.", - "minOccurs": 0, - "maxOccurs": 0, - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "" - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Author/s", - "paths": [ - "_theDocument.authors" - ], - "operator": "$and", - "searchable": false, - "sortable": true, - "asResult": true - }, - { - "label": "Project Start (yyyy-mm-dd)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - } - ] - } -}, - { - "_id": "org.gcube.portlets.user.geoportal-basic-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": false, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start (YEAR)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - } - ] - } -} -, - { - "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", - "_type": "TIMELINE_JSON_TEMPLATE", - "_configuration": { - "tjt_document": { - "content": "$.nome", - "title": "$.nome", - "start": "$.dataInizioProgetto", - "end": "$.dataFineProgetto" - } - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": [], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "submit_for_review", - "title": "Submit for Review", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Submit the Project (for review)", - "display_on_phase": [ - "DRAFT" - ] - }, - { - "id": "reject", - "title": "Reject", - "call_STEPS": [ - "REJECT-DRAFT" - ], - "description": "Reject the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "approve", - "title": "Approve", - "call_STEPS": [ - "APPROVE-SUBMITTED" - ], - "description": "Approve the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "unpublish", - "title": "UnPublish", - "call_STEPS": [ - "UNPUBLISH" - ], - "description": "UnPublish the Project", - "display_on_phase": [ - "Published" - ] - } - ] - } - } - ], - "_relationshipDefinitions" : [ - {"_id": "precedes", "_label" : "Precede", - "_reverseRelationId" : "follows"}, - {"_id": "follows", "_label" : "Segue", - "_reverseRelationId" : "precedes"} - ] -} diff --git a/D4S_UCDs/DEV/devVRE/Esquilino.json b/D4S_UCDs/DEV/devVRE/Esquilino.json deleted file mode 100644 index 43dae3e..0000000 --- a/D4S_UCDs/DEV/devVRE/Esquilino.json +++ /dev/null @@ -1,481 +0,0 @@ -{ - "_id": "esquilino", - "_version": "1.0.0", - "_name": "Esquilino", - "_schema": { - "fonteInformazione" :{ - "_children": [ - {"filesetIta": {"_type": "RegisteredFileSet"}} - ] - }, - "documentazioneScientifica" :{ - "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} - ] - }, - "immaginiRappresentative" :{ - "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} - ] - }, - "datiAltimetrici" :{ - "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} - ] - }, - "planimetria" :{ - "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} - ] - } - }, - "_description": "UCD for Equilino", - "_creationInfo": { - "_user": { - "_username": "fabio.sinibaldi" - } - }, - "_dataAccessPolicies": [ - {"_policy": {"_read": "any","_write": "any"}, - "_roles": ["Data-Manager"]}, - {"_policy": {"_read": "own","_write": "own"}, - "_roles": ["Data-Editor"]}, - {"_policy": {"_read": "any","_write": "none"}, - "_roles": ["Member"], - "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}"}}, - {"_policy": {"_read": "none","_write": "none"}, - "_roles": []} - ], - "_handlers": [ - { - "_id": "DEFAULT-SINGLE-STEP", - "_type": "LifecycleManagement", - "_configuration": { - "step_access": [ - { - "STEP": "PUBLISH", - "roles": ["Data-Manager","Data-Editor"] - } - ] - } - }, - { - "_id": "SDI-Default-Materializer", - "_type": "Materializer", - "_configuration": { - "registeredFileSetPaths": [ - { - "schemaField": "datiAltimetrici", - "documentPath": "datiAltimetrici[*].fileset" - }, - { - "schemaField": "planimetria", - "documentPath": "planimetria.fileset" - } - ] - } - }, - { - "_id": "SDI-Indexer-Plugin", - "_type": "Indexer", - "_configuration": { - "bboxEvaluation": [ - "$..planimetria.._bbox" - ], - "explicitFieldMapping": [ - { - "name": "definizione", - "path": "$._theDocument.definizione", - "type": "TEXT" - }, - { - "name": "denominazione", - "path": "$._theDocument.denominazione", - "type": "TEXT" - }, - { - "name": "descrizione", - "path": "$._theDocument.descrizione", - "type": "TEXT" - }, - { - "name": "cronologia", - "path": "$._theDocument.cronologia", - "type": "TEXT" - }, - { - "name": "codice_partizione_archeologica", - "path": "$._theDocument.codice_partizione_archeologica", - "type": "TEXT" - }, - { - "name": "modalita_acquisizione", - "path": "$._theDocument.modalita_acquisizione", - "type": "TEXT" - }, - { - "name": "contributore", - "path": "$._theDocument.contributore", - "type": "TEXT" - }, - { - "name": "titolare_dati", - "path": "$._theDocument.titolare_dati", - "type": "TEXT" - }, - { - "name": "soggetto", - "path": "$._theDocument.soggetto", - "type": "TEXT" - }, - { - "name": "copyright", - "path": "$._theDocument.copyright", - "type": "TEXT" - } - ], - "jslt": {}, - "additionalLayers": [ - { - "source": { - "url": "..." - }, - "toSetTitle": "" - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Dati_Descrittivi", - "sectionName": "$.", - "sectionTitle": "Dati Descrittivi" - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Fonte_Informazione", - "sectionName": "fonteInformazione", - "sectionTitle": "Fonte dell'informazione", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.fonteInformazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Documentazione_Scientifica", - "sectionName": "documentazioneScientifica", - "sectionTitle": "Documentazione scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Documentazione scientifica (in PDF)", - "fieldDefinition": "$.documentazioneScientifica._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Immagine", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 10, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Dati_Altimetrici", - "sectionName": "datiAltimetrici", - "sectionTitle": "Dati Altimetrici", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.datiAltimetrici._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Planimetria", - "sectionName": "planimetria", - "sectionTitle": "Planimetria", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.planimetria._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "" - } -}, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.definizione", - "_theDocument.denominazione", - "_theDocument.descrizione", - "_theDocument.cronologia", - "_theDocument.codice_partizione_archeologica", - "_theDocument.modalita_acquisizione", - "_theDocument.contributore", - "_theDocument.titolare_dati", - "_theDocument.soggetto", - "_theDocument.copyright" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Definition", - "paths": [ - "_theDocument.definizione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Name", - "paths": [ - "_theDocument.denominazione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Code", - "paths": [ - "_theDocument.codice_partizione_archeologica" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.contributore", - "_theDocument.titolare_dati" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Chronology", - "paths": [ - "_theDocument.cronologia" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - } - ] - } -}, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.definizione", - "_theDocument.denominazione", - "_theDocument.descrizione", - "_theDocument.cronologia", - "_theDocument.codice_partizione_archeologica", - "_theDocument.modalita_acquisizione", - "_theDocument.contributore", - "_theDocument.titolare_dati", - "_theDocument.soggetto", - "_theDocument.copyright" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Definition", - "paths": [ - "_theDocument.definizione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Name", - "paths": [ - "_theDocument.denominazione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Code", - "paths": [ - "_theDocument.codice_partizione_archeologica" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.contributore", - "_theDocument.titolare_dati" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Chronology", - "paths": [ - "_theDocument.cronologia" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - } - ] - } -} -, - { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": ["PUBLISH"], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "submit_for_review", - "title": "Submit for Review", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Submit the Project (for review)", - "display_on_phase": [ - "DRAFT" - ] - }, - { - "id": "reject", - "title": "Reject", - "call_STEPS": [ - "REJECT-DRAFT" - ], - "description": "Reject the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "approve", - "title": "Approve", - "call_STEPS": [ - "APPROVE-SUBMITTED" - ], - "description": "Approve the Project", - "display_on_phase": [ - "Pending Approval" - ] - } - ] - } -} -] -} diff --git a/D4S_UCDs/PRE/preVRE/Concessioni.json b/D4S_UCDs/PRE/preVRE/Concessioni.json deleted file mode 100644 index 53a8d33..0000000 --- a/D4S_UCDs/PRE/preVRE/Concessioni.json +++ /dev/null @@ -1,701 +0,0 @@ -{ - "_id": "profiledConcessioni", - "_version": "1.0.0", - "_name": "Indagini svolte in regime di concessione", - "_schema": { - "abstractRelazione": { - "_min": 1, - "_children": [ - { - "filesetIta": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "filesetEng": { - "_type": "RegisteredFileSet" - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "relazioneScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "immaginiRappresentative": { - "_max": 4, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "posizionamentoScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "pianteFineScavo": { - "_max": -1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - } - }, - "_description": "Embedded profile for concessioni [mibac] management", - "_creationInfo": { - "_user": { - "_username": "fabio.sinibaldi" - } - }, - "_dataAccessPolicies": [ - { - "_policy": { - "_read": "any", - "_write": "any" - }, - "_roles": [ - "Data-Manager" - ] - }, - { - "_policy": { - "_read": "own", - "_write": "own" - }, - "_roles": [ - "Data-Editor" - ] - }, - { - "_policy": { - "_read": "any", - "_write": "none" - }, - "_roles": [ - "Member" - ], - "_enforcer": { - "_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}" - } - }, - { - "_policy": { - "_read": "none", - "_write": "none" - }, - "_roles": [] - } - ], - "_handlers": [ - { - "_id": "GNA-CONCESSIONI-LC", - "_type": "LifecycleManagement", - "_configuration": { - "step_access": [ - { - "STEP": "SUBMIT-FOR-REVIEW", - "roles": [] - }, - { - "STEP": "REJECT-DRAFT", - "roles": [ - "Data-Manager" - ] - }, - { - "STEP": "APPROVE-SUBMITTED", - "roles": [ - "Data-Manager" - ] - }, - { - "STEP": "UNPUBLISH", - "roles": [ - "Data-Manager" - ] - } - ] - } - }, - { - "_id": "SDI-Default-Materializer", - "_type": "Materializer", - "_configuration": { - "registeredFileSetPaths": [ - { - "schemaField": "pianteFineScavo", - "documentPath": "pianteFineScavo[*].fileset" - }, - { - "schemaField": "posizionamentoScavo", - "documentPath": "posizionamentoScavo.fileset" - } - ] - } - }, - { - "_id": "SDI-Indexer-Plugin", - "_type": "Indexer", - "_configuration": { - "bboxEvaluation": [ - "$..posizionamentoScavo.._bbox" - ], - "explicitFieldMapping": [ - { - "name": "nome", - "path": "$._theDocument.nome", - "type": "TEXT" - }, - { - "name": "anno", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "descrizione", - "path": "$._theDocument.iontroduzione", - "type": "TEXT" - }, - { - "name": "contenuto", - "path": "$._theDocument.descrizioneContenuto", - "type": "TEXT" - }, - { - "name": "autore", - "path": "$._theDocument.authors", - "type": "TEXT" - }, - { - "name": "contributore", - "path": "$._theDocument.contributore", - "type": "TEXT" - }, - { - "name": "titolare", - "path": "$._theDocument.titolari", - "type": "TEXT" - }, - { - "name": "responsabile", - "path": "$._theDocument.responsabile", - "type": "TEXT" - }, - { - "name": "editore", - "path": "$._theDocument.editore", - "type": "TEXT" - }, - { - "name": "finanziamento", - "path": "$._theDocument.fontiFinanziamento", - "type": "TEXT" - }, - { - "name": "soggetto", - "path": "$._theDocument.soggetto", - "type": "TEXT" - }, - { - "name": "risorse", - "path": "$._theDocument.risorseCorrelate", - "type": "TEXT" - }, - { - "name": "date_scavo", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "data_archiviazione", - "path": "$._info._lastEditInfo._instant", - "type": "TEXT" - }, - { - "name": "versione", - "path": "$._version", - "type": "TEXT" - }, - { - "name": "licenza", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "titolare_licenza", - "path": "$._theDocument.titolareLicenza", - "type": "TEXT" - }, - { - "name": "accesso", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "parole_chiave", - "path": "$._theDocument.paroleChiaveLibere", - "type": "TEXT" - } - ], - "jslt": {}, - "additionalLayers": [ - { - "source": { - "url": "..." - }, - "toSetTitle": "" - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Informazioni_di_progetto", - "sectionName": "$.", - "sectionTitle": "Informazioni di Progetto" - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Abstract_Relazione_di_Scavo", - "sectionName": "abstractRelazione", - "sectionTitle": "Abstract della Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - }, - { - "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", - "fieldName": "filesetEng" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Relazione_di_Scavo", - "sectionName": "relazioneScavo", - "sectionTitle": "Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Relazione scientifica (in PDF)", - "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Immagine_Rappresentativa_di_Scavo", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 4, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Posizionamento_dell_area_di_indagine", - "sectionName": "posizionamentoScavo", - "sectionTitle": "Posizionamento dell'Area di Indagine", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Pianta_di_fine_Scavo", - "sectionName": "pianteFineScavo", - "sectionTitle": "Piante di Fine Indagine", - "parentName": "$.", - "minOccurs": 0, - "maxOccurs": 0, - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "" - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Author/s", - "paths": [ - "_theDocument.authors" - ], - "operator": "$and", - "searchable": false, - "sortable": true, - "asResult": true - }, - { - "label": "Project Start (yyyy-mm-dd)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-basic-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": false, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start (YEAR)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", - "_type": "TIMELINE_JSON_TEMPLATE", - "_configuration": { - "tjt_document": { - "content": "$.nome", - "title": "$.nome", - "start": "$.dataInizioProgetto", - "end": "$.dataFineProgetto" - } - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": [], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "submit_for_review", - "title": "Submit for Review", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Submit the Project (for review)", - "display_on_phase": [ - "DRAFT" - ] - }, - { - "id": "reject", - "title": "Reject", - "call_STEPS": [ - "REJECT-DRAFT" - ], - "description": "Reject the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "approve", - "title": "Approve", - "call_STEPS": [ - "APPROVE-SUBMITTED" - ], - "description": "Approve the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "unpublish", - "title": "UnPublish", - "call_STEPS": [ - "UNPUBLISH" - ], - "description": "UnPublish the Project", - "display_on_phase": [ - "Published" - ] - } - ] - } - } - ], - "_relationshipDefinitions": [ - { - "_id": "precedes", - "_label": "Precede", - "_reverseRelationId": "follows" - }, - { - "_id": "follows", - "_label": "Segue", - "_reverseRelationId": "precedes" - } - ] -} \ No newline at end of file diff --git a/D4S_UCDs/PRE/preVRE/Concessioni_estere.json b/D4S_UCDs/PRE/preVRE/Concessioni_estere.json deleted file mode 100644 index e5d7a17..0000000 --- a/D4S_UCDs/PRE/preVRE/Concessioni_estere.json +++ /dev/null @@ -1,651 +0,0 @@ -{ - "_id": "concessioni-estere", - "_version": "1.0.0", - "_name": "Missioni archeologiche italiane all'estero", - "_schema": { - "abstractRelazione": { - "_min": 1, - "_children": [ - { - "filesetIta": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "filesetEng": { - "_type": "RegisteredFileSet" - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "relazioneScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "immaginiRappresentative": { - "_max": 4, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "posizionamentoScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "pianteFineScavo": { - "_max": -1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - } - }, - "_description": "Embedded profile for concessioni estere [mibac] management", - "_creationInfo": { - "_user": { - "_username": "fabio.sinibaldi" - } - }, - "_dataAccessPolicies": [ - {"_policy": {"_read": "any","_write": "any"}, - "_roles": ["Data-Manager"]}, - {"_policy": {"_read": "own","_write": "own"}, - "_roles": ["Data-Editor"]}, - {"_policy": {"_read": "any","_write": "none"}, - "_roles": ["Member"], - "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, - {"_policy": {"_read": "none","_write": "none"}, - "_roles": []} - ], - "_handlers": [ - { - "_id": "GNA-CONCESSIONI-LC", - "_type": "LifecycleManagement", - "_configuration": { - "step_access": [ - { - "STEP": "SUBMIT-FOR-REVIEW", - "roles": [] - }, - { - "STEP": "REJECT-DRAFT", - "roles": [ - "Data-Manager" - ] - }, - { - "STEP": "APPROVE-SUBMITTED", - "roles": [ - "Data-Manager" - ] - } - ] - } - }, - { - "_id": "SDI-Default-Materializer", - "_type": "Materializer", - "_configuration": { - "registeredFileSetPaths": [ - { - "schemaField": "pianteFineScavo", - "documentPath": "pianteFineScavo[*].fileset" - }, - { - "schemaField": "posizionamentoScavo", - "documentPath": "posizionamentoScavo.fileset" - } - ] - } - }, - { - "_id": "SDI-Indexer-Plugin", - "_type": "Indexer", - "_configuration": { - "bboxEvaluation": [ - "$..posizionamentoScavo.._bbox" - ], - "explicitFieldMapping": [ - { - "name": "nome", - "path": "$._theDocument.nome", - "type": "TEXT" - }, - { - "name": "anno", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "descrizione", - "path": "$._theDocument.iontroduzione", - "type": "TEXT" - }, - { - "name": "contenuto", - "path": "$._theDocument.descrizioneContenuto", - "type": "TEXT" - }, - { - "name": "autore", - "path": "$._theDocument.authors", - "type": "TEXT" - }, - { - "name": "contributore", - "path": "$._theDocument.contributore", - "type": "TEXT" - }, - { - "name": "titolare", - "path": "$._theDocument.titolari", - "type": "TEXT" - }, - { - "name": "responsabile", - "path": "$._theDocument.responsabile", - "type": "TEXT" - }, - { - "name": "editore", - "path": "$._theDocument.editore", - "type": "TEXT" - }, - { - "name": "finanziamento", - "path": "$._theDocument.fontiFinanziamento", - "type": "TEXT" - }, - { - "name": "soggetto", - "path": "$._theDocument.soggetto", - "type": "TEXT" - }, - { - "name": "risorse", - "path": "$._theDocument.risorseCorrelate", - "type": "TEXT" - }, - { - "name": "date_scavo", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "data_archiviazione", - "path": "$._info._lastEditInfo._instant", - "type": "TEXT" - }, - { - "name": "versione", - "path": "$._version", - "type": "TEXT" - }, - { - "name": "licenza", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "titolare_licenza", - "path": "$._theDocument.titolareLicenza", - "type": "TEXT" - }, - { - "name": "accesso", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "parole_chiave", - "path": "$._theDocument.paroleChiaveLibere", - "type": "TEXT" - } - ], - "jslt": {}, - "additionalLayers": [ - { - "source": { - "url": "..." - }, - "toSetTitle": "" - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Informazioni_di_progetto", - "sectionName": "$.", - "sectionTitle": "Informazioni di Progetto" - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Abstract_Relazione_di_Scavo", - "sectionName": "abstractRelazione", - "sectionTitle": "Abstract della Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - }, - { - "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", - "fieldName": "filesetEng" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Relazione_di_Scavo", - "sectionName": "relazioneScavo", - "sectionTitle": "Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Relazione scientifica (in PDF)", - "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Immagine_Rappresentativa_di_Scavo", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 4, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Posizionamento_dell_area_di_indagine", - "sectionName": "posizionamentoScavo", - "sectionTitle": "Posizionamento dell'Area di Indagine", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Pianta_di_fine_Scavo", - "sectionName": "pianteFineScavo", - "sectionTitle": "Piante di Fine Indagine", - "parentName": "$.", - "minOccurs": 0, - "maxOccurs": 0, - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "" - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Author/s", - "paths": [ - "_theDocument.authors" - ], - "operator": "$and", - "searchable": false, - "sortable": true, - "asResult": true - }, - { - "label": "Project Start (yyyy-mm-dd)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - } - ] - } -}, - { - "_id": "org.gcube.portlets.user.geoportal-basic-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": false, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start (YEAR)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - } - ] - } -} -, - { - "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", - "_type": "TIMELINE_JSON_TEMPLATE", - "_configuration": { - "tjt_document": { - "content": "$.nome", - "title": "$.nome", - "start": "$.dataInizioProgetto", - "end": "$.dataFineProgetto" - } - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": [], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "submit_for_review", - "title": "Submit for Review", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Submit the Project (for review)", - "display_on_phase": [ - "DRAFT" - ] - }, - { - "id": "reject", - "title": "Reject", - "call_STEPS": [ - "REJECT-DRAFT" - ], - "description": "Reject the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "approve", - "title": "Approve", - "call_STEPS": [ - "APPROVE-SUBMITTED" - ], - "description": "Approve the Project", - "display_on_phase": [ - "Pending Approval" - ] - } - ] - } - } - ], - "_relationshipDefinitions" : [ - {"_id": "precedes", "_label" : "Precede", - "_reverseRelationId" : "follows"}, - {"_id": "follows", "_label" : "Segue", - "_reverseRelationId" : "precedes"} - ] -} diff --git a/D4S_UCDs/PRE/preVRE/Esquilino.json b/D4S_UCDs/PRE/preVRE/Esquilino.json deleted file mode 100644 index 0150d32..0000000 --- a/D4S_UCDs/PRE/preVRE/Esquilino.json +++ /dev/null @@ -1,561 +0,0 @@ -{ - "_id": "esquilino", - "_version": "1.0.0", - "_name": "Esquilino", - "_schema": { - "fonteInformazione": { - "_children": [ - { - "filesetIta": { - "_type": "RegisteredFileSet" - } - } - ] - }, - "documentazioneScientifica": { - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet" - } - } - ] - }, - "immaginiRappresentative": { - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet" - } - } - ] - }, - "datiAltimetrici": { - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet" - } - } - ] - }, - "planimetria": { - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet" - } - } - ] - } - }, - "_description": "UCD for Equilino", - "_creationInfo": { - "_user": { - "_username": "fabio.sinibaldi" - } - }, - "_dataAccessPolicies": [ - { - "_policy": { - "_read": "any", - "_write": "any" - }, - "_roles": [ - "Data-Manager" - ] - }, - { - "_policy": { - "_read": "own", - "_write": "own" - }, - "_roles": [ - "Data-Editor" - ] - }, - { - "_policy": { - "_read": "any", - "_write": "none" - }, - "_roles": [ - "Member" - ], - "_enforcer": { - "_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}" - } - }, - { - "_policy": { - "_read": "none", - "_write": "none" - }, - "_roles": [] - } - ], - "_handlers": [ - { - "_id": "DEFAULT-SINGLE-STEP", - "_type": "LifecycleManagement", - "_configuration": { - "step_access": [ - { - "STEP": "PUBLISH", - "roles": [ - "Data-Manager", - "Data-Editor" - ] - }, - { - "STEP": "UNPUBLISH", - "roles": [ - "Data-Manager" - ] - } - ] - } - }, - { - "_id": "SDI-Default-Materializer", - "_type": "Materializer", - "_configuration": { - "registeredFileSetPaths": [ - { - "schemaField": "datiAltimetrici", - "documentPath": "datiAltimetrici[*].fileset" - }, - { - "schemaField": "planimetria", - "documentPath": "planimetria.fileset" - } - ] - } - }, - { - "_id": "SDI-Indexer-Plugin", - "_type": "Indexer", - "_configuration": { - "bboxEvaluation": [ - "$..planimetria.._bbox" - ], - "explicitFieldMapping": [ - { - "name": "definizione", - "path": "$._theDocument.definizione", - "type": "TEXT" - }, - { - "name": "denominazione", - "path": "$._theDocument.denominazione", - "type": "TEXT" - }, - { - "name": "descrizione", - "path": "$._theDocument.descrizione", - "type": "TEXT" - }, - { - "name": "cronologia", - "path": "$._theDocument.cronologia", - "type": "TEXT" - }, - { - "name": "codice_partizione_archeologica", - "path": "$._theDocument.codice_partizione_archeologica", - "type": "TEXT" - }, - { - "name": "modalita_acquisizione", - "path": "$._theDocument.modalita_acquisizione", - "type": "TEXT" - }, - { - "name": "contributore", - "path": "$._theDocument.contributore", - "type": "TEXT" - }, - { - "name": "titolare_dati", - "path": "$._theDocument.titolare_dati", - "type": "TEXT" - }, - { - "name": "soggetto", - "path": "$._theDocument.soggetto", - "type": "TEXT" - }, - { - "name": "copyright", - "path": "$._theDocument.copyright", - "type": "TEXT" - } - ], - "jslt": {}, - "additionalLayers": [ - { - "source": { - "url": "..." - }, - "toSetTitle": "" - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Dati_Descrittivi", - "sectionName": "$.", - "sectionTitle": "Dati Descrittivi" - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Fonte_Informazione", - "sectionName": "fonteInformazione", - "sectionTitle": "Fonte dell'informazione", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.fonteInformazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Documentazione_Scientifica", - "sectionName": "documentazioneScientifica", - "sectionTitle": "Documentazione scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Documentazione scientifica (in PDF)", - "fieldDefinition": "$.documentazioneScientifica._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Immagine", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 10, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Dati_Altimetrici", - "sectionName": "datiAltimetrici", - "sectionTitle": "Dati Altimetrici", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.datiAltimetrici._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Planimetria", - "sectionName": "planimetria", - "sectionTitle": "Planimetria", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.planimetria._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "" - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.definizione", - "_theDocument.denominazione", - "_theDocument.descrizione", - "_theDocument.cronologia", - "_theDocument.codice_partizione_archeologica", - "_theDocument.modalita_acquisizione", - "_theDocument.contributore", - "_theDocument.titolare_dati", - "_theDocument.soggetto", - "_theDocument.copyright" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Definition", - "paths": [ - "_theDocument.definizione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Name", - "paths": [ - "_theDocument.denominazione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Code", - "paths": [ - "_theDocument.codice_partizione_archeologica" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.contributore", - "_theDocument.titolare_dati" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Chronology", - "paths": [ - "_theDocument.cronologia" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.definizione", - "_theDocument.denominazione", - "_theDocument.descrizione", - "_theDocument.cronologia", - "_theDocument.codice_partizione_archeologica", - "_theDocument.modalita_acquisizione", - "_theDocument.contributore", - "_theDocument.titolare_dati", - "_theDocument.soggetto", - "_theDocument.copyright" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Definition", - "paths": [ - "_theDocument.definizione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Name", - "paths": [ - "_theDocument.denominazione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Code", - "paths": [ - "_theDocument.codice_partizione_archeologica" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.contributore", - "_theDocument.titolare_dati" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Chronology", - "paths": [ - "_theDocument.cronologia" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": [ - "PUBLISH" - ], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "submit_for_review", - "title": "Submit for Review", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Submit the Project (for review)", - "display_on_phase": [ - "DRAFT" - ] - }, - { - "id": "reject", - "title": "Reject", - "call_STEPS": [ - "REJECT-DRAFT" - ], - "description": "Reject the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "approve", - "title": "Approve", - "call_STEPS": [ - "APPROVE-SUBMITTED" - ], - "description": "Approve the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "unpublish", - "title": "UnPublish", - "call_STEPS": [ - "UNPUBLISH" - ], - "description": "UnPublish the Project", - "display_on_phase": [ - "Published" - ] - }, - { - "id": "unpublish", - "title": "UnPublish", - "call_STEPS": [ - "UNPUBLISH" - ], - "description": "UnPublish the Project", - "display_on_phase": [ - "PUBLISHED" - ] - } - ] - } - } - ] -} \ No newline at end of file diff --git a/D4S_UCDs/PROD/Esquiline/Esquilino.json b/D4S_UCDs/PROD/Esquiline/Esquilino.json deleted file mode 100644 index d5547ed..0000000 --- a/D4S_UCDs/PROD/Esquiline/Esquilino.json +++ /dev/null @@ -1,459 +0,0 @@ -{ - "_id": "esquilino", - "_version": "1.0.0", - "_name": "Esquilino", - "_schema": { - "fonteInformazione" :{ - "_children": [ - {"filesetIta": {"_type": "RegisteredFileSet"}} - ] - }, - "documentazioneScientifica" :{ - "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} - ] - }, - "immaginiRappresentative" :{ - "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} - ] - }, - "datiAltimetrici" :{ - "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} - ] - }, - "planimetria" :{ - "_children": [ - {"fileset": {"_type": "RegisteredFileSet"}} - ] - } - }, - "_description": "UCD for Equilino", - "_creationInfo": { - "_user": { - "_username": "fabio.sinibaldi" - } - }, - "_dataAccessPolicies": [ - {"_policy": {"_read": "any","_write": "any"}, - "_roles": ["Data-Manager"]}, - {"_policy": {"_read": "own","_write": "own"}, - "_roles": ["Data-Editor"]}, - {"_policy": {"_read": "any","_write": "none"}, - "_roles": ["Member"], - "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}"}}, - {"_policy": {"_read": "none","_write": "none"}, - "_roles": []} - ], - "_handlers": [ - { - "_id": "DEFAULT-SINGLE-STEP", - "_type": "LifecycleManagement", - "_configuration": { - "step_access": [ - { - "STEP": "PUBLISH", - "roles": ["Data-Manager","Data-Editor"] - } - ] - } - }, - { - "_id": "SDI-Default-Materializer", - "_type": "Materializer", - "_configuration": { - "registeredFileSetPaths": [ - { - "schemaField": "datiAltimetrici", - "documentPath": "datiAltimetrici[*].fileset" - }, - { - "schemaField": "planimetria", - "documentPath": "planimetria.fileset" - } - ] - } - }, - { - "_id": "SDI-Indexer-Plugin", - "_type": "Indexer", - "_configuration": { - "bboxEvaluation": [ - "$..planimetria.._bbox" - ], - "explicitFieldMapping": [ - { - "name": "definizione", - "path": "$._theDocument.definizione", - "type": "TEXT" - }, - { - "name": "denominazione", - "path": "$._theDocument.denominazione", - "type": "TEXT" - }, - { - "name": "descrizione", - "path": "$._theDocument.descrizione", - "type": "TEXT" - }, - { - "name": "cronologia", - "path": "$._theDocument.cronologia", - "type": "TEXT" - }, - { - "name": "codice_partizione_archeologica", - "path": "$._theDocument.codice_partizione_archeologica", - "type": "TEXT" - }, - { - "name": "modalita_acquisizione", - "path": "$._theDocument.modalita_acquisizione", - "type": "TEXT" - }, - { - "name": "contributore", - "path": "$._theDocument.contributore", - "type": "TEXT" - }, - { - "name": "titolare_dati", - "path": "$._theDocument.titolare_dati", - "type": "TEXT" - }, - { - "name": "soggetto", - "path": "$._theDocument.soggetto", - "type": "TEXT" - }, - { - "name": "copyright", - "path": "$._theDocument.copyright", - "type": "TEXT" - } - ], - "jslt": {}, - "additionalLayers": [ - { - "source": { - "url": "..." - }, - "toSetTitle": "" - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Dati_Descrittivi", - "sectionName": "$.", - "sectionTitle": "Dati Descrittivi" - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Fonte_Informazione", - "sectionName": "fonteInformazione", - "sectionTitle": "Fonte dell'informazione", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.fonteInformazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Documentazione_Scientifica", - "sectionName": "documentazioneScientifica", - "sectionTitle": "Documentazione scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Documentazione scientifica (in PDF)", - "fieldDefinition": "$.documentazioneScientifica._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Immagine", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 10, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Dati_Altimetrici", - "sectionName": "datiAltimetrici", - "sectionTitle": "Dati Altimetrici", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.datiAltimetrici._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoportalMetadata", - "gcubeName": "Esquilino_Planimetria", - "sectionName": "planimetria", - "sectionTitle": "Planimetria", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.planimetria._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "" - } -}, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.definizione", - "_theDocument.denominazione", - "_theDocument.descrizione", - "_theDocument.cronologia", - "_theDocument.codice_partizione_archeologica", - "_theDocument.modalita_acquisizione", - "_theDocument.contributore", - "_theDocument.titolare_dati", - "_theDocument.soggetto", - "_theDocument.copyright" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Definition", - "paths": [ - "_theDocument.definizione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Name", - "paths": [ - "_theDocument.denominazione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Code", - "paths": [ - "_theDocument.codice_partizione_archeologica" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.contributore", - "_theDocument.titolare_dati" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Chronology", - "paths": [ - "_theDocument.cronologia" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - } - ] - } -}, - { - "_id": "org.gcube.portlets.user.geoportal-basic-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.definizione", - "_theDocument.denominazione", - "_theDocument.descrizione", - "_theDocument.cronologia", - "_theDocument.codice_partizione_archeologica", - "_theDocument.modalita_acquisizione", - "_theDocument.contributore", - "_theDocument.titolare_dati", - "_theDocument.soggetto", - "_theDocument.copyright" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Definition", - "paths": [ - "_theDocument.definizione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Name", - "paths": [ - "_theDocument.denominazione" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Code", - "paths": [ - "_theDocument.codice_partizione_archeologica" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.contributore", - "_theDocument.titolare_dati" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Chronology", - "paths": [ - "_theDocument.cronologia" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - } - ] - } -} -, - { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": ["PUBLISH"], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "publish", - "title": "Publish the Project", - "call_STEPS": [ - "PUBLISH" - ], - "description": "Publish the Project", - "display_on_phase": [ - "DRAFT" - ] - } - ] - } -} -] -} diff --git a/D4S_UCDs/PROD/GNA/Concessioni.json b/D4S_UCDs/PROD/GNA/Concessioni.json deleted file mode 100644 index a8faa40..0000000 --- a/D4S_UCDs/PROD/GNA/Concessioni.json +++ /dev/null @@ -1,653 +0,0 @@ -{ - "_id": "profiledConcessioni", - "_version": "1.0.0", - "_name": "Indagini svolte in regime di concessione", - "_schema": { - "abstractRelazione": { - "_min": 1, - "_children": [ - { - "filesetIta": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "filesetEng": { - "_type": "RegisteredFileSet" - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "relazioneScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "immaginiRappresentative": { - "_max": 4, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "posizionamentoScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "pianteFineScavo": { - "_max": -1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - } - }, - "_description": "Embedded profile for concessioni [mibac] management", - "_creationInfo": { - "_user": { - "_username": "fabio.sinibaldi" - } - }, - "_dataAccessPolicies": [ - {"_policy": {"_read": "any","_write": "any"}, - "_roles": ["Data-Manager"]}, - {"_policy": {"_read": "own","_write": "own"}, - "_roles": ["Data-Editor"]}, - {"_policy": {"_read": "any","_write": "none"}, - "_roles": ["Member"], - "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, - {"_policy": {"_read": "none","_write": "none"}, - "_roles": []} - ], - "_handlers": [ - { - "_id": "GNA-CONCESSIONI-LC", - "_type": "LifecycleManagement", - "_configuration": { - "step_access": [ - { - "STEP": "SUBMIT-FOR-REVIEW", - "roles": [] - }, - { - "STEP": "REJECT-DRAFT", - "roles": [ - "Data-Manager" - ] - }, - { - "STEP": "APPROVE-SUBMITTED", - "roles": [ - "Data-Manager" - ] - } - ] - } - }, - { - "_id": "SDI-Default-Materializer", - "_type": "Materializer", - "_configuration": { - "registeredFileSetPaths": [ - { - "schemaField": "pianteFineScavo", - "documentPath": "pianteFineScavo[*].fileset" - }, - { - "schemaField": "posizionamentoScavo", - "documentPath": "posizionamentoScavo.fileset" - } - ] - } - }, - { - "_id": "SDI-Indexer-Plugin", - "_type": "Indexer", - "_configuration": { - "bboxEvaluation": [ - "$..posizionamentoScavo.._bbox" - ], - "explicitFieldMapping": [ - { - "name": "nome", - "path": "$._theDocument.nome", - "type": "TEXT" - }, - { - "name": "anno", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "descrizione", - "path": "$._theDocument.iontroduzione", - "type": "TEXT" - }, - { - "name": "contenuto", - "path": "$._theDocument.descrizioneContenuto", - "type": "TEXT" - }, - { - "name": "autore", - "path": "$._theDocument.authors", - "type": "TEXT" - }, - { - "name": "contributore", - "path": "$._theDocument.contributore", - "type": "TEXT" - }, - { - "name": "titolare", - "path": "$._theDocument.titolari", - "type": "TEXT" - }, - { - "name": "responsabile", - "path": "$._theDocument.responsabile", - "type": "TEXT" - }, - { - "name": "editore", - "path": "$._theDocument.editore", - "type": "TEXT" - }, - { - "name": "finanziamento", - "path": "$._theDocument.fontiFinanziamento", - "type": "TEXT" - }, - { - "name": "soggetto", - "path": "$._theDocument.soggetto", - "type": "TEXT" - }, - { - "name": "risorse", - "path": "$._theDocument.risorseCorrelate", - "type": "TEXT" - }, - { - "name": "date_scavo", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "data_archiviazione", - "path": "$._info._lastEditInfo._instant", - "type": "TEXT" - }, - { - "name": "versione", - "path": "$._version", - "type": "TEXT" - }, - { - "name": "licenza", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "titolare_licenza", - "path": "$._theDocument.titolareLicenza", - "type": "TEXT" - }, - { - "name": "accesso", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "parole_chiave", - "path": "$._theDocument.paroleChiaveLibere", - "type": "TEXT" - } - ], - "jslt": {}, - "additionalLayers": [ - { - "source": { - "url": "..." - }, - "toSetTitle": "" - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Informazioni_di_progetto", - "sectionName": "$.", - "sectionTitle": "Informazioni di Progetto" - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Abstract_Relazione_di_Scavo", - "sectionName": "abstractRelazione", - "sectionTitle": "Abstract della Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - }, - { - "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", - "fieldName": "filesetEng" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Relazione_di_Scavo", - "sectionName": "relazioneScavo", - "sectionTitle": "Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Relazione scientifica (in PDF)", - "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Immagine_Rappresentativa_di_Scavo", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 4, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Posizionamento_dell_area_di_indagine", - "sectionName": "posizionamentoScavo", - "sectionTitle": "Posizionamento dell'Area di Indagine", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Pianta_di_fine_Scavo", - "sectionName": "pianteFineScavo", - "sectionTitle": "Piante di Fine Indagine", - "parentName": "$.", - "minOccurs": 0, - "maxOccurs": 0, - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "SUBMIT-FOR-REVIEW" - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Author/s", - "paths": [ - "_theDocument.authors" - ], - "operator": "$and", - "searchable": false, - "sortable": true, - "asResult": true - }, - { - "label": "Project Start (yyyy-mm-dd)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - } - ] - } -}, - { - "_id": "org.gcube.portlets.user.geoportal-basic-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": false, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start (YEAR)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - } - ] - } -} -, - { - "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", - "_type": "TIMELINE_JSON_TEMPLATE", - "_configuration": { - "tjt_document": { - "content": "$.nome", - "title": "$.nome", - "start": "$.dataInizioProgetto", - "end": "$.dataFineProgetto" - } - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "submit_for_review", - "title": "Submit for Review", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Submit the Project (for review)", - "display_on_phase": [ - "DRAFT" - ] - }, - { - "id": "reject", - "title": "Reject", - "call_STEPS": [ - "REJECT-DRAFT" - ], - "description": "Reject the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "approve", - "title": "Approve", - "call_STEPS": [ - "APPROVE-SUBMITTED" - ], - "description": "Approve the Project", - "display_on_phase": [ - "Pending Approval" - ] - } - ] - } - } - ], - "_relationshipDefinitions" : [ - {"_id": "precedes", "_label" : "Precede", - "_reverseRelationId" : "follows"}, - {"_id": "follows", "_label" : "Segue", - "_reverseRelationId" : "precedes"} - ] -} diff --git a/D4S_UCDs/PROD/GNA/Concessioni_estere.json b/D4S_UCDs/PROD/GNA/Concessioni_estere.json deleted file mode 100644 index c3ea2a7..0000000 --- a/D4S_UCDs/PROD/GNA/Concessioni_estere.json +++ /dev/null @@ -1,653 +0,0 @@ -{ - "_id": "concessioni-estere", - "_version": "1.0.0", - "_name": "Missioni archeologiche italiane all'estero", - "_schema": { - "abstractRelazione": { - "_min": 1, - "_children": [ - { - "filesetIta": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "filesetEng": { - "_type": "RegisteredFileSet" - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "relazioneScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "immaginiRappresentative": { - "_max": 4, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "posizionamentoScavo": { - "_max": 1, - "_min": 1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - }, - "pianteFineScavo": { - "_max": -1, - "_children": [ - { - "fileset": { - "_type": "RegisteredFileSet", - "_min": 1 - } - }, - { - "title": { - "_min": 1 - } - } - ] - } - }, - "_description": "Embedded profile for concessioni estere [mibac] management", - "_creationInfo": { - "_user": { - "_username": "fabio.sinibaldi" - } - }, - "_dataAccessPolicies": [ - {"_policy": {"_read": "any","_write": "any"}, - "_roles": ["Data-Manager"]}, - {"_policy": {"_read": "own","_write": "own"}, - "_roles": ["Data-Editor"]}, - {"_policy": {"_read": "any","_write": "none"}, - "_roles": ["Member"], - "_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, - {"_policy": {"_read": "none","_write": "none"}, - "_roles": []} - ], - "_handlers": [ - { - "_id": "GNA-CONCESSIONI-LC", - "_type": "LifecycleManagement", - "_configuration": { - "step_access": [ - { - "STEP": "SUBMIT-FOR-REVIEW", - "roles": [] - }, - { - "STEP": "REJECT-DRAFT", - "roles": [ - "Data-Manager" - ] - }, - { - "STEP": "APPROVE-SUBMITTED", - "roles": [ - "Data-Manager" - ] - } - ] - } - }, - { - "_id": "SDI-Default-Materializer", - "_type": "Materializer", - "_configuration": { - "registeredFileSetPaths": [ - { - "schemaField": "pianteFineScavo", - "documentPath": "pianteFineScavo[*].fileset" - }, - { - "schemaField": "posizionamentoScavo", - "documentPath": "posizionamentoScavo.fileset" - } - ] - } - }, - { - "_id": "SDI-Indexer-Plugin", - "_type": "Indexer", - "_configuration": { - "bboxEvaluation": [ - "$..posizionamentoScavo.._bbox" - ], - "explicitFieldMapping": [ - { - "name": "nome", - "path": "$._theDocument.nome", - "type": "TEXT" - }, - { - "name": "anno", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "descrizione", - "path": "$._theDocument.iontroduzione", - "type": "TEXT" - }, - { - "name": "contenuto", - "path": "$._theDocument.descrizioneContenuto", - "type": "TEXT" - }, - { - "name": "autore", - "path": "$._theDocument.authors", - "type": "TEXT" - }, - { - "name": "contributore", - "path": "$._theDocument.contributore", - "type": "TEXT" - }, - { - "name": "titolare", - "path": "$._theDocument.titolari", - "type": "TEXT" - }, - { - "name": "responsabile", - "path": "$._theDocument.responsabile", - "type": "TEXT" - }, - { - "name": "editore", - "path": "$._theDocument.editore", - "type": "TEXT" - }, - { - "name": "finanziamento", - "path": "$._theDocument.fontiFinanziamento", - "type": "TEXT" - }, - { - "name": "soggetto", - "path": "$._theDocument.soggetto", - "type": "TEXT" - }, - { - "name": "risorse", - "path": "$._theDocument.risorseCorrelate", - "type": "TEXT" - }, - { - "name": "date_scavo", - "path": "$._theDocument.dataFineProgetto", - "type": "TEXT" - }, - { - "name": "data_archiviazione", - "path": "$._info._lastEditInfo._instant", - "type": "TEXT" - }, - { - "name": "versione", - "path": "$._version", - "type": "TEXT" - }, - { - "name": "licenza", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "titolare_licenza", - "path": "$._theDocument.titolareLicenza", - "type": "TEXT" - }, - { - "name": "accesso", - "path": "$._info._access._license", - "type": "TEXT" - }, - { - "name": "parole_chiave", - "path": "$._theDocument.paroleChiaveLibere", - "type": "TEXT" - } - ], - "jslt": {}, - "additionalLayers": [ - { - "source": { - "url": "..." - }, - "toSetTitle": "" - } - ] - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-entry-app", - "_type": "DATA_ENTRY_GUI", - "_configuration": { - "gcubeProfiles": [ - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Informazioni_di_progetto", - "sectionName": "$.", - "sectionTitle": "Informazioni di Progetto" - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Abstract_Relazione_di_Scavo", - "sectionName": "abstractRelazione", - "sectionTitle": "Abstract della Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]", - "fieldName": "filesetIta" - }, - { - "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", - "fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]", - "fieldName": "filesetEng" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Relazione_di_Scavo", - "sectionName": "relazioneScavo", - "sectionTitle": "Relazione Scientifica", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Relazione scientifica (in PDF)", - "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Immagine_Rappresentativa_di_Scavo", - "sectionName": "immaginiRappresentative", - "sectionTitle": "Immagini Rappresentative", - "minOccurs": 1, - "maxOccurs": 4, - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "Immagine", - "fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Posizionamento_dell_area_di_indagine", - "sectionName": "posizionamentoScavo", - "sectionTitle": "Posizionamento dell'Area di Indagine", - "parentName": "$.", - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - }, - { - "gcubeSecondaryType": "GeoNaMetadata", - "gcubeName": "Pianta_di_fine_Scavo", - "sectionName": "pianteFineScavo", - "sectionTitle": "Piante di Fine Indagine", - "parentName": "$.", - "minOccurs": 0, - "maxOccurs": 0, - "filePaths": [ - { - "gcubeProfileFieldName": "File", - "fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]", - "fieldName": "fileset" - } - ] - } - ], - "saveStep": "SUBMIT-FOR-REVIEW" - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-data-list", - "_type": "DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Author/s", - "paths": [ - "_theDocument.authors" - ], - "operator": "$and", - "searchable": false, - "sortable": true, - "asResult": true - }, - { - "label": "Project Start (yyyy-mm-dd)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Creator", - "paths": [ - "_info._creationInfo._user._username" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Updated", - "paths": [ - "_info._lastEditInfo._instant" - ], - "operator": "$or", - "searchable": false, - "sortable": true, - "asResult": false - }, - { - "label": "Phase", - "paths": [ - "_lifecycleInformation._phase" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - }, - { - "label": "Status", - "paths": [ - "_lifecycleInformation._lastOperationStatus" - ], - "operator": "$or", - "searchable": true, - "sortable": true, - "asResult": false - } - ] - } -}, - { - "_id": "org.gcube.portlets.user.geoportal-basic-data-list", - "_type": "BASIC_DATA_LIST_GUI", - "_configuration": { - "itemFields": [ - { - "label": "Any Field", - "paths": [ - "_theDocument.nome", - "_theDocument.introduzione", - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile", - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Name", - "paths": [ - "_theDocument.nome" - ], - "operator": "$and", - "searchable": true, - "sortable": true, - "asResult": true - }, - { - "label": "Introduction", - "paths": [ - "_theDocument.introduzione" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": false, - "sortable": false, - "asResult": true - }, - { - "label": "Project Start (YEAR)", - "paths": [ - "_theDocument.dataInizioProgetto" - ], - "operator": "$and", - "searchable": true, - "sortable": false, - "asResult": false - }, - { - "label": "Director/Staff", - "paths": [ - "_theDocument.authors", - "_theDocument.contributore", - "_theDocument.titolari", - "_theDocument.editore", - "_theDocument.responsabile" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - }, - { - "label": "Keywords", - "paths": [ - "_theDocument.paroleChiaveLibere", - "_theDocument.paroleChiaveICCD" - ], - "operator": "$or", - "searchable": true, - "sortable": false, - "asResult": true - } - ] - } -} -, - { - "_id": "org.gcube.portlets.user.geoportal-timeline-json-template", - "_type": "TIMELINE_JSON_TEMPLATE", - "_configuration": { - "tjt_document": { - "content": "$.nome", - "title": "$.nome", - "start": "$.dataInizioProgetto", - "end": "$.dataFineProgetto" - } - } - }, - { - "_id": "org.gcube.portlets.user.geoportal-workflow-action-list", - "_type": "WORKFLOW_ACTION_LIST_GUI", - "_configuration": { - "actionsDefinition": [ - { - "id": "post_creation_action", - "title": "Post Creation Action", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Action fired after the Project creation", - "display_on_phase": [] - }, - { - "id": "submit_for_review", - "title": "Submit for Review", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], - "description": "Submit the Project (for review)", - "display_on_phase": [ - "DRAFT" - ] - }, - { - "id": "reject", - "title": "Reject", - "call_STEPS": [ - "REJECT-DRAFT" - ], - "description": "Reject the Project", - "display_on_phase": [ - "Pending Approval" - ] - }, - { - "id": "approve", - "title": "Approve", - "call_STEPS": [ - "APPROVE-SUBMITTED" - ], - "description": "Approve the Project", - "display_on_phase": [ - "Pending Approval" - ] - } - ] - } - } - ], - "_relationshipDefinitions" : [ - {"_id": "precedes", "_label" : "Precede", - "_reverseRelationId" : "follows"}, - {"_id": "follows", "_label" : "Segue", - "_reverseRelationId" : "precedes"} - ] -}