Compare commits

...

266 Commits

Author SHA1 Message Date
Francesco Mangiacrapa b44edff8c7 updated Esquilino merged with PRODUCTION version 2024-05-09 11:07:03 +02:00
Francesco Mangiacrapa 9e2cbd3dbd Added header and footer images for PDF export facility 2024-05-08 14:25:22 +02:00
Francesco Mangiacrapa 2dbebaf648 Updated the README 2024-02-28 16:15:38 +01:00
Francesco Mangiacrapa 87448eb63c grouped_cross_filtering_layers config: pointing to new geoserver
geoserver-geona.cloud.d4science.org
2024-02-06 17:04:01 +01:00
Francesco Mangiacrapa 63de032bd8 Configured towards new geoserver: geoserver-geona.cloud.d4science.org
https://support.d4science.org/issues/26081#note-2
2024-02-06 16:57:24 +01:00
Francesco Mangiacrapa b57c90ad95 Updated UCDs data model according to #26037 2024-01-22 15:16:30 +01:00
Francesco Mangiacrapa 2cdb2d4bae updated the description 2024-01-22 09:40:14 +01:00
Francesco Mangiacrapa 651328fd75 updated UCD "Concessioni_estere" according to Task #26456 2024-01-19 18:29:05 +01:00
Francesco Mangiacrapa 261438b509 fixed quota_min 2024-01-11 17:13:05 +01:00
Francesco Mangiacrapa 4f61deff95 merged with preVRE version, #26350 model based 2024-01-11 16:11:10 +01:00
Francesco Mangiacrapa 6998eef4eb Updated UCD removed authors 2024-01-11 14:29:30 +01:00
Francesco Mangiacrapa 4b1a4b1158 Updated UCD data-entry configurations according to new data model #26350 2024-01-11 12:03:04 +01:00
Francesco Mangiacrapa 8c896f1799 renamed ufficio_MiC_competente to ufficio_mic_competente 2024-01-11 09:47:10 +01:00
Francesco Mangiacrapa c6230151c2 updated Concessioni UCD according to new data model, see #26350 2024-01-10 17:39:16 +01:00
Francesco Mangiacrapa 0dfb132fc0 Updated pdf_footer.png 2023-11-21 15:05:01 +01:00
Francesco Mangiacrapa 75d9316081 renamed the path. Added png files to GNA 2023-11-21 14:48:59 +01:00
Francesco Mangiacrapa 8f20c870d4 Added pdf_foooter.png and pdf_header.png to PROD/GNA 2023-11-21 14:44:35 +01:00
Francesco Mangiacrapa 85212f9983 #26026 Created new path used by "Export as PDF" facility 2023-11-20 17:43:21 +01:00
Francesco Mangiacrapa e0ea0a9c48 Updated geoserver endpoint to
'https://geoserver-1.cloud-dev.d4science.org' (see #26020)
2023-11-16 14:47:05 +01:00
Francesco Mangiacrapa bbe8ad1be7 Updated README. Added Use Case description 2023-11-10 10:04:31 +01:00
Francesco Mangiacrapa 63511b568c Updated README 2023-11-10 10:03:54 +01:00
Francesco Mangiacrapa 8e7b1abac2 Enforcer filter fixed from "PUBLISHED" to "Published" 2023-09-26 10:29:08 +02:00
Francesco Mangiacrapa 1386fec91c commented module 'notifications-plugins' 2023-09-08 15:32:48 +02:00
Francesco Mangiacrapa bb09f0bb8e reverted scm 2023-09-08 15:31:54 +02:00
Francesco Mangiacrapa f58e3264f0 reverted scm 2023-09-08 15:30:39 +02:00
Francesco Mangiacrapa c53c1020c8 reverted scm 2023-09-08 15:29:22 +02:00
Francesco Mangiacrapa d787d3d241 using scm:git:${gitBaseUrl}/gcube-cms-suite/${project.artifactId} 2023-09-08 15:25:06 +02:00
Francesco Mangiacrapa d1b4e929bf Using scm:git:${gitBaseUrl}/gcube-cms-suite/src/branch/master/${project.artifactId} 2023-09-08 15:24:25 +02:00
Francesco Mangiacrapa eff2351caf updated the scm 2023-09-08 14:38:13 +02:00
Francesco Mangiacrapa bc08d11a77 updated the scm 2023-09-08 14:35:08 +02:00
Francesco Mangiacrapa 303534e99c removed -SNAPSHOT to be released 2023-09-08 11:08:07 +02:00
Francesco Mangiacrapa 1dfeba68c2 removed -SNAPSHOT to be released 2023-09-08 11:04:33 +02:00
Francesco Mangiacrapa 84b1e25f5c removed -SNAPSHOT to be released 2023-09-08 11:02:07 +02:00
Francesco Mangiacrapa fb8402b70b removed -SNAPSHOT to be released 2023-09-08 10:59:33 +02:00
Francesco Mangiacrapa 6ba7fac42c removed -SNAPSHOT to be released 2023-09-08 10:56:58 +02:00
Francesco Mangiacrapa 9b9b33c684 removed -SNAPSHOT to be released 2023-09-08 10:42:54 +02:00
Francesco Mangiacrapa 824caa786c removed -SNAPSHOT to be released 2023-09-08 10:36:15 +02:00
Francesco Mangiacrapa b9ed0b91d0 removed -SNAPSHOT to be released 2023-09-08 10:08:45 +02:00
Francesco Mangiacrapa 80f6d5dfc1 removed -SNAPSHOT to be released 2023-09-08 10:06:35 +02:00
Francesco Mangiacrapa ce8de7845f Merge pull request 'task_25570' (#17) from task_25570 into master
Reviewed-on: #17
2023-09-08 09:59:39 +02:00
Francesco Mangiacrapa 8616634652 updated POM 2023-09-06 16:02:52 +02:00
Francesco Mangiacrapa eaa48ca799 increased gcube-bom-version at 2.4.0-SNAPSHOT 2023-09-06 15:32:19 +02:00
Francesco Mangiacrapa 028171275a enabled default proprerties 2023-09-06 15:09:41 +02:00
Francesco Mangiacrapa 5341f19cec added plugin-framework-version 1.0.4-SNAPSHOT 2023-09-06 14:31:44 +02:00
Francesco Mangiacrapa 1109cdc63c plugin-framework-version at [1.0.0, 2.0.0-SNAPSHOT) 2023-09-06 14:15:27 +02:00
Francesco Mangiacrapa 7fd3aad846 added profiles. Updated plugin framework plugin-framework-version at
[1.0.3, 1.5.0-SNAPSHOT)
2023-09-06 14:07:31 +02:00
Francesco Mangiacrapa 35e9971717 commented profiles 2023-09-06 14:03:17 +02:00
Francesco Mangiacrapa 564d6bb3cb activating modules: geoportal-service, geoportal-common,
cms-plugin-framework, geoportal-client
2023-09-06 11:54:54 +02:00
Francesco Mangiacrapa e25a86306a Using parent range version [#25572] 2023-09-06 11:54:12 +02:00
Francesco Mangiacrapa fb6f84f0fe Using parent range version [#25572] 2023-09-06 11:53:41 +02:00
Francesco Mangiacrapa f70ba18eba activating modules: `default-lc-managers`, `sdi-plugins`,
`notifications-plugins`
2023-09-06 11:16:39 +02:00
Francesco Mangiacrapa 5cb9b85c32 - Using parent version range [#25572] 2023-09-06 11:15:28 +02:00
Francesco Mangiacrapa 766861da37 Updated CHANGELOG 2023-09-06 11:06:56 +02:00
Francesco Mangiacrapa 892ec092e1 activating modules `concessioni-lifecycle` and `concessioni-model` 2023-09-06 11:01:06 +02:00
Francesco Mangiacrapa 52ff58cbba - Using parent version range [#25572] 2023-09-06 10:59:21 +02:00
Francesco Mangiacrapa da1c1502e0 commented all modules 2023-09-06 10:01:50 +02:00
Francesco Mangiacrapa 1fade30403 - Fixed data accounting issue [#25571]
- Moved to maven-parent 1.2.0 and using parent version range [#25572]
2023-09-05 15:51:52 +02:00
Francesco Mangiacrapa 22daeac777 - Added maven profiles `geoportal-release-profile` and
`geoportal-snapshot-profile` [#25570]
- Moved to maven-parent.v1.2.0 [#25570]
2023-09-05 15:13:39 +02:00
Francesco Mangiacrapa 8d7330d16b Updated README 2023-07-10 10:41:43 +02:00
Francesco Mangiacrapa 3b517978cb Updated README 2023-07-08 18:47:33 +02:00
Fabio Sinibaldi ae8232cdbf Update 'README.md'
Updated links to doc
2023-06-21 17:10:32 +02:00
Francesco Mangiacrapa f5697e1e7e Updated UCD "Concessioni". Added "GROUPED_CROSS_FILTERING_LAYERS" and
"GROUPED_OVERLAY_LAYERS" configurations, see #25066
2023-06-14 10:47:09 +02:00
Francesco Mangiacrapa ae950ee346 Updated geoserver instance to "geoserver-t.pre.d4science.org" 2023-06-07 17:15:42 +02:00
Francesco Mangiacrapa e415512628 Copied the GROUPED_OVERLAY_LAYERS and GROUPED_CROSS_FILTERING_LAYERS
configurations
2023-06-07 17:09:57 +02:00
Francesco Mangiacrapa eec035f77b Updated UCD description 2023-06-06 14:44:09 +02:00
Francesco Mangiacrapa cff7b260b4 Updated description of GROUPED_OVERLAY_LAYERS and
GROUPED_CROSS_FILTERING_LAYERS
2023-05-31 17:10:55 +02:00
Francesco Mangiacrapa 2580b09743 updated description of GROUPED_CROSS_FILTERING_LAYERS 2023-05-31 17:05:04 +02:00
Francesco Mangiacrapa 745c7a81d8 Updated GROUPED_CROSS_FILTERING_LAYERS 2023-05-31 17:01:12 +02:00
Francesco Mangiacrapa df92c84b16 updated description 2023-05-31 16:03:00 +02:00
Francesco Mangiacrapa ddaf86f705 Added WFS version=1.1.0 and sortby attribute 2023-05-31 13:20:58 +02:00
Francesco Mangiacrapa bb42e05d08 updated GROUPED_CROSS_FILTERING_LAYERS adding key PRO_COM 2023-05-26 17:43:02 +02:00
Francesco Mangiacrapa e4477f6f6f merged with
https://code-repo.d4science.org/gCubeSystem/gcube-cms-suite/src/branch/feature_25066/D4S_UCDs/DEV/devVRE/Concessioni.json
2023-05-25 11:18:50 +02:00
Francesco Mangiacrapa f666d3eb4a enabled production bom dependencies 2023-05-16 11:03:21 +02:00
Francesco Mangiacrapa 04441cdae2 Updated UCD 2023-05-15 17:07:58 +02:00
Francesco Mangiacrapa 9e8bf79e6e Updated UCD 2023-05-15 16:25:41 +02:00
Francesco Mangiacrapa 9e96c69d2c Added complete WMS Links to "Limiti Amministrativi" 2023-05-15 11:10:44 +02:00
Francesco Mangiacrapa f7de65307d GROUPED_CUSTOM_LAYERS config added to "Concessioni" UCD, see #25111 2023-05-12 15:04:34 +02:00
Francesco Mangiacrapa 3cb5ebef57 removed -SNAPSHOT to be released 2023-05-11 14:43:15 +02:00
Francesco Mangiacrapa d0bcaef962 removed -SNAPSHOT to be released 2023-05-11 14:41:47 +02:00
Francesco Mangiacrapa 97dcf6aed9 Only improved some logs 2023-05-11 14:38:23 +02:00
Francesco Mangiacrapa 5e26c4ef61 removed -SNAPSHOT to be released 2023-05-11 14:36:19 +02:00
Francesco Mangiacrapa a4db9a86c2 removed -SNAPSHOT to be released 2023-05-11 14:32:47 +02:00
Francesco Mangiacrapa f4c6690bc4 Merge pull request 'feature_24985' (#16) from feature_24985 into master
Reviewed-on: #16
2023-05-11 14:24:59 +02:00
Francesco Mangiacrapa f6ae2959ed Updated CHANGELOG 2023-05-11 14:21:49 +02:00
Francesco Mangiacrapa 64231c75a9 added log 2023-05-11 14:20:56 +02:00
Francesco Mangiacrapa a449b98bc0 Merge pull request 'feature_24985' (#15) from feature_24985 into master
Reviewed-on: #15
2023-05-11 14:19:36 +02:00
Francesco Mangiacrapa 4b2fa14a6e Updated logs 2023-05-10 17:48:20 +02:00
Francesco Mangiacrapa c72f884206 Bug fixing #25056 2023-05-04 14:44:38 +02:00
Francesco Mangiacrapa fe0869975a Trying to fix the Centroid Object registered in the Project #25056 2023-05-04 11:54:44 +02:00
Francesco Mangiacrapa 5e98b60a20 Changed Exception to WebApplicationException 2023-05-02 12:23:55 +02:00
Francesco Mangiacrapa bdd92cd2ac Integrated `ingnore_errors` in the deleteFileSet 2023-05-02 12:07:35 +02:00
Francesco Mangiacrapa ac5d2a5c63 Re-organized imports 2023-05-02 12:03:47 +02:00
Francesco Mangiacrapa ae16df71c3 Thrown WebApplicationException instead of ConfigurationException 2023-04-28 17:35:13 +02:00
Francesco Mangiacrapa a210d1e237 fixed catching of exception in deleteFileSetRoutine 2023-04-28 16:53:30 +02:00
Francesco Mangiacrapa 8b92ee395b improved deleteFileSetRoutine 2023-04-28 16:39:51 +02:00
Francesco Mangiacrapa 2593fbf195 Fixing deleteFileSetRoutine and improved logs 2023-04-28 16:08:28 +02:00
Francesco Mangiacrapa a8b14a911b Fixing deleteFileSetRoutine 2023-04-28 16:05:58 +02:00
Francesco Mangiacrapa f0488d5c73 improved some logs 2023-04-28 14:40:44 +02:00
Francesco Mangiacrapa 1b5eb2e5b0 improved logs 2023-04-28 12:36:40 +02:00
Francesco Mangiacrapa 6203503026 improved logs 2023-04-28 12:30:48 +02:00
Francesco Mangiacrapa 05634834fe Added 'ignore_errors' 2023-04-26 15:05:06 +02:00
Francesco Mangiacrapa 6b82b8bbef Updated Test cases 2023-04-26 14:15:52 +02:00
Francesco Mangiacrapa b820f68e7e Added "ignoreErrors" parameter 2023-04-26 14:09:39 +02:00
Francesco Mangiacrapa 7eef6d1441 Updated deleteFileSet 2023-04-26 12:34:50 +02:00
Francesco Mangiacrapa e871d0135e Integrated constants for PATCH method 2023-04-26 12:30:43 +02:00
Francesco Mangiacrapa 194b083f4e Added PATCH method [#24985] 2023-04-26 12:28:14 +02:00
Francesco Mangiacrapa 988fe9b4fe Updated Test main 2023-04-21 16:33:04 +02:00
Francesco Mangiacrapa 5d4b947ad9 enabling DEV enviroment 2023-04-21 16:30:33 +02:00
Francesco Mangiacrapa 76f67587e7 changed set updatedDocument 2023-04-19 11:07:34 +02:00
Francesco Mangiacrapa c273a2db2c Fixed `unlockAndPatch` method 2023-04-19 10:43:15 +02:00
Francesco Mangiacrapa 04a86e0280 Incremented logs 2023-04-18 11:21:24 +02:00
Francesco Mangiacrapa 9f047dff91 Added PATCH annotation interface 2023-04-18 10:36:21 +02:00
Francesco Mangiacrapa c47b361a0c Implemented the PATCH method, see [#24985] 2023-04-18 10:35:23 +02:00
Francesco Mangiacrapa 4e93560cd1 Integrated the PATCH method [#24985] 2023-04-18 10:33:22 +02:00
Francesco Mangiacrapa 1408277fe9 Updated gcube boms as: 2023-04-05 10:49:02 +02:00
Francesco Mangiacrapa 2636176796 Updated CHANGELOG 2023-04-05 10:44:29 +02:00
Francesco Mangiacrapa c0e40c8898 Merge pull request 'task_24859' (#14) from task_24859 into master
Reviewed-on: #14
2023-04-05 10:35:03 +02:00
Francesco Mangiacrapa d1ebce8d45 Updated CHANGELOG 2023-04-05 10:31:44 +02:00
Francesco Mangiacrapa 7081772f19 Added comment bug fixing #24902 2023-04-04 17:05:14 +02:00
Francesco Mangiacrapa 261d8f31c8 Fixing 'onDeleteFileSet' calling deIndex (before was index..) 2023-04-04 16:59:13 +02:00
Francesco Mangiacrapa a65c4a86da improved the code catching error on deleting VRE folder ID, see #24902 2023-04-04 16:12:43 +02:00
Francesco Mangiacrapa cb9ae34034 Trying to fix issue #24902#note-13 2023-04-04 15:45:57 +02:00
Francesco Mangiacrapa 42cfe8e600 Only updated the DOC 2023-03-31 15:56:40 +02:00
Francesco Mangiacrapa cc84875c23 Bug fixing issue #24902. Added parameter "fileSetPath" to Document 2023-03-31 12:09:06 +02:00
Francesco Mangiacrapa 4960b50795 Enabled DEV dependencies 2023-03-30 11:34:31 +02:00
Francesco Mangiacrapa 3702ebe730 enabled PROD dependencies 2023-03-30 11:27:45 +02:00
Francesco Mangiacrapa ac0095cacc Enabled DEV dependencies 2023-03-30 11:17:50 +02:00
Francesco Mangiacrapa 4b640a1803 removed -SNAPSHOT to be released 2023-03-30 11:09:48 +02:00
Francesco Mangiacrapa e8b82d443c removed -SNAPSHOT to be released 2023-03-30 11:08:21 +02:00
Francesco Mangiacrapa 03714f99ec Removed -SNAPSHOT to be released 2023-03-30 11:07:37 +02:00
Francesco Mangiacrapa cdab39e2af commented JUnit Test 2023-03-30 11:06:26 +02:00
Francesco Mangiacrapa e7722548d6 Merge pull request 'task_24859' (#13) from task_24859 into master
Reviewed-on: #13
2023-03-30 11:00:17 +02:00
Francesco Mangiacrapa 4964056fb4 Added comment 2023-03-29 16:27:19 +02:00
Francesco Mangiacrapa b37bd06440 Used the IndexConstants class 2023-03-29 16:21:57 +02:00
Francesco Mangiacrapa 7a7c79ef17 Added the IndexConstants class 2023-03-29 16:21:28 +02:00
Francesco Mangiacrapa 17299c7dd1 Created and used the IndexConstants class 2023-03-29 16:21:00 +02:00
Francesco Mangiacrapa 7fb96e75fe Fixing "Draft" execution step executing dematerialization and
de-indexing actions [#24877]
2023-03-29 14:38:10 +02:00
Francesco Mangiacrapa 292fe88107 Added GEOV_LINK as PostgisTable.Field 2023-03-29 12:04:24 +02:00
Francesco Mangiacrapa c23245151f Added default case (as String) in the `setObjectInPreparedStatement` 2023-03-29 11:48:41 +02:00
Francesco Mangiacrapa 9dd1b77b73 reverted scope of default-lc-managers from 'provided' to 'compile', see
#24875#note-3
2023-03-29 10:51:09 +02:00
Francesco Mangiacrapa 42fc5e4ace Fixed deploying of multiple versions of the default-lc-managers [#24875] 2023-03-29 10:24:04 +02:00
Francesco Mangiacrapa 374544a28a updated "flagInternalIndex" read 2023-03-28 17:06:02 +02:00
Francesco Mangiacrapa 18458b99f6 setting flagInternalIndex as Boolean#TRUE/FALSE 2023-03-28 17:02:17 +02:00
Francesco Mangiacrapa d083cae89e Only fixed imports 2023-03-28 16:09:25 +02:00
Francesco Mangiacrapa 07730153ca #24859 integrated the Geoportal Gis Link 2023-03-28 15:45:21 +02:00
Francesco Mangiacrapa e902fadce2 #24859 Added new parameter 'flagInternalIndex' to BaseRequest 2023-03-28 15:44:27 +02:00
Francesco Mangiacrapa 5ac8725594 UCDs updated according to #24784 2023-03-21 15:21:34 +01:00
Francesco Mangiacrapa b2d696acf3 Update 'geoportal-service/CHANGELOG.md'
Updated note of the v1.0.13
2023-03-21 11:08:27 +01:00
Francesco Mangiacrapa 755b6042c6 removed unused folder 2023-03-20 15:15:43 +01:00
Francesco Mangiacrapa d1902a9664 UCDs updated in PRE, see https://support.d4science.org/issues/24784 2023-03-20 15:14:17 +01:00
Francesco Mangiacrapa 6072f4afbc Fixed mapping (see #24784) 2023-03-17 12:16:48 +01:00
Francesco Mangiacrapa 13b388f8a6 updated creator 2023-03-16 15:49:59 +01:00
Francesco Mangiacrapa 93d490de79 Copied from Esquiline/Esquilino.json 2023-03-16 15:44:23 +01:00
Francesco Mangiacrapa d86b2026d3 Updated UCDs. Added the UNPUBLISH STEP 2023-03-16 15:43:09 +01:00
Francesco Mangiacrapa 0f7e3f73b8 Updated UCD of DEV 2023-03-16 14:16:12 +01:00
Francesco Mangiacrapa fcb8f3c378 Updated UCD of PRE 2023-03-16 14:15:56 +01:00
Francesco Mangiacrapa 46ad6a0198 Updated UCDs of PRE 2023-03-16 14:14:03 +01:00
Francesco Mangiacrapa d3c043621b Removed -SNAPSHOT to be released 2023-03-14 11:26:55 +01:00
Francesco Mangiacrapa a499c5e151 Merge pull request 'bug_24754' (#12) from bug_24754 into master
Reviewed-on: #12
2023-03-14 11:23:05 +01:00
Francesco Mangiacrapa 2bc5d3a192 #24754 Fixed 2023-03-14 10:51:02 +01:00
Francesco Mangiacrapa 0dcdd2bf32 updated behaviour 2023-03-13 17:42:47 +01:00
Francesco Mangiacrapa b2f93e2167 updated behaviour 2023-03-13 17:14:07 +01:00
Francesco Mangiacrapa 2797ae5d76 ignoring phases 2023-03-13 16:46:32 +01:00
Francesco Mangiacrapa 1b0a93d91c Fixed log 2023-03-13 16:32:45 +01:00
Francesco Mangiacrapa 7ea6719534 added more logs 2023-03-13 16:14:38 +01:00
Francesco Mangiacrapa 23dae96c83 #24754 first patched version 2023-03-13 15:25:57 +01:00
Francesco Mangiacrapa ed3fe284c1 Activated the PROD dependency for BOMs 2023-03-07 12:35:15 +01:00
Francesco Mangiacrapa 08eb6f85de reverted to 1.1.2 version 2023-03-07 11:16:13 +01:00
Francesco Mangiacrapa b23e05b1e4 Just to build the 1.1.2-SNAPSHOT version 2023-03-07 11:13:53 +01:00
Francesco Mangiacrapa 5af02d427e removed -SNAPSHOT to be released 2023-03-06 14:42:31 +01:00
Francesco Mangiacrapa 01d5c7d6fb removed -SNAPSHOT to be released 2023-03-06 14:40:37 +01:00
Francesco Mangiacrapa 90f33434cb removed -SNAPSHOT to be released 2023-03-06 14:35:30 +01:00
Francesco Mangiacrapa 84e69d7eea removed -SNAPSHOT to be released 2023-03-06 14:31:23 +01:00
Francesco Mangiacrapa f4c5b00905 removed -SNAPSHOT to be released 2023-03-06 14:30:38 +01:00
Francesco Mangiacrapa a22f4a7503 Merge pull request 'feature_24570' (#11) from feature_24570 into master
Reviewed-on: #11
2023-03-06 14:23:10 +01:00
Francesco Mangiacrapa 7dade2d250 removed folders with UCDs 2023-03-06 14:20:03 +01:00
Francesco Mangiacrapa 4cf6d1e5d4 DeIndexing have been separated for Simple and Default3Phase Manager 2023-03-03 14:38:11 +01:00
Francesco Mangiacrapa c9ef00c108 improved logs 2023-03-03 12:33:27 +01:00
Francesco Mangiacrapa c1f2696909 #24702 Fixed the default-lc-managers dependency 2023-03-03 11:09:33 +01:00
Francesco Mangiacrapa e5fc626bd3 #24702 Fixed the default-lc-managers dependency 2023-03-03 11:06:23 +01:00
Francesco Mangiacrapa fb5b64442e #24702 Fixed the 'default-lc-managers' dependency 2023-03-03 10:57:36 +01:00
Francesco Mangiacrapa bdd4884821 Updated pom to 1.1.1-SNAPSHOT 2023-03-02 13:57:18 +01:00
Francesco Mangiacrapa 0b8d2f3b4b Added throw StepException 2023-03-02 12:16:13 +01:00
Francesco Mangiacrapa 245f068210 Added step UNPUBLISH to GNA-CONCESSIONI-LC 2023-03-02 11:19:48 +01:00
Francesco Mangiacrapa 139e96222a Added unpublish step to UCD 2023-03-02 11:18:21 +01:00
Francesco Mangiacrapa a6f9e5be9b fixed import 2023-03-01 17:44:25 +01:00
Francesco Mangiacrapa 6dd921fb05 Using storagehub-version-range declaration 2023-03-01 17:41:14 +01:00
Francesco Mangiacrapa 9c9bd0b382 Added UNPULISH Operation in the Default3PhaseManager 2023-03-01 17:35:44 +01:00
Francesco Mangiacrapa 0090950e9d Updated UCDs of DEV 2023-03-01 14:55:25 +01:00
Francesco Mangiacrapa 1431a06171 added storagehub-version-range 2023-03-01 14:43:18 +01:00
Francesco Mangiacrapa 0edc6c6f1f merged with master branch 2023-03-01 14:40:30 +01:00
Francesco Mangiacrapa 47a4558a46 Added "unpublish" for Esquilino on PUBLISHED phase 2023-03-01 14:28:30 +01:00
Francesco Mangiacrapa c5de3cb00c Added "unpublish" step to UCD "Esquilino" and "Concessioni" 2023-03-01 12:30:36 +01:00
Francesco Mangiacrapa 9f1950597e Added "unpublish" step in the WORKFLOW_ACTION_LIST_GUI 2023-03-01 12:12:46 +01:00
Francesco Mangiacrapa 87eb0ee41a #24672, Improved the UCDs deployment 2023-03-01 12:01:30 +01:00
Francesco Mangiacrapa eab6a27c76 enabled the DEV environment 2023-03-01 11:47:29 +01:00
Francesco Mangiacrapa c82f5a7ba9 Added -SNAPSHOT version 2023-03-01 11:22:40 +01:00
Francesco Mangiacrapa 8d888a869e Removed -SNAPSHOT in order to deploy on PRE 2023-02-28 15:09:57 +01:00
Francesco Mangiacrapa 2cd07f6f3b added height: 100px; 2023-02-28 14:44:40 +01:00
Francesco Mangiacrapa 0c536f2dde fixed enunciate api-doc path 2023-02-28 14:34:32 +01:00
Francesco Mangiacrapa c5c5fdd6fe Activated production dependencies 2023-02-27 14:42:39 +01:00
Francesco Mangiacrapa caec2f54c6 Activated the dev dependencies 2023-02-27 11:28:50 +01:00
Roberto Cirillo 3014d475bb Update 'geoportal-service/CHANGELOG.md'
add new version on CHANGELOG
2023-02-23 17:13:59 +01:00
Roberto Cirillo df35df55b6 Update 'geoportal-service/pom.xml'
update pom version to 1.0.13-SNAPSHOT
2023-02-23 17:10:16 +01:00
Francesco Mangiacrapa 161c545174 Added the UnPublish Step into "GNA-CONCESSIONI-LC" and
"WORKFLOW_ACTION_LIST_GUI"
2023-02-23 16:35:58 +01:00
Francesco Mangiacrapa e059e9cfa7 Organized the UCDs per INFRA/{VRE} 2023-02-23 16:03:26 +01:00
Francesco Mangiacrapa fa90d62eca first implementation of the UnPublish step 2023-02-23 11:51:50 +01:00
Francesco Mangiacrapa 038bfe26ba Fixed "_id": "org.gcube.portlets.user.geoportal-basic-data-list" 2023-02-20 11:45:27 +01:00
Francesco Mangiacrapa 56ca60f177 Updated the UCD 2023-02-20 10:51:06 +01:00
Francesco Mangiacrapa 905e12d067 Create the `Esquilino` UCD 2023-02-13 11:21:20 +01:00
Fabio Sinibaldi c193d7a948 Enforcer on "PUBLISHED" phase 2023-02-10 17:34:28 +01:00
Fabio Sinibaldi a6d1d5817a PUBLISH post action on save 2023-02-10 17:25:19 +01:00
Francesco Mangiacrapa 7b7f30279d Updated the UCD 2023-02-10 17:13:50 +01:00
Fabio Sinibaldi aacd18582d Esquilino UCD Definition 2023-02-10 16:54:02 +01:00
Francesco Mangiacrapa 3ed5f73a14 Removed "SUBMIT-FOR-REVIEW" from the actionsDefinition
`post_creation_action`, see #24568
2023-02-09 10:18:28 +01:00
Francesco Mangiacrapa 01d64343b7 #24568 Removed the "Submit for Review" as post-action. UCDs created in
the parent folder `preVRE`
2023-02-08 16:43:37 +01:00
Fabio Sinibaldi ed681eba2a Merge pull request '#24476' (#10) from #24476 into master
Reviewed-on: #10
2023-01-30 17:44:47 +01:00
Fabio Sinibaldi bac779b20d Release sdi-plugins.1.0.3 2023-01-30 17:43:20 +01:00
Fabio Sinibaldi 409df28cc1 Tests 2023-01-30 17:42:51 +01:00
Fabio Sinibaldi b115c8088b Merge remote-tracking branch 'origin/#24476' into #24476 2023-01-30 12:06:31 +01:00
Fabio Sinibaldi 9ba3559a15 Tests 2023-01-30 12:06:22 +01:00
Fabio Sinibaldi b8cb4e86f0 Advancing the right plugin component, since the service doesn't need upgrade. 2023-01-30 12:06:22 +01:00
Fabio Sinibaldi ae6c5c1ea7 Fixes #24476 2023-01-30 12:06:22 +01:00
Fabio Sinibaldi 2d62160ce1 Tests 2023-01-30 12:01:56 +01:00
Fabio Sinibaldi 87df1c2f96 Ordered access policies 2023-01-30 10:41:16 +01:00
Fabio Sinibaldi 917587d276 Update 'D4S_UCDs/Concessioni.json'
Ordered data Access policies
2023-01-30 10:38:51 +01:00
Fabio Sinibaldi 6e065ed359 Update 'D4S_UCDs/Concessioni_estere.json' 2023-01-27 12:56:00 +01:00
Fabio Sinibaldi 2f13be58e8 Access policies 2023-01-27 12:55:06 +01:00
Francesco Mangiacrapa 99d8c9a626 bug fixing #24479 2023-01-26 14:54:51 +01:00
Francesco Mangiacrapa 52588425d2 bug fixing #24479 2023-01-26 14:49:37 +01:00
Fabio Sinibaldi b4cf8ccd27 Advancing the right plugin component, since the service doesn't need upgrade. 2023-01-24 17:43:31 +01:00
Fabio Sinibaldi 5e10aa610c Fixes #24476 2023-01-24 17:36:42 +01:00
Fabio Sinibaldi 1eaaf0f176 Release UCDs 2023-01-23 14:26:54 +01:00
Fabio Sinibaldi 6234ef4a2f Fix sphinx doc #24320 2023-01-20 18:24:40 +01:00
Fabio Sinibaldi edef974181 Fix sphinx doc #24320 2023-01-20 16:33:14 +01:00
Fabio Sinibaldi d265c2d558 Fix sphinx doc #24320 2023-01-20 16:08:37 +01:00
Fabio Sinibaldi 66a0424cc5 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	geoportal-client/src/test/java/org/gcube/application/geoportal/clients/ProfiledConcessioniTest.java
#	geoportal-client/src/test/java/org/gcube/application/geoportal/clients/ProfiledDocumentsTest.java
2023-01-18 17:44:35 +01:00
Fabio Sinibaldi a86310ade5 Fix tests 2023-01-18 17:43:44 +01:00
Fabio Sinibaldi 7bc7caa0de Merge pull request 'suite_1.0.4' (#9) from suite_1.0.4 into master
Reviewed-on: #9
2023-01-13 17:42:23 +01:00
Fabio Sinibaldi 293689e788 Release 1.0.4 2023-01-13 17:36:22 +01:00
Fabio Sinibaldi b5db9cfdf3 Redundant 2023-01-13 16:05:36 +01:00
Fabio Sinibaldi 038049ebf6 Merge remote-tracking branch 'origin/suite_1.0.4' into suite_1.0.4 2023-01-13 16:04:36 +01:00
Fabio Sinibaldi e7481f67c4 Fixes #24380 2023-01-13 16:03:10 +01:00
Fabio Sinibaldi a58bd458f7 Fixes #24412 2023-01-13 16:03:10 +01:00
Fabio Sinibaldi b7788c063e Fixes #24316 2023-01-13 16:03:10 +01:00
Fabio Sinibaldi bff898c57d Fixed version 2023-01-13 16:03:10 +01:00
Fabio Sinibaldi 253b13e49b Fixed version 2023-01-13 16:03:10 +01:00
Fabio Sinibaldi febc806c10 Missing images 2023-01-13 16:03:10 +01:00
Fabio Sinibaldi 5ea3d278ad UserUtils integration 2023-01-13 16:03:10 +01:00
Fabio Sinibaldi 5055c548d1 Tests 2023-01-13 16:03:10 +01:00
Fabio Sinibaldi 56bac71bb2 D4S UCDs for dev / preprod 2023-01-13 15:28:03 +01:00
Fabio Sinibaldi 3d03e565b4 Fixes #24380 2023-01-12 18:03:55 +01:00
Fabio Sinibaldi eb3a5083b9 Fixes #24412 2023-01-12 15:53:25 +01:00
Fabio Sinibaldi c4e5423a26 Fixes #24316 2023-01-10 18:11:39 +01:00
Fabio Sinibaldi a50c05a1f0 Fixed version 2023-01-10 17:15:45 +01:00
Fabio Sinibaldi 456a3d2bae Fixed version 2023-01-10 16:19:22 +01:00
Fabio Sinibaldi 390402e005 Missing images 2023-01-10 16:14:14 +01:00
Fabio Sinibaldi 2561da665f UserUtils integration 2023-01-10 15:57:40 +01:00
Fabio Sinibaldi 20336ea57a Tests 2023-01-10 11:42:09 +01:00
Fabio Sinibaldi 87611c1245 Merge pull request 'suite1.0.3' (#8) from suite1.0.3 into master
Reviewed-on: #8
2022-12-14 16:19:50 +01:00
Fabio Sinibaldi e1defba910 Release suite 1.0.3 2022-12-14 16:18:15 +01:00
Fabio Sinibaldi 96a13efe72 Module default-lc-managers 2022-12-14 15:08:14 +01:00
Fabio Sinibaldi 912925202d Testing 2022-12-13 16:52:25 +01:00
Fabio Sinibaldi e3960d3d7e Fixes #24235 2022-12-06 17:55:49 +01:00
Fabio Sinibaldi de8ed2a811 Fixes #24235 2022-12-06 16:46:12 +01:00
Fabio Sinibaldi ec0b826313 Fixes #24235 2022-12-06 15:15:02 +01:00
247 changed files with 20416 additions and 4800 deletions

View File

@ -2,6 +2,17 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for org.gcube.spatial.data.gcube-sdi-suite
## [v1.0.5]
- Added maven profiles `geoportal-release-profile` and `geoportal-snapshot-profile` [#25570]
- Moved to maven-parent.v1.2.0 [#25570]
## [v1.0.4] - 2023-01-10
- Updated plugin framework
## [v1.0.3] - 2022-12-07
- Updated plugin framework
- Introduced module default-lc-managers
## [v1.0.2] - 2021-02-24
-Introduced module sdi-plugins
-Introduced module notifications-plugins

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

653
D4S_UCDs/Concessioni.json Normal file
View File

@ -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"}
]
}

View File

@ -0,0 +1,681 @@
{
"_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": []
},
{
"_policy": {
"_read": "any",
"_write": "none"
},
"_roles": [
"Guest"
],
"_enforcer": {
"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"
}
},
{
"_policy": {
"_read": "any",
"_write": "none"
},
"_roles": [
"Admin"
]
},
{
"_policy": {
"_read": "any",
"_write": "any"
},
"_roles": [
"Data-Manager"
]
}
],
"_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 di fine scavo (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"}
]
}

View File

@ -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"}
]
}

View File

@ -0,0 +1,681 @@
{
"_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": []
},
{
"_policy": {
"_read": "any",
"_write": "none"
},
"_roles": [
"Guest"
],
"_enforcer": {
"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"
}
},
{
"_policy": {
"_read": "any",
"_write": "none"
},
"_roles": [
"Admin"
]
},
{
"_policy": {
"_read": "any",
"_write": "any"
},
"_roles": [
"Data-Manager"
]
}
],
"_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 di fine scavo (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"}
]
}

View File

@ -0,0 +1,815 @@
{
"_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": "francesco.mangiacrapa"
}
},
"_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",
"Data-Editor"
]
},
{
"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": "data_inizio_progetto",
"path": "$._theDocument.dataInizioProgetto",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.introduzione",
"type": "TEXT"
},
{
"name": "contenuto",
"path": "$._theDocument.descrizioneContenuto",
"type": "TEXT"
},
{
"name": "contributore",
"path": "$._theDocument.contributore",
"type": "TEXT"
},
{
"name": "responsabile",
"path": "$._theDocument.responsabile",
"type": "TEXT"
},
{
"name": "editore",
"path": "$._theDocument.editore",
"type": "TEXT"
},
{
"name": "ufficio_mic_competente",
"path": "$._theDocument.ufficioMic",
"type": "TEXT"
},
{
"name": "funzionario_responsabile",
"path": "$._theDocument.funzionarioResponsabile",
"type": "TEXT"
},
{
"name": "finanziamento",
"path": "$._theDocument.fontiFinanziamento",
"type": "TEXT"
},
{
"name": "soggetto",
"path": "$._theDocument.soggetto",
"type": "TEXT"
},
{
"name": "risorse",
"path": "$._theDocument.risorseCorrelate",
"type": "TEXT"
},
{
"name": "data_fine_progetto",
"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": "accesso",
"path": "$._info._access._license",
"type": "TEXT"
},
{
"name": "parole_chiave",
"path": "$._theDocument.paroleChiaveLibere",
"type": "TEXT"
},
{
"name": "modalita_individuazione",
"path": "$._theDocument.modalitaIndividuazione",
"type": "TEXT"
},
{
"name": "contesto_indagine",
"path": "$._theDocument.contestoIndagine",
"type": "TEXT"
},
{
"name": "denominazione",
"path": "$._theDocument.denominazione",
"type": "TEXT"
},
{
"name": "stato_attuale",
"path": "$._theDocument.statoAttuale",
"type": "TEXT"
},
{
"name": "accessibilita",
"path": "$._theDocument.accessibilita",
"type": "TEXT"
},
{
"name": "cronologia_macrofase",
"path": "$._theDocument.cronologiaMacrofase",
"type": "TEXT",
"apply_regex": {
"type": "replaceAll",
"regex": "(\\s)?\\([\\s\\S]*",
"replacement": ""
}
},
{
"name": "specifiche_cronologia",
"path": "$._theDocument.specificheCronologia",
"type": "TEXT"
},
{
"name": "quota_max",
"path": "$._theDocument.quotaMax",
"type": "TEXT"
},
{
"name": "quota_min",
"path": "$._theDocument.quotaMin",
"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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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 (yyyy-mm-dd)",
"paths": [
"_theDocument.dataInizioProgetto"
],
"operator": "$and",
"searchable": true,
"sortable": true,
"asResult": true
},
{
"label": "Director/Staff",
"paths": [
"_theDocument.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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.grouped_overlay_layers",
"_type": "GROUPED_OVERLAY_LAYERS",
"_configuration": {
"grouped_overlay_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Layers automatically added to the Map",
"layers": [
{
"title": "Regioni",
"name": "limiti_amministrativi:regioni",
"wms_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:regioni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Province",
"name": "limiti_amministrativi:province",
"wms_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:province&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Comuni",
"name": "limiti_amministrativi:comuni",
"wms_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:comuni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
}
]
}
]
}
},
{
"_id": "org.gcube.portlets.user.grouped_cross_filtering_layers",
"_type": "GROUPED_CROSS_FILTERING_LAYERS",
"_configuration": {
"grouped_cross_filtering_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Spatial filtering for the selected layer",
"layers": [
{
"title": "Regioni",
"description": "Le Regioni Italiane",
"name": "limiti_amministrativi:regioni",
"wfs_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:regioni&maxFeatures=50&outputFormat=application%2Fjson&propertyName=COD_REG,DEN_REG&sortby=DEN_REG",
"table_show_field": "DEN_REG",
"table_key_field": "COD_REG",
"table_parent_key_field": "",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Province",
"description": "Le Province Italiane",
"name": "limiti_amministrativi:province",
"wfs_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:province&maxFeatures=150&outputFormat=application%2Fjson&propertyName=COD_PROV,DEN_PROV,COD_REG&sortby=DEN_PROV",
"table_show_field": "DEN_PROV",
"table_key_field": "COD_PROV",
"table_parent_key_field": "COD_REG",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Comuni",
"description": "I Comuni Italiani",
"name": "limiti_amministrativi:comuni",
"wfs_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:comuni&maxFeatures=9000&outputFormat=application%2Fjson&propertyName=PRO_COM,COMUNE,COD_PROV&sortby=COMUNE",
"table_show_field": "COMUNE",
"table_key_field": "PRO_COM",
"table_parent_key_field": "COD_PROV",
"table_geometry_name": "the_geom"
}
]
}
]
}
]
}
]
}
},
{
"_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"
}
]
}

View File

@ -0,0 +1,669 @@
{
"_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",
"Data-Editor"
]
},
{
"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": "data_inizio_progetto",
"path": "$._theDocument.dataInizioProgetto",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.introduzione",
"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": "data_fine_progetto",
"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"}
]
}

