From d86b2026d3f159ee13c4dade2ac4338d75f16104 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 16 Mar 2023 15:43:09 +0100 Subject: [PATCH] Updated UCDs. Added the UNPUBLISH STEP --- D4S_UCDs/DEV/devVRE/Esquilino.json | 2 +- D4S_UCDs/PRE/preVRE/Esquilino.json | 28 +- D4S_UCDs/PROD/Esquiline/Esquilino.json | 459 ----------- .../Esquiline/Esquilino_with_unpublish.json | 539 +++++++++++++ D4S_UCDs/PROD/GNA/Concessioni.json | 711 ++++++++++-------- D4S_UCDs/PROD/GNA/Concessioni_estere.json | 26 +- D4S_UCDs/preVRE/Esquilino.json | 32 +- 7 files changed, 949 insertions(+), 848 deletions(-) delete mode 100644 D4S_UCDs/PROD/Esquiline/Esquilino.json create mode 100644 D4S_UCDs/PROD/Esquiline/Esquilino_with_unpublish.json diff --git a/D4S_UCDs/DEV/devVRE/Esquilino.json b/D4S_UCDs/DEV/devVRE/Esquilino.json index 0150d32..531858e 100644 --- a/D4S_UCDs/DEV/devVRE/Esquilino.json +++ b/D4S_UCDs/DEV/devVRE/Esquilino.json @@ -408,7 +408,7 @@ } }, { - "_id": "org.gcube.portlets.user.geoportal-data-list", + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", "_type": "BASIC_DATA_LIST_GUI", "_configuration": { "itemFields": [ diff --git a/D4S_UCDs/PRE/preVRE/Esquilino.json b/D4S_UCDs/PRE/preVRE/Esquilino.json index 0150d32..b1d4678 100644 --- a/D4S_UCDs/PRE/preVRE/Esquilino.json +++ b/D4S_UCDs/PRE/preVRE/Esquilino.json @@ -408,7 +408,7 @@ } }, { - "_id": "org.gcube.portlets.user.geoportal-data-list", + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", "_type": "BASIC_DATA_LIST_GUI", "_configuration": { "itemFields": [ @@ -503,35 +503,13 @@ "id": "submit_for_review", "title": "Submit for Review", "call_STEPS": [ - "SUBMIT-FOR-REVIEW" + "PUBLISH" ], - "description": "Submit the Project (for review)", + "description": "Publish the Project", "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", 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/Esquiline/Esquilino_with_unpublish.json b/D4S_UCDs/PROD/Esquiline/Esquilino_with_unpublish.json new file mode 100644 index 0000000..b1d4678 --- /dev/null +++ b/D4S_UCDs/PROD/Esquiline/Esquilino_with_unpublish.json @@ -0,0 +1,539 @@ +{ + "_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-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": "submit_for_review", + "title": "Submit for Review", + "call_STEPS": [ + "PUBLISH" + ], + "description": "Publish the Project", + "display_on_phase": [ + "DRAFT" + ] + }, + { + "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/GNA/Concessioni.json b/D4S_UCDs/PROD/GNA/Concessioni.json index a8faa40..67cd7b5 100644 --- a/D4S_UCDs/PROD/GNA/Concessioni.json +++ b/D4S_UCDs/PROD/GNA/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": [ { @@ -121,7 +149,8 @@ { "STEP": "REJECT-DRAFT", "roles": [ - "Data-Manager" + "Data-Manager", + "Data-Editor" ] }, { @@ -129,6 +158,12 @@ "roles": [ "Data-Manager" ] + }, + { + "STEP": "UNPUBLISH", + "roles": [ + "Data-Manager" + ] } ] } @@ -264,323 +299,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": "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" + "_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", @@ -601,9 +635,7 @@ { "id": "post_creation_action", "title": "Post Creation Action", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], + "call_STEPS": [], "description": "Action fired after the Project creation", "display_on_phase": [] }, @@ -639,15 +671,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/PROD/GNA/Concessioni_estere.json b/D4S_UCDs/PROD/GNA/Concessioni_estere.json index c3ea2a7..d2fdd39 100644 --- a/D4S_UCDs/PROD/GNA/Concessioni_estere.json +++ b/D4S_UCDs/PROD/GNA/Concessioni_estere.json @@ -121,7 +121,8 @@ { "STEP": "REJECT-DRAFT", "roles": [ - "Data-Manager" + "Data-Manager", + "Data-Editor" ] }, { @@ -129,6 +130,12 @@ "roles": [ "Data-Manager" ] + }, + { + "STEP": "UNPUBLISH", + "roles": [ + "Data-Manager" + ] } ] } @@ -355,7 +362,7 @@ ] } ], - "saveStep": "SUBMIT-FOR-REVIEW" + "saveStep": "" } }, { @@ -601,9 +608,7 @@ { "id": "post_creation_action", "title": "Post Creation Action", - "call_STEPS": [ - "SUBMIT-FOR-REVIEW" - ], + "call_STEPS": [], "description": "Action fired after the Project creation", "display_on_phase": [] }, @@ -639,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/preVRE/Esquilino.json b/D4S_UCDs/preVRE/Esquilino.json index 43dae3e..d5547ed 100644 --- a/D4S_UCDs/preVRE/Esquilino.json +++ b/D4S_UCDs/preVRE/Esquilino.json @@ -351,7 +351,7 @@ } }, { - "_id": "org.gcube.portlets.user.geoportal-data-list", + "_id": "org.gcube.portlets.user.geoportal-basic-data-list", "_type": "BASIC_DATA_LIST_GUI", "_configuration": { "itemFields": [ @@ -442,37 +442,15 @@ "display_on_phase": [] }, { - "id": "submit_for_review", - "title": "Submit for Review", + "id": "publish", + "title": "Publish the Project", "call_STEPS": [ - "SUBMIT-FOR-REVIEW" + "PUBLISH" ], - "description": "Submit the Project (for review)", + "description": "Publish the Project", "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" - ] } ] }