View File

@ -0,0 +1,511 @@
{
"_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"
]
}
]
}
}
]
}

View File

@ -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"
]
}
]
}
}
]
}

View File

@ -0,0 +1,815 @@
{
"_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": "francesco.mangiacrapa"
}
},
"_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",
"Data-Editor"
]
},
{
"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": "data_inizio_progetto",
"path": "$._theDocument.dataInizioProgetto",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.introduzione",
"type": "TEXT"
},
{
"name": "contenuto",
"path": "$._theDocument.descrizioneContenuto",
"type": "TEXT"
},
{
"name": "contributore",
"path": "$._theDocument.contributore",
"type": "TEXT"
},
{
"name": "responsabile",
"path": "$._theDocument.responsabile",
"type": "TEXT"
},
{
"name": "editore",
"path": "$._theDocument.editore",
"type": "TEXT"
},
{
"name": "ufficio_mic_competente",
"path": "$._theDocument.ufficioMic",
"type": "TEXT"
},
{
"name": "funzionario_responsabile",
"path": "$._theDocument.funzionarioResponsabile",
"type": "TEXT"
},
{
"name": "finanziamento",
"path": "$._theDocument.fontiFinanziamento",
"type": "TEXT"
},
{
"name": "soggetto",
"path": "$._theDocument.soggetto",
"type": "TEXT"
},
{
"name": "risorse",
"path": "$._theDocument.risorseCorrelate",
"type": "TEXT"
},
{
"name": "data_fine_progetto",
"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": "accesso",
"path": "$._info._access._license",
"type": "TEXT"
},
{
"name": "parole_chiave",
"path": "$._theDocument.paroleChiaveLibere",
"type": "TEXT"
},
{
"name": "modalita_individuazione",
"path": "$._theDocument.modalitaIndividuazione",
"type": "TEXT"
},
{
"name": "contesto_indagine",
"path": "$._theDocument.contestoIndagine",
"type": "TEXT"
},
{
"name": "denominazione",
"path": "$._theDocument.denominazione",
"type": "TEXT"
},
{
"name": "stato_attuale",
"path": "$._theDocument.statoAttuale",
"type": "TEXT"
},
{
"name": "accessibilita",
"path": "$._theDocument.accessibilita",
"type": "TEXT"
},
{
"name": "cronologia_macrofase",
"path": "$._theDocument.cronologiaMacrofase",
"type": "TEXT",
"apply_regex": {
"type": "replaceAll",
"regex": "(\\s)?\\([\\s\\S]*",
"replacement": ""
}
},
{
"name": "specifiche_cronologia",
"path": "$._theDocument.specificheCronologia",
"type": "TEXT"
},
{
"name": "quota_max",
"path": "$._theDocument.quotaMax",
"type": "TEXT"
},
{
"name": "quota_min",
"path": "$._theDocument.quotaMin",
"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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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 (yyyy-mm-dd)",
"paths": [
"_theDocument.dataInizioProgetto"
],
"operator": "$and",
"searchable": true,
"sortable": true,
"asResult": true
},
{
"label": "Director/Staff",
"paths": [
"_theDocument.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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.grouped_overlay_layers",
"_type": "GROUPED_OVERLAY_LAYERS",
"_configuration": {
"grouped_overlay_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Layers automatically added to the Map",
"layers": [
{
"title": "Regioni",
"name": "limiti_amministrativi:regioni",
"wms_url": "https://geoserver-t.pre.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:regioni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Province",
"name": "limiti_amministrativi:province",
"wms_url": "https://geoserver-t.pre.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:province&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Comuni",
"name": "limiti_amministrativi:comuni",
"wms_url": "https://geoserver-t.pre.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:comuni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
}
]
}
]
}
},
{
"_id": "org.gcube.portlets.user.grouped_cross_filtering_layers",
"_type": "GROUPED_CROSS_FILTERING_LAYERS",
"_configuration": {
"grouped_cross_filtering_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Spatial filtering for the selected layer",
"layers": [
{
"title": "Regioni",
"description": "Le Regioni Italiane",
"name": "limiti_amministrativi:regioni",
"wfs_url": "https://geoserver-t.pre.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:regioni&maxFeatures=50&outputFormat=application%2Fjson&propertyName=COD_REG,DEN_REG&sortby=DEN_REG",
"table_show_field": "DEN_REG",
"table_key_field": "COD_REG",
"table_parent_key_field": "",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Province",
"description": "Le Province Italiane",
"name": "limiti_amministrativi:province",
"wfs_url": "https://geoserver-t.pre.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:province&maxFeatures=150&outputFormat=application%2Fjson&propertyName=COD_PROV,DEN_PROV,COD_REG&sortby=DEN_PROV",
"table_show_field": "DEN_PROV",
"table_key_field": "COD_PROV",
"table_parent_key_field": "COD_REG",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Comuni",
"description": "I Comuni Italiani",
"name": "limiti_amministrativi:comuni",
"wfs_url": "https://geoserver-t.pre.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:comuni&maxFeatures=9000&outputFormat=application%2Fjson&propertyName=PRO_COM,COMUNE,COD_PROV&sortby=COMUNE",
"table_show_field": "COMUNE",
"table_key_field": "PRO_COM",
"table_parent_key_field": "COD_PROV",
"table_geometry_name": "the_geom"
}
]
}
]
}
]
}
]
}
},
{
"_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"
}
]
}

View File

@ -0,0 +1,735 @@
{
"_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": "francesco.mangiacrapa"
}
},
"_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",
"Data-Editor"
]
},
{
"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": "data_inizio_progetto",
"path": "$._theDocument.dataInizioProgetto",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.introduzione",
"type": "TEXT"
},
{
"name": "contenuto",
"path": "$._theDocument.descrizioneContenuto",
"type": "TEXT"
},
{
"name": "contributore",
"path": "$._theDocument.contributore",
"type": "TEXT"
},
{
"name": "responsabile",
"path": "$._theDocument.responsabile",
"type": "TEXT"
},
{
"name": "editore",
"path": "$._theDocument.editore",
"type": "TEXT"
},
{
"name": "ufficio_competente",
"path": "$._theDocument.ufficioCompetente",
"type": "TEXT"
},
{
"name": "funzionario_responsabile",
"path": "$._theDocument.funzionarioResponsabile",
"type": "TEXT"
},
{
"name": "finanziamento",
"path": "$._theDocument.fontiFinanziamento",
"type": "TEXT"
},
{
"name": "soggetto",
"path": "$._theDocument.soggetto",
"type": "TEXT"
},
{
"name": "risorse",
"path": "$._theDocument.risorseCorrelate",
"type": "TEXT"
},
{
"name": "data_fine_progetto",
"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": "accesso",
"path": "$._info._access._license",
"type": "TEXT"
},
{
"name": "parole_chiave",
"path": "$._theDocument.paroleChiaveLibere",
"type": "TEXT"
},
{
"name": "modalita_individuazione",
"path": "$._theDocument.modalitaIndividuazione",
"type": "TEXT"
},
{
"name": "contesto_indagine",
"path": "$._theDocument.contestoIndagine",
"type": "TEXT"
},
{
"name": "denominazione",
"path": "$._theDocument.denominazione",
"type": "TEXT"
},
{
"name": "stato_attuale",
"path": "$._theDocument.statoAttuale",
"type": "TEXT"
},
{
"name": "accessibilita",
"path": "$._theDocument.accessibilita",
"type": "TEXT"
},
{
"name": "cronologia_macrofase",
"path": "$._theDocument.cronologiaMacrofase",
"type": "TEXT",
"apply_regex": {
"type": "replaceAll",
"regex": "(\\s)?\\([\\s\\S]*",
"replacement": ""
}
},
{
"name": "specifiche_cronologia",
"path": "$._theDocument.specificheCronologia",
"type": "TEXT"
},
{
"name": "quota_max",
"path": "$._theDocument.quotaMax",
"type": "TEXT"
},
{
"name": "quota_min",
"path": "$._theDocument.quotaMin",
"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_estero",
"sectionName": "$.",
"sectionTitle": "Informazioni di Progetto Estero"
},
{
"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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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 (yyyy-mm-dd)",
"paths": [
"_theDocument.dataInizioProgetto"
],
"operator": "$and",
"searchable": true,
"sortable": true,
"asResult": true
},
{
"label": "Director/Staff",
"paths": [
"_theDocument.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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"
}
]
}

View File

@ -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"
]
}
]
}
}
]
}

View File

@ -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"
]
}
]
}
}
]
}

View File

@ -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"
]
}
]
}
}
]
}

View File

@ -0,0 +1,815 @@
{
"_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": "francesco.mangiacrapa"
}
},
"_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",
"Data-Editor"
]
},
{
"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": "data_inizio_progetto",
"path": "$._theDocument.dataInizioProgetto",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.introduzione",
"type": "TEXT"
},
{
"name": "contenuto",
"path": "$._theDocument.descrizioneContenuto",
"type": "TEXT"
},
{
"name": "contributore",
"path": "$._theDocument.contributore",
"type": "TEXT"
},
{
"name": "responsabile",
"path": "$._theDocument.responsabile",
"type": "TEXT"
},
{
"name": "editore",
"path": "$._theDocument.editore",
"type": "TEXT"
},
{
"name": "ufficio_mic_competente",
"path": "$._theDocument.ufficioMic",
"type": "TEXT"
},
{
"name": "funzionario_responsabile",
"path": "$._theDocument.funzionarioResponsabile",
"type": "TEXT"
},
{
"name": "finanziamento",
"path": "$._theDocument.fontiFinanziamento",
"type": "TEXT"
},
{
"name": "soggetto",
"path": "$._theDocument.soggetto",
"type": "TEXT"
},
{
"name": "risorse",
"path": "$._theDocument.risorseCorrelate",
"type": "TEXT"
},
{
"name": "data_fine_progetto",
"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": "accesso",
"path": "$._info._access._license",
"type": "TEXT"
},
{
"name": "parole_chiave",
"path": "$._theDocument.paroleChiaveLibere",
"type": "TEXT"
},
{
"name": "modalita_individuazione",
"path": "$._theDocument.modalitaIndividuazione",
"type": "TEXT"
},
{
"name": "contesto_indagine",
"path": "$._theDocument.contestoIndagine",
"type": "TEXT"
},
{
"name": "denominazione",
"path": "$._theDocument.denominazione",
"type": "TEXT"
},
{
"name": "stato_attuale",
"path": "$._theDocument.statoAttuale",
"type": "TEXT"
},
{
"name": "accessibilita",
"path": "$._theDocument.accessibilita",
"type": "TEXT"
},
{
"name": "cronologia_macrofase",
"path": "$._theDocument.cronologiaMacrofase",
"type": "TEXT",
"apply_regex": {
"type": "replaceAll",
"regex": "(\\s)?\\([\\s\\S]*",
"replacement": ""
}
},
{
"name": "specifiche_cronologia",
"path": "$._theDocument.specificheCronologia",
"type": "TEXT"
},
{
"name": "quota_max",
"path": "$._theDocument.quotaMax",
"type": "TEXT"
},
{
"name": "quota_min",
"path": "$._theDocument.quotaMin",
"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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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 (yyyy-mm-dd)",
"paths": [
"_theDocument.dataInizioProgetto"
],
"operator": "$and",
"searchable": true,
"sortable": true,
"asResult": true
},
{
"label": "Director/Staff",
"paths": [
"_theDocument.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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.grouped_overlay_layers",
"_type": "GROUPED_OVERLAY_LAYERS",
"_configuration": {
"grouped_overlay_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Layers automatically added to the Map",
"layers": [
{
"title": "Regioni",
"name": "limiti_amministrativi:regioni",
"wms_url": "https://geoserver-geona.cloud.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:regioni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Province",
"name": "limiti_amministrativi:province",
"wms_url": "https://geoserver-geona.cloud.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:province&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Comuni",
"name": "limiti_amministrativi:comuni",
"wms_url": "https://geoserver-geona.cloud.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:comuni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
}
]
}
]
}
},
{
"_id": "org.gcube.portlets.user.grouped_cross_filtering_layers",
"_type": "GROUPED_CROSS_FILTERING_LAYERS",
"_configuration": {
"grouped_cross_filtering_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Spatial filtering for the selected layer",
"layers": [
{
"title": "Regioni",
"description": "Le Regioni Italiane",
"name": "limiti_amministrativi:regioni",
"wfs_url": "https://geoserver-geona.cloud.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:regioni&maxFeatures=50&outputFormat=application%2Fjson&propertyName=COD_REG,DEN_REG&sortby=DEN_REG",
"table_show_field": "DEN_REG",
"table_key_field": "COD_REG",
"table_parent_key_field": "",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Province",
"description": "Le Province Italiane",
"name": "limiti_amministrativi:province",
"wfs_url": "https://geoserver-geona.cloud.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:province&maxFeatures=150&outputFormat=application%2Fjson&propertyName=COD_PROV,DEN_PROV,COD_REG&sortby=DEN_PROV",
"table_show_field": "DEN_PROV",
"table_key_field": "COD_PROV",
"table_parent_key_field": "COD_REG",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Comuni",
"description": "I Comuni Italiani",
"name": "limiti_amministrativi:comuni",
"wfs_url": "https://geoserver-geona.cloud.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:comuni&maxFeatures=9000&outputFormat=application%2Fjson&propertyName=PRO_COM,COMUNE,COD_PROV&sortby=COMUNE",
"table_show_field": "COMUNE",
"table_key_field": "PRO_COM",
"table_parent_key_field": "COD_PROV",
"table_geometry_name": "the_geom"
}
]
}
]
}
]
}
]
}
},
{
"_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"
}
]
}

View File

@ -0,0 +1,702 @@
{
"_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": "francesco.mangiacrapa"
}
},
"_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",
"Data-Editor"
]
},
{
"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": "data_inizio_progetto",
"path": "$._theDocument.dataInizioProgetto",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.introduzione",
"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": "data_fine_progetto",
"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"
}
]
}

View File

@ -0,0 +1,735 @@
{
"_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": "francesco.mangiacrapa"
}
},
"_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",
"Data-Editor"
]
},
{
"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": "data_inizio_progetto",
"path": "$._theDocument.dataInizioProgetto",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.introduzione",
"type": "TEXT"
},
{
"name": "contenuto",
"path": "$._theDocument.descrizioneContenuto",
"type": "TEXT"
},
{
"name": "contributore",
"path": "$._theDocument.contributore",
"type": "TEXT"
},
{
"name": "responsabile",
"path": "$._theDocument.responsabile",
"type": "TEXT"
},
{
"name": "editore",
"path": "$._theDocument.editore",
"type": "TEXT"
},
{
"name": "ufficio_competente",
"path": "$._theDocument.ufficioCompetente",
"type": "TEXT"
},
{
"name": "funzionario_responsabile",
"path": "$._theDocument.funzionarioResponsabile",
"type": "TEXT"
},
{
"name": "finanziamento",
"path": "$._theDocument.fontiFinanziamento",
"type": "TEXT"
},
{
"name": "soggetto",
"path": "$._theDocument.soggetto",
"type": "TEXT"
},
{
"name": "risorse",
"path": "$._theDocument.risorseCorrelate",
"type": "TEXT"
},
{
"name": "data_fine_progetto",
"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": "accesso",
"path": "$._info._access._license",
"type": "TEXT"
},
{
"name": "parole_chiave",
"path": "$._theDocument.paroleChiaveLibere",
"type": "TEXT"
},
{
"name": "modalita_individuazione",
"path": "$._theDocument.modalitaIndividuazione",
"type": "TEXT"
},
{
"name": "contesto_indagine",
"path": "$._theDocument.contestoIndagine",
"type": "TEXT"
},
{
"name": "denominazione",
"path": "$._theDocument.denominazione",
"type": "TEXT"
},
{
"name": "stato_attuale",
"path": "$._theDocument.statoAttuale",
"type": "TEXT"
},
{
"name": "accessibilita",
"path": "$._theDocument.accessibilita",
"type": "TEXT"
},
{
"name": "cronologia_macrofase",
"path": "$._theDocument.cronologiaMacrofase",
"type": "TEXT",
"apply_regex": {
"type": "replaceAll",
"regex": "(\\s)?\\([\\s\\S]*",
"replacement": ""
}
},
{
"name": "specifiche_cronologia",
"path": "$._theDocument.specificheCronologia",
"type": "TEXT"
},
{
"name": "quota_max",
"path": "$._theDocument.quotaMax",
"type": "TEXT"
},
{
"name": "quota_min",
"path": "$._theDocument.quotaMin",
"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_estero",
"sectionName": "$.",
"sectionTitle": "Informazioni di Progetto Estero"
},
{
"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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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 (yyyy-mm-dd)",
"paths": [
"_theDocument.dataInizioProgetto"
],
"operator": "$and",
"searchable": true,
"sortable": true,
"asResult": true
},
{
"label": "Director/Staff",
"paths": [
"_theDocument.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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.contributore",
"_theDocument.editore",
"_theDocument.responsabile",
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_theDocument.contestoIndagine",
"_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.contributore",
"_theDocument.responsabile",
"_theDocument.editore"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": true
},
{
"label": "Keywords",
"paths": [
"_theDocument.paroleChiaveLibere",
"_theDocument.cronologiaMacrofase",
"_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"
}
]
}

View File

@ -0,0 +1,782 @@
{
"_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": "francesco.mangiacrapa"
}
},
"_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",
"Data-Editor"
]
},
{
"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": "data_inizio_progetto",
"path": "$._theDocument.dataInizioProgetto",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.introduzione",
"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": "data_fine_progetto",
"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.grouped_overlay_layers",
"_type": "GROUPED_OVERLAY_LAYERS",
"_configuration": {
"grouped_overlay_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Layers automatically added to the Map",
"layers": [
{
"title": "Regioni",
"name": "limiti_amministrativi:regioni",
"wms_url": "https://geona-proto.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:regioni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Province",
"name": "limiti_amministrativi:province",
"wms_url": "https://geona-proto.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:province&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Comuni",
"name": "limiti_amministrativi:comuni",
"wms_url": "https://geona-proto.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:comuni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
}
]
}
]
}
},
{
"_id": "org.gcube.portlets.user.grouped_cross_filtering_layers",
"_type": "GROUPED_CROSS_FILTERING_LAYERS",
"_configuration": {
"grouped_cross_filtering_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Spatial filtering for the selected layer",
"layers": [
{
"title": "Regioni",
"description": "Le Regioni Italiane",
"name": "limiti_amministrativi:regioni",
"wfs_url": "https://geona-proto.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:regioni&maxFeatures=50&outputFormat=application%2Fjson&propertyName=COD_REG,DEN_REG&sortby=DEN_REG",
"table_show_field": "DEN_REG",
"table_key_field": "COD_REG",
"table_parent_key_field": "",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Province",
"description": "Le Province Italiane",
"name": "limiti_amministrativi:province",
"wfs_url": "https://geona-proto.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:province&maxFeatures=150&outputFormat=application%2Fjson&propertyName=COD_PROV,DEN_PROV,COD_REG&sortby=DEN_PROV",
"table_show_field": "DEN_PROV",
"table_key_field": "COD_PROV",
"table_parent_key_field": "COD_REG",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Comuni",
"description": "I Comuni Italiani",
"name": "limiti_amministrativi:comuni",
"wfs_url": "https://geona-proto.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:comuni&maxFeatures=9000&outputFormat=application%2Fjson&propertyName=PRO_COM,COMUNE,COD_PROV&sortby=COMUNE",
"table_show_field": "COMUNE",
"table_key_field": "PRO_COM",
"table_parent_key_field": "COD_PROV",
"table_geometry_name": "the_geom"
}
]
}
]
}
]
}
]
}
},
{
"_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"
}
]
}

View File

@ -0,0 +1,669 @@
{
"_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": "francesco.mangiacrapa"
}
},
"_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",
"Data-Editor"
]
},
{
"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": "data_inizio_progetto",
"path": "$._theDocument.dataInizioProgetto",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.introduzione",
"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": "data_fine_progetto",
"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"}
]
}

View File

@ -3,7 +3,7 @@ gCube CMS Suite
gCube CMS Suite is a distributed full stack application for publication management in a gCube Hybrid e-infrastructure. Check wiki [here](https://sublime-and-sphinx-guide.readthedocs.io)
[<img src="https://gcube.wiki.gcube-system.org/images_gcube/e/e4/Geo_Portale%281%29.png">](https://www.sphinx-doc.org/en/master/)
[<img src="https://gcube.wiki.gcube-system.org/images_gcube/e/e4/Geo_Portale%281%29.png">](https://geoportal.cloud.d4science.org/geoportal-service/docs/index.html)
Rationale :
@ -14,28 +14,41 @@ High modularity of plugins allows for the composition of ad hoc use cases with m
The suite comes with a set of pre-built plugins and GUIs that communities can easily extend and / or reuse.
## General Architecture
[<img src="https://gcube.wiki.gcube-system.org/images_gcube/c/ce/Geoportal_General_Architecture.jpg">](https://geoportal.cloud.d4science.org/geoportal-service/docs/architecture.html)
## Use Case
##### D4GNA: component diagram
<img src="https://gcube.wiki.gcube-system.org/images_gcube/2/2e/Geoportal-Service_Workflow_and_Interactions_with_Engines.png" style="max-width:800px;" alt="D4GNA context: engines involved">
## Documentation
* [Dedicated Wiki](https://sublime-and-sphinx-guide.readthedocs.io) - TBD Powered by [Sphynx](https://www.sphinx-doc.org/en/master/)
* [Service Interactive API]() -TBD Powered by [Enunciate](http://enunciate.webcohesion.com/)
* [Dedicated Wiki](https://geoportal.d4science.org/geoportal-service/docs/index.html#) - powered by [Sphynx](https://www.sphinx-doc.org/en/master/)
* [Service Interactive API](https://geoportal.d4science.org/geoportal-service/api-docs/index.html) - powered by [Enunciate](http://enunciate.webcohesion.com/)
* [Gcube System Wiki](https://gcube.wiki.gcube-system.org/gcube/GeoPortal).
* [Guide Notebooks](use-cases) - Powered by [Jupyter](https://jupyter.org/)
* [Service Wiki src](use-cases/src/site/suite.rst)
* [Guide Notebooks](use-cases) - powered by [Jupyter](https://jupyter.org/)
## Built with
* [gCube SmartGears] (https://gcube.wiki.gcube-system.org/gcube/SmartGears) - The gCube SmartGears framework
* [gCube SmartGears](https://gcube.wiki.gcube-system.org/gcube/SmartGears) - The gCube SmartGears framework
* [OpenJDK](https://openjdk.java.net/) - The JDK used
* [JAX-RS](https://github.com/eclipse-ee4j/jaxrs-api) - Java™ API for RESTful Web Services
* [Jersey](https://jersey.github.io/) - JAX-RS runtime
* [Maven](https://maven.apache.org/) - Dependency Management
* [Enunciate] (http://enunciate.webcohesion.com/) - API Documentation
* [Enunciate](http://enunciate.webcohesion.com/) - API Documentation
## Change log
See [CHANGELOG.md](CHANGELOG.md).
## Authors
* **Fabio Sinibaldi** ([ORCID](https://orcid.org/0000-0003-1013-6203)) Computer Scientist at ISTI-CNR
* **Francesco Mangiacrapa** ([ORCID](https://orcid.org/0000-0002-6528-664X)) Computer Scientist at [ISTI-CNR Infrascience Group](http://nemis.isti.cnr.it/groups/infrascience)
## License
This project is licensed under the EUPL V.1.1 License - see the [LICENSE.md](LICENSE.md) file for details.

View File

@ -1,8 +1,13 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for org.gcube.application.cms.ckan-plugin
This library contains gcube-cms plugins for ckan materializations
## [v1.0.2] - 2023-01-10
- Pom updates
## [v1.0.1] - 2022-12-07
- Pom updates
## [v1.0.0] - 2022-02-24
- First release
- This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -1,7 +1,7 @@
gCube CMS Suite
gCube CMS Suite : CKAN Plugins
--------------------------------------------------
gCube CMS Suite is a set of components designed to manage complex space-temporal Documents defined by metadata Profiles.
This library is expected to contains gcube-cms plugins for ckan materializations.
## Built with
* [gCube SmartGears] (https://gcube.wiki.gcube-system.org/gcube/SmartGears) - The gCube SmartGears framework
@ -11,15 +11,12 @@ gCube CMS Suite is a set of components designed to manage complex space-temporal
* [Maven](https://maven.apache.org/) - Dependency Management
## Documentation
Documentation can be found [here](https://gcube.wiki.gcube-system.org/gcube/GeoPortal_Service).
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
## Change log
See [CHANGELOG.md](CHANGELOG.md).
## License
This project is licensed under the EUPL V.1.1 License - see the [LICENSE.md](LICENSE.md) file for details.
## About the gCube Framework

View File

@ -5,14 +5,14 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>ckan-plugins</artifactId>
<version>1.0.0</version>
<version>1.0.2</version>
<name>gCube CMS - CKAN Plugins</name>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
</parent>
<properties>

View File

@ -1,9 +1,19 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for org.gcube.application.cms-plugin-framework
## [v1.0.4] - 2023-09-06
- Using parent range version [#25572]
## [v1.0.3] - 2023-01-10
- UserUtils in framework
## [v1.0.2] 2022-01-17
- Fixes #2435
- Introduced module default-lc-managers
## [v1.0.1] 2022-01-17
- Serialization Features
## [v1.0.0] 2021-09-20
- First release
- First release
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -1,8 +1,11 @@
CMS - Plugin Framework
--------------------------------------------------
CMS Plugin Framework is a library containing the definition of Java interfaces that plugins should implement
This module contains the definition of interfaces that server plugins are expected to implement.
Basic and abstract implementations are provided in different module default-lc-manager.
Basic providers (e.g. WSProvider, ISProvider) used both in test and by the service are implemented here for simplicity.
## Built with
* [gCube SDI] (https://gcube.wiki.gcube-system.org/gcube/) - The gCube SDI
* [gCube SmartGears] (https://gcube.wiki.gcube-system.org/gcube/SmartGears) - The gCube SmartGears framework
@ -12,8 +15,8 @@ CMS Plugin Framework is a library containing the definition of Java interfaces t
* [Maven](https://maven.apache.org/) - Dependency Management
## Documentation
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
Documentation can be found [here](https://gcube.wiki.gcube-system.org/gcube/GeoPortal).
## Change log

View File

@ -1,118 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/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">
<modelVersion>4.0.0</modelVersion>
<artifactId>cms-plugin-framework</artifactId>
<version>1.0.1</version>
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">
<modelVersion>4.0.0</modelVersion>
<artifactId>cms-plugin-framework</artifactId>
<version>1.0.4</version>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>1.0.2</version>
</parent>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
</parent>
<properties>
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
<sis.version>1.0</sis.version>
</properties>
<properties>
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
<sis.version>1.0</sis.version>
</properties>
<scm>
<connection>scm:git:${gitBaseUrl}/gcube-cms-suite</connection>
<developerConnection>scm:git:${gitBaseUrl}/gcube-cms-suite</developerConnection>
<url>${gitBaseUrl}/gcube-cms-suite</url>
</scm>
<scm>
<connection>scm:git:${gitBaseUrl}/gcube-cms-suite</connection>
<developerConnection>scm:git:${gitBaseUrl}/gcube-cms-suite</developerConnection>
<url>${gitBaseUrl}/gcube-cms-suite</url>
</scm>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-smartgears-bom</artifactId>
<version>${gcube-smartgears-bom-version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-smartgears-bom</artifactId>
<version>${gcube-smartgears-bom-version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- TO REMOVE WHEN LEGACY SUPPORT IS REMOVED -->
<!-- DEPRECATED LEGACY LOGIC SUPPORT -->
<!-- TO REMOVE WHEN LEGACY SUPPORT IS REMOVED -->
<!-- DEPRECATED LEGACY LOGIC SUPPORT -->
<!-- POSTGRES DRIVERS -->
<dependency>
<groupId>net.postgis</groupId>
<artifactId>postgis-jdbc</artifactId>
<version>2.5.0</version>
</dependency>
<!-- POSTGRES DRIVERS -->
<dependency>
<groupId>net.postgis</groupId>
<artifactId>postgis-jdbc</artifactId>
<version>2.5.0</version>
</dependency>
<!-- SDI -->
<dependency>
<groupId>org.gcube.spatial.data</groupId>
<artifactId>gis-interface</artifactId>
<version>[2.4.6,3.0.0-SNAPSHOT)</version>
</dependency>
<!-- SDI -->
<dependency>
<groupId>org.gcube.spatial.data</groupId>
<artifactId>gis-interface</artifactId>
<version>[2.4.6,3.0.0-SNAPSHOT)</version>
</dependency>
<!-- DT -->
<dependency>
<groupId>org.gcube.data.transfer</groupId>
<artifactId>data-transfer-library</artifactId>
<version>[1.2.1,2.0.0-SNAPSHOT)</version>
</dependency>
<!-- DT -->
<dependency>
<groupId>org.gcube.data.transfer</groupId>
<artifactId>data-transfer-library</artifactId>
<version>[1.2.1,2.0.0-SNAPSHOT)</version>
</dependency>
</dependencies>
</dependencyManagement>
</dependencies>
</dependencyManagement>
<dependencies>
<dependencies>
<dependency>
<groupId>org.gcube.application.cms</groupId>
<artifactId>geoportal-common</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>authorization-utils</artifactId>
<version>[2.0.0, 3.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.application.cms</groupId>
<artifactId>geoportal-common</artifactId>
</dependency>
<!-- Storage HUB -->
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>storagehub-client-library</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
<!-- Storage HUB -->
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>storagehub-client-library</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/de.grundid.opendatalab/geojson-jackson -->
<dependency>
<groupId>de.grundid.opendatalab</groupId>
<artifactId>geojson-jackson</artifactId>
<version>1.14</version>
</dependency>
<!-- https://mvnrepository.com/artifact/de.grundid.opendatalab/geojson-jackson -->
<dependency>
<groupId>de.grundid.opendatalab</groupId>
<artifactId>geojson-jackson</artifactId>
<version>1.14</version>
</dependency>
<!-- Common - basic -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<!-- Common - basic -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<!-- <version>2.3.0</version>-->
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<!-- <version>2.3.0</version> -->
</dependency>
</dependencies>
</dependencies>
</project>

View File

@ -2,6 +2,7 @@ package org.gcube.application.cms.caches;
import lombok.NonNull;
import lombok.extern.slf4j.Slf4j;
import org.gcube.application.cms.implementations.utils.UserUtils;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.utils.ContextUtils;
@ -18,7 +19,10 @@ public abstract class AbstractScopedMap<T> extends TimedMap<String,T> implements
@Override
public T getObject() throws ConfigurationException {
return get(ContextUtils.getCurrentScope());
UserUtils.AuthenticatedUser user = UserUtils.getCurrent();
String context = user.getContext();
log.debug(" {} : Accessing object under context {} ",name,context);
return get(context);
}

View File

@ -1,4 +1,4 @@
package org.gcube.application.geoportal.service.utils;
package org.gcube.application.cms.implementations.utils;
import lombok.AllArgsConstructor;
import lombok.Getter;

View File

@ -1,169 +0,0 @@
package org.gcube.application.cms.plugins.implementations;
import com.vdurmont.semver4j.Semver;
import lombok.extern.slf4j.Slf4j;
import org.bson.Document;
import org.gcube.application.cms.plugins.IndexerPluginInterface;
import org.gcube.application.cms.plugins.LifecycleManager;
import org.gcube.application.cms.plugins.MaterializationPlugin;
import org.gcube.application.cms.plugins.faults.EventException;
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.DocumentHandlingReport;
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.cms.plugins.requests.StepExecutionRequest;
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.lifecycle.LifecycleInformation;
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;
@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";
}
protected static 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");
static {
SUBMIT.setAppliableToPhases(Collections.singletonList(LifecycleInformation.CommonPhases.DRAFT_PHASE));
REJECT.setAppliableToPhases(Collections.singletonList(Phases.PENDING_APPROVAL));
APPROVE.setAppliableToPhases(Collections.singletonList(Phases.PENDING_APPROVAL));
}
}
private static class PARAMETERS{
public static final String NOTES="notes";
}
@Override
protected EventExecutionReport onDeleteDocument(EventExecutionReport report) throws ConfigurationException, InvalidPluginRequestException, MaterializationException, EventException {
report = super.onDeleteDocument(report);
for(IndexerPluginInterface indexer : getIndexers(report.getTheRequest()))
report= deIndex(report,indexer,getInternalIndexParams(report.getTheRequest()));
return report;
}
@Override
protected EventExecutionReport onDeleteFileSet(EventExecutionReport theReport) throws ConfigurationException, InvalidPluginRequestException, MaterializationException, EventException {
theReport = super.onDeleteFileSet(theReport);
String phase = theReport.getTheRequest().getDocument().getLifecycleInformation().getPhase();
Document parameters = null;
if(phase.equals(Phases.PENDING_APPROVAL))
parameters =getInternalIndexParams(theReport.getTheRequest());
if(phase.equals(Phases.PUBLISHED))
parameters = getPublicIndexParams(theReport.getTheRequest());
if(parameters!= null)
for(IndexerPluginInterface indexer : getIndexers(theReport.getTheRequest()))
theReport = index(theReport,indexer,getPublicIndexParams(theReport.getTheRequest()));
return theReport;
}
@Override
protected void registerSteps() {
// register steps
setStep(new GuardedStepExecution(STEPS.SUBMIT) {
@Override
protected StepExecutionReport run() throws Exception {
return executeSubmit(theReport);
}
});
setStep(new GuardedStepExecution(STEPS.APPROVE) {
@Override
protected StepExecutionReport run() throws Exception {
return executeApprove(theReport);
}
});
setStep(new GuardedStepExecution(STEPS.REJECT) {
@Override
protected StepExecutionReport run() throws Exception {
return executeReject(theReport);
}
});
}
public Default3PhaseManager() {
DESCRIPTOR.setId("DEFAULT-3PHASE");
DESCRIPTOR.setDescription("Default 3-phase lifecycle manager. This plugin supports a simple moderated publication lifecycle.");
DESCRIPTOR.setVersion(new Semver("1.0.0"));
DESCRIPTOR.setLabel("Default 3-Phase");
}
@Override
public Configuration getCurrentConfiguration(BaseRequest req) throws ConfigurationException {
Configuration toReturn = super.getCurrentConfiguration(req);
IndexerPluginInterface indexerPlugin;
indexerPlugin = (IndexerPluginInterface) pluginManager.getById("SDI-Indexer-Plugin");
BaseRequest indexRequest = new BaseRequest(req.getUseCaseDescriptor(),req.getCaller(),req.getContext());
// Info on internal_index
try {
indexRequest.setCallParameters(getInternalIndexParams(req));
Index internalIndex = indexerPlugin.getIndex(indexRequest);
internalIndex.put("flag", "internal");
toReturn.getIndexes().add(internalIndex);
}catch(ConfigurationException e){
toReturn.addErrorMessage("Unable to gather information on internal GIS Centroids Index : "+e.getMessage());
log.error("Unable to gather information on internal GIS Centroids Index",e);
}
return toReturn;
}
protected Document getInternalIndexParams(BaseRequest req){
Document callParameters = new Document();
callParameters.put("workspace", Files.fixFilename(req.getUseCaseDescriptor().getId()+"_internal_"+req.getContext().getName()));
callParameters.put("indexName",Files.fixFilename(req.getUseCaseDescriptor().getId()+"_internal_"+req.getContext().getName()+"_centroids"));
return callParameters;
}
protected StepExecutionReport executeSubmit(StepExecutionReport theReport) throws Exception {
// Materialize
for(MaterializationPlugin mat : getMaterializers(theReport.getTheRequest()))
theReport = materializeDocument(theReport,mat,getMaterializationParameters(theReport.getTheRequest()));
if(theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)){
// Index
for(IndexerPluginInterface indexer : getIndexers(theReport.getTheRequest()))
theReport = index(theReport,indexer,getInternalIndexParams(theReport.getTheRequest()));
// setPhase
if(theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK))
theReport.getToSetLifecycleInformation().setPhase(Phases.PENDING_APPROVAL);
}
return theReport;
}
protected StepExecutionReport executeApprove(StepExecutionReport theReport) throws Exception {
// Index
for(IndexerPluginInterface indexer : getIndexers(theReport.getTheRequest()))
theReport = index(theReport,indexer,getPublicIndexParams(theReport.getTheRequest()));
// setPhase
if(theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK))
theReport.getToSetLifecycleInformation().setPhase(Phases.PUBLISHED);
return theReport;
}
protected StepExecutionReport executeReject(StepExecutionReport theReport) throws Exception {
if(theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK))
theReport.getToSetLifecycleInformation().setPhase(LifecycleInformation.CommonPhases.DRAFT_PHASE);
return theReport;
}
}

View File

@ -1,24 +0,0 @@
package org.gcube.application.cms.plugins;
public class SimpleLifecycleTests {
// NB cannot use test commons, need to separate modules
// extends
// BasicPluginTest {
//
// @Test
// public void testFullCycle(){
// SimpleLifeCycleManager manager = plugins.get(SimpleLifeCycleManager.PLUGIN_ID);
//
// StepExecutionRequest request = new StepExecutionRequest();
//
// Project p = null;
//
// EventExecutionRequest eventRequest = new EventExecutionRequest();
//
// manager.onEvent()
//
// manager.performStep()
// }
}

View File

@ -1,7 +1,11 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for org.gcube.application.cms.cms-test-commons
## [v1.0.4] - 2023-01-10
- Pom updates
## [v1.0.3] - 2022-12-07
- Pom updates
## [v1.0.2] - 2022-01-17
- Profiles
@ -9,4 +13,6 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Introduced profiled documents
## [v1.0.0] - 2021-09-11
- First release
- First release
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -1,14 +1,19 @@
gCube CMS - test-commons
--------------------------------------------------
Common logic used by test cases
Common utilities for testing such as :
- access to test-resources Maps
- Test Credentials management
- Basic plugin Test Case implementations
## Built with
* [Maven](https://maven.apache.org/) - Dependency Management
## Documentation
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
Documentation can be found [here](https://gcube.wiki.gcube-system.org/gcube/GeoPortal).
## Change log

View File

@ -5,14 +5,14 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>cms-test-commons</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
<name>CMS Test Commons</name>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
</parent>

View File

@ -14,8 +14,8 @@ public class TestDocuments {
public static final HashMap<String, Project> documentMap =new HashMap<>();
static{
for(File f:BASE_FOLDER.listFiles()){
if(!BASE_FOLDER.exists()) System.err.println("Cannot load documents : folder not found, path "+BASE_FOLDER.getAbsolutePath());
for(File f:BASE_FOLDER.listFiles(pathname -> {return pathname.getName().endsWith(".json");})){
try {
if(!f.isDirectory()) {
Project p = Serialization.read(

View File

@ -16,6 +16,19 @@ import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Properties;
/**
* This class is used in order to set gCube Credentials for tests that needs a gCube Infrastructure.
*
* The method TokenSetter.set(String context) is used in order to specify the context to test.
*
* The library expects a Properties file /tokens.properties in the classpath like the following example :
*
* /root/vo/vre1 = GCUBE-TOKEN
* ...
* /devRoot/vo = JWT-TOKEN
* ...
*
*/
@Slf4j
public class TokenSetter {

View File

@ -1,11 +1,26 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for org.gcube.application.cms.concessioni-lifecycle
This library contains custom extensions for the support of GNA "concessioni" use case
## [v1.1.1] - 2023-09-06
- Using parent version range [#25572]
## [v1.1.0] - 2023-03-13
- [#24754] Fixed hide/show project ids on the latest node of the relation chain
## [v1.0.4] - 2023-03-06
- [#24702] Fixed the default-lc-managers dependency
## [v1.0.3] - 2023-01-10
- Pom updates
- Fixes default access
## [v1.0.2] - 2022-12-07
- Pom updates
- Introduced module default-lc-managers
-
## [v1.0.1] - 2022-01-17
- Serialization adaptation
## [v1.0.0] - 2021-12-15
- First release
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -1,8 +1,14 @@
gCube CMS Suite
gCube CMS Suite : Concessioni Lifecycle
--------------------------------------------------
gCube CMS Suite is a set of components designed to manage complex space-temporal Documents defined by metadata Profiles.
This library contains custom extensions for the support of GNA "concessioni" use case custom requirements.
It contains a Lifecycle Manager built on top of default 3-PHASE, extending :
- Default values setting / evaluation
- Indexing parameters :
- Relationship management : relationship chains on "follows" and "precedes" are evaluated in order to show only last published project in centroids map
## Built with
* [gCube SmartGears] (https://gcube.wiki.gcube-system.org/gcube/SmartGears) - The gCube SmartGears framework
* [OpenJDK](https://openjdk.java.net/) - The JDK used
@ -11,8 +17,8 @@ gCube CMS Suite is a set of components designed to manage complex space-temporal
* [Maven](https://maven.apache.org/) - Dependency Management
## Documentation
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
Documentation can be found [here](https://gcube.wiki.gcube-system.org/gcube/GeoPortal_Service).
## Change log

View File

@ -4,15 +4,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>concessioni-lifecycle</artifactId>
<version>1.0.1</version>
<version>1.1.1</version>
<name>GNA Concessioni Lifecycle</name>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>1.0.2</version>
</parent>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
</parent>
<properties>
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
@ -43,7 +42,8 @@
<dependencies>
<dependency>
<groupId>org.gcube.application.cms</groupId>
<artifactId>cms-plugin-framework</artifactId>
<artifactId>default-lc-managers</artifactId>
<scope>provided</scope>
</dependency>
@ -52,12 +52,6 @@
<artifactId>concessioni-model</artifactId>
</dependency>
<!-- &lt;!&ndash; SDI &ndash;&gt;-->
<!-- <dependency>-->
<!-- <groupId>org.gcube.spatial.data</groupId>-->
<!-- <artifactId>gis-interface</artifactId>-->
<!-- <version>[2.4.6,3.0.0)</version>-->
<!-- </dependency>-->
<!-- DT -->
<dependency>

View File

@ -1,272 +1,316 @@
package org.gcube.application.cms.concessioni.plugins;
import com.vdurmont.semver4j.Semver;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.bson.Document;
import org.gcube.application.cms.custom.gna.concessioni.model.ProfiledConcessione;
import org.gcube.application.cms.implementations.ImplementationProvider;
import org.gcube.application.cms.implementations.ProjectAccess;
import org.gcube.application.cms.implementations.faults.InvalidUserRoleException;
import org.gcube.application.cms.implementations.faults.ProjectNotFoundException;
import org.gcube.application.cms.implementations.faults.RegistrationException;
import org.gcube.application.cms.implementations.faults.UnauthorizedAccess;
import org.gcube.application.cms.plugins.IndexerPluginInterface;
import org.gcube.application.cms.plugins.LifecycleManager;
import org.gcube.application.cms.plugins.faults.IndexingException;
import org.gcube.application.cms.plugins.implementations.Default3PhaseManager;
import org.gcube.application.cms.plugins.reports.EventExecutionReport;
import org.gcube.application.cms.plugins.reports.Report;
import org.gcube.application.cms.plugins.reports.StepExecutionReport;
import org.gcube.application.cms.plugins.requests.BaseRequest;
import org.gcube.application.cms.plugins.requests.IndexDocumentRequest;
import org.gcube.application.cms.serialization.Serialization;
import org.gcube.application.geoportal.common.model.JSONPathWrapper;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.document.access.Access;
import org.gcube.application.geoportal.common.model.document.access.AccessPolicy;
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.document.relationships.Relationship;
import org.gcube.application.geoportal.common.model.document.relationships.RelationshipNavigationObject;
import org.gcube.application.geoportal.common.model.legacy.report.ConstraintCheck;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.vdurmont.semver4j.Semver;
import lombok.extern.slf4j.Slf4j;
@Slf4j
/** Overrides 3 Phases lifecycle with override of default values
/**
* Overrides 3 Phases lifecycle with override of default values
*
*/
public class ConcessioniLifeCycleManager extends Default3PhaseManager implements LifecycleManager {
private static final String FOLLOWS = "follows";
private static final String PRECEDES = "precedes";
private static final String FOLLOWS="follows";
private static final String PRECEDES="precedes";
public ConcessioniLifeCycleManager() {
DESCRIPTOR.setId("GNA-CONCESSIONI-LC");
DESCRIPTOR.setDescription(
"GNA Concessioni. This plugin supports custom lifecycle management for the GNA Concessioni UseCase.");
DESCRIPTOR.setVersion(new Semver("1.0.0"));
}
@Override
public EventExecutionReport setDefault(EventExecutionReport currentReport) {
EventExecutionReport report = super.setDefault(currentReport);
try {
report.setResultingDocument(setDefaults(report.getTheRequest().getDocument()).getTheDocument());
} catch (Throwable t) {
log.error("Unable to evaluate defaults for concessione "
+ currentReport.getTheRequest().getDocument().getId(), t);
log.debug("Object was {} ", report.getTheRequest().getDocument());
report.setStatus(Report.Status.ERROR);
report.getMessages().add("Unable to evaluate defaults : " + t.getMessage());
}
return report;
}
public ConcessioniLifeCycleManager() {
DESCRIPTOR.setId("GNA-CONCESSIONI-LC");
DESCRIPTOR.setDescription("GNA Concessioni. This plugin supports custom lifecycle management for the GNA Concessioni UseCase.");
DESCRIPTOR.setVersion(new Semver("1.0.0"));
}
// STATIC ROUTINES
@Override
public EventExecutionReport setDefault(EventExecutionReport currentReport) {
EventExecutionReport report = super.setDefault(currentReport);
try{
report.setResultingDocument(setDefaults(report.getTheRequest().getDocument()).getTheDocument());
}catch (Throwable t){
log.error("Unable to evaluate defaults for concessione "+currentReport.getTheRequest().getDocument().getId(),t);
log.debug("Object was {} ",report.getTheRequest().getDocument());
report.setStatus(Report.Status.ERROR );
report.getMessages().add("Unable to evaluate defaults : "+t.getMessage());
}
return report;
}
static final Project setDefaults(Project document) throws IOException {
log.info("Concessione ID {}, setting defaults..", document.getId());
log.debug("Full concessione is {}", document);
ProfiledConcessione c = Serialization.convert(document, ProfiledConcessione.class);
Document doc = c.getTheDocument();
doc.putIfAbsent(ProfiledConcessione.SOGGETTO, new String[] { "Research Excavation", "Archaeology" });
doc.putIfAbsent(ProfiledConcessione.DESCRIZIONE_CONTENUTO,
"Relazione di fine scavo e relativo abstract; selezione di immagini rappresentative;"
+ " posizionamento topografico dell'area indagata, pianta di fine scavo.");
// STATIC ROUTINES
// Super Section
// TODO read from UCD
c.getInfo().getAccess()
.setLicense(ConstraintCheck.defaultFor(c.getInfo().getAccess().getLicense(), "CC0-1.0").evaluate());
static final Project setDefaults(Project document) throws IOException {
log.info("Concessione ID {}, setting defaults..",document.getId());
log.debug("Full concessione is {}",document);
ProfiledConcessione c=Serialization.convert(document,ProfiledConcessione.class);
Document doc=c.getTheDocument();
doc.putIfAbsent(ProfiledConcessione.SOGGETTO,new String[]{"Research Excavation","Archaeology"});
// RELAZIONE
Document rel = doc.containsKey(ProfiledConcessione.RELAZIONE_SCAVO)
? Serialization.convert(doc.get(ProfiledConcessione.RELAZIONE_SCAVO), Document.class)
: new Document();
log.debug("Concessione {}, managing relazione {}", document.getId(), rel);
rel.putIfAbsent(ProfiledConcessione.Sections.TITOLO,
doc.getString(ProfiledConcessione.NOME) + " relazione di scavo");
rel.putIfAbsent(ProfiledConcessione.SOGGETTO, doc.get(ProfiledConcessione.SOGGETTO));
doc.put(ProfiledConcessione.RELAZIONE_SCAVO, rel);
doc.putIfAbsent(ProfiledConcessione.DESCRIZIONE_CONTENUTO,"Relazione di fine scavo e relativo abstract; selezione di immagini rappresentative;"
+ " posizionamento topografico dell'area indagata, pianta di fine scavo.");
// ABSTRACT Relazione
Document abs = doc.containsKey(ProfiledConcessione.ABSTRACT_RELAZIONE)
? Serialization.convert(doc.get(ProfiledConcessione.ABSTRACT_RELAZIONE), Document.class)
: new Document();
log.debug("Concessione {}, managing abstract relazione {}", document.getId(), abs);
abs.putIfAbsent(ProfiledConcessione.Sections.TITOLO,
doc.getString(ProfiledConcessione.NOME) + " abstract relazione di scavo");
doc.put(ProfiledConcessione.ABSTRACT_RELAZIONE, abs);
// Super Section
// TODO read from UCD
c.getInfo().getAccess().setLicense(
ConstraintCheck.defaultFor(c.getInfo().getAccess().getLicense(), "CC0-1.0").evaluate());
// Posizionamento scavo
if (doc.containsKey(ProfiledConcessione.POSIZIONAMENTO_SCAVO)) {
Document pos = Serialization.convert(doc.get(ProfiledConcessione.POSIZIONAMENTO_SCAVO), Document.class);
log.debug("Concessione {}, managing posizionamento scavo {}", document.getId(), pos);
pos.putIfAbsent(ProfiledConcessione.Sections.TITOLO,
doc.getString(ProfiledConcessione.NOME) + " posizionamento scavo");
pos.putIfAbsent(ProfiledConcessione.Sections.ABSTRACT,
"Posizionamento topografico georeferenziato dellarea interessata dalle indagini");
pos.putIfAbsent(ProfiledConcessione.Layers.TOPIC, "Society");
pos.putIfAbsent(ProfiledConcessione.Layers.SUB_TOPIC, "Archeology");
pos.putIfAbsent(ProfiledConcessione.PAROLE_CHIAVE_LIBERE,
doc.get(ProfiledConcessione.PAROLE_CHIAVE_LIBERE));
pos.putIfAbsent(ProfiledConcessione.PAREOLE_CHIAVE_ICCD, doc.get(ProfiledConcessione.PAREOLE_CHIAVE_ICCD));
// BBOX in registered filesets
//RELAZIONE
Document rel = doc.containsKey(ProfiledConcessione.RELAZIONE_SCAVO)?
Serialization.convert(doc.get(ProfiledConcessione.RELAZIONE_SCAVO), Document.class):new Document();
log.debug("Concessione {}, managing relazione {}",document.getId(),rel);
rel.putIfAbsent(ProfiledConcessione.Sections.TITOLO,doc.getString(ProfiledConcessione.NOME)+" relazione di scavo");
rel.putIfAbsent(ProfiledConcessione.SOGGETTO,doc.get(ProfiledConcessione.SOGGETTO));
rel.putIfAbsent(RegisteredFileSet.CREATION_INFO,c.getInfo().getCreationInfo());
rel.putIfAbsent(RegisteredFileSet.ACCESS,c.getInfo().getAccess());
Access relAccess=Serialization.convert(rel.get(RegisteredFileSet.ACCESS),Access.class);
relAccess.setLicense(ConstraintCheck.defaultFor(relAccess.getLicense(),"CC-BY-4.0").evaluate());
relAccess.setPolicy(ConstraintCheck.defaultFor(relAccess.getPolicy(), AccessPolicy.OPEN).evaluate());
rel.put(RegisteredFileSet.ACCESS,relAccess);
doc.put(ProfiledConcessione.RELAZIONE_SCAVO,rel);
pos.put(ProfiledConcessione.RESPONSABILE, doc.get(ProfiledConcessione.RESPONSABILE));
doc.put(ProfiledConcessione.POSIZIONAMENTO_SCAVO, pos);
}
// IMMAGINI RAPPRESENTATIVE
//ABSTRACT Relazione
Document abs=doc.containsKey(ProfiledConcessione.ABSTRACT_RELAZIONE)?
Serialization.convert(doc.get(ProfiledConcessione.ABSTRACT_RELAZIONE), Document.class):new Document();
log.debug("Concessione {}, managing abstract relazione {}",document.getId(),abs);
abs.putIfAbsent(ProfiledConcessione.Sections.TITOLO,doc.getString(ProfiledConcessione.NOME)+" abstract relazione di scavo");
abs.putIfAbsent(RegisteredFileSet.CREATION_INFO,c.getInfo().getCreationInfo());
abs.putIfAbsent(RegisteredFileSet.ACCESS,c.getInfo().getAccess());
Access absAccess=Serialization.convert(abs.get(RegisteredFileSet.ACCESS),Access.class);
absAccess.setLicense(ConstraintCheck.defaultFor(absAccess.getLicense(),"CC-BY-4.0").evaluate());
absAccess.setPolicy(ConstraintCheck.defaultFor(absAccess.getPolicy(), AccessPolicy.OPEN).evaluate());
abs.put(RegisteredFileSet.ACCESS,absAccess);
doc.put(ProfiledConcessione.ABSTRACT_RELAZIONE,abs);
JSONPathWrapper wrapper = new JSONPathWrapper(Serialization.write(doc));
if (doc.containsKey(ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE)) {
List imgs = wrapper.getByPath("$." + ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE, List.class).get(0);
log.debug("Concessione {}, found imgs {}", document.getId(), imgs.size());
for (int i = 0; i < imgs.size(); i++) {
Document imgDoc = Serialization.asDocument(imgs.get(i));
imgDoc.putIfAbsent(ProfiledConcessione.SOGGETTO, doc.get(ProfiledConcessione.SOGGETTO));
wrapper.setElement("$." + ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE + "[" + i + "]", imgDoc);
}
}
//Posizionamento scavo
if(doc.containsKey(ProfiledConcessione.POSIZIONAMENTO_SCAVO)){
Document pos = Serialization.convert(doc.get(ProfiledConcessione.POSIZIONAMENTO_SCAVO), Document.class);
log.debug("Concessione {}, managing posizionamento scavo {}",document.getId(),pos);
pos.putIfAbsent(ProfiledConcessione.Sections.TITOLO,doc.getString(ProfiledConcessione.NOME)+" posizionamento scavo");
pos.putIfAbsent(ProfiledConcessione.Sections.ABSTRACT,"Posizionamento topografico georeferenziato dellarea interessata dalle indagini");
pos.putIfAbsent(ProfiledConcessione.Layers.TOPIC,"Society");
pos.putIfAbsent(ProfiledConcessione.Layers.SUB_TOPIC,"Archeology");
// Layers
if (doc.containsKey(ProfiledConcessione.PIANTE_FINE_SCAVO)) {
List piante = wrapper.getByPath("$." + ProfiledConcessione.PIANTE_FINE_SCAVO, List.class).get(0);
log.debug("Concessione {}, found piante {}", document.getId(), piante.size());
for (int i = 0; i < piante.size(); i++) {
Document piantaDoc = Serialization.asDocument(piante.get(i));
log.debug("Concessione {}, managing pianta {}", document.getId(), piantaDoc);
piantaDoc.putIfAbsent(ProfiledConcessione.Sections.TITOLO,
doc.getString(ProfiledConcessione.NOME) + " pianta fine scavo");
piantaDoc.putIfAbsent(ProfiledConcessione.Sections.ABSTRACT,
"Planimetria georeferenziata dell'area indagata al termine delle attività");
piantaDoc.putIfAbsent(ProfiledConcessione.Layers.TOPIC, "Society");
piantaDoc.putIfAbsent(ProfiledConcessione.Layers.SUB_TOPIC, "Archeology");
pos.putIfAbsent(ProfiledConcessione.PAROLE_CHIAVE_LIBERE,doc.get(ProfiledConcessione.PAROLE_CHIAVE_LIBERE));
pos.putIfAbsent(ProfiledConcessione.PAREOLE_CHIAVE_ICCD,doc.get(ProfiledConcessione.PAREOLE_CHIAVE_ICCD));
piantaDoc.putIfAbsent(ProfiledConcessione.PAROLE_CHIAVE_LIBERE,
doc.get(ProfiledConcessione.PAROLE_CHIAVE_LIBERE));
piantaDoc.putIfAbsent(ProfiledConcessione.PAREOLE_CHIAVE_ICCD,
doc.get(ProfiledConcessione.PAREOLE_CHIAVE_ICCD));
// BBOX in registered filesets
// BBOX in registered filesets
pos.put(ProfiledConcessione.RESPONSABILE,doc.get(ProfiledConcessione.RESPONSABILE));
piantaDoc.put(ProfiledConcessione.RESPONSABILE, doc.get(ProfiledConcessione.RESPONSABILE));
pos.putIfAbsent(RegisteredFileSet.CREATION_INFO,c.getInfo().getCreationInfo());
pos.putIfAbsent(RegisteredFileSet.ACCESS,c.getInfo().getAccess());
Access posAccess=Serialization.convert(rel.get(RegisteredFileSet.ACCESS),Access.class);
posAccess.setLicense(ConstraintCheck.defaultFor(posAccess.getLicense(),"CC-BY-4.0").evaluate());
posAccess.setPolicy(ConstraintCheck.defaultFor(posAccess.getPolicy(), AccessPolicy.OPEN).evaluate());
pos.put(RegisteredFileSet.ACCESS,posAccess);
doc.put(ProfiledConcessione.POSIZIONAMENTO_SCAVO,pos);
}
wrapper.setElement("$." + ProfiledConcessione.PIANTE_FINE_SCAVO + "[" + i + "]", piantaDoc);
}
}
//IMMAGINI RAPPRESENTATIVE
c.setTheDocument(Serialization.read(wrapper.getValueCTX().jsonString(), Document.class));
return c;
}
JSONPathWrapper wrapper=new JSONPathWrapper(Serialization.write(doc));
if(doc.containsKey(ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE)) {
List imgs=wrapper.getByPath("$." + ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE, List.class).get(0);
log.debug("Concessione {}, found imgs {}",document.getId(),imgs.size());
for (int i = 0; i <imgs.size() ; i++) {
Document imgDoc=Serialization.asDocument(imgs.get(i));
imgDoc.putIfAbsent(ProfiledConcessione.SOGGETTO,doc.get(ProfiledConcessione.SOGGETTO));
imgDoc.putIfAbsent(RegisteredFileSet.CREATION_INFO,c.getInfo().getCreationInfo());
imgDoc.putIfAbsent(RegisteredFileSet.ACCESS,c.getInfo().getAccess());
Access imgAccess=Serialization.convert(imgDoc.get(RegisteredFileSet.ACCESS),Access.class);
imgAccess.setLicense(ConstraintCheck.defaultFor(imgAccess.getLicense(),"CC-BY-4.0").evaluate());
imgAccess.setPolicy(ConstraintCheck.defaultFor(imgAccess.getPolicy(), AccessPolicy.OPEN).evaluate());
imgDoc.put(RegisteredFileSet.ACCESS,imgAccess);
wrapper.setElement("$."+ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE+"["+i+"]",imgDoc);
}
}
/**
* New method implemented by Francesco
*/
@Override
protected Document evaluateAdditionalIndexParameters(IndexDocumentRequest request) throws IndexingException {
Document toReturn = super.evaluateAdditionalIndexParameters(request);
if (toReturn == null)
toReturn = new Document();
Project indexingProject = request.getDocument();
// Layers
if(doc.containsKey(ProfiledConcessione.PIANTE_FINE_SCAVO)) {
List piante=wrapper.getByPath("$." + ProfiledConcessione.PIANTE_FINE_SCAVO, List.class).get(0);
log.debug("Concessione {}, found piante {}",document.getId(),piante.size());
for (int i = 0; i <piante.size() ; i++) {
Document piantaDoc=Serialization.asDocument(piante.get(i));
log.debug("Concessione {}, managing pianta {}",document.getId(),piantaDoc);
piantaDoc.putIfAbsent(ProfiledConcessione.Sections.TITOLO,doc.getString(ProfiledConcessione.NOME)+" pianta fine scavo");
piantaDoc.putIfAbsent(ProfiledConcessione.Sections.ABSTRACT,"Planimetria georeferenziata dell'area indagata al termine delle attività");
piantaDoc.putIfAbsent(ProfiledConcessione.Layers.TOPIC,"Society");
piantaDoc.putIfAbsent(ProfiledConcessione.Layers.SUB_TOPIC,"Archeology");
// Evaluate to display project IDs
log.info("Evaluating relationship chain. Current ID is {}", indexingProject.getId());
try {
ArrayList<Project> projects = new ArrayList<>();
ProjectAccess access = ImplementationProvider.get().getProvidedObjectByClass(ProjectAccess.class);
// get Last ID in relation chain
projects.add(indexingProject);
if (!indexingProject.getRelationshipsByName(PRECEDES).isEmpty())
scanRelation(projects, access
.getRelations(indexingProject.getProfileID(), indexingProject.getId(), PRECEDES, true).get(0),
false);
if (!indexingProject.getRelationshipsByName(FOLLOWS).isEmpty())
scanRelation(projects, access
.getRelations(indexingProject.getProfileID(), indexingProject.getId(), FOLLOWS, true).get(0),
false);
piantaDoc.putIfAbsent(ProfiledConcessione.PAROLE_CHIAVE_LIBERE,doc.get(ProfiledConcessione.PAROLE_CHIAVE_LIBERE));
piantaDoc.putIfAbsent(ProfiledConcessione.PAREOLE_CHIAVE_ICCD,doc.get(ProfiledConcessione.PAREOLE_CHIAVE_ICCD));
log.debug("Produced full chain [size : {}] from {}, evaluating last available for PHASE {} ",
projects.size(), indexingProject.getId(), indexingProject.getLifecycleInformation().getPhase());
// BBOX in registered filesets
log.info("projects are: " + projects.size());
piantaDoc.put(ProfiledConcessione.RESPONSABILE,doc.get(ProfiledConcessione.RESPONSABILE));
List<String> toDisplayId = new ArrayList<>();
List<String> toHideIds = new ArrayList<>();
piantaDoc.putIfAbsent(RegisteredFileSet.CREATION_INFO,c.getInfo().getCreationInfo());
piantaDoc.putIfAbsent(RegisteredFileSet.ACCESS,c.getInfo().getAccess());
Access posAccess=Serialization.convert(rel.get(RegisteredFileSet.ACCESS),Access.class);
posAccess.setLicense(ConstraintCheck.defaultFor(posAccess.getLicense(),"CC-BY-4.0").evaluate());
posAccess.setPolicy(ConstraintCheck.defaultFor(posAccess.getPolicy(), AccessPolicy.OPEN).evaluate());
piantaDoc.put(RegisteredFileSet.ACCESS,posAccess);
wrapper.setElement("$."+ProfiledConcessione.PIANTE_FINE_SCAVO+"["+i+"]",piantaDoc);
}
}
// Reverse Order means from the last FOLLOW to the first one (temporal reverse
// order)
Collections.sort(projects, Collections.reverseOrder(new ProjectRelationComparator()));
c.setTheDocument(Serialization.read(wrapper.getValueCTX().jsonString(),Document.class));
return c;
}
if (log.isInfoEnabled()) {
int j = 0;
log.info("Printing project reverse order....");
for (Project theProject : projects) {
log.info(++j + ") " + theProject.getId() + " data inizio: "
+ theProject.getTheDocument().get("dataInizioProgetto"));
}
}
log.trace("Checking from LAST.. ");
for (int i = 0; i < projects.size(); i++) {
@Override
protected Document evaluateAdditionalIndexParameters(IndexDocumentRequest request) throws IndexingException {
Document toReturn = super.evaluateAdditionalIndexParameters(request);
if(toReturn == null) toReturn = new Document();
Project indexingProject = request.getDocument();
Project p = projects.get(i);
String phase = p.getLifecycleInformation().getPhase();
// Evaluate to display project IDs
log.info("Evaluating Last ID in relationship chain. Current Concessione ID is {}",indexingProject.getId());
try {
ArrayList<Project> projects = new ArrayList<>();
ProjectAccess access = ImplementationProvider.get().getProvidedObjectByClass(ProjectAccess.class);
// get Last ID in relation chain
projects.add(indexingProject);
if(!indexingProject.getRelationshipsByName(PRECEDES).isEmpty())
scanRelation(projects,access.getRelations(indexingProject.getProfileID(), indexingProject.getId(), PRECEDES,true).get(0),false);
if(!indexingProject.getRelationshipsByName(FOLLOWS).isEmpty())
scanRelation(projects,access.getRelations(indexingProject.getProfileID(), indexingProject.getId(), FOLLOWS,true).get(0),false);
// IS TO DISPLAY EMPTY? Step into only once.
// Indexing the first project that is in PENDING APPROVAL or PUBLISHED or
// updating the phase of the indexing (selected) project
if (toDisplayId.isEmpty()) {
// IF PHASE IS PENDING APPROVAL OR PUBLISHED adding toDisplayId
if ((phase.equals(Phases.PENDING_APPROVAL) || phase.equals(Phases.PUBLISHED))) {
toDisplayId.add(p.getId());
} else if (p.getId().compareTo(indexingProject.getId()) == 0) {
// Means that the operation has been called on the indexing project from DRAFT
// phase to PENDING_APPROVAL or PUBLISH
toDisplayId.add(p.getId());
}
log.debug("Produced full chain [size : {}] from {}, evaluating last available for PHASE {} ",projects.size(),indexingProject.getId(),
indexingProject.getLifecycleInformation().getPhase());
} else {
// Hides the centroid regardless of project phase
toHideIds.add(p.getId());
}
}
List<String> toDisplayId = new ArrayList<>();
List<String> toHideIds = new ArrayList<>();
toReturn.put("_toHideIds", toHideIds);
toReturn.put("_toDisplayIds", toDisplayId);
log.trace("Checking from LAST.. ");
// Projects is time -ordered so we scan from last
for(int i = projects.size()-1;i>=0;i--) {
Project p = projects.get(i);
log.debug("Currently checking {} : {}",p.getId(),p.getTheDocument().get("nome"));
if(!toDisplayId.isEmpty())
toHideIds.add(p.getId());
else {
//Still need to find candidate for displaying feature
log.info(
"Indexing request for " + indexingProject.getProfileID()
+ " [ID {}] with to _toHideIds {} and _toDisplayIds {} ",
indexingProject.getId(), toHideIds, toDisplayId);
return toReturn;
} catch (Exception e) {
log.error("Unable to evaluate to Hide and Display Ids ", e);
throw new IndexingException("Unable to evaluate chain ids to hide / display", e);
}
//Our currently indexing project is always a good candidate
if(p.getId().equals(indexingProject.getId()))
toDisplayId.add(p.getId());
//We check PHASE in order to skip projects not yet in the PHASE we are indexing
else switch(indexingProject.getLifecycleInformation().getPhase()){
case Phases.PENDING_APPROVAL:{
if ((p.getLifecycleInformation().getPhase().equals(Phases.PENDING_APPROVAL)||
p.getLifecycleInformation().getPhase().equals(Phases.PUBLISHED)))
toDisplayId.add(p.getId());
break;
}
case Phases.PUBLISHED:{
if (p.getLifecycleInformation().getPhase().equals(Phases.PUBLISHED))
toDisplayId.add(p.getId());
break;
}
}
}
if(!toDisplayId.isEmpty())
log.debug("Found last concessioni candidate for displaying. ID {}, PHASE {} ",toDisplayId,p.getLifecycleInformation().getPhase());
else toHideIds.add(p.getId()); // Still not found
}
}
private static void scanRelation(ArrayList chain, RelationshipNavigationObject obj, boolean putBefore) {
if (putBefore)
chain.add(0, obj.getTarget());
else
chain.add(obj.getTarget());
if (obj.getChildren() != null)
obj.getChildren().forEach(r -> scanRelation(chain, r, putBefore));
}
toReturn.put("_toHideIds",toHideIds);
toReturn.put("_toDisplayIds",toDisplayId);
public static class ProjectRelationComparator implements Comparator<Project> {
@Override
public int compare(Project p1, Project p2) {
if (p1 == null)
return 1;
if (p2 == null)
return -1;
log.info("Indexing request for Concessione [ID {}] with to HIDE {} and toDisplay {} ",indexingProject.getId(),toHideIds,toDisplayId);
return toReturn;
} catch (Exception e) {
log.error("Unable to evaluate to Hide and Display Ids ",e);
throw new IndexingException("Unable to evaluate chain ids to hide / display",e);
}
Integer compareResult = null;
compareResult = compareProjectAgainstRelations(p1, p2);
log.trace("p1 & p2, comparator result: {}", compareResult);
if (compareResult == null) {
log.debug("No relations beetween p1 & p2, checking inverted relations");
compareResult = compareProjectAgainstRelations(p2, p1);
log.trace("p2 & p1, comparator result: {}", compareResult);
}
if (compareResult == null) {
log.trace("p1 & p2, are not comparable, returning 0");
compareResult = 0;
}
}
private static void scanRelation(ArrayList chain,RelationshipNavigationObject obj, boolean putBefore){
if(putBefore)chain.add(0,obj.getTarget());
else chain.add(obj.getTarget());
if(obj.getChildren()!=null)
obj.getChildren().forEach(r-> scanRelation(chain,r,putBefore));
}
log.debug("p1 & p2, comparator result, returns: {}", compareResult);
return compareResult;
}
}
public static Integer compareProjectAgainstRelations(Project source, Project target) {
log.debug("comparing source {} and target {}", source.getId(), target.getId());
List<Relationship> listRel = source.getRelationships();
log.debug("relationships of {} are : {}", source.getId(), listRel);
if (listRel != null) {
String targetId = target.getId();
for (Relationship relationship : listRel) {
String relTargetId = relationship.getTargetID();
if (targetId.compareTo(relTargetId) == 0) {
String relationName = relationship.getRelationshipName();
if (relationName.equals(PRECEDES)) {
log.debug("source {} [rel {} ] target {}, so source < target ", source.getId(), PRECEDES,
target.getId());
// source < target
return -1;
} else if (relationName.equals(FOLLOWS)) {
log.debug("source {} [rel {} ] target {}, so source > target ", source.getId(), FOLLOWS,
target.getId());
// source > target
return 1;
}
}
}
}
log.debug("No relations beetween a & b");
return null;
}
}

View File

@ -2,12 +2,18 @@ package org.gcube.application.cms.concessioni.plugins;
import org.bson.Document;
import org.gcube.application.cms.custom.gna.concessioni.model.ProfiledConcessione;
import org.gcube.application.cms.plugins.faults.IndexingException;
import org.gcube.application.cms.plugins.requests.IndexDocumentRequest;
import org.gcube.application.cms.plugins.requests.StepExecutionRequest;
import org.gcube.application.cms.serialization.Serialization;
import org.gcube.application.cms.tests.TestDocuments;
import org.gcube.application.cms.tests.plugins.BasicPluginTest;
import org.gcube.application.geoportal.common.model.JSONPathWrapper;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.document.accounting.Context;
import org.gcube.application.geoportal.common.model.document.accounting.User;
import org.gcube.application.geoportal.common.model.document.filesets.RegisteredFileSet;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
import org.junit.Assert;
import org.junit.Test;
@ -18,6 +24,10 @@ import java.util.List;
import static junit.framework.TestCase.*;
public class ConcessioniPluginTests extends BasicPluginTest {
public static final String SCOPE_TEST = "/gcube/devsec/devVRE";
public static final String USERNAME = "francesco.mangiacrapa";
public static final String UCD_ID = "concessioni-estere";
@Test
public void testLoad(){
@ -25,7 +35,7 @@ public class ConcessioniPluginTests extends BasicPluginTest {
}
@Test
//@Test
public void testDefaults() throws IOException {
Project c= TestDocuments.documentMap.get("dummy.json");
@ -53,13 +63,13 @@ public class ConcessioniPluginTests extends BasicPluginTest {
Document rel = Serialization.convert(c.getTheDocument().get(ProfiledConcessione.RELAZIONE_SCAVO), Document.class);
assertNotNull(rel.get(ProfiledConcessione.Sections.TITOLO));
assertNotNull(rel.get(ProfiledConcessione.SOGGETTO));
assertNotNull(rel.get(RegisteredFileSet.CREATION_INFO));
assertNotNull(rel.get(RegisteredFileSet.ACCESS));
assertNull(rel.get(RegisteredFileSet.CREATION_INFO));
assertNull(rel.get(RegisteredFileSet.ACCESS));
Document abs = Serialization.convert(c.getTheDocument().get(ProfiledConcessione.ABSTRACT_RELAZIONE), Document.class);
assertNotNull(abs.get(ProfiledConcessione.Sections.TITOLO));
assertNotNull(abs.get(RegisteredFileSet.CREATION_INFO));
assertNotNull(abs.get(RegisteredFileSet.ACCESS));
assertNull(abs.get(RegisteredFileSet.CREATION_INFO));
assertNull(abs.get(RegisteredFileSet.ACCESS));
Document pos = Serialization.convert(c.getTheDocument().get(ProfiledConcessione.POSIZIONAMENTO_SCAVO), Document.class);
@ -67,8 +77,8 @@ public class ConcessioniPluginTests extends BasicPluginTest {
assertNotNull(pos.get(ProfiledConcessione.Sections.ABSTRACT));
assertNotNull(pos.get(ProfiledConcessione.Layers.TOPIC));
assertNotNull(pos.get(ProfiledConcessione.Layers.SUB_TOPIC));
assertNotNull(pos.get(RegisteredFileSet.CREATION_INFO));
assertNotNull(pos.get(RegisteredFileSet.ACCESS));
assertNull(pos.get(RegisteredFileSet.CREATION_INFO));
assertNull(pos.get(RegisteredFileSet.ACCESS));
JSONPathWrapper wrapper = new JSONPathWrapper(c.getTheDocument().toJson());
@ -77,8 +87,8 @@ public class ConcessioniPluginTests extends BasicPluginTest {
try{
Document img = Serialization.asDocument(o);
assertNotNull(img.get(ProfiledConcessione.SOGGETTO));
assertNotNull(img.get(RegisteredFileSet.CREATION_INFO));
assertNotNull(img.get(RegisteredFileSet.ACCESS));
assertNull(img.get(RegisteredFileSet.CREATION_INFO));
assertNull(img.get(RegisteredFileSet.ACCESS));
}catch (Throwable t){
System.out.println("Unable to read IMG "+o);
t.printStackTrace();
@ -94,8 +104,8 @@ public class ConcessioniPluginTests extends BasicPluginTest {
assertNotNull(pianta.get(ProfiledConcessione.Sections.ABSTRACT));
assertNotNull(pianta.get(ProfiledConcessione.Layers.TOPIC));
assertNotNull(pianta.get(ProfiledConcessione.Layers.SUB_TOPIC));
assertNotNull(pianta.get(RegisteredFileSet.CREATION_INFO));
assertNotNull(pianta.get(RegisteredFileSet.ACCESS));
assertNull(pianta.get(RegisteredFileSet.CREATION_INFO));
assertNull(pianta.get(RegisteredFileSet.ACCESS));
}catch (Throwable t){
System.out.println("Unable to read pianta "+o);
t.printStackTrace();

View File

@ -1,8 +1,13 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for org.gcube.application.cms.concessioni-model
This library contains custom BEANS for the support of GNA "concessioni" use case
## [v1.0.4] - 2023-09-06
- Using parent version range [#25572]
## [v1.0.3] - 2023-01-10
- Pom updates
## [v1.0.2] - 2022-12-07
- Pom updates
## [v1.0.1] - 2022-01-17
- Defaults Evaluation
@ -10,3 +15,5 @@ This library contains custom BEANS for the support of GNA "concessioni" use case
## [v1.0.0] - 2021-12-15
- First release
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -1,7 +1,9 @@
gCube CMS Suite
gCube CMS Suite : Concessioni Model
--------------------------------------------------
gCube CMS Suite is a set of components designed to manage complex space-temporal Documents defined by metadata Profiles.
This library contains custom class for GNA "concessioni" use case model.
It contains the class ProfiledConcessione extending Project, in order to facilitate custom logic integration.
## Built with
* [gCube SmartGears] (https://gcube.wiki.gcube-system.org/gcube/SmartGears) - The gCube SmartGears framework
@ -11,8 +13,8 @@ gCube CMS Suite is a set of components designed to manage complex space-temporal
* [Maven](https://maven.apache.org/) - Dependency Management
## Documentation
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
Documentation can be found [here](https://gcube.wiki.gcube-system.org/gcube/GeoPortal_Service).
## Change log

View File

@ -6,15 +6,15 @@
<groupId>org.gcube.application.cms</groupId>
<artifactId>concessioni-model</artifactId>
<version>1.0.1</version>
<version>1.0.4</version>
<name>GNA Concessioni Model</name>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>1.0.2</version>
</parent>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
</parent>
<properties>
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
@ -22,11 +22,11 @@
<scm>
<connection>scm:git:${gitBaseUrl}/gcube-cms-suite</connection>
<developerConnection>scm:git:${gitBaseUrl}/gcube-cms-suite</developerConnection>
<url>${gitBaseUrl}/gcube-cms-suite</url>
</scm>
<scm>
<connection>scm:git:${gitBaseUrl}/gcube-cms-suite</connection>
<developerConnection>scm:git:${gitBaseUrl}/gcube-cms-suite</developerConnection>
<url>${gitBaseUrl}/gcube-cms-suite</url>
</scm>

View File

@ -1,8 +1,12 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for org.gcube.application.cms.dataminer-plugins
This library contains gcube-cms plugins for processing via gCube Dataminer
## [v1.0.2] - 2023-01-10
- Pom updates
## [v1.0.1] - 2022-12-07
- Pom updates
## [v1.0.0] - 2022-02-24
- First release
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -1,8 +1,8 @@
gCube CMS Suite
gCube CMS Suite : DataMiner Plugins
--------------------------------------------------
gCube CMS Suite is a set of components designed to manage complex space-temporal Documents defined by metadata Profiles.
This library contains gcube-cms plugins for processing via gCube Dataminer
## Built with
* [gCube SmartGears] (https://gcube.wiki.gcube-system.org/gcube/SmartGears) - The gCube SmartGears framework
* [OpenJDK](https://openjdk.java.net/) - The JDK used
@ -11,8 +11,8 @@ gCube CMS Suite is a set of components designed to manage complex space-temporal
* [Maven](https://maven.apache.org/) - Dependency Management
## Documentation
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
Documentation can be found [here](https://gcube.wiki.gcube-system.org/gcube/GeoPortal_Service).
## Change log

View File

@ -5,14 +5,14 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>dataminer-plugins</artifactId>
<version>1.0.0</version>
<version>1.0.2</version>
<name>gCube CMS - Dataminer Plugins</name>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
</parent>
<dependencyManagement>

View File

@ -0,0 +1,25 @@
# Changelog for org.gcube.application.cms.ckan-plugin
## [v1.2.2]- 2023-09-06
- Using parent version range [#25572]
## [v1.2.1]
- Improved some logs
## [v1.2.0]
- Integrated the field 'geov_link' (Geoportal GisViewer link) in the centroid layer [#24859]
- Fixed Draft execution step executing dematerialization and deIndexing actions [#24877]
## [v1.1.1] - 2023-03-06
- [#24570] Integrated the UnPublish operation
## [v1.0.1] - 2023-01-10
- Pom updates
## [v1.0.0] - 2022-02-24
- First release
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -0,0 +1,26 @@
# Acknowledgments
The projects leading to this software have received funding from a series of European Union programmes including:
- the Sixth Framework Programme for Research and Technological Development
- [DILIGENT](https://cordis.europa.eu/project/id/004260) (grant no. 004260).
- the Seventh Framework Programme for research, technological development and demonstration
- [D4Science](https://cordis.europa.eu/project/id/212488) (grant no. 212488);
- [D4Science-II](https://cordis.europa.eu/project/id/239019) (grant no.239019);
- [ENVRI](https://cordis.europa.eu/project/id/283465) (grant no. 283465);
- [iMarine](https://cordis.europa.eu/project/id/283644) (grant no. 283644);
- [EUBrazilOpenBio](https://cordis.europa.eu/project/id/288754) (grant no. 288754).
- the H2020 research and innovation programme
- [SoBigData](https://cordis.europa.eu/project/id/654024) (grant no. 654024);
- [PARTHENOS](https://cordis.europa.eu/project/id/654119) (grant no. 654119);
- [EGI-Engage](https://cordis.europa.eu/project/id/654142) (grant no. 654142);
- [ENVRI PLUS](https://cordis.europa.eu/project/id/654182) (grant no. 654182);
- [BlueBRIDGE](https://cordis.europa.eu/project/id/675680) (grant no. 675680);
- [PerformFISH](https://cordis.europa.eu/project/id/727610) (grant no. 727610);
- [AGINFRA PLUS](https://cordis.europa.eu/project/id/731001) (grant no. 731001);
- [DESIRA](https://cordis.europa.eu/project/id/818194) (grant no. 818194);
- [ARIADNEplus](https://cordis.europa.eu/project/id/823914) (grant no. 823914);
- [RISIS 2](https://cordis.europa.eu/project/id/824091) (grant no. 824091);
- [EOSC-Pillar](https://cordis.europa.eu/project/id/857650) (grant no. 857650);
- [Blue Cloud](https://cordis.europa.eu/project/id/862409) (grant no. 862409);
- [SoBigData-PlusPlus](https://cordis.europa.eu/project/id/871042) (grant no. 871042);

View File

@ -0,0 +1,312 @@
# European Union Public Licence V. 1.1
EUPL © the European Community 2007
This European Union Public Licence (the “EUPL”) applies to the Work or Software
(as defined below) which is provided under the terms of this Licence. Any use of
the Work, other than as authorised under this Licence is prohibited (to the
extent such use is covered by a right of the copyright holder of the Work).
The Original Work is provided under the terms of this Licence when the Licensor
(as defined below) has placed the following notice immediately following the
copyright notice for the Original Work:
Licensed under the EUPL V.1.1
or has expressed by any other mean his willingness to license under the EUPL.
## 1. Definitions
In this Licence, the following terms have the following meaning:
- The Licence: this Licence.
- The Original Work or the Software: the software distributed and/or
communicated by the Licensor under this Licence, available as Source Code and
also as Executable Code as the case may be.
- Derivative Works: the works or software that could be created by the Licensee,
based upon the Original Work or modifications thereof. This Licence does not
define the extent of modification or dependence on the Original Work required
in order to classify a work as a Derivative Work; this extent is determined by
copyright law applicable in the country mentioned in Article 15.
- The Work: the Original Work and/or its Derivative Works.
- The Source Code: the human-readable form of the Work which is the most
convenient for people to study and modify.
- The Executable Code: any code which has generally been compiled and which is
meant to be interpreted by a computer as a program.
- The Licensor: the natural or legal person that distributes and/or communicates
the Work under the Licence.
- Contributor(s): any natural or legal person who modifies the Work under the
Licence, or otherwise contributes to the creation of a Derivative Work.
- The Licensee or “You”: any natural or legal person who makes any usage of the
Software under the terms of the Licence.
- Distribution and/or Communication: any act of selling, giving, lending,
renting, distributing, communicating, transmitting, or otherwise making
available, on-line or off-line, copies of the Work or providing access to its
essential functionalities at the disposal of any other natural or legal
person.
## 2. Scope of the rights granted by the Licence
The Licensor hereby grants You a world-wide, royalty-free, non-exclusive,
sub-licensable licence to do the following, for the duration of copyright vested
in the Original Work:
- use the Work in any circumstance and for all usage, reproduce the Work, modify
- the Original Work, and make Derivative Works based upon the Work, communicate
- to the public, including the right to make available or display the Work or
- copies thereof to the public and perform publicly, as the case may be, the
- Work, distribute the Work or copies thereof, lend and rent the Work or copies
- thereof, sub-license rights in the Work or copies thereof.
Those rights can be exercised on any media, supports and formats, whether now
known or later invented, as far as the applicable law permits so.
In the countries where moral rights apply, the Licensor waives his right to
exercise his moral right to the extent allowed by law in order to make effective
the licence of the economic rights here above listed.
The Licensor grants to the Licensee royalty-free, non exclusive usage rights to
any patents held by the Licensor, to the extent necessary to make use of the
rights granted on the Work under this Licence.
## 3. Communication of the Source Code
The Licensor may provide the Work either in its Source Code form, or as
Executable Code. If the Work is provided as Executable Code, the Licensor
provides in addition a machine-readable copy of the Source Code of the Work
along with each copy of the Work that the Licensor distributes or indicates, in
a notice following the copyright notice attached to the Work, a repository where
the Source Code is easily and freely accessible for as long as the Licensor
continues to distribute and/or communicate the Work.
## 4. Limitations on copyright
Nothing in this Licence is intended to deprive the Licensee of the benefits from
any exception or limitation to the exclusive rights of the rights owners in the
Original Work or Software, of the exhaustion of those rights or of other
applicable limitations thereto.
## 5. Obligations of the Licensee
The grant of the rights mentioned above is subject to some restrictions and
obligations imposed on the Licensee. Those obligations are the following:
Attribution right: the Licensee shall keep intact all copyright, patent or
trademarks notices and all notices that refer to the Licence and to the
disclaimer of warranties. The Licensee must include a copy of such notices and a
copy of the Licence with every copy of the Work he/she distributes and/or
communicates. The Licensee must cause any Derivative Work to carry prominent
notices stating that the Work has been modified and the date of modification.
Copyleft clause: If the Licensee distributes and/or communicates copies of the
Original Works or Derivative Works based upon the Original Work, this
Distribution and/or Communication will be done under the terms of this Licence
or of a later version of this Licence unless the Original Work is expressly
distributed only under this version of the Licence. The Licensee (becoming
Licensor) cannot offer or impose any additional terms or conditions on the Work
or Derivative Work that alter or restrict the terms of the Licence.
Compatibility clause: If the Licensee Distributes and/or Communicates Derivative
Works or copies thereof based upon both the Original Work and another work
licensed under a Compatible Licence, this Distribution and/or Communication can
be done under the terms of this Compatible Licence. For the sake of this clause,
“Compatible Licence” refers to the licences listed in the appendix attached to
this Licence. Should the Licensees obligations under the Compatible Licence
conflict with his/her obligations under this Licence, the obligations of the
Compatible Licence shall prevail.
Provision of Source Code: When distributing and/or communicating copies of the
Work, the Licensee will provide a machine-readable copy of the Source Code or
indicate a repository where this Source will be easily and freely available for
as long as the Licensee continues to distribute and/or communicate the Work.
Legal Protection: This Licence does not grant permission to use the trade names,
trademarks, service marks, or names of the Licensor, except as required for
reasonable and customary use in describing the origin of the Work and
reproducing the content of the copyright notice.
## 6. Chain of Authorship
The original Licensor warrants that the copyright in the Original Work granted
hereunder is owned by him/her or licensed to him/her and that he/she has the
power and authority to grant the Licence.
Each Contributor warrants that the copyright in the modifications he/she brings
to the Work are owned by him/her or licensed to him/her and that he/she has the
power and authority to grant the Licence.
Each time You accept the Licence, the original Licensor and subsequent
Contributors grant You a licence to their contributions to the Work, under the
terms of this Licence.
## 7. Disclaimer of Warranty
The Work is a work in progress, which is continuously improved by numerous
contributors. It is not a finished work and may therefore contain defects or
“bugs” inherent to this type of software development.
For the above reason, the Work is provided under the Licence on an “as is” basis
and without warranties of any kind concerning the Work, including without
limitation merchantability, fitness for a particular purpose, absence of defects
or errors, accuracy, non-infringement of intellectual property rights other than
copyright as stated in Article 6 of this Licence.
This disclaimer of warranty is an essential part of the Licence and a condition
for the grant of any rights to the Work.
## 8. Disclaimer of Liability
Except in the cases of wilful misconduct or damages directly caused to natural
persons, the Licensor will in no event be liable for any direct or indirect,
material or moral, damages of any kind, arising out of the Licence or of the use
of the Work, including without limitation, damages for loss of goodwill, work
stoppage, computer failure or malfunction, loss of data or any commercial
damage, even if the Licensor has been advised of the possibility of such
damage. However, the Licensor will be liable under statutory product liability
laws as far such laws apply to the Work.
## 9. Additional agreements
While distributing the Original Work or Derivative Works, You may choose to
conclude an additional agreement to offer, and charge a fee for, acceptance of
support, warranty, indemnity, or other liability obligations and/or services
consistent with this Licence. However, in accepting such obligations, You may
act only on your own behalf and on your sole responsibility, not on behalf of
the original Licensor or any other Contributor, and only if You agree to
indemnify, defend, and hold each Contributor harmless for any liability incurred
by, or claims asserted against such Contributor by the fact You have accepted
any such warranty or additional liability.
## 10. Acceptance of the Licence
The provisions of this Licence can be accepted by clicking on an icon “I agree”
placed under the bottom of a window displaying the text of this Licence or by
affirming consent in any other similar way, in accordance with the rules of
applicable law. Clicking on that icon indicates your clear and irrevocable
acceptance of this Licence and all of its terms and conditions.
Similarly, you irrevocably accept this Licence and all of its terms and
conditions by exercising any rights granted to You by Article 2 of this Licence,
such as the use of the Work, the creation by You of a Derivative Work or the
Distribution and/or Communication by You of the Work or copies thereof.
## 11. Information to the public
In case of any Distribution and/or Communication of the Work by means of
electronic communication by You (for example, by offering to download the Work
from a remote location) the distribution channel or media (for example, a
website) must at least provide to the public the information requested by the
applicable law regarding the Licensor, the Licence and the way it may be
accessible, concluded, stored and reproduced by the Licensee.
## 12. Termination of the Licence
The Licence and the rights granted hereunder will terminate automatically upon
any breach by the Licensee of the terms of the Licence.
Such a termination will not terminate the licences of any person who has
received the Work from the Licensee under the Licence, provided such persons
remain in full compliance with the Licence.
## 13. Miscellaneous
Without prejudice of Article 9 above, the Licence represents the complete
agreement between the Parties as to the Work licensed hereunder.
If any provision of the Licence is invalid or unenforceable under applicable
law, this will not affect the validity or enforceability of the Licence as a
whole. Such provision will be construed and/or reformed so as necessary to make
it valid and enforceable.
The European Commission may publish other linguistic versions and/or new
versions of this Licence, so far this is required and reasonable, without
reducing the scope of the rights granted by the Licence. New versions of the
Licence will be published with a unique version number.
All linguistic versions of this Licence, approved by the European Commission,
have identical value. Parties can take advantage of the linguistic version of
their choice.
## 14. Jurisdiction
Any litigation resulting from the interpretation of this License, arising
between the European Commission, as a Licensor, and any Licensee, will be
subject to the jurisdiction of the Court of Justice of the European Communities,
as laid down in article 238 of the Treaty establishing the European Community.
Any litigation arising between Parties, other than the European Commission, and
resulting from the interpretation of this License, will be subject to the
exclusive jurisdiction of the competent court where the Licensor resides or
conducts its primary business.
## 15. Applicable Law
This Licence shall be governed by the law of the European Union country where
the Licensor resides or has his registered office.
This licence shall be governed by the Belgian law if:
- a litigation arises between the European Commission, as a Licensor, and any
- Licensee; the Licensor, other than the European Commission, has no residence
- or registered office inside a European Union country.
## Appendix
“Compatible Licences” according to article 5 EUPL are:
- GNU General Public License (GNU GPL) v. 2
- Open Software License (OSL) v. 2.1, v. 3.0
- Common Public License v. 1.0
- Eclipse Public License v. 1.0
- Cecill v. 2.0

View File

@ -0,0 +1,64 @@
gCube CMS Suite : default-lc-managers
--------------------------------------------------
This library contains default Lifecycle Managers handlers implementations :
- AbstractPlugin
- AbstractLifecycleManager
- Default3PhaseManager
- SimpleLifeCycleManager
It also contains utility like
- RoleManager : caller role evaluation utilities
- GuardedEventManager, GuardedStepExecution, GuardedExecution : simplicity class for safe implementations
Plugins SHOULD be defined extending the definitions provided in this module.
## Built with
* [gCube SmartGears] (https://gcube.wiki.gcube-system.org/gcube/SmartGears) - The gCube SmartGears framework
* [OpenJDK](https://openjdk.java.net/) - The JDK used
* [JAX-RS](https://github.com/eclipse-ee4j/jaxrs-api) - Java™ API for RESTful Web Services
* [Jersey](https://jersey.github.io/) - JAX-RS runtime
* [Maven](https://maven.apache.org/) - Dependency Management
## Documentation
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
## Change log
See [CHANGELOG.md](CHANGELOG.md).
## License
This project is licensed under the EUPL V.1.1 License - see the [LICENSE.md](LICENSE.md) file for details.
## About the gCube Framework
This software is part of the [gCubeFramework](https://www.gcube-system.org/ "gCubeFramework"): an
open-source software toolkit used for building and operating Hybrid Data
Infrastructures enabling the dynamic deployment of Virtual Research Environments
by favouring the realisation of reuse oriented policies.
The projects leading to this software have received funding from a series of European Union programmes including:
- the Sixth Framework Programme for Research and Technological Development
- DILIGENT (grant no. 004260).
- the Seventh Framework Programme for research, technological development and demonstration
- D4Science (grant no. 212488);
- D4Science-II (grant no.239019);
- ENVRI (grant no. 283465);
- iMarine(grant no. 283644);
- EUBrazilOpenBio (grant no. 288754).
- the H2020 research and innovation programme
- SoBigData (grant no. 654024);
- PARTHENOS (grant no. 654119);
- EGIEngage (grant no. 654142);
- ENVRIplus (grant no. 654182);
- BlueBRIDGE (grant no. 675680);
- PerformFish (grant no. 727610);
- AGINFRAplus (grant no. 731001);
- DESIRA (grant no. 818194);
- ARIADNEplus (grant no. 823914);
- RISIS2 (grant no. 824091);

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/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">
<modelVersion>4.0.0</modelVersion>
<artifactId>default-lc-managers</artifactId>
<version>1.2.2</version>
<name>gCube CMS - Default LC Managers</name>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
</parent>
<properties>
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
</properties>
<scm>
<connection>scm:git:${gitBaseUrl}/gcube-cms-suite</connection>
<developerConnection>scm:git:${gitBaseUrl}/gcube-cms-suite</developerConnection>
<url>${gitBaseUrl}/gcube-cms-suite</url>
</scm>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.gcube.application.cms</groupId>
<artifactId>cms-plugin-framework</artifactId>
<version>${plugin-framework-version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.gcube.application.cms</groupId>
<artifactId>cms-plugin-framework</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.application.cms</groupId>
<artifactId>cms-test-commons</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-uberjar</id>
<phase>package</phase>
</execution>
<execution>
<id>make-servicearchive</id>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,11 +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;
@ -24,14 +35,13 @@ 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 {
protected static class Events{
public static final OperationDescriptor INIT=new OperationDescriptor(EventExecutionRequest.Events.ON_INIT_DOCUMENT,"Sets defaults and validate");
public static final OperationDescriptor UPDATE=new OperationDescriptor(EventExecutionRequest.Events.ON_UPDATE_DOCUMENT,"Sets defaults and validate");
@ -117,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()))
@ -164,9 +179,10 @@ public abstract class AbstractLifeCycleManager extends AbstractPlugin implements
try{
report.setStatus(Report.Status.OK);
} catch (Throwable e) {
log.error("Unable to initialize plugins in {} ", ContextUtils.getCurrentScope(),e);
String context = UserUtils.getCurrent().getContext();
log.error("Unable to initialize plugins in {} ", context,e);
report.setStatus(Report.Status.WARNING);
report.putMessage("Unable to initialize plugins in "+ ContextUtils.getCurrentScope()+" : "+e.getMessage());
report.putMessage("Unable to initialize plugins in "+ context +" : "+e.getMessage());
}
return report;
}
@ -194,7 +210,9 @@ public abstract class AbstractLifeCycleManager extends AbstractPlugin implements
@Override
public EventExecutionReport onEvent(EventExecutionRequest request) throws EventException, InvalidPluginRequestException {
log.info("Executing Event {}",request);
log.info("Executing Event {}, Parameters: {}, Context: {}",request.getEvent(), request.getCallParameters(), request.getContext());
log.info("Event fired on ProjectID {} with ProfileID: {}",request.getDocument().getId(), request.getDocument().getProfileID());
log.debug("Executing Event request: {}", request);
EventExecutionReport report=new EventExecutionReport(request);
report.getToSetLifecycleInformation().addEventReport(new TriggeredEvents());
TriggeredEvents info = report.getToSetLifecycleInformation().getLastEvent();

View File

@ -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 {

View File

@ -0,0 +1,242 @@
package org.gcube.application.cms.plugins.implementations;
import java.util.Collections;
import org.bson.Document;
import org.gcube.application.cms.plugins.IndexerPluginInterface;
import org.gcube.application.cms.plugins.LifecycleManager;
import org.gcube.application.cms.plugins.MaterializationPlugin;
import org.gcube.application.cms.plugins.faults.EventException;
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.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;
import org.gcube.application.geoportal.common.utils.Files;
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=SimpleLifeCycleManager.Phases.PUBLISHED;
}
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");
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));
}
}
private static class PARAMETERS{
public static final String NOTES="notes";
}
@Override
protected EventExecutionReport onDeleteDocument(EventExecutionReport report) throws ConfigurationException, InvalidPluginRequestException, MaterializationException, EventException {
report = super.onDeleteDocument(report);
for(IndexerPluginInterface indexer : getIndexers(report.getTheRequest()))
report= deIndex(report,indexer,getInternalIndexParams(report.getTheRequest()));
return report;
}
@Override
protected EventExecutionReport onDeleteFileSet(EventExecutionReport theReport) throws ConfigurationException, InvalidPluginRequestException, MaterializationException, EventException {
theReport = super.onDeleteFileSet(theReport);
String phase = theReport.getTheRequest().getDocument().getLifecycleInformation().getPhase();
Document parameters = null;
if(phase.equals(Phases.PENDING_APPROVAL))
parameters =getInternalIndexParams(theReport.getTheRequest());
if(phase.equals(Phases.PUBLISHED))
parameters = getPublicIndexParams(theReport.getTheRequest());
if(parameters!= null) {
//Fixed by Francesco, see #24902. Now is calling deIndex
for(IndexerPluginInterface indexer : getIndexers(theReport.getTheRequest())) {
theReport = deIndex(theReport,indexer,getPublicIndexParams(theReport.getTheRequest()));
}
}
return theReport;
}
@Override
protected void registerSteps() {
// register steps
setStep(new GuardedStepExecution(STEPS.SUBMIT) {
@Override
protected StepExecutionReport run() throws Exception {
return executeSubmit(theReport);
}
});
setStep(new GuardedStepExecution(STEPS.APPROVE) {
@Override
protected StepExecutionReport run() throws Exception {
return executeApprove(theReport);
}
});
setStep(new GuardedStepExecution(STEPS.REJECT) {
@Override
protected StepExecutionReport run() throws Exception {
return executeReject(theReport);
}
});
//Updated by Francesco
setStep(d3PhaseUnPublishStep());
}
public Default3PhaseManager() {
DESCRIPTOR.setId("DEFAULT-3PHASE");
DESCRIPTOR.setDescription("Default 3-phase lifecycle manager. This plugin supports a simple moderated publication lifecycle.");
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
public Configuration getCurrentConfiguration(BaseRequest req) throws ConfigurationException {
Configuration toReturn = super.getCurrentConfiguration(req);
IndexerPluginInterface indexerPlugin;
indexerPlugin = (IndexerPluginInterface) pluginManager.getById("SDI-Indexer-Plugin");
BaseRequest indexRequest = new BaseRequest(req.getUseCaseDescriptor(),req.getCaller(),req.getContext());
// Info on internal_index
try {
indexRequest.setCallParameters(getInternalIndexParams(req));
Index internalIndex = indexerPlugin.getIndex(indexRequest);
internalIndex.put("flag", "internal");
toReturn.getIndexes().add(internalIndex);
}catch(ConfigurationException e){
toReturn.addErrorMessage("Unable to gather information on internal GIS Centroids Index : "+e.getMessage());
log.error("Unable to gather information on internal GIS Centroids Index",e);
}
return toReturn;
}
protected Document getInternalIndexParams(BaseRequest req){
Document callParameters = new Document();
callParameters.put(IndexConstants.INDEX_PARAMETER_WORKSPACE, Files.fixFilename(req.getUseCaseDescriptor().getId()+"_internal_"+req.getContext().getName()));
callParameters.put(IndexConstants.INDEX_PARAMETER_INDEXNAME,Files.fixFilename(req.getUseCaseDescriptor().getId()+"_internal_"+req.getContext().getName()+"_centroids"));
//Added by Francesco
callParameters.put(IndexConstants.INDEX_PARAMETER_FLAGINTERNALINDEX, Boolean.TRUE);
return callParameters;
}
protected StepExecutionReport executeSubmit(StepExecutionReport theReport) throws Exception {
log.info(STEPS.SUBMIT + " running...");
// Materialize
for (MaterializationPlugin mat : getMaterializers(theReport.getTheRequest()))
theReport = materializeDocument(theReport, mat, getMaterializationParameters(theReport.getTheRequest()));
if (theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) {
// Index
for (IndexerPluginInterface indexer : getIndexers(theReport.getTheRequest()))
theReport = index(theReport, indexer, getInternalIndexParams(theReport.getTheRequest()));
// setPhase
if (theReport.getToSetLifecycleInformation().getLastOperationStatus()
.equals(LifecycleInformation.Status.OK))
theReport.getToSetLifecycleInformation().setPhase(Phases.PENDING_APPROVAL);
}
return theReport;
}
protected StepExecutionReport executeApprove(StepExecutionReport theReport) throws Exception {
log.info(STEPS.APPROVE + " running...");
// Index
for (IndexerPluginInterface indexer : getIndexers(theReport.getTheRequest()))
theReport = index(theReport, indexer, getPublicIndexParams(theReport.getTheRequest()));
// setPhase
if (theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK))
theReport.getToSetLifecycleInformation().setPhase(Phases.PUBLISHED);
return theReport;
}
//Updated by Francesco, see #24877
protected StepExecutionReport executeReject(StepExecutionReport theReport) throws Exception {
log.info(STEPS.REJECT + " 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;
}
// DeIndexing
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, getInternalIndexParams(theReport.getTheRequest()));
}
}
if (theReport.getToSetLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK))
theReport.getToSetLifecycleInformation().setPhase(LifecycleInformation.CommonPhases.DRAFT_PHASE);
return theReport;
}
}

View File

@ -0,0 +1,16 @@
package org.gcube.application.cms.plugins.implementations;
/**
* The Class IndexConstants.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Mar 29, 2023
*/
public class IndexConstants {
public static final String INDEX_PARAMETER_FLAGINTERNALINDEX = "flagInternalIndex";
public static final String INDEX_PARAMETER_INDEXNAME = "indexName";
public static final String INDEX_PARAMETER_WORKSPACE = "workspace";
}

View File

@ -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

View File

@ -1,11 +1,10 @@
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.implementations.faults.InvalidUserRoleException;
import org.gcube.application.cms.implementations.faults.ProjectNotFoundException;
import org.gcube.application.cms.implementations.faults.RegistrationException;
import org.gcube.application.cms.implementations.faults.UnauthorizedAccess;
import org.gcube.application.cms.plugins.IndexerPluginInterface;
import org.gcube.application.cms.plugins.LifecycleManager;
import org.gcube.application.cms.plugins.MaterializationPlugin;
@ -14,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;
@ -32,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 {
@ -45,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));
}
}
@ -83,8 +93,9 @@ public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements
protected Document getPublicIndexParams(BaseRequest req){
Document callParameters = new Document();
callParameters.put("workspace",Files.fixFilename(req.getUseCaseDescriptor().getId()+req.getContext().getName()));
callParameters.put("indexName",Files.fixFilename(req.getUseCaseDescriptor().getId()+req.getContext().getName()+"_centroids"));
callParameters.put(IndexConstants.INDEX_PARAMETER_WORKSPACE,Files.fixFilename(req.getUseCaseDescriptor().getId()+req.getContext().getName()));
callParameters.put(IndexConstants.INDEX_PARAMETER_INDEXNAME,Files.fixFilename(req.getUseCaseDescriptor().getId()+req.getContext().getName()+"_centroids"));
callParameters.put(IndexConstants.INDEX_PARAMETER_FLAGINTERNALINDEX, Boolean.FALSE);
return callParameters;
}
@ -116,13 +127,45 @@ 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;
}
});
}
//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...");
//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 {
Boolean force = false;
try {
@ -228,6 +271,7 @@ public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements
new MaterializationRequest(request.getUseCaseDescriptor(),request.getCaller(), request.getContext(), request.getDocument());
Document params = new Document();
params.putAll(parameters);
String workspace = request.getUseCaseDescriptor().getId() + request.getContext().getId();
params.put("workspace", Files.fixFilename(workspace));

View File

@ -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<EventExecutionRequest,EventExecutionReport>{

View File

@ -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
@ -28,14 +29,14 @@ public abstract class GuardedExecution<R extends BaseExecutionRequest,T extends
protected T theReport;
protected void checks() throws ConfigurationException, InsufficientPrivileges {
protected void checks() throws ConfigurationException, InsufficientPrivileges, StepException {
if(theReport.getTheRequest()==null) throw new RuntimeException("Unexpected state : request cannot be null");
// Check document phase
if(op.getAppliableToPhases()!=null&&!op.getAppliableToPhases().isEmpty()) {
String currentPhase = theReport.getTheRequest().getDocument().getLifecycleInformation().getPhase();
if(!op.getAppliableToPhases().contains(currentPhase))
new StepException("Document must be in one of the following phases : "+ op.getAppliableToPhases());
throw new StepException("Document must be in one of the following phases : "+ op.getAppliableToPhases());
}
}

View File

@ -1,13 +1,15 @@
package org.gcube.application.cms.plugins.implementations.executions;
import lombok.NonNull;
import org.gcube.application.cms.plugins.faults.InsufficientPrivileges;
import org.gcube.application.cms.plugins.faults.StepException;
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<StepExecutionRequest, StepExecutionReport>{
@ -16,7 +18,7 @@ public abstract class GuardedStepExecution extends GuardedExecution<StepExecutio
}
@Override
protected void checks() throws ConfigurationException, InsufficientPrivileges {
protected void checks() throws ConfigurationException, InsufficientPrivileges, StepException {
super.checks();
RoleManager r = new RoleManager(config);
if(!r.canInvokeStep(theReport.getTheRequest().getStep(),theReport.getTheRequest().getCaller()))

View File

@ -0,0 +1,50 @@
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
// extends
// BasicPluginTest {
//
// @Test
// public void testFullCycle(){
// SimpleLifeCycleManager manager = plugins.get(SimpleLifeCycleManager.PLUGIN_ID);
//
// StepExecutionRequest request = new StepExecutionRequest();
//
// Project p = null;
//
// EventExecutionRequest eventRequest = new EventExecutionRequest();
//
// manager.onEvent()
//
// 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();
}
}
}

View File

@ -1,7 +1,18 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for org.gcube.application.geoportal-client
## [v1.2.1] - 2023-09-06
- Using parent version range [#25572]
## [v1.2.0] - 2023-05-11
- Added PATCH method [#24985]
- Integrated `ingnore_errors` in the deleteFileSet
## [v1.1.2] - 2023-01-10
- Pom updates
## [v1.1.1] - 2022-12-07
- Pom updates
## [v1.1.0] - 2022-02-01
@ -36,4 +47,6 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
-Excluded common-calls 1.2.0
## [v1.0.0] - 2020-11-11
- First release
- First release
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -1,14 +1,21 @@
GeoPortal - Client
gCube CMS Suite : GeoPortal Client
--------------------------------------------------
GeoPortal - Client is the java library wrapping Geoportal REST Service
This module contains the definition of the client library for interacting with geoportal-service.
It is built on top of gCube FW stack and allows to build the following clients :
- Project<? extends Document> entities management
- UseCaseDescriptor entites management
It also provides a utility class Serialization for fast marshalling / unmarshalling.
## Built with
* [Maven](https://maven.apache.org/) - Dependency Management
## Documentation
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
Documentation can be found [here](https://gcube.wiki.gcube-system.org/gcube/GeoPortal).
## Change log

View File

@ -4,17 +4,15 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.application</groupId>
<artifactId>geoportal-client</artifactId>
<version>1.1.0</version>
<version>1.2.1</version>
<name>Geoportal Client</name>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>1.0.2</version>
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
</parent>
<properties>
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
</properties>
@ -46,15 +44,6 @@
<artifactId>common-generic-clients</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.sun.xml.ws</groupId>-->
<!-- <artifactId>jaxws-ri</artifactId>-->
<!-- <version>2.3.2</version>-->
<!-- <type>pom</type>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<!-- https://mvnrepository.com/artifact/javax.xml.ws/jaxws-api -->
<dependency>

View File

@ -1,8 +1,14 @@
package org.gcube.application.geoportal.client;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.rmi.RemoteException;
import java.util.Iterator;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.bson.Document;
import org.gcube.application.geoportal.client.utils.Serialization;
import org.gcube.application.geoportal.common.faults.InvalidRequestException;
@ -10,385 +16,572 @@ import org.gcube.application.geoportal.common.model.configuration.Configuration;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.document.access.Access;
import org.gcube.application.geoportal.common.model.document.relationships.RelationshipNavigationObject;
import org.gcube.application.geoportal.common.model.rest.*;
import org.gcube.application.geoportal.common.model.rest.CreateRelationshipRequest;
import org.gcube.application.geoportal.common.model.rest.DeleteRelationshipRequest;
import org.gcube.application.geoportal.common.model.rest.QueryRequest;
import org.gcube.application.geoportal.common.model.rest.RegisterFileSetRequest;
import org.gcube.application.geoportal.common.model.rest.StepExecutionRequest;
import org.gcube.application.geoportal.common.rest.InterfaceConstants;
import org.gcube.application.geoportal.common.rest.Projects;
import org.gcube.common.clients.Call;
import org.gcube.common.clients.delegates.ProxyDelegate;
import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import java.io.IOException;
import java.rmi.RemoteException;
import java.util.Iterator;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
/**
* Instantiates a new default documents client.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* May 2, 2023
* @param <T> the generic type
*/
/**
* Instantiates a new default documents client.
*
* @param delegate the delegate
* @param profileID the profile ID
* @param managedClass the managed class
*/
@RequiredArgsConstructor
@Slf4j
public class DefaultDocumentsClient<T extends Project> implements Projects<T> {
@NonNull
protected final ProxyDelegate<WebTarget> delegate;
@NonNull
protected final String profileID;
@NonNull
protected final Class<T> managedClass;
@NonNull
protected final ProxyDelegate<WebTarget> delegate;
@NonNull
protected final String profileID;
@NonNull
protected final Class<T> managedClass;
/**
* Gets the managed class.
*
* @return the managed class
*/
public Class<T> getManagedClass() {
return managedClass;
}
public Class<T> getManagedClass() {
return managedClass;
}
/**
* Creates the new.
*
* @param toCreate the to create
* @return the t
* @throws RemoteException the remote exception
*/
@Override
public T createNew(Document toCreate) throws RemoteException {
try {
log.debug("Creating Profiled Document (class {}, useCaseDescriptor {}) with content {} ", getManagedClass(),
profileID, toCreate);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).request(MediaType.APPLICATION_JSON)
.post(Entity.entity(toCreate, MediaType.APPLICATION_JSON)), getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Registered {} profiled {} ", toReturn.getId(), profileID);
return toReturn;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public T createNew(Document toCreate) throws RemoteException {
try {
log.debug("Creating Profiled Document (class {}, useCaseDescriptor {}) with content {} ",
getManagedClass(),profileID, toCreate);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).request(MediaType.APPLICATION_JSON).
post(Entity.entity(toCreate, MediaType.APPLICATION_JSON)),getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Registered {} profiled {} ",toReturn.getId(),profileID);
return toReturn;
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Delete by id.
*
* @param id the id
* @throws RemoteException the remote exception
*/
@Override
public void deleteById(String id) throws RemoteException {
deleteById(id, false);
}
@Override
public void deleteById(String id) throws RemoteException {
deleteById(id,false);
}
/**
* Delete by id.
*
* @param id the id
* @param force the force
* @throws RemoteException the remote exception
*/
@Override
public void deleteById(String id, Boolean force) throws RemoteException {
try {
log.debug("Deleting ID {}  useCaseDescriptor {}  force {} ", id, profileID, force);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons
.check(endpoint.path(profileID).path(id).queryParam(InterfaceConstants.Parameters.FORCE, force)
.request(MediaType.APPLICATION_JSON).delete(), null);
};
delegate.make(call);
log.info("Deleted ID {}  useCaseDescriptor {}  force {} ", id, profileID, force);
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public void deleteById(String id, Boolean force) throws RemoteException {
try {
log.debug("Deleting ID {}  useCaseDescriptor {}  force {} ", id, profileID, force);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(id).
queryParam(InterfaceConstants.Parameters.FORCE,force).
request(MediaType.APPLICATION_JSON).delete(),null);
};
delegate.make(call);
log.info("Deleted ID {}  useCaseDescriptor {}  force {} ", id, profileID, force);
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Gets the by id.
*
* @param id the id
* @return the by id
* @throws RemoteException the remote exception
*/
@Override
public T getById(String id) throws RemoteException {
try {
log.info("Loading Document ID {} (class {}, useCaseDescriptor {})", id, getManagedClass(), profileID);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(
endpoint.path(profileID).path(id).request(MediaType.APPLICATION_JSON).get(), getManagedClass());
};
return delegate.make(call);
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public T getById(String id) throws RemoteException {
try {
log.info("Loading Document ID {} (class {}, useCaseDescriptor {})",
id, getManagedClass(),profileID);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(id).
request(MediaType.APPLICATION_JSON).get(), getManagedClass());
};
return delegate.make(call);
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Gets the configuration.
*
* @return the configuration
* @throws RemoteException the remote exception
*/
@Override
public Configuration getConfiguration() throws RemoteException {
try {
log.info("Loading Configuration for useCaseDescriptor {}", profileID);
Call<WebTarget, Configuration> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID)
.path(InterfaceConstants.Methods.CONFIGURATION_PATH).request(MediaType.APPLICATION_JSON).get(),
Configuration.class);
};
return delegate.make(call);
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public Configuration getConfiguration() throws RemoteException {
try {
log.info("Loading Configuration for useCaseDescriptor {}", profileID);
Call<WebTarget, Configuration> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.CONFIGURATION_PATH).
request(MediaType.APPLICATION_JSON).get(), Configuration.class);
};
return delegate.make(call);
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Query.
*
* @param request the request
* @return the iterator
* @throws RemoteException the remote exception
*/
@Override
public Iterator<T> query(QueryRequest request) throws RemoteException {
return queryForClass(request, getManagedClass());
}
@Override
public Iterator<T> query(QueryRequest request) throws RemoteException {
return queryForClass(request,getManagedClass());
}
/**
* Query for class.
*
* @param <C> the generic type
* @param request the request
* @param clazz the clazz
* @return the iterator
* @throws RemoteException the remote exception
*/
@Override
public <C> Iterator<C> queryForClass(QueryRequest request, Class<C> clazz) throws RemoteException {
String jsonString = queryForJSON(request);
log.debug("Deserializing query Result as {} ", clazz);
try {
return Serialization.readCollection(jsonString, clazz);
} catch (IOException e) {
log.error("Unable to deserialize result as " + clazz, e);
log.debug("Query request was {} ", request);
log.debug("Query result was {} ", jsonString);
throw new RemoteException("Invalid format for submitted query");
}
}
@Override
public <C> Iterator<C> queryForClass(QueryRequest request,Class<C> clazz) throws RemoteException {
String jsonString=queryForJSON(request);
log.debug("Deserializing query Result as {} ",clazz);
try {
return Serialization.readCollection(jsonString,clazz);
} catch (IOException e) {
log.error("Unable to deserialize result as "+clazz,e);
log.debug("Query request was {} ",request);
log.debug("Query result was {} ",jsonString);
throw new RemoteException("Invalid format for submitted query");
}
}
/**
* Query for JSON.
*
* @param request the request
* @return the string
* @throws RemoteException the remote exception
*/
@Override
public String queryForJSON(QueryRequest request) throws RemoteException {
try {
log.debug("Querying useCaseDescriptor {}  for {}", profileID, request);
Call<WebTarget, String> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.QUERY_PATH)
.request(MediaType.APPLICATION_JSON).post(Entity.entity(request, MediaType.APPLICATION_JSON)),
String.class);
};
return delegate.make(call);
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public String queryForJSON(QueryRequest request) throws RemoteException {
try {
log.debug("Querying useCaseDescriptor {}  for {}",profileID,request);
Call<WebTarget, String> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.QUERY_PATH).
request(MediaType.APPLICATION_JSON).post(Entity.entity(request,MediaType.APPLICATION_JSON)), String.class);
};
return delegate.make(call);
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Perform step.
*
* @param id the id
* @param request the request
* @return the t
* @throws RemoteException the remote exception
*/
@Override
public T performStep(String id, StepExecutionRequest request) throws RemoteException {
try {
log.debug("Executing step on {} (class {}, useCaseDescriptor {}) with request {} ", id, getManagedClass(),
profileID, request);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.STEP).path(id)
.request(MediaType.APPLICATION_JSON).post(Entity.entity(request, MediaType.APPLICATION_JSON)),
getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Executed STEP {} on {} [useCaseDescriptor {}, class {}] ", request.getStepID(), id, profileID,
getManagedClass());
return toReturn;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public T performStep(String id, StepExecutionRequest request) throws RemoteException{
try {
log.debug("Executing step on {} (class {}, useCaseDescriptor {}) with request {} ",
id, getManagedClass(),profileID, request);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.STEP)
.path(id).request(MediaType.APPLICATION_JSON).
post(Entity.entity(request, MediaType.APPLICATION_JSON)),getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Executed STEP {} on {} [useCaseDescriptor {}, class {}] ",request.getStepID(),
id,profileID,getManagedClass());
return toReturn;
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Register file set.
*
* @param id the id
* @param req the req
* @return the t
* @throws RemoteException the remote exception
* @throws InvalidRequestException the invalid request exception
*/
@Override
public T registerFileSet(String id, RegisterFileSetRequest req) throws RemoteException, InvalidRequestException {
try {
log.debug("Registering FileSet on {} (class {}, useCaseDescriptor {}) with request {} ", id,
getManagedClass(), profileID, req);
req.validate();
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID)
.path(InterfaceConstants.Methods.REGISTER_FILES_PATH).path(id)
.request(MediaType.APPLICATION_JSON).post(Entity.entity(req, MediaType.APPLICATION_JSON)),
getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Registered FileSet on {} [useCaseDescriptor {}, class {}]  with {}", id, profileID,
getManagedClass(), req);
return toReturn;
} catch (InvalidRequestException e) {
log.error("Invalid Request ", e);
throw e;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public T registerFileSet(String id, RegisterFileSetRequest req) throws RemoteException, InvalidRequestException {
try {
log.debug("Registering FileSet on {} (class {}, useCaseDescriptor {}) with request {} ",
id, getManagedClass(), profileID, req);
req.validate();
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.REGISTER_FILES_PATH)
.path(id).request(MediaType.APPLICATION_JSON).
post(Entity.entity(req, MediaType.APPLICATION_JSON)), getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Registered FileSet on {} [useCaseDescriptor {}, class {}]  with {}",
id, profileID, getManagedClass(), req);
return toReturn;
}catch (InvalidRequestException e){
log.error("Invalid Request ",e);
throw e;
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Delete file set.
*
* @param id the id
* @param path the path
* @param force the force
* @param ignoreErrors the ignore errors
* @return the t
* @throws RemoteException the remote exception
*/
@Override
public T deleteFileSet(String id, String path, Boolean force, Boolean ignoreErrors) throws RemoteException {
try {
log.debug(
"Deleting Fileset for ID {}  [useCaseDescriptor {}  , class {}] at {} (force {} ) (ignoreErrors {} )",
id, profileID, getManagedClass(), path, force, ignoreErrors);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.DELETE_FILES_PATH)
.path(id).queryParam(InterfaceConstants.Parameters.FORCE, force)
.queryParam(InterfaceConstants.Parameters.IGNORE_ERRORS, ignoreErrors)
.request(MediaType.APPLICATION_JSON).post(Entity.entity(path, MediaType.APPLICATION_JSON)),
getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Deleted ID {}  useCaseDescriptor {}  force {} ", id, profileID, force);
return toReturn;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public T deleteFileSet(String id, String path, Boolean force) throws RemoteException {
try {
log.debug("Deleting Fileset for ID {}  [useCaseDescriptor {}  , class {}] at {} (force {} )",
id, profileID,getManagedClass(),path, force);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.DELETE_FILES_PATH).
path(id).queryParam(InterfaceConstants.Parameters.FORCE,force).
request(MediaType.APPLICATION_JSON).
post(Entity.entity(path, MediaType.APPLICATION_JSON)),getManagedClass());
};
T toReturn=delegate.make(call);
log.info("Deleted ID {}  useCaseDescriptor {}  force {} ", id, profileID, force);
return toReturn;
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Force unlock.
*
* @param id the id
* @return the t
* @throws RemoteException the remote exception
*/
@Override
public T forceUnlock(String id) throws RemoteException {
try {
log.warn("Force Unlock of {} [useCaseDescriptor {} , class {}]", id, profileID, getManagedClass());
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.FORCE_UNLOCK)
.path(id).request(MediaType.APPLICATION_JSON).put(Entity.json("")), getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Unlocked ID {} useCaseDescriptor {}", id, profileID);
return toReturn;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public T forceUnlock(String id) throws RemoteException {
try {
log.warn("Force Unlock of {} [useCaseDescriptor {} , class {}]",
id, profileID,getManagedClass());
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.FORCE_UNLOCK).path(id).
request(MediaType.APPLICATION_JSON).
put(Entity.json("")),getManagedClass());
};
T toReturn=delegate.make(call);
log.info("Unlocked ID {} useCaseDescriptor {}", id, profileID);
return toReturn;
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Sets the access policy.
*
* @param id the id
* @param toSet the to set
* @return the t
* @throws RemoteException the remote exception
*/
@Override
public T setAccessPolicy(String id, Access toSet) throws RemoteException {
try {
log.info("Setting Access of {} [useCaseDescriptor {} , class {}] as {}", id, profileID, getManagedClass(),
toSet);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(
endpoint.path(profileID).path(InterfaceConstants.Methods.SET_PROJECT_ACCESS_POLICY).path(id)
.request(MediaType.APPLICATION_JSON).put(Entity.json(toSet)),
getManagedClass());
};
T toReturn = delegate.make(call);
log.debug("Updated Access of ID {} useCaseDescriptor {}", id, profileID);
return toReturn;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public T setAccessPolicy(String id, Access toSet) throws RemoteException {
try {
log.info("Setting Access of {} [useCaseDescriptor {} , class {}] as {}",
id, profileID,getManagedClass(),toSet);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.SET_PROJECT_ACCESS_POLICY).path(id).
request(MediaType.APPLICATION_JSON).
put(Entity.json(toSet)),getManagedClass());
};
T toReturn=delegate.make(call);
log.debug("Updated Access of ID {} useCaseDescriptor {}", id, profileID);
return toReturn;
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Update document.
*
* @param id the id
* @param updatedDocument the updated document
* @return the t
* @throws RemoteException the remote exception
*/
@Override
public T updateDocument(String id, Document updatedDocument) throws RemoteException {
try {
log.debug("Updating {} [useCaseDescriptor {} , class {}] with ", id, profileID, getManagedClass(),
updatedDocument);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(id).request(MediaType.APPLICATION_JSON)
.put(Entity.entity(updatedDocument, MediaType.APPLICATION_JSON)), getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Updated ID {} useCaseDescriptor {}", id, profileID);
return toReturn;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public T updateDocument(String id, Document updatedDocument) throws RemoteException {
try {
log.debug("Updating {} [useCaseDescriptor {} , class {}] with ",
id, profileID,getManagedClass(),updatedDocument);
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(id).
request(MediaType.APPLICATION_JSON).
put(Entity.entity(updatedDocument, MediaType.APPLICATION_JSON)),getManagedClass());
};
T toReturn=delegate.make(call);
log.info("Updated ID {} useCaseDescriptor {}", id, profileID);
return toReturn;
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Patch document. Added by Francesco Mangiacrapa
*
* @param id the id
* @param path the path
* @param updatedDocument the updated document
* @return the t
* @throws RemoteException the remote exception
*/
@Override
public T patchDocument(String id, String path, Document updatedDocument) throws RemoteException {
try {
log.debug("Patching {} [useCaseDescriptor {} , class {}] with ", id, profileID, getManagedClass(),
updatedDocument);
Call<WebTarget, T> call = endpoint -> {
@Override
public Project setRelation(CreateRelationshipRequest request) throws RemoteException {
try {
log.debug("Setting relationship {}:{} --{}--> {}:{}",
profileID, request.getProjectId(), request.getRelationshipId(),
request.getTargetUCD(),request.getTargetId());
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).
path(InterfaceConstants.Methods.RELATIONSHIP).
path(request.getProjectId()).
path(request.getRelationshipId()).
queryParam(InterfaceConstants.Parameters.TARGET_ID,request.getTargetId()).
queryParam(InterfaceConstants.Parameters.TARGET_UCD,request.getTargetUCD()).
request(MediaType.APPLICATION_JSON).
put(Entity.json("")),getManagedClass());
};
T toReturn=delegate.make(call);
log.info("Set relationship {}:{} --{}--> {}:{}",
profileID, request.getProjectId(), request.getRelationshipId(),
request.getTargetUCD(),request.getTargetId());
return toReturn;
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
WebTarget webTarget = endpoint.path(profileID).path(id);
webTarget.queryParam(InterfaceConstants.Parameters.PATH, path);
webTarget.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);
Response response = webTarget.request(MediaType.APPLICATION_JSON).method("PATCH",
Entity.entity(updatedDocument, MediaType.APPLICATION_JSON));
return ResponseCommons.check(response, getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Updated ID {} useCaseDescriptor {}", id, profileID);
return toReturn;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public Project deleteRelation(DeleteRelationshipRequest request) throws RemoteException {
try {
log.debug("Deleting relationship {}:{} --{}--> {}:{}",
profileID, request.getProjectId(), request.getRelationshipId(),
request.getTargetUCD(),request.getTargetId());
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).
path(InterfaceConstants.Methods.RELATIONSHIP).
path(request.getProjectId()).
path(request.getRelationshipId()).
queryParam(InterfaceConstants.Parameters.TARGET_ID,request.getTargetId()).
queryParam(InterfaceConstants.Parameters.TARGET_UCD,request.getTargetUCD()).
request(MediaType.APPLICATION_JSON).
delete(),getManagedClass());
};
T toReturn=delegate.make(call);
log.info("Deleted relationship {}:{} --{}--> {}:{}",
profileID, request.getProjectId(), request.getRelationshipId(),
request.getTargetUCD(),request.getTargetId());
return toReturn;
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
/**
* Sets the relation.
*
* @param request the request
* @return the project
* @throws RemoteException the remote exception
*/
@Override
public Project setRelation(CreateRelationshipRequest request) throws RemoteException {
try {
log.debug("Setting relationship {}:{} --{}--> {}:{}", profileID, request.getProjectId(),
request.getRelationshipId(), request.getTargetUCD(), request.getTargetId());
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.RELATIONSHIP)
.path(request.getProjectId()).path(request.getRelationshipId())
.queryParam(InterfaceConstants.Parameters.TARGET_ID, request.getTargetId())
.queryParam(InterfaceConstants.Parameters.TARGET_UCD, request.getTargetUCD())
.request(MediaType.APPLICATION_JSON).put(Entity.json("")), getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Set relationship {}:{} --{}--> {}:{}", profileID, request.getProjectId(),
request.getRelationshipId(), request.getTargetUCD(), request.getTargetId());
return toReturn;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public Iterator<RelationshipNavigationObject> getRelationshipChain(String id, String relationId) throws RemoteException {
return getRelationshipChain(id,relationId,null);
}
/**
* Delete relation.
*
* @param request the request
* @return the project
* @throws RemoteException the remote exception
*/
@Override
public Project deleteRelation(DeleteRelationshipRequest request) throws RemoteException {
try {
log.debug("Deleting relationship {}:{} --{}--> {}:{}", profileID, request.getProjectId(),
request.getRelationshipId(), request.getTargetUCD(), request.getTargetId());
Call<WebTarget, T> call = endpoint -> {
return ResponseCommons.check(endpoint.path(profileID).path(InterfaceConstants.Methods.RELATIONSHIP)
.path(request.getProjectId()).path(request.getRelationshipId())
.queryParam(InterfaceConstants.Parameters.TARGET_ID, request.getTargetId())
.queryParam(InterfaceConstants.Parameters.TARGET_UCD, request.getTargetUCD())
.request(MediaType.APPLICATION_JSON).delete(), getManagedClass());
};
T toReturn = delegate.make(call);
log.info("Deleted relationship {}:{} --{}--> {}:{}", profileID, request.getProjectId(),
request.getRelationshipId(), request.getTargetUCD(), request.getTargetId());
return toReturn;
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
@Override
public Iterator<RelationshipNavigationObject> getRelationshipChain(String id, String relationId, Boolean deep) throws RemoteException {
try {
log.debug("Get relationship chain ID {} for {} [useCaseDescriptor {} , class {}]",
relationId, id, profileID,getManagedClass());
Call<WebTarget, Iterator<RelationshipNavigationObject>> call = endpoint -> {
/**
* Gets the relationship chain.
*
* @param id the id
* @param relationId the relation id
* @return the relationship chain
* @throws RemoteException the remote exception
*/
@Override
public Iterator<RelationshipNavigationObject> getRelationshipChain(String id, String relationId)
throws RemoteException {
return getRelationshipChain(id, relationId, null);
}
WebTarget target = endpoint.path(profileID).
path(InterfaceConstants.Methods.RELATIONSHIP).
path(id).
path(relationId);
/**
* Gets the relationship chain.
*
* @param id the id
* @param relationId the relation id
* @param deep the deep
* @return the relationship chain
* @throws RemoteException the remote exception
*/
@Override
public Iterator<RelationshipNavigationObject> getRelationshipChain(String id, String relationId, Boolean deep)
throws RemoteException {
try {
log.debug("Get relationship chain ID {} for {} [useCaseDescriptor {} , class {}]", relationId, id,
profileID, getManagedClass());
Call<WebTarget, Iterator<RelationshipNavigationObject>> call = endpoint -> {
if(deep!=null) target = target.queryParam(InterfaceConstants.Parameters.DEEP,deep);
WebTarget target = endpoint.path(profileID).path(InterfaceConstants.Methods.RELATIONSHIP).path(id)
.path(relationId);
String jsonChain = ResponseCommons.check(target.request(MediaType.APPLICATION_JSON).
get(),String.class);
if (deep != null)
target = target.queryParam(InterfaceConstants.Parameters.DEEP, deep);
return Serialization.readCollection(jsonChain,RelationshipNavigationObject.class);
};
return delegate.make(call);
}catch(RemoteException e){
log.error("Unexpected error ",e);
throw e;
}catch(Exception e){
log.error("Unexpected error ",e);
throw new RemoteException("Unexpected Error", e);
}
}
String jsonChain = ResponseCommons.check(target.request(MediaType.APPLICATION_JSON).get(),
String.class);
return Serialization.readCollection(jsonChain, RelationshipNavigationObject.class);
};
return delegate.make(call);
} catch (RemoteException e) {
log.error("Unexpected error ", e);
throw e;
} catch (Exception e) {
log.error("Unexpected error ", e);
throw new RemoteException("Unexpected Error", e);
}
}
}

View File

@ -1,9 +1,15 @@
package org.gcube.application.geoportal.client;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.io.InputStream;
import java.rmi.RemoteException;
import java.util.Iterator;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.gcube.application.geoportal.client.utils.Serialization;
import org.gcube.application.geoportal.common.model.configuration.Configuration;
import org.gcube.application.geoportal.common.model.legacy.Concessione;
@ -14,14 +20,11 @@ import org.gcube.application.geoportal.common.rest.MongoConcessioni;
import org.gcube.common.clients.Call;
import org.gcube.common.clients.delegates.ProxyDelegate;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.io.IOException;
import java.io.InputStream;
import java.rmi.RemoteException;
import java.util.Iterator;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@RequiredArgsConstructor
@Slf4j

View File

@ -1,13 +1,13 @@
package org.gcube.application.geoportal.client;
import java.util.Iterator;
import org.gcube.application.geoportal.common.model.configuration.Configuration;
import org.gcube.application.geoportal.common.model.legacy.Concessione;
import org.gcube.application.geoportal.common.model.rest.AddSectionToConcessioneRequest;
import org.gcube.application.geoportal.common.model.rest.QueryRequest;
import org.gcube.application.geoportal.common.rest.MongoConcessioni;
import java.util.Iterator;
public class DefaultProfiledConcessioni implements MongoConcessioni {

View File

@ -1,9 +1,10 @@
package org.gcube.application.geoportal.client;
import lombok.extern.slf4j.Slf4j;
import javax.ws.rs.core.Response;
import org.gcube.application.geoportal.client.utils.Serialization;
import javax.ws.rs.core.Response;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class ResponseCommons {

View File

@ -1,8 +1,12 @@
package org.gcube.application.geoportal.client;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import java.rmi.RemoteException;
import java.util.Iterator;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import org.bson.Document;
import org.gcube.application.geoportal.client.utils.Serialization;
import org.gcube.application.geoportal.common.model.rest.QueryRequest;
@ -11,11 +15,9 @@ import org.gcube.application.geoportal.common.rest.InterfaceConstants;
import org.gcube.application.geoportal.common.rest.UseCaseDescriptorsI;
import org.gcube.common.clients.delegates.ProxyDelegate;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import java.rmi.RemoteException;
import java.util.Iterator;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@RequiredArgsConstructor
@Slf4j

View File

@ -1,5 +1,14 @@
package org.gcube.application.geoportal.client.legacy;
import static org.gcube.application.geoportal.client.plugins.GeoportalAbstractPlugin.concessioni;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import org.gcube.application.geoportal.common.model.legacy.Concessione;
import org.gcube.application.geoportal.common.rest.ConcessioniI;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
@ -7,15 +16,8 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import lombok.extern.slf4j.Slf4j;
import org.gcube.application.geoportal.common.model.legacy.Concessione;
import org.gcube.application.geoportal.common.rest.ConcessioniI;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import static org.gcube.application.geoportal.client.plugins.GeoportalAbstractPlugin.concessioni;
@Slf4j
public class ConcessioniManager{

View File

@ -1,6 +1,11 @@
package org.gcube.application.geoportal.client.legacy;
import org.gcube.application.geoportal.common.model.legacy.*;
import org.gcube.application.geoportal.common.model.legacy.AbstractRelazione;
import org.gcube.application.geoportal.common.model.legacy.Concessione;
import org.gcube.application.geoportal.common.model.legacy.InputStreamDescriptor;
import org.gcube.application.geoportal.common.model.legacy.LayerConcessione;
import org.gcube.application.geoportal.common.model.legacy.RelazioneScavo;
import org.gcube.application.geoportal.common.model.legacy.UploadedImage;
import org.gcube.application.geoportal.common.model.rest.TempFile;
import org.gcube.application.geoportal.common.rest.MongoConcessioni;

View File

@ -1,5 +1,10 @@
package org.gcube.application.geoportal.client.legacy;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
import org.gcube.application.geoportal.client.plugins.GeoportalAbstractPlugin;
import org.gcube.application.geoportal.common.rest.ConcessioniI;
import org.gcube.application.geoportal.common.rest.InterfaceConstants;
@ -9,11 +14,6 @@ import org.gcube.common.clients.config.ProxyConfig;
import org.gcube.common.clients.delegates.ProxyDelegate;
import org.w3c.dom.Node;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
public class ConcessioniPlugin extends GeoportalAbstractPlugin<WebTarget, ConcessioniI>{

View File

@ -1,15 +1,16 @@
package org.gcube.application.geoportal.client.legacy;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.gcube.application.geoportal.common.rest.ConcessioniI;
import org.gcube.common.clients.Call;
import org.gcube.common.clients.delegates.ProxyDelegate;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import org.gcube.application.geoportal.common.rest.ConcessioniI;
import org.gcube.common.clients.Call;
import org.gcube.common.clients.delegates.ProxyDelegate;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class DefaultConcessioni implements ConcessioniI{

View File

@ -1,5 +1,10 @@
package org.gcube.application.geoportal.client.legacy;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
import org.gcube.application.geoportal.client.DefaultMongoConcessioni;
import org.gcube.application.geoportal.client.plugins.GeoportalAbstractPlugin;
import org.gcube.application.geoportal.common.rest.InterfaceConstants;
@ -10,11 +15,6 @@ import org.gcube.common.clients.config.ProxyConfig;
import org.gcube.common.clients.delegates.ProxyDelegate;
import org.w3c.dom.Node;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
public class MongoConcessioniPlugin extends GeoportalAbstractPlugin<WebTarget, MongoConcessioni>{

View File

@ -1,19 +1,26 @@
package org.gcube.application.geoportal.client.legacy;
import lombok.Getter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import javax.ws.rs.client.WebTarget;
import org.gcube.application.geoportal.client.DefaultMongoConcessioni;
import org.gcube.application.geoportal.common.model.legacy.*;
import org.gcube.application.geoportal.common.model.legacy.AbstractRelazione;
import org.gcube.application.geoportal.common.model.legacy.Concessione;
import org.gcube.application.geoportal.common.model.legacy.Concessione.Paths;
import org.gcube.application.geoportal.common.model.legacy.InputStreamDescriptor;
import org.gcube.application.geoportal.common.model.legacy.LayerConcessione;
import org.gcube.application.geoportal.common.model.legacy.RelazioneScavo;
import org.gcube.application.geoportal.common.model.legacy.UploadedImage;
import org.gcube.application.geoportal.common.model.rest.AddSectionToConcessioneRequest;
import org.gcube.application.geoportal.common.model.rest.TempFile;
import org.gcube.application.geoportal.common.utils.FileSets;
import org.gcube.application.geoportal.common.utils.StorageUtils;
import org.gcube.common.clients.delegates.ProxyDelegate;
import javax.ws.rs.client.WebTarget;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import lombok.Getter;
public class StatefulMongoConcessioni extends DefaultMongoConcessioni implements ConcessioniManagerI{

View File

@ -1,5 +1,10 @@
package org.gcube.application.geoportal.client.legacy;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
import org.gcube.application.geoportal.client.plugins.GeoportalAbstractPlugin;
import org.gcube.application.geoportal.common.rest.InterfaceConstants;
import org.gcube.common.calls.jaxrs.GcubeService;
@ -8,11 +13,6 @@ import org.gcube.common.clients.config.ProxyConfig;
import org.gcube.common.clients.delegates.ProxyDelegate;
import org.w3c.dom.Node;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
public class StatefulMongoConcessioniPlugin extends GeoportalAbstractPlugin<WebTarget, ConcessioniManagerI>{

View File

@ -1,18 +1,23 @@
package org.gcube.application.geoportal.client.plugins;
import lombok.AllArgsConstructor;
import javax.ws.rs.client.WebTarget;
import org.gcube.application.geoportal.client.legacy.ConcessioniManagerI;
import org.gcube.application.geoportal.client.legacy.ConcessioniPlugin;
import org.gcube.application.geoportal.client.legacy.MongoConcessioniPlugin;
import org.gcube.application.geoportal.client.legacy.StatefulMongoConcessioniPlugin;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.rest.*;
import org.gcube.application.geoportal.common.rest.ConcessioniI;
import org.gcube.application.geoportal.common.rest.InterfaceConstants;
import org.gcube.application.geoportal.common.rest.MongoConcessioni;
import org.gcube.application.geoportal.common.rest.Projects;
import org.gcube.application.geoportal.common.rest.UseCaseDescriptorsI;
import org.gcube.common.clients.Plugin;
import org.gcube.common.clients.ProxyBuilder;
import org.gcube.common.clients.ProxyBuilderImpl;
import org.gcube.common.clients.config.ProxyConfig;
import javax.ws.rs.client.WebTarget;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public abstract class GeoportalAbstractPlugin <S, P> implements Plugin<S, P>{

View File

@ -1,11 +1,10 @@
package org.gcube.application.geoportal.client.plugins;
import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
import org.gcube.application.geoportal.client.DefaultDocumentsClient;
import org.gcube.application.geoportal.client.utils.Serialization;
import org.gcube.application.geoportal.common.model.document.Project;
@ -17,10 +16,13 @@ import org.gcube.common.clients.config.ProxyConfig;
import org.gcube.common.clients.delegates.ProxyDelegate;
import org.w3c.dom.Node;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@RequiredArgsConstructor

View File

@ -1,5 +1,10 @@
package org.gcube.application.geoportal.client.plugins;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
import org.gcube.application.geoportal.client.UseCaseDescriptors;
import org.gcube.application.geoportal.common.rest.InterfaceConstants;
import org.gcube.application.geoportal.common.rest.UseCaseDescriptorsI;
@ -9,11 +14,6 @@ import org.gcube.common.clients.config.ProxyConfig;
import org.gcube.common.clients.delegates.ProxyDelegate;
import org.w3c.dom.Node;
import javax.ws.rs.client.WebTarget;
import javax.xml.namespace.QName;
import javax.xml.transform.dom.DOMResult;
import javax.xml.ws.EndpointReference;
public class UCDPlugin extends GeoportalAbstractPlugin<WebTarget, UseCaseDescriptorsI>{
@Override

View File

@ -1,15 +1,22 @@
package org.gcube.application.geoportal.client.utils;
import lombok.extern.slf4j.Slf4j;
import org.gcube.application.geoportal.common.model.legacy.*;
import org.gcube.application.geoportal.common.model.rest.AddSectionToConcessioneRequest;
import org.gcube.application.geoportal.common.rest.MongoConcessioni;
import org.gcube.application.geoportal.common.utils.StorageUtils;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import org.gcube.application.geoportal.common.model.legacy.AbstractRelazione;
import org.gcube.application.geoportal.common.model.legacy.AssociatedContent;
import org.gcube.application.geoportal.common.model.legacy.Concessione;
import org.gcube.application.geoportal.common.model.legacy.LayerConcessione;
import org.gcube.application.geoportal.common.model.legacy.PersistedContent;
import org.gcube.application.geoportal.common.model.legacy.RelazioneScavo;
import org.gcube.application.geoportal.common.model.legacy.WorkspaceContent;
import org.gcube.application.geoportal.common.model.rest.AddSectionToConcessioneRequest;
import org.gcube.application.geoportal.common.rest.MongoConcessioni;
import org.gcube.application.geoportal.common.utils.StorageUtils;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class ConcessioniUtils {

View File

@ -1,15 +1,15 @@
package org.gcube.application.geoportal.client.utils;
import org.apache.commons.io.IOUtils;
import org.bson.Document;
import org.gcube.application.geoportal.common.model.rest.QueryRequest;
import org.gcube.application.geoportal.common.utils.Files;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import org.apache.commons.io.IOUtils;
import org.bson.Document;
import org.gcube.application.geoportal.common.model.rest.QueryRequest;
import org.gcube.application.geoportal.common.utils.Files;
public class Queries {

View File

@ -1,20 +1,27 @@
package org.gcube.application.geoportal.client.utils;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.vdurmont.semver4j.Semver;
import org.bson.Document;
import org.bson.types.ObjectId;
import java.io.IOException;
import java.io.InputStream;
import java.time.format.DateTimeFormatter;
import java.util.Iterator;
import org.bson.Document;
import org.bson.types.ObjectId;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.vdurmont.semver4j.Semver;
public class Serialization {
public static final DateTimeFormatter FULL_FORMATTER=DateTimeFormatter.ofPattern("uuuuMMdd_HH-mm-ss");

View File

@ -11,8 +11,6 @@ public class BasicVreTests extends GCubeTest {
@BeforeClass
public static void setScope(){
assumeTrue(isTestInfrastructureEnabled());
// TokenSetter.set("/pred4s/preprod/preVRE");
// TokenSetter.set("/d4science.research-infrastructures.eu/D4OS/GeoNA-Prototype");
TokenSetter.set(GCubeTest.getContext());
}

View File

@ -52,16 +52,19 @@ public abstract class GenericUseCases extends BasicVreTests{
}
protected Project prepareWithFileSet(Project project) throws FileNotFoundException, InvalidRequestException, RemoteException {
return getClient().registerFileSet(project.getId(), prepareRequest());
}
protected RegisterFileSetRequest prepareRequest() throws FileNotFoundException {
String parentPath = "$.section";
String fieldName = "fileset";
String fieldDefinition = "$.section._children[?(@.fileset)]";
// Prepare request
RegisterFileSetRequest fsRequest = FileSets.
return FileSets.
prepareRequest(new StorageUtils(),
parentPath,fieldName,fieldDefinition, new File(Tests.FOLDER_CONCESSIONI,"pos.shp"));
return getClient().registerFileSet(project.getId(),fsRequest);
}
}

View File

@ -2,12 +2,20 @@ package org.gcube.application.geoportal.clients;
import com.fasterxml.jackson.core.JsonProcessingException;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.bson.Document;
import org.gcube.application.cms.tests.TestDocuments;
import org.gcube.application.cms.tests.Tests;
import org.gcube.application.geoportal.client.utils.Serialization;
import org.gcube.application.geoportal.common.faults.InvalidRequestException;
import org.gcube.application.geoportal.common.model.JSONPathWrapper;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.document.access.Access;
import org.gcube.application.geoportal.common.model.document.access.AccessPolicy;
import org.gcube.application.geoportal.common.model.document.filesets.RegisteredFileSet;
import org.gcube.application.geoportal.common.model.document.relationships.RelationshipNavigationObject;
import org.gcube.application.geoportal.common.model.rest.CreateRelationshipRequest;
import org.gcube.application.geoportal.common.model.rest.DeleteRelationshipRequest;
import org.gcube.application.geoportal.common.model.rest.RegisterFileSetRequest;
import org.gcube.application.geoportal.common.model.rest.StepExecutionRequest;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.Field;
@ -17,6 +25,7 @@ import org.gcube.application.geoportal.common.rest.Projects;
import org.gcube.application.geoportal.common.utils.FileSets;
import org.gcube.application.geoportal.common.utils.Files;
import org.gcube.application.geoportal.common.utils.StorageUtils;
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
import org.junit.Test;
import java.io.File;
@ -24,8 +33,14 @@ import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.charset.Charset;
import java.rmi.RemoteException;
import java.util.Iterator;
public class ProfiledConcessioniTest extends ProfiledDocumentsTest{
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
@Slf4j
public class ProfiledConcessioniTest <M extends Project,C extends Projects<M>> extends GenericUseCases{
@Data
private static class MyClass {
@ -38,13 +53,9 @@ public class ProfiledConcessioniTest extends ProfiledDocumentsTest{
}
public void test(){
UseCaseDescriptor p=null;
HandlerDeclaration h = p.getHandlersMapByID().get("MyID").get(0);
Document doc = h.getConfiguration();
System.out.println(Serialization.convert(doc, MyClass.class));
}
@ -78,11 +89,28 @@ public class ProfiledConcessioniTest extends ProfiledDocumentsTest{
// Set relazione
client.registerFileSet(project.getId(), FileSets.
Access toSetAccess = new Access();
toSetAccess.setPolicy(AccessPolicy.RESTRICTED);
toSetAccess.setLicense("CC0-1.0");
RegisterFileSetRequest request=FileSets.
prepareRequest(new StorageUtils(),
"$.relazioneScavo","fileset",
"$.relazioneScavo."+Field.CHILDREN+"[?(@.fileset)]",
new File(Tests.FOLDER_CONCESSIONI,"relazione.pdf")));
new File(Tests.FOLDER_CONCESSIONI,"relazione.pdf"));
request.setToSetAccess(toSetAccess);
project=client.registerFileSet(project.getId(), request);
String jsonDoc=project.getTheDocument().toJson();
log.info("Registered fileset. Result is {}", jsonDoc);
RegisteredFileSet f= Serialization.convert(new JSONPathWrapper(jsonDoc).getByPath(
request.getParentPath()+"."+request.getFieldName()).get(0),RegisteredFileSet.class);
assertEquals(Serialization.convert(f.getAccess(),Access.class).getPolicy(),toSetAccess.getPolicy());
assertEquals(Serialization.convert(f.getAccess(),Access.class).getLicense(),toSetAccess.getLicense());
// Set Abstract
@ -95,12 +123,19 @@ public class ProfiledConcessioniTest extends ProfiledDocumentsTest{
// Set pos
client.registerFileSet(project.getId(), FileSets.
RegisterFileSetRequest req = FileSets.
prepareRequest(new StorageUtils(),
"$.posizionamentoScavo","fileset",
"$.posizionamentoScavo."+Field.CHILDREN+"[?(@.fileset)]",
new File(Tests.FOLDER_CONCESSIONI,"pos.shp"),
new File(Tests.FOLDER_CONCESSIONI,"pos.shx")));
new File(Tests.FOLDER_CONCESSIONI,"pos.shx"),
new File(Tests.FOLDER_CONCESSIONI,"pos.shp"));
String toTestStrangeName = "e. gna_topografia_timponedellamotta";
//String toTestStrangeName = "1. my: Strange name *pos";
req.getStreams().forEach(t ->t.setFilename(t.getFilename().replace("pos",toTestStrangeName)));
client.registerFileSet(project.getId(), req);
// Add 2 imgs
@ -126,4 +161,41 @@ public class ProfiledConcessioniTest extends ProfiledDocumentsTest{
return client.getById(project.getId());
}
@Test
public void testRelationships() throws Exception{
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
Projects<M> client = (Projects<M>) getClient();
Project source = client.createNew(new Document().append("field","value"));
Project target = client.createNew(new Document().append("field2","value"));
String relId="follows";
Project linkedSource = client.setRelation(
new CreateRelationshipRequest(source.getId(),relId,
target.getId(), null));
assertTrue(linkedSource.getRelationships()!=null);
assertTrue(!linkedSource.getRelationships().isEmpty());
assertTrue(linkedSource.getRelationships().get(0).getRelationshipName().equals(relId));
assertTrue(linkedSource.getRelationships().get(0).getTargetID().equals(target.getId()));
assertTrue(linkedSource.getRelationships().get(0).getTargetUCD().equals(target.getProfileID()));
Iterator<RelationshipNavigationObject> it = client.getRelationshipChain(source.getId(),relId,true);
System.out.println("Scanning rel ..");
it.forEachRemaining(r -> {
System.out.println(r.getTarget().getId());
System.out.println("Children size : "+r.getChildren().size());
});
Project unLinkedSource = client.deleteRelation(
new DeleteRelationshipRequest(source.getId(),relId,
target.getId(),null));
assertTrue(unLinkedSource.getRelationships()==null || unLinkedSource.getRelationships().isEmpty());
}
}

View File

@ -3,42 +3,49 @@ package org.gcube.application.geoportal.clients;
import com.fasterxml.jackson.core.JsonProcessingException;
import lombok.extern.slf4j.Slf4j;
import org.bson.Document;
import org.gcube.application.cms.tests.Tests;
import org.gcube.application.geoportal.client.utils.Serialization;
import org.gcube.application.geoportal.common.faults.InvalidRequestException;
import org.gcube.application.geoportal.common.model.JSONPathWrapper;
import org.gcube.application.geoportal.common.model.configuration.Configuration;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.document.access.Access;
import org.gcube.application.geoportal.common.model.document.access.AccessPolicy;
import org.gcube.application.geoportal.common.model.document.filesets.RegisteredFileSet;
import org.gcube.application.geoportal.common.model.document.relationships.RelationshipNavigationObject;
import org.gcube.application.geoportal.common.model.rest.CreateRelationshipRequest;
import org.gcube.application.geoportal.common.model.rest.DeleteRelationshipRequest;
import org.gcube.application.geoportal.common.model.rest.QueryRequest;
import org.gcube.application.geoportal.common.model.rest.RegisterFileSetRequest;
import org.gcube.application.geoportal.common.rest.Projects;
import org.gcube.application.geoportal.common.utils.FileSets;
import org.gcube.application.geoportal.common.utils.StorageUtils;
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
import org.junit.Test;
import java.io.File;
import java.io.FileNotFoundException;
import java.rmi.RemoteException;
import java.time.LocalDateTime;
import java.util.Iterator;
import java.util.concurrent.atomic.AtomicLong;
import static org.gcube.application.geoportal.client.utils.Serialization.write;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
@Slf4j
public class ProfiledDocumentsTest<M extends Project,C extends Projects<M>> extends GenericUseCases {
// protected String getProfileID(){return "basic";}
// protected C getClient(){
// return (C) customModel(getProfileID(), Project.class, DefaultDocumentsClient.class).build();
// }
@Test
public void registerNew() throws RemoteException, JsonProcessingException {
public void registerNew() throws RemoteException, JsonProcessingException, FileNotFoundException, InvalidRequestException {
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
Projects<M> client = (Projects<M>) getClient();
Document theDoc= Document.parse("{\n" +
"\"posizionamentoScavo\" :{\n" +
"\"section\" :{\n" +
"\t\"titolo\" : \"mio titolo\"}}");
theDoc.put("startTime", LocalDateTime.now());
@ -46,6 +53,39 @@ public class ProfiledDocumentsTest<M extends Project,C extends Projects<M>> exte
Project p =client.createNew(theDoc);
log.debug("Registered project (AS JSON) : {}", write(p));
}
@Test
public void testAccess() throws FileNotFoundException, RemoteException, InvalidRequestException, JsonProcessingException {
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
Projects<M> client = (Projects<M>) getClient();
Document theDoc= Document.parse("{\n" +
"\"section\" :{\n" +
"\t\"titolo\" : \"mio titolo\"}}");
theDoc.put("startTime", LocalDateTime.now());
Project p =client.createNew(theDoc);
RegisterFileSetRequest fsRequest = prepareRequest();
Access access = new Access();
access.setLicense("CC0-1.0");
access.setPolicy(AccessPolicy.RESTRICTED);
fsRequest.setToSetAccess(access);
p=client.registerFileSet(p.getId(),fsRequest);
log.info("Registered fileset. Result is {}", Serialization.write(p));
RegisteredFileSet f= Serialization.convert(new JSONPathWrapper(p.getTheDocument().toJson()).
getByPath(fsRequest.getParentPath()+"."+fsRequest.getFieldName()).get(0),RegisteredFileSet.class);
assertEquals(Serialization.convert(f.getAccess(),Access.class).getPolicy(),AccessPolicy.RESTRICTED);
}
@Test
@ -86,41 +126,5 @@ public class ProfiledDocumentsTest<M extends Project,C extends Projects<M>> exte
});
}
@Test
public void testRelationships() throws Exception{
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
Projects<M> client = (Projects<M>) getClient();
Project source = client.createNew(new Document().append("field","value"));
Project target = client.createNew(new Document().append("field2","value"));
String relId="follows";
Project linkedSource = client.setRelation(
new CreateRelationshipRequest(source.getId(),relId,
target.getId(), null));
assertTrue(linkedSource.getRelationships()!=null);
assertTrue(!linkedSource.getRelationships().isEmpty());
assertTrue(linkedSource.getRelationships().get(0).getRelationshipName().equals(relId));
assertTrue(linkedSource.getRelationships().get(0).getTargetID().equals(target.getId()));
assertTrue(linkedSource.getRelationships().get(0).getTargetUCD().equals(target.getProfileID()));
Iterator<RelationshipNavigationObject> it = client.getRelationshipChain(source.getId(),relId,true);
System.out.println("Scanning rel ..");
it.forEachRemaining(r -> {
System.out.println(r.getTarget().getId());
System.out.println("Children size : "+r.getChildren().size());
});
Project unLinkedSource = client.deleteRelation(
new DeleteRelationshipRequest(source.getId(),relId,
target.getId(),null));
assertTrue(unLinkedSource.getRelationships()==null || unLinkedSource.getRelationships().isEmpty());
}
}

View File

@ -2,15 +2,23 @@ package org.gcube.application.geoportal.clients;
import org.bson.Document;
import org.gcube.application.cms.tests.TokenSetter;
import org.gcube.application.geoportal.client.utils.Serialization;
import org.gcube.application.geoportal.common.model.document.accounting.User;
import org.gcube.application.geoportal.common.model.rest.QueryRequest;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.DataAccessPolicy;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
import org.gcube.application.geoportal.common.rest.UseCaseDescriptorsI;
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.concurrent.atomic.AtomicLong;
import static org.gcube.application.geoportal.client.plugins.GeoportalAbstractPlugin.useCaseDescriptors;
import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeTrue;
public class UCDTests{
@ -26,6 +34,7 @@ public class UCDTests{
@Test
public void query() throws Exception {
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
UseCaseDescriptorsI client =getClient();
QueryRequest request = new QueryRequest();
// All
@ -40,6 +49,7 @@ public class UCDTests{
@Test
public void getByIdAll() throws Exception {
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
UseCaseDescriptorsI client =getClient();
QueryRequest request = new QueryRequest();
@ -57,8 +67,26 @@ public class UCDTests{
@Test
public void getById() throws Exception {
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
UseCaseDescriptorsI client =getClient();
System.out.println(client.getById("profiledConcessioni"));
}
@Test
public void checkPolicies() throws Exception {
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
UseCaseDescriptorsI client =getClient();
UseCaseDescriptor ucd = client.getById("profiledConcessioni");
System.out.println(Serialization.write(ucd));
User u = new User();
u.setRoles(new HashSet<>());
u.getRoles().addAll(Arrays.asList("Members","Data-Manager"));
DataAccessPolicy p = ucd.getMatching(u);
System.out.println("Evaluated policy : "+Serialization.write(p));
assertEquals(p.getPolicy().getRead(), DataAccessPolicy.Policy.Type.any);
assertEquals(p.getPolicy().getWrite(), DataAccessPolicy.Policy.Type.any);
}
}

View File

@ -1,7 +1,17 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for org.gcube.application.geoportal-common
## [v1.0.13] - 2023-09-06
- Using parent range version [#25572]
## [v1.0.12] - 2023-05-11
- Integrated the PATCH method [#24985]
## [v1.0.11] - 2023-01-10
- Pom updates
## [v1.0.10] - 2022-12-07
- Pom updates
# [v1.0.9] - 2022-01-17
- Minor fixes in model
- Schema and jsonPath support
@ -47,4 +57,6 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Model update
## [v1.0.0] - 2020-11-11
- First release
- First release
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -1,14 +1,23 @@
GeoPortal - Common
gCube CMS Suite : GeoPortal Common
--------------------------------------------------
GeoPortal - Common is the java library containing basic classes (e.g. models) of gCube GeoPortal.
This module contains the definition of the interface expose by geoportal-service.
It contains both the methods, the constants, the model shared by service and clients (main classes are Project and UseCaseDescriptor).
It also provides the following utility classes :
- JSONPathWrapper : for JSON path parsing, built on top of com.jayway.jsonpath.json-path (https://github.com/json-path/JsonPath).
- FileSets : builder for FileSetRegistrationRequests
- StorageUtils : interface with gCube Storage
- ISUtils : Query to gCube IS
## Built with
* [Maven](https://maven.apache.org/) - Dependency Management
## Documentation
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
Documentation can be found [here](https://gcube.wiki.gcube-system.org/gcube/GeoPortal).
## Change log

View File

@ -3,16 +3,16 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>geoportal-common</artifactId>
<version>1.0.9</version>
<version>1.0.13</version>
<name>Geoportal Common</name>
<parent>
<groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId>
<version>1.0.2</version>
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
</parent>
<properties>
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
<sis.version>1.0</sis.version>

View File

@ -1,19 +1,25 @@
package org.gcube.application.geoportal.common.model;
import com.jayway.jsonpath.*;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.gcube.application.geoportal.common.JSONSerializationProvider;
import org.reflections.Reflections;
import org.reflections.util.ConfigurationBuilder;
import org.reflections.util.FilterBuilder;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.gcube.application.geoportal.common.JSONSerializationProvider;
import org.reflections.Reflections;
import org.reflections.util.ConfigurationBuilder;
import org.reflections.util.FilterBuilder;
import com.jayway.jsonpath.Configuration;
import com.jayway.jsonpath.DocumentContext;
import com.jayway.jsonpath.JsonPath;
import com.jayway.jsonpath.Option;
import com.jayway.jsonpath.TypeRef;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class JSONPathWrapper {

View File

@ -1,8 +1,9 @@
package org.gcube.application.geoportal.common.model.configuration;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.bson.Document;
import com.fasterxml.jackson.annotation.JsonIgnore;
public class Archive extends Document {
public static final String TYPE = "_type";

View File

@ -1,16 +1,18 @@
package org.gcube.application.geoportal.common.model.configuration;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.xml.bind.annotation.XmlRootElement;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@XmlRootElement
@Data
@AllArgsConstructor

View File

@ -1,8 +1,9 @@
package org.gcube.application.geoportal.common.model.configuration;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.bson.Document;
import com.fasterxml.jackson.annotation.JsonIgnore;
public class Index extends Document {
public static class KnownTypes{

Some files were not shown because too many files have changed in this diff Show More