Compare commits

..

674 Commits

Author SHA1 Message Date
Francesco Mangiacrapa 6a709a3c38 Merge pull request 'event_manager' (#18) from event_manager into master
Reviewed-on: #18
2024-06-28 16:55:01 +02:00
Francesco Mangiacrapa 37f84a915a merged with `event_manager` branch, see
#18
2024-06-28 16:54:36 +02:00
Francesco Mangiacrapa b5d75e8f6e updated CHANGELOG 2024-06-28 16:44:08 +02:00
Francesco Mangiacrapa 0ab8ef873f updated CHANGELOG 2024-06-28 16:42:33 +02:00
Francesco Mangiacrapa 983960cb0c updated README 2024-06-28 12:37:01 +02:00
Francesco Mangiacrapa ef15ab10c4 updated README 2024-06-28 12:24:48 +02:00
Francesco Mangiacrapa 442382ab69 updated README 2024-06-28 12:23:27 +02:00
Francesco Mangiacrapa ef2d2d45dc updated README 2024-06-28 12:17:39 +02:00
Francesco Mangiacrapa b5f9184195 added comment to exclusion 2024-06-28 11:15:06 +02:00
Francesco Mangiacrapa 0d93029b24 Excluding `freemaker` depenpency, see
https://support.d4science.org/issues/26454#note-6
2024-06-28 11:12:53 +02:00
Francesco Mangiacrapa 207697b551 Updated README 2024-06-28 10:03:29 +02:00
Francesco Mangiacrapa ab7dc08638 added Catalogue-Binding-Plugin config 2024-06-28 09:55:37 +02:00
Francesco Mangiacrapa 5d0304a989 Updated the template 2024-06-26 15:18:51 +02:00
Francesco Mangiacrapa daf6f65f48 First release, implemented the plugin [#26454] 2024-06-26 15:17:54 +02:00
Francesco Mangiacrapa 987dc4f378 new version of the template 2024-06-24 14:16:03 +02:00
Francesco Mangiacrapa 53a60b110e in progress on creating template #26454 2024-06-21 18:23:16 +02:00
Francesco Mangiacrapa 21dd5fff1c template updated 2024-06-21 15:32:28 +02:00
Francesco Mangiacrapa e0c9513f36 updated the template 2024-06-20 18:15:41 +02:00
Francesco Mangiacrapa 39859d03d1 updated the template 2024-06-20 18:12:03 +02:00
Francesco Mangiacrapa ae801a9912 new versione of the template 2024-06-20 18:04:53 +02:00
Francesco Mangiacrapa 494e5644c8 updated the README 2024-06-20 16:15:39 +02:00
Francesco Mangiacrapa 10e7eca4ca in progress #26454 2024-06-20 16:04:03 +02:00
Francesco Mangiacrapa 3d9b5ae9d1 updated README 2024-06-20 15:09:50 +02:00
Francesco Mangiacrapa 60814532d5 in progress.. 2024-06-20 12:14:14 +02:00
Francesco Mangiacrapa 5bd0e00e79 formatted 2024-06-20 11:58:12 +02:00
Francesco Mangiacrapa c475532f21 in progress #26454 2024-06-20 11:35:05 +02:00
Francesco Mangiacrapa ca3b5c9355 updated the template 2024-06-19 17:04:25 +02:00
Francesco Mangiacrapa ab34cc3a0c implementing the plugin 2024-06-19 15:57:12 +02:00
Francesco Mangiacrapa 8ef0a31e31 updated comment 2024-06-19 15:22:46 +02:00
Francesco Mangiacrapa 4359b13ae1 starting #26454 2024-06-19 15:21:56 +02:00
Francesco Mangiacrapa c0ab40afea Mapping "Immagini Rappresentative" done 2024-06-19 09:39:33 +02:00
Francesco Mangiacrapa fca972e68c implementing test code for mapping d4gna project to catalogue item 2024-06-18 16:47:23 +02:00
Francesco Mangiacrapa 0ae2c3895d implementing test code 2024-06-18 15:11:13 +02:00
Francesco Mangiacrapa 7e416cd8c7 updated CHANGELOG 2024-05-16 16:03:55 +02:00
Francesco Mangiacrapa 97ca7743ff updated changelog 2024-05-16 15:45:33 +02:00
Francesco Mangiacrapa d57b1530d0 fixed error message 2024-05-10 15:58:01 +02:00
Francesco Mangiacrapa e11a9a49dc added getOrDefault value for IGNORE_ERRORS 2024-05-10 11:52:36 +02:00
Francesco Mangiacrapa 9a563d578e Updated onDeleteDocument and dematerialize methods. Managed
`ignore_errors` parameter
2024-05-10 11:39:26 +02:00
Francesco Mangiacrapa 47331ea209 Added hidden path for reserved operations 2024-05-10 11:08:13 +02:00
Francesco Mangiacrapa 2453a56f19 Added and managed ignore_errors to delete method 2024-05-10 10:54:03 +02:00
Francesco Mangiacrapa 5a4d79b7d6 added and managed ignore_erros on deleteLayers 2024-05-10 10:52:19 +02:00
Francesco Mangiacrapa 6bc860470a Added RestCoverage to manage raster layers 2024-05-09 16:05:03 +02:00
Francesco Mangiacrapa fd1d1bf151 updated id as `test_basemodel` 2024-05-09 15:20:12 +02:00
Francesco Mangiacrapa a6ee0341a5 Created Test_BaseModel.json 2024-05-09 11:31:55 +02:00
Francesco Mangiacrapa faa01e40da Using new publishGeoTIFF method (not deprecated) 2024-05-09 11:31:33 +02:00
Francesco Mangiacrapa 2dd01c0c82 merged with PRODUCTION version 2024-05-09 11:08:30 +02:00
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 f62a95ea73 Added header and footer images for pdf export facility 2024-05-08 14:22:12 +02:00
Francesco Mangiacrapa 15c4e1501f fixed setCalledMethod paths 2024-05-07 16:20:53 +02:00
Francesco Mangiacrapa fdead3cb7d Updated setCalledMethod #26707 2024-05-07 15:36:22 +02:00
Francesco Mangiacrapa b32f2d1680 Fixed some method messages in the setCalledMethod 2024-05-07 14:40:42 +02:00
Francesco Mangiacrapa a37f793c38 updated some methods in the CalledMethod 2024-05-07 14:10:29 +02:00
Francesco Mangiacrapa f9db29ac07 added CalledMethodHandler [#26707] 2024-05-07 12:25:13 +02:00
Francesco Mangiacrapa 76710be619 - Rewritten calledMethod to allow aggregation [#26707] 2024-05-07 12:24:23 +02:00
Francesco Mangiacrapa 677d455cd9 updated Notification plugin config 2024-05-07 11:17:39 +02:00
Francesco Mangiacrapa 8382f74dcf Integrated with ExportAsPDF config 2024-05-07 11:11:15 +02:00
Francesco Mangiacrapa e3fff1b505 updated message 2024-05-07 09:19:13 +02:00
Francesco Mangiacrapa edd33a5478 Updated README 2024-05-03 10:51:34 +02:00
Francesco Mangiacrapa 44fb5b6360 added `authorization-utils-range` dependency 2024-04-18 11:43:57 +02:00
Francesco Mangiacrapa 5917c08307 updated README 2024-04-17 16:33:12 +02:00
Francesco Mangiacrapa 08592e03e9 updated 2024-04-17 16:19:07 +02:00
Francesco Mangiacrapa 41d37054b6 updated 2024-04-17 16:17:18 +02:00
Francesco Mangiacrapa b567213366 removed unicode character 2024-04-17 16:08:35 +02:00
Francesco Mangiacrapa f28685e9fb updated Concessioni.json test-data 2024-04-17 15:54:19 +02:00
Francesco Mangiacrapa 93576e5b19 updated ItemObserverd. Completed the Notification-Plugin 2024-04-17 15:53:45 +02:00
Francesco Mangiacrapa 6202bb71fe added Notifications_Messages ita version 2024-04-17 15:41:33 +02:00
Francesco Mangiacrapa 8bf15f84c1 updated messages. Added ita version 2024-04-17 15:40:51 +02:00
Francesco Mangiacrapa b93263bab6 renamed to @${user_caller} 2024-04-17 15:26:49 +02:00
Francesco Mangiacrapa cbc63b7e9e updated message 2024-04-17 15:23:56 +02:00
Francesco Mangiacrapa acf307125a renamed JUnit Test class 2024-04-16 17:44:25 +02:00
Francesco Mangiacrapa 0003c9a12c Integrated notifications-plugins config in the Concessioni UCD of
`devVRE`, see #26453
2024-04-16 11:10:55 +02:00
Francesco Mangiacrapa 08cb6eb54e removed some logs 2024-04-16 10:54:16 +02:00
Francesco Mangiacrapa e6fac1f6e1 commented ckan-plugin 2024-04-15 17:48:10 +02:00
Francesco Mangiacrapa 62a4a78d4f improved check events subscribed in the config 2024-04-15 17:46:49 +02:00
Francesco Mangiacrapa 0417e471ac updated toString ItemObserved 2024-04-15 17:01:56 +02:00
Francesco Mangiacrapa a8b931d9ed updated notify to social. Using social client 2.0 2024-04-15 16:39:35 +02:00
Francesco Mangiacrapa 15ad448778 updated test.commons. Updated user to user_caller into Messages 2024-04-15 14:56:50 +02:00
Francesco Mangiacrapa 47670fdac7 renamed StepExecutionRequest to PerformStepRequest 2024-04-15 12:30:49 +02:00
Francesco Mangiacrapa e8346fa8e3 renamed StepExecutionRequest to PerformStepRequest 2024-04-15 12:27:52 +02:00
Francesco Mangiacrapa 40fb99d477 updated imports 2024-04-15 12:16:16 +02:00
Francesco Mangiacrapa 1031fc5a1a updated geoportal-common at [1.1.0-SNAPSHOT,2.0.0-SNAPSHOT) 2024-04-15 11:54:00 +02:00
Francesco Mangiacrapa e39a3e1380 removed StepExecutionInterface 2024-04-15 11:45:06 +02:00
Francesco Mangiacrapa b3d89b7f09 Updated the ItemObserved 2024-04-15 11:32:19 +02:00
Francesco Mangiacrapa 57d4ad2c51 setUseCaseDescriptor in the ItemObserved 2024-04-15 11:28:51 +02:00
Francesco Mangiacrapa cab71df0d2 added message as optional field 2024-04-15 11:26:16 +02:00
Francesco Mangiacrapa 78cd17117c commented setOptionalMessage 2024-04-12 16:04:05 +02:00
Francesco Mangiacrapa ce2aaba503 added debug log 2024-04-12 15:49:29 +02:00
Francesco Mangiacrapa c8785efb0c added interface 2024-04-12 15:37:02 +02:00
Francesco Mangiacrapa 2f6c1d8ad6 updated StepExecutionRequest 2024-04-12 15:33:42 +02:00
Francesco Mangiacrapa 1180fbd8be commented JUnit Tests 2024-04-11 17:21:24 +02:00
Francesco Mangiacrapa 308b016852 added explicit method getMessage() 2024-04-11 17:04:10 +02:00
Francesco Mangiacrapa 18b7b70aaf added more logs 2024-04-11 15:34:40 +02:00
Francesco Mangiacrapa 6205e125d8 toString fixed 2024-04-11 14:38:45 +02:00
Francesco Mangiacrapa a32e90757f updated messages 2024-04-11 11:18:56 +02:00
Francesco Mangiacrapa 732cc92702 Refactored tests 2024-04-11 09:43:09 +02:00
Francesco Mangiacrapa 87570b3e8c removed optionalMessage from performStep interface 2024-04-10 17:53:36 +02:00
Francesco Mangiacrapa 3344c9c024 updated changelog 2024-04-10 16:35:59 +02:00
Francesco Mangiacrapa 2ba9907cd1 added class 2024-04-10 15:21:08 +02:00
Francesco Mangiacrapa 75a964ad09 implemented first version of the notification plugin 2024-04-10 15:20:53 +02:00
Francesco Mangiacrapa 70ec76748e updated the messages 2024-04-10 15:01:11 +02:00
Francesco Mangiacrapa 8c6d7425a5 updated the messages 2024-04-10 14:32:29 +02:00
Francesco Mangiacrapa a3d3470db4 revisited messages 2024-04-10 12:37:32 +02:00
Francesco Mangiacrapa 8f72db0391 added setOptionalMessage and optional Document 2024-04-09 16:10:36 +02:00
Francesco Mangiacrapa 33fcdfef3c updated message 2024-04-09 11:58:21 +02:00
Francesco Mangiacrapa 502d9f0540 added application links as html 2024-04-09 11:27:27 +02:00
Francesco Mangiacrapa 79efab2bd7 added html to application link 2024-04-09 11:06:03 +02:00
Francesco Mangiacrapa 2214f2db27 updated notifications 2024-04-09 11:03:07 +02:00
Francesco Mangiacrapa 22a5a2be49 integrated setOptionalMessage() method 2024-04-09 09:22:49 +02:00
Francesco Mangiacrapa 90e9bc797b - Added optional message when performing lifecycle step [#27192] 2024-04-08 17:34:44 +02:00
Francesco Mangiacrapa cc78007607 updated component version at 1.1.0{-SNAPSHOT} 2024-04-08 17:21:03 +02:00
Francesco Mangiacrapa fdabbe78d8 - Added optional message to performStep method [#27192] 2024-04-08 17:19:37 +02:00
Francesco Mangiacrapa ede76d625b updated notifications management 2024-04-08 12:42:21 +02:00
Francesco Mangiacrapa b502ad0c2d in progress notification plugin 2024-03-26 10:28:21 +01:00
Francesco Mangiacrapa b422fc8b56 updated the messages 2024-03-26 09:21:25 +01:00
Francesco Mangiacrapa 775d623134 updated notifications properties 2024-03-25 15:52:28 +01:00
Francesco Mangiacrapa eb95248699 updated 2024-03-25 12:02:35 +01:00
Francesco Mangiacrapa 5e7ed04ff6 in progress 2024-03-25 12:01:51 +01:00
Francesco Mangiacrapa 876c6d3e91 updated README with LC screenshots 2024-03-25 11:51:49 +01:00
Francesco Mangiacrapa 45164a02da add mapping to CatalogueEvent 2024-03-25 11:16:40 +01:00
Francesco Mangiacrapa 27126d1c9f starting mapping to catalogue 2024-03-22 17:04:33 +01:00
Francesco Mangiacrapa 894748fb53 Updated visibility of phases and steps 2024-03-22 16:54:06 +01:00
Francesco Mangiacrapa d8838a176b in progress 2024-03-22 16:26:40 +01:00
Francesco Mangiacrapa 3913019df3 updated send notification checks 2024-03-22 16:22:22 +01:00
Francesco Mangiacrapa bab16ad14d updated ItemObserved 2024-03-22 15:43:06 +01:00
Francesco Mangiacrapa 32d3f2fbb3 updated the ItemObserved 2024-03-22 15:41:57 +01:00
Francesco Mangiacrapa 122fd7c882 string replace test 2024-03-21 15:54:09 +01:00
Francesco Mangiacrapa 01bad9d30f in progress 2024-03-21 15:53:54 +01:00
Francesco Mangiacrapa 1e50bd74ca ItemObserved updated 2024-03-21 15:53:09 +01:00
Francesco Mangiacrapa c5b031f6c8 pushing notifications message files 2024-03-21 09:33:21 +01:00
Francesco Mangiacrapa c44421fc32 updated placeholders 2024-03-20 17:36:01 +01:00
Francesco Mangiacrapa e08c03cd04 in progress 2024-03-20 17:04:43 +01:00
Francesco Mangiacrapa 6c26aa65cc in progress 2024-03-20 17:03:04 +01:00
Francesco Mangiacrapa 2dbebaf648 Updated the README 2024-02-28 16:15:38 +01:00
Francesco Mangiacrapa 60cb48c098 Updated the README 2024-02-28 16:12:52 +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 43bdff46e1 updated the concessioni model 2024-02-06 16:55:16 +01:00
Francesco Mangiacrapa 0b416cfcda added convertAcceptStringAsNull 2024-02-06 16:54:45 +01:00
Francesco Mangiacrapa a45afc6424 in progress 2024-02-01 16:28:03 +01:00
Francesco Mangiacrapa a0c77b4e68 in progess 2024-02-01 16:00:01 +01:00
Francesco Mangiacrapa a2c3f44dcd in progess on defining the config 2024-02-01 12:22:34 +01:00
Francesco Mangiacrapa 49f7b248fb in progress on defining the configuration 2024-01-31 18:09:38 +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 fb5b527a13 added "Catalogue-Binding-Plugin" config 2024-01-19 18:27:25 +01:00
Francesco Mangiacrapa 0d957c35a6 aggiornato UCD, vedi #26456 2024-01-19 18:25:14 +01:00
Francesco Mangiacrapa 6cce1399a3 updated README 2024-01-19 17:39:36 +01:00
Francesco Mangiacrapa 81531c2ab3 updated doAction log 2024-01-19 15:30:13 +01:00
Francesco Mangiacrapa e724da933e updated plugin 2024-01-19 14:36:43 +01:00
Francesco Mangiacrapa bcb4b5d6e0 updated artifactId at 'catalogue-binding-plugins' 2024-01-19 14:13:03 +01:00
Francesco Mangiacrapa cccad98c12 added notification-plugin in the module 2024-01-19 13:06:37 +01:00
Francesco Mangiacrapa b2d48aa780 Added EventListenerPluginInterface 2024-01-19 11:12:57 +01:00
Francesco Mangiacrapa 94bb1b9315 updated logs 2024-01-18 16:57:17 +01:00
Francesco Mangiacrapa 82e8505bdc reviseted the classes 2024-01-18 16:16:12 +01:00
Francesco Mangiacrapa 768cfcd523 refactored package to 'org.gcube.application.cms' 2024-01-18 15:58:35 +01:00
Francesco Mangiacrapa c9bd636ab2 renamed the plugin 2024-01-17 17:57:12 +01:00
Francesco Mangiacrapa ce790387cc fixed compilation error 2024-01-17 17:37:04 +01:00
Francesco Mangiacrapa 0415d41c10 added catalogue-binding-plugin 2024-01-17 17:34:55 +01:00
Francesco Mangiacrapa b5126cb189 created prototype of the plugin and configured it 2024-01-17 17:32:34 +01:00
Francesco Mangiacrapa 413f6516d9 Component refactored. Changed Event Manager 2024-01-17 16:09:48 +01:00
Francesco Mangiacrapa 01db0ae870 added logs to trace notified events 2024-01-16 14:34:46 +01:00
Francesco Mangiacrapa 669a5a913d new enhancements #26320 2024-01-12 14:42:12 +01:00
Francesco Mangiacrapa 261438b509 fixed quota_min 2024-01-11 17:13:05 +01:00
Francesco Mangiacrapa 79ad6a3476 merged with master, fixed quota_min 2024-01-11 17:10:35 +01:00
Francesco Mangiacrapa 77e4e3dafd fixed quota_min 2024-01-11 17:09:45 +01:00
Francesco Mangiacrapa 9fac05e248 fixed quota_min 2024-01-11 17:08:27 +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 70653b6d5c added regex test 2024-01-10 17:35:15 +01:00
Francesco Mangiacrapa edbb165851 Updated the UCD according to new GNA data model, see #26350 2024-01-10 15:13:06 +01:00
Francesco Mangiacrapa daaef8328f added 'apply_regex' rule, see at #26322#note-2 2024-01-09 12:49:44 +01:00
Francesco Mangiacrapa c8a75ed10b Updated the Concessioni profile according to new data model, see #26350 2024-01-09 12:18:55 +01:00
Francesco Mangiacrapa 1ebb7a3aef updated profiledConcessioni with "apply_regex" config 2023-12-21 16:40:58 +01:00
Francesco Mangiacrapa b1e4f70afb Added apply regex business logic [#26322] 2023-12-21 16:38:49 +01:00
Francesco Mangiacrapa 07d74c68e4 moved plugin-framework-version at 1.0.5-SNAPSHOT 2023-12-21 12:26:03 +01:00
Francesco Mangiacrapa c7968a50b0 Passed to 1.2.0-SNAPSHOT 2023-12-21 12:21:13 +01:00
Francesco Mangiacrapa 6a4babd6ea Integrated EventManager and notifies 2023-12-21 10:49:37 +01:00
Francesco Mangiacrapa a39f8cc8d6 Added EventManager 2023-12-21 10:48:06 +01:00
Francesco Mangiacrapa eee0e50061 created the project 2023-12-21 10:42:56 +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
Fabio Sinibaldi 3fb1b22ff5 Pushes projects up to Published 2022-11-30 17:47:59 +01:00
Fabio Sinibaldi 8eeb5dee1e Fixes #24226 (unescaped ws name) 2022-11-30 16:32:51 +01:00
Fabio Sinibaldi ec6b347f90 Fixes #24213 (case-sensitive file extension) 2022-11-29 11:41:40 +01:00
Fabio Sinibaldi fc638de33c Testing 2022-11-23 14:31:36 +01:00
Fabio Sinibaldi cdff7547a5 Testing 2022-11-22 14:58:17 +01:00
Fabio Sinibaldi 9954a653f7 Updated UCD 2022-11-22 14:58:01 +01:00
Fabio Sinibaldi e58c3009e9 Fix recursive scan 2022-11-22 14:57:44 +01:00
Fabio Sinibaldi 633cf8ee5c Docs 2022-11-21 20:51:21 +01:00
Fabio Sinibaldi a7001b8100 Utils 2022-11-21 20:51:15 +01:00
Fabio Sinibaldi 235b47f595 Unregistered docs servlet 2022-11-18 15:20:40 +01:00
Fabio Sinibaldi deec4a584c Fixed Documentation management 2022-11-18 14:28:15 +01:00
Fabio Sinibaldi b1515d1c33 Documentation 2022-11-17 18:34:59 +01:00
Fabio Sinibaldi b1743a09c8 Fix doc path 2022-11-17 18:34:44 +01:00
Fabio Sinibaldi 057750671e Removed SNAPSHOT dependencies 2022-11-16 18:04:08 +01:00
Fabio Sinibaldi 703ef65f66 Merge branch '#22686'
# Conflicts:
#	geoportal-client/CHANGELOG.md
#	geoportal-client/pom.xml
2022-11-16 16:52:12 +01:00
Fabio Sinibaldi a7fc4ab1f3 Release 1.0.2 2022-11-16 16:01:20 +01:00
Fabio Sinibaldi eec11e5d0b Docs 2022-11-16 11:24:38 +01:00
Fabio Sinibaldi c89f8a66c4 Fix delete relation 2022-11-11 12:04:55 +01:00
Fabio Sinibaldi 237014c3d0 Docs 2022-11-11 12:04:32 +01:00
Fabio Sinibaldi ffcfc2f6e3 Testing 2022-11-09 18:36:03 +01:00
Fabio Sinibaldi 0a653f2eda Fixed centroid visibility evaluation 2022-11-09 18:35:44 +01:00
Fabio Sinibaldi 5442e727df Refactored tests 2022-11-09 16:55:39 +01:00
Fabio Sinibaldi 936c2f92c5 Testing 2022-11-04 18:02:17 +01:00
Fabio Sinibaldi 3c9be903cc Bugfix hide and display ids 2022-11-04 17:48:53 +01:00
Fabio Sinibaldi 6e49b095e4 WS Utils 2022-11-04 17:48:29 +01:00
Fabio Sinibaldi 44b0d027e9 Update UCD 2022-11-04 17:48:17 +01:00
Fabio Sinibaldi 0ec65d1d30 Fix get Folder 2022-11-04 17:48:04 +01:00
Fabio Sinibaldi 222b337308 Fixing fill insert stmtm 2022-11-04 16:11:39 +01:00
Fabio Sinibaldi 73618a02bd Fixing 2022-10-27 18:03:05 +02:00
Fabio Sinibaldi 1f6512f105 Fixes error management 2022-10-27 17:31:30 +02:00
Fabio Sinibaldi 8b25642459 Support to Display Flag and CQL 2022-10-27 17:18:47 +02:00
Fabio Sinibaldi 6d67280f7c Expose deep flag 2022-10-27 17:18:33 +02:00
Fabio Sinibaldi aacf723ba9 protected info 2022-10-27 17:18:05 +02:00
Fabio Sinibaldi 1d955fbcfa Manage display last of chain 2022-10-27 17:17:44 +02:00
Fabio Sinibaldi b811abcb54 Expose deep flag 2022-10-27 16:14:45 +02:00
Fabio Sinibaldi 40597d5769 Support to Display Flag and CQL 2022-10-27 16:04:13 +02:00
Fabio Sinibaldi 0efb397af9 Project Access Provider 2022-10-27 16:03:38 +02:00
Fabio Sinibaldi b8a0e8db4c Set relationships 2022-10-26 18:01:09 +02:00
Fabio Sinibaldi 6244694f0d Use prod legacy IS coordinates 2022-10-26 18:00:50 +02:00
Fabio Sinibaldi f65edeea4e Handler config update 2022-10-26 18:00:24 +02:00
Fabio Sinibaldi 49120cf400 Use jwt token 2022-10-26 18:00:15 +02:00
Fabio Sinibaldi 118a3474fa Relationship tests 2022-10-25 16:57:41 +02:00
Fabio Sinibaldi 2b40d4058a Reverse relationships support 2022-10-25 13:03:14 +02:00
Fabio Sinibaldi 39e09c436b Note 2022-10-24 17:45:49 +02:00
Fabio Sinibaldi 1f4afcad4b Fix centroid field from list 2022-10-24 17:45:13 +02:00
Fabio Sinibaldi 908fb4fa31 UCD Update 2022-10-24 16:36:10 +02:00
Fabio Sinibaldi 7f8497e12a Multiple value support 2022-10-24 16:36:00 +02:00
Fabio Sinibaldi 3da2170e9f Fix explicit mapping value extraction 2022-10-24 16:15:38 +02:00
Fabio Sinibaldi bcd32848ac Refactor Use cases 2022-10-24 16:15:01 +02:00
Fabio Sinibaldi 0c20baab35 BBOX from published layer 2022-10-18 18:21:39 +02:00
Fabio Sinibaldi f7101e98a4 Testing 2022-10-18 18:00:44 +02:00
Fabio Sinibaldi 888ff97c50 Centroid evaluation 2022-10-18 18:00:34 +02:00
Fabio Sinibaldi 54e2b190d1 Auth Utils filter 2022-10-18 16:00:13 +02:00
Fabio Sinibaldi 60de4f504b Auth Utils filter 2022-10-18 15:41:17 +02:00
Fabio Sinibaldi 3a2a42f3b8 User management 2022-10-18 15:09:49 +02:00
Fabio Sinibaldi 4c9455fd76 Error management 2022-10-18 15:09:28 +02:00
Fabio Sinibaldi bd5aa2d4d9 STEP Default Constructor 2022-10-05 16:17:34 +02:00
Fabio Sinibaldi 7fb88afb5b Fix field name 2022-10-03 16:25:04 +02:00
Fabio Sinibaldi 13c339d720 Add layer name in index 2022-10-03 15:32:59 +02:00
Fabio Sinibaldi df4e62cfcc Bugfix relation management 2022-09-30 16:21:55 +02:00
Fabio Sinibaldi 1aa4a43b95 Bugfix relation management 2022-09-30 15:34:35 +02:00
Fabio Sinibaldi 3b2ae25034 Bugfix relation management 2022-09-30 14:57:28 +02:00
Fabio Sinibaldi ef30cd46d4 Switch to dev parameters 2022-09-29 16:42:14 +02:00
Fabio Sinibaldi 7d4bb76475 Fixed relationship locking 2022-09-29 16:33:33 +02:00
Fabio Sinibaldi ce253b5ade Relationship testing 2022-09-29 16:33:11 +02:00
Fabio Sinibaldi 80459d5546 Relationship testing 2022-09-29 16:07:55 +02:00
Fabio Sinibaldi 702f32dfa1 Removed jaxws-ri dependency 2022-09-29 11:45:53 +02:00
Fabio Sinibaldi d616e7ed3c Removed jxws-ri dependency 2022-09-29 11:20:27 +02:00
Fabio Sinibaldi a5702a44fa OGC LINKS as Map 2022-09-27 15:53:52 +02:00
Fabio Sinibaldi ac80cbbd7c Jaxb runtime dependencies 2022-09-27 15:53:32 +02:00
Fabio Sinibaldi 53789aa882 Removed use of token setter 2022-09-27 12:29:45 +02:00
Fabio Sinibaldi 303b8a035e Dependencies Management 2022-09-27 12:23:08 +02:00
Fabio Sinibaldi a1c0913e41 Import cleanup 2022-09-26 16:22:25 +02:00
Fabio Sinibaldi 0915c23960 Import cleanup 2022-09-26 16:17:37 +02:00
Fabio Sinibaldi e56aed85f8 JDK 11 2022-09-26 16:11:20 +02:00
Fabio Sinibaldi d05db92597 Ticket #23894 : client to expose relationship management methods 2022-09-22 11:15:08 +02:00
Fabio Sinibaldi 71d383e162 Removed legacy 2022-09-20 14:46:22 +02:00
Fabio Sinibaldi 26e6350178 Testing 2022-09-20 12:20:04 +02:00
Fabio Sinibaldi dfbc6e0ea2 Known Indexes 2022-09-20 12:19:39 +02:00
Fabio Sinibaldi 559347e5f7 Update lombok 2022-09-20 12:18:50 +02:00
Fabio Sinibaldi c8cd5118e8 Fix ogc links in SDI Layers 2022-09-19 18:15:26 +02:00
Fabio Sinibaldi 332807f8bb Perform STEP path fix 2022-09-14 11:27:45 +02:00
Fabio Sinibaldi ae335a5289 Source:jar-no-fork integration 2022-09-13 15:04:15 +02:00
Fabio Sinibaldi 9e3ff459bd Serializable UCD 2022-09-12 18:14:43 +02:00
Fabio Sinibaldi dbc2e37c83 Update list-gui config 2022-09-08 12:47:35 +02:00
Fabio Sinibaldi 2ba571e4af Register mapper in jersey client 2022-08-31 18:06:40 +02:00
Fabio Sinibaldi 49094b73ee Testing serialization 2022-08-31 18:06:19 +02:00
Fabio Sinibaldi a98d362ccf Safely Reset Lifecycle 2022-08-31 18:05:22 +02:00
Fabio Sinibaldi 07dfe31292 Fixed integration 2022-08-04 17:02:59 +02:00
Fabio Sinibaldi 6a22868696 Fixed deletion by path routine 2022-08-04 17:02:47 +02:00
Fabio Sinibaldi fc0f4e6411 added log 2022-08-04 16:48:49 +02:00
Fabio Sinibaldi c601dcdda6 Introduced Geotiffs, moved providers into frameworks 2022-08-03 18:15:10 +02:00
Fabio Sinibaldi 32ab7c7cfc Testing tif 2022-08-03 11:42:02 +02:00
Fabio Sinibaldi 8b92208774 Fixed getMandatory 2022-08-03 11:41:29 +02:00
Fabio Sinibaldi ebeba09151 Added data-entry config 2022-08-03 11:40:59 +02:00
Fabio Sinibaldi f27989065f Introduced 1.1.0-SNAPSHOT 2022-08-02 14:44:18 +02:00
Fabio Sinibaldi 34a180e843 Release client 1.0.8 2022-07-26 17:07:03 +02:00
Fabio Sinibaldi b189ef5cda Fixed pom 2022-07-26 16:36:09 +02:00
Fabio Sinibaldi fb8cdec9e2 Doc fixes 2022-07-26 12:32:14 +02:00
Fabio Sinibaldi 8cdaf705dc Doc fixes 2022-07-08 17:49:57 +02:00
Fabio Sinibaldi 747acd010e Doc fixes 2022-07-08 17:42:19 +02:00
Fabio Sinibaldi a4fddb9870 Doc fixes 2022-07-08 17:25:00 +02:00
Fabio Sinibaldi 50979dee03 Wiki moved under docs 2022-07-08 16:32:33 +02:00
Fabio Sinibaldi da9bbdc563 Fix plugin phase 2022-07-08 15:53:59 +02:00
Fabio Sinibaldi c20e11ff8e Exclude doc from auth 2022-07-08 15:12:53 +02:00
Fabio Sinibaldi e5ad1ef567 Documentation in war 2022-07-08 14:48:41 +02:00
Fabio Sinibaldi 5413243bdf Documentation 2022-07-08 12:20:26 +02:00
Fabio Sinibaldi ec28d3b53c Documentation 2022-07-07 19:21:27 +02:00
Fabio Sinibaldi 74e2795161 Documentation 2022-07-07 18:40:54 +02:00
Fabio Sinibaldi c5bd6f29d3 Documentation 2022-07-07 18:32:31 +02:00
Fabio Sinibaldi bf2122c882 Documentation 2022-07-07 13:11:38 +02:00
Fabio Sinibaldi 0f6a7909c3 Documentation 2022-07-06 18:55:42 +02:00
Fabio Sinibaldi 63b0e0356e Documentation 2022-07-06 18:54:55 +02:00
Fabio Sinibaldi 3b9f49529f Documentation 2022-07-06 18:38:26 +02:00
Fabio Sinibaldi d1e0e973b6 Documentation 2022-07-06 11:14:10 +02:00
Fabio Sinibaldi 3d33e50164 Documentation 2022-07-05 18:24:00 +02:00
Fabio Sinibaldi e86fba8fe2 Documentation 2022-07-05 18:16:17 +02:00
Fabio Sinibaldi 149686bfe3 Documentation 2022-07-05 17:56:02 +02:00
Fabio Sinibaldi 34ca467ab0 Documentation 2022-07-05 17:25:43 +02:00
Fabio Sinibaldi 8aa32e48ba Documentation 2022-07-05 17:24:52 +02:00
Fabio Sinibaldi 5c8d476e56 Documentation 2022-07-05 17:22:22 +02:00
Fabio Sinibaldi cf28f5b826 Removed import 2022-07-01 14:37:26 +02:00
Fabio Sinibaldi fa533d3a4d Version specification 2022-06-30 18:25:52 +02:00
Fabio Sinibaldi bccb531521 Version specification 2022-06-30 18:23:26 +02:00
Fabio Sinibaldi 8636cc95f4 Version specification 2022-06-30 18:20:18 +02:00
Fabio Sinibaldi ca8eb58beb Using released sg hub 2022-06-30 18:13:51 +02:00
Fabio Sinibaldi af3993cfef Harmonized poms 2022-06-30 17:57:35 +02:00
Fabio Sinibaldi 308352d2f9 Harmonized poms 2022-06-24 11:42:45 +02:00
Fabio Sinibaldi 30b21e8bcd Harmonized poms 2022-06-22 17:15:32 +02:00
Fabio Sinibaldi 74ce2eb6a3 Harmonized poms 2022-06-21 17:33:27 +02:00
Fabio Sinibaldi f413b33dc7 Updated gCube service class and service name 2022-06-15 16:54:10 +02:00
Fabio Sinibaldi 0516565b0c generated gcube-app.xml 2022-06-15 15:33:55 +02:00
Fabio Sinibaldi 3f0091b8b1 generated gcube-app.xml 2022-06-10 18:10:09 +02:00
Fabio Sinibaldi 073775b356 Enunciate integration 2022-06-10 15:36:39 +02:00
Fabio Sinibaldi 466a3b5809 Merged from geoportal service 1.0.9 2022-06-10 14:44:04 +02:00
Fabio Sinibaldi c2c06c1e3f Release Fix for #23485 2022-06-08 19:15:53 +02:00
Fabio Sinibaldi ba0545e2c7 Fixes #23391 (idempotent publish for concessioni) 2022-06-08 18:38:19 +02:00
Fabio Sinibaldi bd86648161 Fixing use cases 2022-06-08 18:12:11 +02:00
Fabio Sinibaldi 9b253621b3 Expose DocsGenerator 2022-06-08 17:27:44 +02:00
Fabio Sinibaldi a2b9b8d5e8 Enunciate integration 2022-06-08 16:32:01 +02:00
Fabio Sinibaldi 7df98cb40e Unlock only if not deleted 2022-05-31 16:24:23 +02:00
Fabio Sinibaldi ab4a8ef1dc Check on get Mandatory 2022-05-31 16:10:41 +02:00
Fabio Sinibaldi 521b5c90a6 Check on get Mandatory 2022-05-31 15:50:25 +02:00
Fabio Sinibaldi a0ffa08813 Check on get Mandatory 2022-05-31 15:14:23 +02:00
Fabio Sinibaldi c489f267e6 Fixed test 2022-05-31 13:46:41 +02:00
Fabio Sinibaldi 166ea432c3 Force support on delete 2022-05-31 13:38:12 +02:00
Fabio Sinibaldi 9536379efb Added policy to builder 2022-05-31 13:37:53 +02:00
Fabio Sinibaldi 610f255dcd Merge branch 'master' into #22686
# Conflicts:
#	geoportal-client/src/test/java/org/gcube/application/geoportal/clients/legacy/StatelessClientTests.java
2022-05-27 16:31:27 +02:00
Fabio Sinibaldi 47043b482c Merge pull request 'patch_#23400' (#6) from patch_#23400 into master
Reviewed-on: #6
2022-05-27 16:29:19 +02:00
Fabio Sinibaldi 17f4f5e991 Release geoportal-client.1.0.7 2022-05-27 16:16:54 +02:00
Fabio Sinibaldi 43943af6b7 Removed import 2022-05-27 15:20:03 +02:00
Fabio Sinibaldi 5f28029db1 Merged from patches 2022-05-27 15:13:35 +02:00
Fabio Sinibaldi 4d52bf7123 Merged from patches 2022-05-27 15:04:35 +02:00
Fabio Sinibaldi f1b7790cda Advancing versions from patches 2022-05-27 14:38:05 +02:00
Fabio Sinibaldi c5c2a4cec7 Improved cloning tests 2022-05-27 14:26:50 +02:00
Fabio Sinibaldi 1a0c26b44f Fixes files in piante 2022-05-27 14:26:36 +02:00
Fabio Sinibaldi 6fd3d4bb1c Removed imports 2022-05-27 13:59:32 +02:00
Fabio Sinibaldi 504311ae80 Merge branch 'master' into #22686
# Conflicts:
#	geoportal-client/CHANGELOG.md
#	geoportal-client/pom.xml
#	geoportal-client/src/test/java/org/gcube/application/geoportal/clients/BasicVreTests.java
#	geoportal-service/CHANGELOG.md
#	geoportal-service/pom.xml
#	geoportal-service/src/main/java/org/gcube/application/geoportal/service/engine/postgis/PostgisDBManager.java
#	geoportal-service/src/main/java/org/gcube/application/geoportal/service/engine/postgis/PostgisIndex.java
#	geoportal-service/src/main/java/org/gcube/application/geoportal/service/engine/providers/PostgisConnectionProvider.java
2022-05-27 13:53:50 +02:00
Fabio Sinibaldi 1036446bfd Release geoportal-client.1.0.7 2022-05-26 15:56:07 +02:00
Fabio Sinibaldi 7ba4f3c680 Release geoportal-client.1.0.7 2022-05-26 15:53:30 +02:00
Fabio Sinibaldi b12c4b456f Merge pull request 'patch_#23400' (#5) from patch_#23400 into master
Reviewed-on: #5
2022-05-26 15:31:03 +02:00
Fabio Sinibaldi 64db661a9b Release geoportal-client.1.0.7 2022-05-26 15:25:40 +02:00
Fabio Sinibaldi 240649b699 Patch for clone 2022-05-25 18:07:20 +02:00
Fabio Sinibaldi 458df96496 Merge pull request 'bug_23381' (#4) from bug_23381 into master
Reviewed-on: #4
2022-05-24 16:05:33 +02:00
Fabio Sinibaldi e84dd65585 Releasing service 1.0.9 2022-05-24 16:04:47 +02:00
Fabio Sinibaldi 0b2f078b31 Use of interface 2022-05-24 15:16:06 +02:00
Fabio Sinibaldi b0ae484408 Restricting version to released ones 2022-05-24 15:05:35 +02:00
Fabio Sinibaldi ec76ccfda9 Fixes #23381 2022-05-24 14:44:22 +02:00
Fabio Sinibaldi 4e19170a9f Mongo testing 2022-05-24 14:26:47 +02:00
Fabio Sinibaldi 1d12a8f025 Access in FileSet Request 2022-05-18 18:24:57 +02:00
Fabio Sinibaldi 1d425405a9 Unlocking 2022-05-17 15:43:19 +02:00
Fabio Sinibaldi dd61ba2d37 Added consumes and produces annotations 2022-05-17 15:22:49 +02:00
Fabio Sinibaldi ea6fca3222 Added Methods Set Access Policy And Force Unlock 2022-05-17 14:35:06 +02:00
Fabio Sinibaldi 33155051ae Fixed Deletion 2022-05-17 11:43:50 +02:00
Fabio Sinibaldi ce9f3be3fc Removing circular dependency 2022-05-17 11:09:09 +02:00
Fabio Sinibaldi 10c450fb2f BugFixing 2022-05-17 11:02:49 +02:00
Fabio Sinibaldi e0daa09d6f Bulk reupload concessione 2022-05-13 18:42:11 +02:00
Fabio Sinibaldi 2bd5336eee Fixes requests 2022-05-13 18:41:43 +02:00
Fabio Sinibaldi 3d3f618f50 UCD loading fixed MongoId in live Map 2022-05-12 10:56:53 +02:00
Fabio Sinibaldi 8eb1cd3f9d UCD cache locking 2022-05-11 18:45:56 +02:00
Fabio Sinibaldi 2989a493b9 Testings 2022-05-11 15:57:53 +02:00
Fabio Sinibaldi a77616f189 Upload legacy concessioni as projects 2022-05-10 18:06:39 +02:00
Fabio Sinibaldi f6a4d76a57 Fix HTTP Method 2022-05-10 18:05:13 +02:00
Fabio Sinibaldi d1ef58e5b6 Concessioni defaults #23287 2022-05-10 14:42:11 +02:00
Fabio Sinibaldi ab91340cec Relationship management 2022-05-10 10:58:40 +02:00
Fabio Sinibaldi a194811d85 Fixed Coordinates parsing 2022-05-06 18:45:30 +02:00
Fabio Sinibaldi 66fcdfd72a UCD Cache TTL 2022-05-06 18:03:48 +02:00
Fabio Sinibaldi c44a8c851f Fixes Coordinates parsing 2022-05-06 16:39:44 +02:00
Fabio Sinibaldi 21cc19c713 Fixes GEOJson management 2022-05-06 12:45:18 +02:00
Fabio Sinibaldi 2f94fdef97 log 2022-05-05 14:15:39 +02:00
Fabio Sinibaldi de86108bda Assign value to client 2022-05-05 14:15:02 +02:00
Fabio Sinibaldi 3968e78c87 Indexer configuration : Coordinates 2022-05-05 14:14:37 +02:00
Fabio Sinibaldi 9e9c696909 SDI Indexer scan for coordinates 2022-05-03 18:07:18 +02:00
Fabio Sinibaldi 8ff0cee95a Access by type 2022-05-02 17:55:48 +02:00
Fabio Sinibaldi a7280b0b1d Logging 2022-05-02 16:43:57 +02:00
Fabio Sinibaldi ca32991c18 Log 2022-04-29 17:00:12 +02:00
Fabio Sinibaldi 0322042d73 Configurable Multiple handler management 2022-04-29 15:31:17 +02:00
Fabio Sinibaldi 8e6b1e0106 Notebooks - MOSI 2022-04-28 17:17:08 +02:00
Fabio Sinibaldi 1b7658315c Register UCD 2022-04-27 19:36:10 +02:00
Fabio Sinibaldi 8cb1f8f447 Schema tests 2022-04-27 15:51:29 +02:00
Fabio Sinibaldi 8c0012e581 GNA MOSI test definition 2022-04-27 15:28:22 +02:00
Fabio Sinibaldi 069ae9c5ec Fixed duplicated property names 2022-04-22 11:04:50 +02:00
Fabio Sinibaldi 417a014fe7 Fixed Client default init 2022-04-22 11:04:25 +02:00
Fabio Sinibaldi d6521900b5 Identification References 2022-04-11 17:23:27 +02:00
Fabio Sinibaldi 2e6fa21426 Notebook guide 2022-04-08 15:45:05 +02:00
Fabio Sinibaldi 615b05408c Notebook guide 2022-04-08 15:41:45 +02:00
Fabio Sinibaldi 697f46ffa2 Basic UCD update 2022-04-08 15:26:12 +02:00
Fabio Sinibaldi 58fcad9da6 Rethrow exceptions 2022-04-08 15:20:21 +02:00
Fabio Sinibaldi 803e7776ee Lowered log level 2022-04-08 15:03:39 +02:00
Fabio Sinibaldi c1e8000bd0 Integration fix 2022-04-08 15:02:00 +02:00
Fabio Sinibaldi 00536fc8b4 Get File from Url 2022-04-08 14:52:11 +02:00
Fabio Sinibaldi fdd5c4845c Removed import 2022-04-08 14:31:25 +02:00
Fabio Sinibaldi 6720e09ae5 Basic UCD update 2022-04-08 14:27:46 +02:00
Fabio Sinibaldi 70f427d67b Testing 2022-04-08 13:17:52 +02:00
Fabio Sinibaldi b810bbb3ed Basic UCD update 2022-04-08 12:54:17 +02:00
Fabio Sinibaldi 6f1e97c472 Basic UCD update 2022-04-08 12:23:19 +02:00
Fabio Sinibaldi 3849990e98 Plugins REST Interface 2022-04-08 11:33:58 +02:00
Fabio Sinibaldi 630815050a Fixing roles 2022-04-08 11:22:13 +02:00
Fabio Sinibaldi 28fca1bb6d Fixing 2022-04-08 11:13:25 +02:00
Fabio Sinibaldi c9e5cf473a Fix LC ID 2022-04-08 10:57:04 +02:00
Fabio Sinibaldi ff916ae3cd Fixing 2022-04-07 18:12:42 +02:00
Fabio Sinibaldi 6c664bb6d3 Engine startup 2022-04-07 16:18:48 +02:00
Fabio Sinibaldi 5d3e56754f Engine startup 2022-04-07 16:14:52 +02:00
Fabio Sinibaldi bb47c90c9e Basic fixes 2022-04-06 17:58:20 +02:00
Fabio Sinibaldi 724a6bcfff Base Implementations refactoring 2022-04-06 17:04:56 +02:00
Fabio Sinibaldi 9921dec9ed Base Implementations refactoring 2022-04-01 19:11:11 +02:00
Fabio Sinibaldi 085074740a Bugfixing 2022-03-30 18:39:10 +02:00
Fabio Sinibaldi 3ae21711f9 SDI Plugins delete operations 2022-03-30 12:57:14 +02:00
Fabio Sinibaldi 3d6f86ef91 Default LC Plugins refactoring 2022-03-29 18:06:09 +02:00
Fabio Sinibaldi e2d728042f Default 3Phase Manager 2022-03-28 16:35:30 +02:00
Fabio Sinibaldi 17839745aa Role based data access support 2022-03-24 17:44:00 +01:00
Fabio Sinibaldi f0d04b8c62 Use local folder for UCD tests 2022-03-24 16:27:59 +01:00
Fabio Sinibaldi d78cdc30e4 Fix wrong import 2022-03-23 18:52:42 +01:00
Fabio Sinibaldi 5d6aa5a4d1 Fix load from record url 2022-03-23 18:48:49 +01:00
Fabio Sinibaldi ca660cf8b6 UCDs From IS 2022-03-23 18:38:07 +01:00
Fabio Sinibaldi ee2f72041e Merge pull request 'Fixed version tag' (#3) from #22461 into master
Reviewed-on: #3
2022-01-14 12:58:56 +01:00
Fabio Sinibaldi 0d919b72bb Merge pull request 'Fixed dependency to parent' (#2) from #22461 into master
Reviewed-on: #2
2022-01-14 12:53:04 +01:00
Fabio Sinibaldi 5cfffd201a Merge pull request '#22461' (#1) from #22461 into master
Reviewed-on: #1
2022-01-14 12:43:18 +01:00
450 changed files with 42533 additions and 8047 deletions

View File

@ -2,7 +2,29 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for org.gcube.spatial.data.gcube-sdi-suite # Changelog for org.gcube.spatial.data.gcube-sdi-suite
## [v1.0.2-SNAPSHOT] - 2021-02-24 ## [v1.0.6-SNAPSHOT]
- Integrated an EventManager centrally [#26321]
- sdi-plugins: add the logic to apply a regex to the value that must be added to index [#26322]
- notifications-plugins: integrated [#26453]
- catalogue-binding-plugins: integrated [#26454]
## [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 sdi-plugins
-Introduced module notifications-plugins -Introduced module notifications-plugins
-Introduced module dataminer-plugins -Introduced module dataminer-plugins
@ -10,6 +32,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
-Introduced module ckan-plugin -Introduced module ckan-plugin
## [v1.0.1] - 2021-12-07 ## [v1.0.1] - 2021-12-07
- Introduced cms-plugin-framework - Introduced cms-plugin-framework
- Introduced concessioni use case - Introduced concessioni use case
- Fixed internal group ids - Fixed internal group ids

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,941 @@
{
"_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": "Catalogue-Binding-Plugin",
"_type": "EventListener",
"_configuration": {
"subscribeEvents": [
{
"event": "LIFECYCLE_STEP_PERFORMED",
"when": [
{
"target_phase": [
"Published"
],
"last_invoked_step": "APPROVE-SUBMITTED"
},
{
"target_phase": [
"DRAFT"
],
"last_invoked_step": "UNPUBLISH"
}
]
},
{
"event": "PROJECT_DELETED"
}
],
"freemarker_template_host": "https://code-repo.d4science.org",
"freemarker_template_path": "gCubeSystem/gcube-cms-suite/raw/branch/event_manager/D4S_UCDs/DEV/devVRE/catalogue/binding/freemarker_templates/d4gna_to_catalogue.ftl",
"enabled": true
}
},
{
"_id": "Notifications-Plugin",
"_type": "EventListener",
"_configuration": {
"subscribeNotifications": [
{
"event": "LIFECYCLE_STEP_PERFORMED",
"notificationFor": [
{
"roles": [
"Data-Manager"
],
"when": [
{
"target_phase": [
"Pending Approval"
],
"last_invoked_step": "SUBMIT-FOR-REVIEW",
"notify": [
{
"type": "USER_NOTIFICATION",
"send": true,
"placeholder_title": "TITLE_REVIEW_REQUIRED",
"placeholder_msg": "MSG_REVIEW_REQUIRED"
}
]
},
{
"target_phase": [
"DRAFT"
],
"last_invoked_step": "REJECT-DRAFT",
"notify": [
{
"type": "USER_NOTIFICATION",
"send": true,
"placeholder_title": "TITLE_ITEM_REJECTED",
"placeholder_msg": "MSG_ITEM_REJECTED"
}
]
}
]
},
{
"roles": [
"Item_Creator"
],
"when": [
{
"target_phase": [
"DRAFT"
],
"last_invoked_step": "REJECT-DRAFT",
"notify": [
{
"type": "USER_NOTIFICATION",
"send": true,
"placeholder_title": "TITLE_ITEM_REJECTED_REVIEW_REQUIRED",
"placeholder_msg": "MSG_ITEM_REJECTED_REVIEW_REQUIRED"
}
]
}
]
},
{
"roles": [
"Any"
],
"when": [
{
"target_phase": [
"Published"
],
"last_invoked_step": "APPROVE-SUBMITTED",
"notify": [
{
"type": "VRE_POST",
"send": true,
"placeholder_msg": "MSG_ITEM_PUBLISHED",
"export_as_pdf": {
"export": false,
"placeholder_msg": "MSG_GO_TO_PDF"
}
}
]
}
]
}
]
}
],
"enabled": true,
"link_to_notifications_messages": "https://code-repo.d4science.org/gCubeSystem/gcube-cms-suite/raw/branch/event_manager/D4S_UCDs/DEV/devVRE/notifications/Notifications_Messages_ita.properties"
}
},
{
"_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,333 @@
{
"_id": "test_basemodel",
"_version": "1.0.0",
"_name": "Test_BaseModel",
"_schema": {
"planimetria": {
"_children": [
{
"fileset": {
"_type": "RegisteredFileSet"
}
}
]
}
},
"_description": "UCD for BaseModel Test",
"_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": "DEFAULT-SINGLE-STEP",
"_type": "LifecycleManagement",
"_configuration": {
"step_access": [
{
"STEP": "PUBLISH",
"roles": [
"Data-Manager",
"Data-Editor"
]
}
]
}
},
{
"_id": "SDI-Default-Materializer",
"_type": "Materializer",
"_configuration": {
"registeredFileSetPaths": [
{
"schemaField": "planimetria",
"documentPath": "planimetria.fileset"
}
]
}
},
{
"_id": "SDI-Indexer-Plugin",
"_type": "Indexer",
"_configuration": {
"bboxEvaluation": [
"$..planimetria.._bbox"
],
"explicitFieldMapping": [
{
"name": "titolo",
"path": "$._theDocument.titolo",
"type": "TEXT"
},
{
"name": "denominazione",
"path": "$._theDocument.denominazione",
"type": "TEXT"
},
{
"name": "descrizione",
"path": "$._theDocument.descrizione",
"type": "TEXT"
},
{
"name": "cronologia",
"path": "$._theDocument.cronologia",
"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": "Test_Dati_Descrittivi",
"sectionName": "$.",
"sectionTitle": "Dati Descrittivi"
},
{
"gcubeSecondaryType": "GeoportalMetadata",
"gcubeName": "Test_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.titolo",
"_theDocument.denominazione",
"_theDocument.descrizione",
"_theDocument.cronologia"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": false
},
{
"label": "Titolo",
"paths": [
"_theDocument.titolo"
],
"operator": "$and",
"searchable": true,
"sortable": true,
"asResult": true
},
{
"label": "Denominazione/Descrizione",
"paths": [
"_theDocument.denominazione",
"_theDocument.descrizione"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": false
},
{
"label": "Chronology",
"paths": [
"_theDocument.cronologia"
],
"operator": "$and",
"searchable": true,
"sortable": true,
"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.titolo",
"_theDocument.denominazione",
"_theDocument.descrizione",
"_theDocument.cronologia"
],
"operator": "$or",
"searchable": true,
"sortable": false,
"asResult": false
},
{
"label": "Title",
"paths": [
"_theDocument.titolo"
],
"operator": "$and",
"searchable": true,
"sortable": true,
"asResult": true
},
{
"label": "Name",
"paths": [
"_theDocument.denominazione"
],
"operator": "$and",
"searchable": true,
"sortable": true,
"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,350 @@
<#assign jsonProj=doc>
<#assign theDocument=jsonProj._theDocument>
<#assign resources=[]>
<#assign groups=[]>
<#assign tags=[]>
<#assign extras=[]>
<#function sanitizeString(value)>
<#if value??>
<#return value?trim?replace('\n','')?replace('\"','')>
</#if>
<#return "">
</#function>
<#function onlyAlphanumericString(value)>
<#if value??>
<#return value?trim?replace('\n','')?replace('\"','')?replace("[^\\w]+", "-", "r")>
</#if>
<#return "">
</#function>
<#-- Macro to assign Tags -->
<#macro assignTag in_tags>
<#if in_tags??>
<#if in_tags?is_sequence>
<#list in_tags as my_tag>
<#assign tags = tags + [onlyAlphanumericString(my_tag)] />
</#list>
<#else>
<#assign tags = tags + [onlyAlphanumericString(in_tags)] />
</#if>
</#if>
</#macro>
<#-- Macro to assign a Resource -->
<#macro assignResource name url description format>
<#if description??>
<#else>
<#assign description = ""/>
</#if>
<#if url??>
<#assign resource = {"name": name, "url": url, "description": sanitizeString(description), "format": format}>
<#assign resources = resources + [resource]/>
</#if>
</#macro>
<#-- Macro to assign Groups -->
<#macro assignGroup in_groups>
<#if in_groups??>
<#if in_groups?is_sequence>
<#list in_groups as my_group>
<#assign groups = groups + [my_group] />
</#list>
<#else>
<#assign groups = groups + [in_groups] />
</#if>
</#if>
</#macro>
<#-- Macro to assign Extras field -->
<#macro assignExtraField key value asObject>
<#if key??>
<#assign checkedValue = value/>
<#if key != "spatial">
<#assign checkedValue = sanitizeString(value)/>
</#if>
<#assign extra = {"key": sanitizeString(key), "value": checkedValue, "asObject": asObject}>
<#assign extras = extras + [extra]/>
</#if>
</#macro>
<#-- Macro to build the tags as [{},{},..{}] -->
<#macro buildTags the_tags>
<#if the_tags??>
"tags": [
<#list the_tags as tag>
{
"name": "${tag}"
}
<#if tag?is_last==false>,</#if>
</#list>
],
</#if>
</#macro>
<#-- Macro to build the groups as [{},{},..{}] -->
<#macro buildGroups the_groups>
<#if the_groups??>
"groups": [
<#list the_groups as the_group>
{
"name": "${the_group}"
}
<#if the_group?is_last==false>,</#if>
</#list>
],
</#if>
</#macro>
<#-- Macro to build the resources as [{},{},..{}] -->
<#macro buildResources the_resources>
<#if the_resources??>
"resources": [
<#list the_resources as resource>
{
"name": "${resource.name}",
"url": "${resource.url}",
"description": "${resource.description}",
"format": "${resource.format}"
}
<#if resource?is_last==false>,</#if>
</#list>
],
</#if>
</#macro>
<#-- Macro to build the extras as [{},{},..{}] -->
<#macro buildExtrasFields the_extras>
<#if the_extras??>
"extras": [
<#list the_extras as extra>
<#if extra.asObject?? && extra.asObject>
{
"key": "${extra.key}",
"value": ${extra.value}
}
<#else>
{
"key": "${extra.key}",
"value": "${extra.value}"
}
</#if>
<#if extra?is_last==false>,</#if>
</#list>
]
</#if>
</#macro>
<#--
############################################################
#
#
# Starting document mapping to Catalogue
#
#
############################################################
-->
<#compress>
{
"name": "${jsonProj._id}",
"title": "${sanitizeString(theDocument.nome)}",
"license_id": "CC-BY-SA-4.0",
"private": false,
<#assign sanitizedNotes = sanitizeString(theDocument.introduzione) />
"notes": "${sanitizedNotes}",
<#--
######################
RESOURCES
######################
-->
<#-- Mapping "Relazione Scavo" as resource -->
<#if theDocument.relazioneScavo?? && theDocument.relazioneScavo.fileset?? && theDocument.relazioneScavo.fileset._payloads??>
<#assign payloads = theDocument.relazioneScavo.fileset._payloads>
<#if payloads?size!=0>
<#-- Getting the first payload -->
<#assign payload = payloads[0]>
<@assignResource name=payload._name url=payload._link description=theDocument.relazioneScavo.titolo format=payload._mimetype></@assignResource>
</#if>
</#if>
<#-- Mapping "Immagine Rappresentative" as resource -->
<#if theDocument.immaginiRappresentative??>
<#if theDocument.immaginiRappresentative?is_sequence && theDocument.immaginiRappresentative?size gt 0>
<#list theDocument.immaginiRappresentative as the_image>
<#if the_image.fileset?? && the_image.fileset._payloads??>
<#assign payloads = the_image.fileset._payloads>
<#if payloads?size!=0>
<#-- Getting the first payload -->
<#assign payload = payloads[0]>
<@assignResource name=payload._name url=payload._link description=the_image.didascalia format=payload._mimetype></@assignResource>
</#if>
</#if>
</#list>
</#if>
<#assign payloads = theDocument.immaginiRappresentative[0].fileset._payloads>
<#if payloads?size!=0>
<#-- Getting the first payload -->
<#assign payload = payloads[0]>
<@assignResource name=payload._name url=payload._link description=theDocument.immaginiRappresentative[0].didascalia format=payload._mimetype></@assignResource>
</#if>
</#if>
<#-- Building Resources -->
<@buildResources the_resources=resources></@buildResources>
<#--
######################
TAGS
######################
-->
<#-- Mapping "paroleChiaveLibere" as tag -->
<#if theDocument.paroleChiaveLibere??>
<@assignTag in_tags=theDocument.paroleChiaveLibere></@assignTag>
</#if>
<#-- Building tags -->
<@buildTags the_tags=tags></@buildTags>
<#--
######################
GROUPS
######################
-->
<#-- Mapping the year of the "dataInizioProgetto" as group -->
<#assign dateString = theDocument.dataInizioProgetto?trim>
<#assign dataInizioYear = dateString?split("-")[0]>
<#-- <@assignGroup in_groups=dataInizioYear></@assignGroup> -->
<#-- Building groups -->
<@buildGroups the_groups=groups></@buildGroups>
<#--
######################
EXTRAS
######################
-->
<#-- Mapping extras fields -->
<#if theDocument.contributore??>
<@assignExtraField key="Contributore" value=theDocument.contributore asObject=false></@assignExtraField>
</#if>
<#if theDocument.responsabile??>
<@assignExtraField key="Responsabile dei contenuti" value=theDocument.responsabile asObject=false></@assignExtraField>
</#if>
<#if theDocument.editore??>
<@assignExtraField key="Ente responsabile del progetto" value=theDocument.editore asObject=false></@assignExtraField>
</#if>
<#if theDocument.ufficioMic??>
<@assignExtraField key="Ufficio MiC competente per territorio" value=theDocument.ufficioMic asObject=false></@assignExtraField>
</#if>
<#if theDocument.funzionarioResponsabile??>
<@assignExtraField key="Funzionario Responsabile" value=theDocument.funzionarioResponsabile asObject=false></@assignExtraField>
</#if>
<#if theDocument.fontiFinanziamento??>
<#if theDocument.fontiFinanziamento?is_sequence>
<#list theDocument.fontiFinanziamento as my_extra>
<@assignExtraField key="Fonte del finanziamento" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Fonte del finanziamento" value=theDocument.fontiFinanziamento asObject=false></@assignExtraField>
</#if>
</#if>
<#if theDocument.risorseCorrelate??>
<#if theDocument.risorseCorrelate?is_sequence>
<#list theDocument.risorseCorrelate as my_extra>
<@assignExtraField key="Risorse Correlate" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Risorse Correlate" value=theDocument.risorseCorrelate asObject=false></@assignExtraField>
</#if>
</#if>
<#if theDocument.dataInizioProgetto??>
<@assignExtraField key="Data inizio Campagna" value=theDocument.dataInizioProgetto?trim asObject=false></@assignExtraField>
</#if>
<#if theDocument.dataFineProgetto??>
<@assignExtraField key="Data fine Campagna" value=theDocument.dataFineProgetto?trim asObject=false></@assignExtraField>
</#if>
<#if theDocument.modalitaIndividuazione??>
<#if theDocument.modalitaIndividuazione?is_sequence>
<#list theDocument.modalitaIndividuazione as my_extra>
<@assignExtraField key="Modalità di individuazione" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Modalità di individuazione" value=theDocument.modalitaIndividuazione asObject=false></@assignExtraField>
</#if>
</#if>
<#if theDocument.contestoIndagine??>
<#if theDocument.contestoIndagine?is_sequence>
<#list theDocument.contestoIndagine as my_extra>
<@assignExtraField key="Contesto Indagine" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Contesto Indagine" value=theDocument.contestoIndagine asObject=false></@assignExtraField>
</#if>
</#if>
<#if theDocument.statoAttuale??>
<@assignExtraField key="Stato attuale" value=theDocument.statoAttuale asObject=false></@assignExtraField>
</#if>
<#if theDocument.accessibilita??>
<@assignExtraField key="Accessibilità" value=theDocument.accessibilita asObject=false></@assignExtraField>
</#if>
<#if theDocument.cronologiaMacrofase??>
<#if theDocument.cronologiaMacrofase?is_sequence>
<#list theDocument.cronologiaMacrofase as my_extra>
<@assignExtraField key="Cronologia Macrofase" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Cronologia Macrofase" value=theDocument.cronologiaMacrofase asObject=false></@assignExtraField>
</#if>
</#if>
<#-- spatial field -->
<#if jsonProj._identificationReferences?? && jsonProj._identificationReferences?size!=0 && jsonProj._identificationReferences[0].geoJSON??>
<#assign geoJSON = jsonProj._identificationReferences[0].geoJSON>
<#-- if coordinates exists, managing it as a Point -->
<#if geoJSON.coordinates?? && geoJSON.coordinates?is_sequence && geoJSON.coordinates?size gt 2>
<#assign point_Coordinates = [geoJSON.coordinates[0], geoJSON.coordinates[1]]>
<#assign spatialField = '{\\"type\\": \\"${geoJSON.type}\\", \\"coordinates\\": [${point_Coordinates?join(", ")}]}'>
<@assignExtraField key="spatial" value=spatialField asObject=false></@assignExtraField>
</#if>
</#if>
<#-- Adding extra field "Anno" to add it as group -->
<@assignExtraField key="Anno" value=dataInizioYear asObject=false></@assignExtraField>
<@buildExtrasFields the_extras=extras></@buildExtrasFields>
}
</#compress>

View File

@ -0,0 +1,23 @@
# REVIEW ACTION
TITLE_REVIEW_REQUIRED=Review required for ${project_name}
MSG_REVIEW_REQUIRED=@${user_caller} submitted the project ${project_name}. You are kindly requested to review it and decide either to APPROVE or REJECT it. See the Project at ${private_data_entry_link}
# REJECTED ACTION
TITLE_ITEM_REJECTED=Rejected ${project_name}
MSG_ITEM_REJECTED=The project ${project_name} (id: ${project_id}) has just been rejected by @${user_caller}. See the Project at ${private_data_entry_link}
# REJECTED ACTION
TITLE_ITEM_REJECTED_REVIEW_REQUIRED=Rejected ${project_name}
MSG_ITEM_REJECTED_REVIEW_REQUIRED=The project ${project_name} has just been rejected. You are kindly requested to review it. See the Project at ${private_data_entry_link}
# PUBLISHED ACTION
TITLE_ITEM_PUBLISHED=Published ${project_name}
MSG_ITEM_PUBLISHED=The project ${project_name} created by @${item_creator} has just been published. See the Project at ${public_data_viewer_link}
# CREATED ACTION
TITLE_ITEM_CREATED=Created ${project_name}
MSG_ITEM_CREATED=The project ${project_name} has just been created. See the Project at ${private_data_entry_link}
# DELETED ACTION
TITLE_ITEM_DELETED=Deleted ${project_name}
MSG_ITEM_DELETED=The project ${project_name} has just been deleted
# UPDATED ACTION
TITLE_ITEM_UPDATED=Updated ${project_name}
MSG_ITEM_UPDATED=The project ${project_name} (id: ${project_id}) has just been updated. See the Project at ${private_data_entry_link}
# GO TO PDF ACTION
MSG_GO_TO_PDF=Go to PDF report at ${project_as_pdf_link}

View File

@ -0,0 +1,23 @@
# REVIEW ACTION
TITLE_REVIEW_REQUIRED=Richiesta di revisione per ${project_name}
MSG_REVIEW_REQUIRED=@${user_caller} ha sottomesso il progetto ${project_name}. Si prega di esaminarlo e decidere se APPROVARLO o RIFIUTARLO. Vedi il progetto ${private_data_entry_link}
# REJECTED ACTION
TITLE_ITEM_REJECTED=Rigettato ${project_name}
MSG_ITEM_REJECTED=Il progetto ${project_name} (id: ${project_id}) è stato rigettato da @${user_caller}. Vedi il progetto ${private_data_entry_link}
# REJECTED ACTION
TITLE_ITEM_REJECTED_REVIEW_REQUIRED=Rigettato ${project_name}
MSG_ITEM_REJECTED_REVIEW_REQUIRED=Il progetto ${project_name} è stato rigettato. Si prega di rivederlo. Vedi il progetto ${private_data_entry_link}
# PUBLISHED ACTION
TITLE_ITEM_PUBLISHED=Pubblicato ${project_name}
MSG_ITEM_PUBLISHED=Il progetto ${project_name} creato da @${item_creator} è stato pubblicato. Vedi il progetto ${public_data_viewer_link}
# CREATED ACTION
TITLE_ITEM_CREATED=Creato ${project_name}
MSG_ITEM_CREATED=Il progetto ${project_name} è stato creato. Vedi il progetto ${private_data_entry_link}
# DELETED ACTION
TITLE_ITEM_DELETED=Cancellato ${project_name}
MSG_ITEM_DELETED=Il progetto ${project_name} è stato cancellato
# UPDATED ACTION
TITLE_ITEM_UPDATED=Aggiornato ${project_name}
MSG_ITEM_UPDATED=Il progetto ${project_name} (id: ${project_id}) è stato aggiornato. Vedi il progetto ${private_data_entry_link}
# GO TO PDF ACTION
MSG_GO_TO_PDF=Vai al report PDF ${project_as_pdf_link}

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": "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": "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 per l'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

@ -1,23 +1,75 @@
gCube CMS Suite gCube CMS Suite
-------------------------------------------------- --------------------------------------------------
gCube CMS Suite is a set of components designed to manage complex space-temporal Documents defined by metadata Profiles. 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://geoportal.cloud.d4science.org/geoportal-service/docs/index.html)
Rationale :
Publication involves lots of common features as well as custom behaviour and formats. The service implements the basic common logic, delegating to installed plugin both custom and configurable functions ranging from validation, data manifestation, indexing and lifecycle management.
**Lifecycle management** is itself an extension allowing for both common and complex ad-hoc workflows.
**High modularity of plugins** allows for the composition of ad hoc use cases with maximized re-usability.
The suite comes with a set of pre-built plugins and GUIs that communities can easily extend and / or reuse.
## Built with ## 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 * [OpenJDK](https://openjdk.java.net/) - The JDK used
* [JAX-RS](https://github.com/eclipse-ee4j/jaxrs-api) - Java™ API for RESTful Web Services * [JAX-RS](https://github.com/eclipse-ee4j/jaxrs-api) - Java™ API for RESTful Web Services
* [Jersey](https://jersey.github.io/) - JAX-RS runtime * [Jersey](https://jersey.github.io/) - JAX-RS runtime
* [Maven](https://maven.apache.org/) - Dependency Management * [Maven](https://maven.apache.org/) - Dependency Management
* [Enunciate](http://enunciate.webcohesion.com/) - API Documentation
## 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)
## Lifecycle Managements
Document Lifecycle Managements in action:
##### Single Step (no moderation)
<img src="https://gcube.wiki.gcube-system.org/images_gcube/8/8c/SingleStep_LC.png" style="max-width:600px;" alt="Default Single Step lifecycle">
##### 3 Phases (content moderation)
<img src="https://gcube.wiki.gcube-system.org/images_gcube/d/d8/Default3Phases_LC.png" style="max-width:750px;" alt="Default 3 Phases lifecycle">
## Plugins
Plugins in action:
* [Lifecycle Manager](/gCubeSystem/gcube-cms-suite/src/branch/master/default-lc-managers)
* [Spatial Data Infrastructure "SDI"](/gCubeSystem/gcube-cms-suite/src/branch/master/sdi-plugins)
* [Notifications](/gCubeSystem/gcube-cms-suite/src/branch/master/notifications-plugins)
* [Catalogue Binding](/gCubeSystem/gcube-cms-suite/src/branch/event_manager/catalogue-binding-plugin)
## Use Case
##### The D4GNA
["Dataset per il Geoportale Nazionale per lArcheologia"](https://gna.d4science.org)
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 ## Documentation
* [Dedicated Wiki](https://geoportal.d4science.org/geoportal-service/docs/index.html#) - powered by [Sphynx](https://www.sphinx-doc.org/en/master/)
Documentation can be found [here](https://gcube.wiki.gcube-system.org/gcube/GeoPortal_Service). * [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/)
## Change log ## Change log
See [CHANGELOG.md](CHANGELOG.md). See [CHANGELOG.md](CHANGELOG.md).
## Authors
* **Fabio Sinibaldi** as "Architect", "Developer" ([ORCID](https://orcid.org/0000-0003-1013-6203)) Computer Scientist at ISTI-CNR
* **Francesco Mangiacrapa** as "Architect", "Developer" and "Maintainer" ([ORCID](https://orcid.org/0000-0002-6528-664X)) Computer Scientist at [ISTI-CNR Infrascience Group](http://nemis.isti.cnr.it/groups/infrascience)
## License ## License
This project is licensed under the EUPL V.1.1 License - see the [LICENSE.md](LICENSE.md) file for details. This project is licensed under the EUPL V.1.1 License - see the [LICENSE.md](LICENSE.md) file for details.

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

1
catalogue-binding-plugin/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target/

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ckan-plugin</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,8 @@
# Changelog for org.gcube.application.cms.catalogue-binding-plugin
## [v1.0.0-SNAPSHOT] - 2024-06-19
- First release, implemented the plugin [#26454]
- 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,103 @@
gCube CMS Suite : Catalogue Binding Plugin
--------------------------------------------------
The "Catalogue Binding Plugin" implements the binding from
(the products registered in) the Geoportal system to the D4Science Catalogue system.
## Built with
* [gCube SmartGears] (https://gcube.wiki.gcube-system.org/gcube/SmartGears) - The gCube SmartGears framework
* [OpenJDK](https://openjdk.java.net/) - The JDK used
* [Maven](https://maven.apache.org/) - Dependency Management
**Uses**
* Apache [FreeMarker](https://freemarker.apache.org/) is licensed under [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
## Documentation
[gCube CMS Suite](../) parent module containing references, documentation, guides ad utilities.
The "Catalogue Binding Plugin" requires a handler registered in the UCD so defined:
```
{
"_id": "Catalogue-Binding-Plugin",
"_type": "EventListener",
"_configuration": {
"subscribeEvents": [
{
"event": "{EVENT_1}",
"when": [
{
"target_phase": [
"{TARGET_PHASE}"
],
"last_invoked_step": "{LAST_INVOKED_STEP}"
}
]
},
{
"event": "{EVENT_2}"
}
],
"freemarker_template_host": "{FREEMARKER_TEMPLATE_HOST}",
"freemarker_template_path": "{PATH_TO_FREEMARKER_TEMPLATE_NAME.ftl}",
"enabled": {true|false}
}
}
```
About the config:
the "event" part.. `"event": "{EVENT_1}",` is mandatory:
* `{EVENT_X}` (mandatory) - can be ```PROJECT_CREATED, PROJECT_UPDATED, PROJECT_DELETED, LIFECYCLE_STEP_PERFORMED```
the "when" part.. `"when": [{...}]`, is optional:
* `{TARGET_PHASE}` (optional) - can be: `DRAFT`, `Pending Approval`, `Published`, `Any`;
* `{LAST_INVOKED_STEP}` (optional) can be: `SUBMIT-FOR-REVIEW`, `APPROVE-SUBMITTED`, `REJECT-DRAFT`, `UNPUBLISH`;
the `{FREEMARKER_TEMPLATE_HOST}` is the host where the FREEMARKER_TEMPLATE.ftl is located and the `{FREEMARKER_TEMPLATE_NAME.ftl}` is the (complete) path to the FREEMARKER_TEMPLATE.ftl file.
The template pointed by `{FREEMARKER_TEMPLATE_HOST}/{PATH_TO_FREEMARKER_TEMPLATE_NAME.ftl}` URL is applied to transform a Geoportal project to Catalogue Item object.
`enabled` : set to `ŧrue` to activate the plugin `false` otherwise.
NB. The configuration must contain the "when" part with `{TARGET_PHASE}` and `{LAST_INVOKED_STEP}` if the `{EVENT_X}` is `LIFECYCLE_STEP_PERFORMED`
## Change log
See [CHANGELOG.md](CHANGELOG.md).
## Authors
* **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.
## 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,151 @@
<?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>catalogue-binding-plugins</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>gCube CMS - Catalogue Binding Plugin</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.distribution</groupId>
<artifactId>gcube-smartgears-bom</artifactId>
<version>${gcube-smartgears-bom-version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<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>default-lc-managers</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.gcube.portlets.user</groupId>
<artifactId>uri-resolver-manager</artifactId>
<version>[1.0.0,2.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>org.gcube.data-catalogue</groupId>
<artifactId>gcat-client</artifactId>
<version>[2.0.0,3.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.32</version>
</dependency>
<!-- JSON PARSER -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20090211</version>
</dependency>
<dependency>
<groupId>org.gcube.application</groupId>
<artifactId>geoportal-client</artifactId>
<version>[1.1.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.gcube.application</groupId>
<artifactId>geoportal-data-mapper</artifactId>
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
<!-- Excluding these beacuse geoportal uses [2-3] ranges conflicting with
[3-4] used by URI-Resolver -->
<exclusions>
<exclusion>
<groupId>org.gcube.contentmanagement</groupId>
<artifactId>storage-manager-wrapper</artifactId>
</exclusion>
<exclusion>
<groupId>org.gcube.contentmanagement</groupId>
<artifactId>storage-manager-core</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
</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

@ -0,0 +1,376 @@
package org.gcube.application.cms.cataloguebinding;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.bson.Document;
import org.gcube.application.cms.cataloguebinding.config.CatalogueBindingPluginConfigModel;
import org.gcube.application.cms.cataloguebinding.config.SubscribeEventsConfig;
import org.gcube.application.cms.cataloguebinding.doaction.BindingAction;
import org.gcube.application.cms.cataloguebinding.util.SerializationUtil;
import org.gcube.application.cms.implementations.utils.UserUtils;
import org.gcube.application.cms.plugins.EventListenerPluginInterface;
import org.gcube.application.cms.plugins.events.EventListener;
import org.gcube.application.cms.plugins.events.EventManager;
import org.gcube.application.cms.plugins.events.EventManager.Event;
import org.gcube.application.cms.plugins.events.ItemObserved;
import org.gcube.application.cms.plugins.faults.InitializationException;
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.implementations.AbstractPlugin;
import org.gcube.application.cms.plugins.reports.InitializationReport;
import org.gcube.application.cms.plugins.reports.Report;
import org.gcube.application.cms.plugins.reports.Report.Status;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.plugins.PluginDescriptor;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
import com.vdurmont.semver4j.Semver;
import lombok.Synchronized;
import lombok.extern.slf4j.Slf4j;
/**
* The Class CatalogueBindingPlugin.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Jan 19, 2024
*/
@Slf4j
public class CatalogueBindingPlugin extends AbstractPlugin implements EventListenerPluginInterface {
public static final String SUBSCRIBE_EVENTS_CONFIG = "subscribeEvents";
public static final String PLUGIN_ID = "Catalogue-Binding-Plugin";
public static final String PLUGIN_TYPE = "EventListener";
public static final PluginDescriptor DESCRIPTOR = new PluginDescriptor(PLUGIN_ID, PLUGIN_TYPE);
private static final String FREEMARKER_TEMPLATE_PATH = "freemarker_template_path";
private static final String FREEMARKER_TEMPLATE_HOST = "freemarker_template_host";
private static final String CONFIG_ENABLED = "enabled";
static {
DESCRIPTOR.setVersion(new Semver("1.0.0"));
DESCRIPTOR.setDescription("Manage the data binding from geoportal to catalogue");
}
/**
* Gets the descriptor.
*
* @return the descriptor
*/
@Override
public PluginDescriptor getDescriptor() {
return DESCRIPTOR;
}
/**
* Inits the.
*
* @return the initialization report
* @throws InitializationException the initialization exception
*/
@Override
public InitializationReport init() throws InitializationException {
log.debug("Called init");
InitializationReport report = null;
try {
// Creating all listeners
EventListener<ItemObserved<Project>> listenerCreated = new EventListener<ItemObserved<Project>>() {
@Override
public void updated(ItemObserved<Project> observerd) {
log.info("listenerCreated fired on item: {} " + observerd);
boolean subscribed = checkIfSubscribedEvent(observerd);
if (subscribed) {
doAction(observerd);
}
}
};
EventListener<ItemObserved<Project>> listenerUpdated = new EventListener<ItemObserved<Project>>() {
@Override
public void updated(ItemObserved<Project> observerd) {
log.info("listenerUpdated fired on item: {} " + observerd);
boolean subscribed = checkIfSubscribedEvent(observerd);
if (subscribed) {
doAction(observerd);
}
}
};
EventListener<ItemObserved<Project>> listenerDeleted = new EventListener<ItemObserved<Project>>() {
@Override
public void updated(ItemObserved<Project> observerd) {
log.info("listenerDeleted fired on item: {} " + observerd);
boolean subscribed = checkIfSubscribedEvent(observerd);
if (subscribed) {
doAction(observerd);
}
}
};
EventListener<ItemObserved<Project>> listenerLCStepPerformed = new EventListener<ItemObserved<Project>>() {
@Override
public void updated(ItemObserved<Project> observerd) {
log.info("listenerLCStepPerformed fired on item: {} " + observerd);
boolean subscribed = checkIfSubscribedEvent(observerd);
if (subscribed) {
doAction(observerd);
}
}
};
// Subscribing all events
EventManager eventMngInst = EventManager.getInstance();
eventMngInst.subscribe(Event.PROJECT_CREATED, listenerCreated);
eventMngInst.subscribe(Event.PROJECT_UPDATED, listenerUpdated);
eventMngInst.subscribe(Event.PROJECT_DELETED, listenerDeleted);
eventMngInst.subscribe(Event.LIFECYCLE_STEP_PERFORMED, listenerLCStepPerformed);
report = new InitializationReport(Status.OK, PLUGIN_ID + " init performed");
} catch (Exception e) {
InitializationException exc = new InitializationException("Unable to initialize " + DESCRIPTOR.getId(), e);
log.error("init error: {} ", exc);
throw exc;
}
return report;
}
/**
* Inits the in context.
*
* @return the initialization report
* @throws InitializationException the initialization exception
*/
@Override
@Synchronized
public InitializationReport initInContext() throws InitializationException {
InitializationReport report = new InitializationReport();
try {
String context = UserUtils.getCurrent().getContext();
if (getCatalogueBindingMapPerContext() == null) {
log.info("Initializing in " + context);
catalogueBindingMap.put(context, new LinkedHashMap<String, CatalogueBindingPluginConfigModel>());
}
report.setStatus(Report.Status.OK);
report.putMessage("Initialized " + DESCRIPTOR.getId() + " in the " + context);
} catch (Exception e) {
InitializationException exc = new InitializationException("Unable to initialize " + DESCRIPTOR.getId(), e);
log.error("initInContext error: {} ", exc);
throw exc;
}
return report;
}
// Map<Scope<Map<UDC_ID, CatalogueBindingPluginConfigModel>>
protected Map<String, Map<String, CatalogueBindingPluginConfigModel>> catalogueBindingMap = null;
/**
* Gets the catalogue binding map per context.
*
* @return the catalogue binding map per context
*/
protected Map<String, CatalogueBindingPluginConfigModel> getCatalogueBindingMapPerContext() {
String context = UserUtils.getCurrent().getContext();
log.debug("Getting {} from cache map for context {}", CatalogueBindingPlugin.PLUGIN_ID, context);
if (catalogueBindingMap == null) {
catalogueBindingMap = new LinkedHashMap<String, Map<String, CatalogueBindingPluginConfigModel>>();
}
// Map<UDC_ID, EventSubscribed>
Map<String, CatalogueBindingPluginConfigModel> map = catalogueBindingMap.get(context);
return map == null ? new LinkedHashMap<String, CatalogueBindingPluginConfigModel>() : map;
}
/**
* Read events subscribed from configuration in the UCD.
*
* @param useCaseDescriptor the use case descriptor
* @return the catalogue binding plugin config model
* @throws Exception the exception
*/
public CatalogueBindingPluginConfigModel readEventsSubscribedFromConfigurationInTheUCD(
UseCaseDescriptor useCaseDescriptor) throws Exception {
log.debug("Reading subscribed events from UCD");
CatalogueBindingPluginConfigModel cbpcm = null;
if (useCaseDescriptor == null)
throw new Exception("Error reading UCD null found");
try {
String context = UserUtils.getCurrent().getContext();
final Map<String, CatalogueBindingPluginConfigModel> mapCatalogBindingPerContext = getCatalogueBindingMapPerContext();
cbpcm = mapCatalogBindingPerContext.get(useCaseDescriptor.getId());
if (cbpcm == null) {
cbpcm = new CatalogueBindingPluginConfigModel();
List<EventSubscribed> eventsSubscrInTheUCD = new ArrayList<EventSubscribed>();
Document profileConfiguration = getConfigurationFromProfile(useCaseDescriptor).getConfiguration();
log.debug("UseCaseDescriptor Configuration is {} ", profileConfiguration);
boolean configEnabled = profileConfiguration.getBoolean(CONFIG_ENABLED, false);
log.info("Is Config enabled? {} ", CONFIG_ENABLED, configEnabled);
if(configEnabled) {
for (Object fsConfigObj : profileConfiguration.get(SUBSCRIBE_EVENTS_CONFIG, List.class)) {
log.debug("Managing {} ", fsConfigObj);
SubscribeEventsConfig fsConfig = SerializationUtil.convert(fsConfigObj,
SubscribeEventsConfig.class);
log.debug("Converted config {}", fsConfig);
String theEventSubsribed = fsConfig.getEvent();
if (theEventSubsribed == null || theEventSubsribed.isEmpty())
throw new MaterializationException(
"Invalid Field Definition path in configuration [NO MATCH] : " + fsConfig.getEvent());
EventSubscribed eventSub = new EventSubscribed();
Event event = SerializationUtil.convert(theEventSubsribed, Event.class);
log.debug("Added event {} ", event);
eventSub.setEvent(event);
if (fsConfig.getWhen() != null)
eventSub.setWhen(fsConfig.getWhen());
eventsSubscrInTheUCD.add(eventSub);
}
}
String freemarkerTPath = profileConfiguration.get(FREEMARKER_TEMPLATE_PATH, String.class);
String freemakerTHost = profileConfiguration.get(FREEMARKER_TEMPLATE_HOST, String.class);
cbpcm.setContext(context);
cbpcm.setFreemarker_template_host(freemakerTHost);
cbpcm.setFreemarker_template_path(freemarkerTPath);
cbpcm.setListEventSubscribed(eventsSubscrInTheUCD);
// updating the cache
mapCatalogBindingPerContext.put(useCaseDescriptor.getId(), cbpcm);
catalogueBindingMap.put(context, mapCatalogBindingPerContext);
log.info("Events subscribed read from config {} ", eventsSubscrInTheUCD);
}
} catch (InvalidProfileException e) {
log.warn("Unable to read configuration for {} in the UCD {}", CatalogueBindingPlugin.PLUGIN_ID,
useCaseDescriptor.getId());
} catch (Exception e) {
log.error("Unable to read configuration ", e);
} catch (Throwable t) {
log.error("Exception, Unable to read configuration ", t);
}
return cbpcm;
}
/**
* Check if subscribed event.
*
* @param observerd the observerd
* @return true, if successful
*/
public boolean checkIfSubscribedEvent(ItemObserved<Project> observerd) {
log.info("Checking if {} is an subscribed event", observerd.getEvent());
try {
CatalogueBindingPluginConfigModel cbpcm = readEventsSubscribedFromConfigurationInTheUCD(
observerd.getUseCaseDescriptor());
List<EventSubscribed> listEvents = cbpcm.getListEventSubscribed();
log.info("List events is {}", listEvents);
if (listEvents == null) {
log.info("no event subscribed, returing false");
return false;
}
if (listEvents.stream().filter(e -> e.getEvent().equals(observerd.getEvent())).count() > 0) {
log.info("the event {} is subscribed from config ", observerd.getEvent());
return true;
}
log.info("the event {} is not subscribed from config ", observerd.getEvent());
return false;
} catch (Exception e) {
log.error("Exception, Error on checking subscribed events", e);
return false;
}
}
/**
* Shutdown.
*
* @throws ShutDownException the shut down exception
*/
@Override
public void shutdown() throws ShutDownException {
// TODO Auto-generated method stub
}
/**
* Do action.
*
* @param itemObserved the item observed
*/
@Override
public void doAction(ItemObserved<Project> itemObserved) {
log.debug("doAction called...");
boolean isSubscribedEvent = checkIfSubscribedEvent(itemObserved);
log.info("Is the event {} subscribed by " + CatalogueBindingPlugin.class.getSimpleName()
+ " configured in the UCD? {} ", itemObserved.getEvent(), isSubscribedEvent);
if (isSubscribedEvent) {
// Map (UCD_ID, CatalogueBindingPluginConfigModel)
Map<String, CatalogueBindingPluginConfigModel> mapCatalogBindingPerContext = getCatalogueBindingMapPerContext();
// CatalogueBindingPluginConfigModel per UCD
CatalogueBindingPluginConfigModel cbm = mapCatalogBindingPerContext.get(itemObserved.getUCD_Id());
List<EventSubscribed> list = cbm.getListEventSubscribed().stream()
.filter(e -> e.getEvent().equals(itemObserved.getEvent())).collect(Collectors.toList());
if (list.size() > 0) {
// expected one configuration for event type
EventSubscribed eventSubscribed = list.get(0);
BindingAction ba = new BindingAction(itemObserved, eventSubscribed, cbm.getFreemarker_template_host(),
cbm.getFreemarker_template_path());
ba.doAction();
}
}
}
}

View File

@ -0,0 +1,14 @@
package org.gcube.application.cms.cataloguebinding;
import java.util.List;
import org.gcube.application.cms.cataloguebinding.config.BindingWhen;
import org.gcube.application.cms.plugins.events.EventManager.Event;
import lombok.Data;
@Data
public class EventSubscribed {
Event event;
List<BindingWhen> when;
}

View File

@ -0,0 +1,19 @@
package org.gcube.application.cms.cataloguebinding.config;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
/**
* Instantiates a new notification when.
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class BindingWhen {
List<String> target_phase;
String last_invoked_step;
}

View File

@ -0,0 +1,21 @@
package org.gcube.application.cms.cataloguebinding.config;
import java.util.List;
import org.gcube.application.cms.cataloguebinding.EventSubscribed;
import lombok.Data;
@Data
public class CatalogueBindingPluginConfigModel {
String context; // the scope
List<EventSubscribed> listEventSubscribed;
String freemarker_template_path;
String freemarker_template_host;
Boolean enabled = false;
}

View File

@ -0,0 +1,16 @@
package org.gcube.application.cms.cataloguebinding.config;
import java.util.List;
import org.gcube.com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
public class SubscribeEventsConfig {
private String event;
@JsonProperty("when")
private List<BindingWhen> when;
}

View File

@ -0,0 +1,152 @@
package org.gcube.application.cms.cataloguebinding.doaction;
import java.io.IOException;
import java.util.List;
import org.gcube.application.cms.cataloguebinding.EventSubscribed;
import org.gcube.application.cms.cataloguebinding.config.BindingWhen;
import org.gcube.application.cms.cataloguebinding.freemarker.FreemarkerConfig;
import org.gcube.application.cms.cataloguebinding.freemarker.MappingToCatalogue;
import org.gcube.application.cms.plugins.events.ItemObserved;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.document.lifecycle.LifecycleInformation;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class BindingAction {
private static final String TARGET_PHASE_DRAFT = "DRAFT";
private static final String TARGET_PHASE_PUBLISHED = "Published";
private ItemObserved<Project> itemObserved;
private EventSubscribed eventSubscribed;
private String templateHost;
private String templatePath;
public BindingAction(ItemObserved<Project> itemObserved, EventSubscribed eventSubscribed, String templateHost,
String templatePath) {
this.itemObserved = itemObserved;
this.eventSubscribed = eventSubscribed;
this.templateHost = templateHost;
this.templatePath = templatePath;
}
public void doAction() {
log.info("Do action called on: {}", itemObserved.getEvent());
// The project id is the dataset name
String datasetName = itemObserved.getProjectId();
try {
switch (eventSubscribed.getEvent()) {
case PROJECT_CREATED: {
log.info("Going to create item with id {} on the catalogue...", datasetName);
// Create or Update the item on the catalogue
String catalogueItemJSON = toCatalogueItem();
if (catalogueItemJSON != null)
new GCatCaller().createOrUpdateTheDatasetOnCatalogue(datasetName, catalogueItemJSON);
break;
}
case PROJECT_DELETED: {
log.info("Going to delete item with name {} on the catalogue...", datasetName);
new GCatCaller().deleteDatasetOnCatalogue(datasetName);
break;
}
case PROJECT_UPDATED: {
log.info("Going to update item with id {} on the catalogue...", datasetName);
// Create or Update the item on the catalogue
String catalogueItemJSON = toCatalogueItem();
if (catalogueItemJSON != null)
new GCatCaller().createOrUpdateTheDatasetOnCatalogue(datasetName, catalogueItemJSON);
break;
}
case LIFECYCLE_STEP_PERFORMED: {
List<BindingWhen> listBindingWhen = eventSubscribed.getWhen();
if (listBindingWhen == null || listBindingWhen.size() == 0) {
log.warn("No binding found, so returning!!");
return;
}
for (BindingWhen bindingWhen : listBindingWhen) {
log.info("Checking configuration matching on: {}", bindingWhen);
if (bindingWhen.getTarget_phase() == null || bindingWhen.getTarget_phase().size() == 0) {
log.warn("No binding on target_phase, so returning!!");
continue;
}
if (bindingWhen.getLast_invoked_step() == null
|| bindingWhen.getLast_invoked_step().length() == 0) {
log.warn("No binding on last invoked step, so returning!!");
continue;
}
// Reading 'phase' and 'lastInvokedStep' properties from itemObserved
LifecycleInformation lInfo = itemObserved.getProject().getLifecycleInformation();
String itemPhase = lInfo.getPhase();
String lastInvokedStep = lInfo.getLastInvokedStep();
log.info("ItemObserved phase is: {}, lastInvokedStep is: {}", itemPhase, lastInvokedStep);
// If there is matching between the plugin configuration and item observed on
// phase' and 'lastInvokedStep' fields
if (bindingWhen.getTarget_phase().contains(itemPhase)
&& bindingWhen.getLast_invoked_step().equalsIgnoreCase(lastInvokedStep)) {
log.info(
"The item observerd has phase '{}' and lastInvokedStep '{}' like the plugin configuration model",
itemPhase, lastInvokedStep);
if (itemPhase.equalsIgnoreCase(TARGET_PHASE_PUBLISHED)) {
String catalogueItemJSON = toCatalogueItem();
if (catalogueItemJSON != null) {
log.info("Going to create item with name {} on the catalogue...", datasetName);
new GCatCaller().createOrUpdateTheDatasetOnCatalogue(datasetName, catalogueItemJSON);
}
} else if (itemPhase.equalsIgnoreCase(TARGET_PHASE_DRAFT)) {
// Delete the item on the catalogue
log.info("Going to delete item with name {} on the catalogue...", datasetName);
new GCatCaller().deleteDatasetOnCatalogue(datasetName);
}
} else {
log.info(
"Skipping the operation!! No mathing {} status with plugin configuration model [bindingWhen phase '{}', lastInvokedStep '{}']",
ItemObserved.class.getSimpleName(), itemPhase, lastInvokedStep);
}
}
break;
}
default:
break;
}
} catch (Exception e) {
log.error("Error on applying binding action: ", e);
}
}
public String toCatalogueItem() {
String toCatalogueJSON = null;
try {
FreemarkerConfig fmc = new FreemarkerConfig(templateHost);
Template fmTemplate = fmc.getTemplate(templatePath);
toCatalogueJSON = MappingToCatalogue.apply(fmTemplate, itemObserved.getProject(),
itemObserved.getUseCaseDescriptor(), itemObserved.getContext().getId());
} catch (TemplateException | IOException e) {
log.error("Error: ", e);
}
return toCatalogueJSON;
}
}

View File

@ -0,0 +1,110 @@
/*
*
*/
package org.gcube.application.cms.cataloguebinding.doaction;
import java.net.MalformedURLException;
import javax.ws.rs.WebApplicationException;
import org.gcube.gcat.client.Item;
import lombok.extern.slf4j.Slf4j;
/**
* The Class GCatCaller.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Jun 20, 2024
*/
@Slf4j
public class GCatCaller {
/**
* Creates the or update the dataset on catalogue.
*
* @param datasetName the dataset name
* @param datasetJSON the dataset JSON
* @throws Exception
*/
public void createOrUpdateTheDatasetOnCatalogue(String datasetName, String datasetJSON) throws Exception {
log.info("createOrUpdateTheDatasetOnCatalogue with name {} called", datasetName);
try {
boolean datasetExists = false;
try {
String dataset = new Item().read(datasetName);
datasetExists = dataset != null ? true : false;
} catch (Exception e) {
}
log.info("datasetExists is {}", datasetExists);
if (!datasetExists) {
log.info("calling create dataset...");
String itemCreated = new Item().create(datasetJSON, false);
if (itemCreated != null)
log.info("Dataset created with success");
else
log.warn("Dataset not created!");
} else {
log.info("calling update dataset...");
String itemCreated = new Item().update(datasetName, datasetJSON);
if (itemCreated != null)
log.info("Dataset updated with success!");
else
log.warn("Dataset not updated!");
}
} catch (WebApplicationException | MalformedURLException e) {
log.error("Error occurred on creating the dataset " + datasetName + " on the catalogue", e);
throw e;
}
}
/**
* Delete dataset on catalogue.
*
* @param datasetName the dataset name
*/
public void deleteDatasetOnCatalogue(String datasetName) {
log.info("deleteDatasetOnCatalogue with name {} called", datasetName);
try {
boolean datasetExists = false;
try {
String dataset = new Item().read(datasetName);
datasetExists = dataset != null ? true : false;
} catch (Exception e) {
}
log.info("datasetExists is {}", datasetExists);
if (datasetExists) {
log.info("calling delete dataset and purge");
new Item().delete(datasetName, true);
log.info("Dataset deleted and purged with success!");
} else {
log.warn("Dataset does not exists, returning..");
return;
}
} catch (WebApplicationException | MalformedURLException e) {
log.error("Error occurred on deleting the dataset " + datasetName + " on the catalogue", e);
}
}
public String list(int limit, int offset) {
log.info("list called");
try {
return new Item().list(limit, offset);
} catch (WebApplicationException | MalformedURLException e) {
log.error("Error occurred on listing datasets", e);
}
return null;
}
}

View File

@ -0,0 +1,47 @@
package org.gcube.application.cms.cataloguebinding.freemarker;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Properties;
import freemarker.core.ParseException;
import freemarker.template.Configuration;
import freemarker.template.MalformedTemplateNameException;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import freemarker.template.TemplateNotFoundException;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class FreemarkerConfig {
private String urlPathToTemplate;
private RemoteTemplateLoader rtl;
private Configuration cfg = new Configuration(Configuration.VERSION_2_3_32);
public FreemarkerConfig(String urlPathToTemplate) throws MalformedURLException, TemplateException {
log.debug("Init "+FreemarkerConfig.class.getSimpleName()+" with root url: "+urlPathToTemplate);
this.urlPathToTemplate = urlPathToTemplate;
this.rtl = new RemoteTemplateLoader(new URL(urlPathToTemplate));
freeMarkerConfigurer();
}
private Configuration freeMarkerConfigurer() throws TemplateException {
Properties properties = new Properties();
properties.setProperty("localized_lookup", "false");
this.cfg.setSettings(properties);
this.cfg.setTemplateLoader(rtl);
this.cfg.setDefaultEncoding("UTF-8");
return cfg;
}
public Template getTemplate(String templateName) throws TemplateNotFoundException, MalformedTemplateNameException, ParseException, IOException {
return cfg.getTemplate(templateName);
}
public String getUrlPathToTemplate() {
return urlPathToTemplate;
}
}

View File

@ -0,0 +1,175 @@
package org.gcube.application.cms.cataloguebinding.freemarker;
import java.io.IOException;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import org.bson.Document;
import org.gcube.application.cms.cataloguebinding.gis.GisClient;
import org.gcube.application.cms.cataloguebinding.util.JSONObjectOrdered;
import org.gcube.application.cms.cataloguebinding.util.SerializationUtil;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
import org.gcube.portlets.user.uriresolvermanager.resolvers.query.GeoportalResolverQueryStringBuilder.RESOLVE_AS;
import org.gcube.portlets.user.uriresolvermanager.resolvers.query.GeoportalResolverQueryStringBuilder.TARGET_GEOPORTAL_APP;
import org.json.JSONException;
import org.json.JSONObject;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.jayway.jsonpath.DocumentContext;
import com.jayway.jsonpath.JsonPath;
import com.jayway.jsonpath.spi.json.JsonOrgJsonProvider;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import lombok.extern.slf4j.Slf4j;
/**
* The Class MappingToCatalogue.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Jun 20, 2024
*/
@Slf4j
public class MappingToCatalogue {
private static final String SYSTEM_TYPE = "system:type";
private static final String GIS_LINK = "Gis Link";
/**
* Apply.
*
* @param fmTemplate the fm template
* @param theProject the the project
* @param ucd the ucd
* @param scope the scope
* @return the string
* @throws TemplateException
* @throws IOException
*/
public static String apply(Template fmTemplate, Project theProject, UseCaseDescriptor ucd, String scope)
throws TemplateException, IOException {
log.info("Apply template {} to project with id '{}' and ucd id '{}' called", fmTemplate.getName(),
theProject.getId(), ucd.getId());
try {
// Getting project as document
Document asDocument = SerializationUtil.asDocument(theProject);
// Transforming the document as json
String json = asDocument.toJson();
// Getting map from json object
Map toJsonMap = fmtJsonUtil(json);
// Putting the map as doc to apply the freemarker template
StringWriter stringWriter = new StringWriter();
Map root = new HashMap();
root.put("doc", toJsonMap);
// applying the freemarker template
fmTemplate.process(root, stringWriter);
log.info("template applied with success..");
String toCatalogueDatasetJSON = stringWriter.toString();
if (log.isTraceEnabled()) {
log.trace("Template applyed with result: " + toCatalogueDatasetJSON);
}
// Parsing the Catalogue Dataset json as Document Context
com.jayway.jsonpath.Configuration configuration = com.jayway.jsonpath.Configuration.builder()
.jsonProvider(new JsonOrgJsonProvider()).build();
DocumentContext theDoc = JsonPath.parse(toCatalogueDatasetJSON, configuration);
log.info("Adding service fields..");
// Adding GIS LINK to doc
// TODO ACTIVATE THIS FOR GENERATING GIS LINK
JSONObject theGisLinkObj = JSONObjectOrdered.instance();
try {
String link = GisClient.gisLink(RESOLVE_AS.PUBLIC, ucd.getId(), theProject.getId(), scope,
TARGET_GEOPORTAL_APP.GEO_DV, true);
theGisLinkObj.put("key", GIS_LINK);
theGisLinkObj.put("value", link);
theDoc.add("$.extras", theGisLinkObj);
} catch (JSONException e) {
String error = "Error occurrend on adding " + GIS_LINK;
log.warn(error, e);
}
// Adding system:type to doc
try {
JSONObject theSystemType = JSONObjectOrdered.instance();
theSystemType.put("key", SYSTEM_TYPE);
theSystemType.put("value", ucd.getName());
theDoc.add("$.extras", theSystemType);
} catch (JSONException e) {
String error = "Error occurrend on adding " + SYSTEM_TYPE;
log.warn(error, e);
}
String catalogueDatasetJSON = prettyPrintJsonUtil(theDoc.jsonString(), false);
log.info("To catalogue JSON: \n" + catalogueDatasetJSON);
log.info("returning catalogue dataset, json lenght is: " + catalogueDatasetJSON.length());
return catalogueDatasetJSON;
} catch (IOException e) {
log.error(IOException.class.getName() + " on apply mapping to catalogue: ", e);
throw e;
} catch (TemplateException e) {
log.error(TemplateException.class.getName() + " on apply mapping to catalogue: ", e);
throw e;
}
}
/**
* Fmt json util.
*
* @param json the json
* @return the map
* @throws JsonParseException the json parse exception
* @throws JsonMappingException the json mapping exception
* @throws IOException Signals that an I/O exception has occurred.
*/
public static Map<String, Object> fmtJsonUtil(String json)
throws JsonParseException, JsonMappingException, IOException {
ObjectMapper OBJECT_MAPPER = new ObjectMapper();
return OBJECT_MAPPER.readValue(json, new TypeReference<HashMap<String, Object>>() {
});
}
/**
* Pretty print json util.
*
* @param uglyJsonString the ugly json string
* @return the string
*/
public static String prettyPrintJsonUtil(String uglyJsonString, boolean indent) {
ObjectMapper mapper = new ObjectMapper();
if (indent)
mapper.enable(SerializationFeature.INDENT_OUTPUT);
Object jsonObject;
String prettyJson = "";
try {
if (indent)
jsonObject = mapper.readValue(uglyJsonString, Object.class);
else
jsonObject = mapper.readValue(uglyJsonString, JsonNode.class);
prettyJson = mapper.writeValueAsString(jsonObject);
} catch (IOException e) {
return uglyJsonString;
}
return prettyJson;
}
}

View File

@ -0,0 +1,44 @@
package org.gcube.application.cms.cataloguebinding.freemarker;
import java.net.MalformedURLException;
import java.net.URL;
import freemarker.cache.URLTemplateLoader;
/**
* The Class RemoteTemplateLoader.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Jun 19, 2024
*/
public class RemoteTemplateLoader extends URLTemplateLoader {
private URL root;
/**
* Instantiates a new remote template loader.
*
* @param root the root
*/
public RemoteTemplateLoader(URL root) {
super();
this.root = root;
}
/**
* Gets the url.
*
* @param template the template
* @return the url
*/
@Override
protected URL getURL(String template) {
try {
return new URL(root, "/" + template);
} catch (MalformedURLException e) {
e.printStackTrace();
}
return null;
}
}

View File

@ -0,0 +1,42 @@
package org.gcube.application.cms.cataloguebinding.gis;
import java.util.Map;
import org.gcube.portlets.user.uriresolvermanager.UriResolverManager;
import org.gcube.portlets.user.uriresolvermanager.resolvers.query.GeoportalResolverQueryStringBuilder;
import org.gcube.portlets.user.uriresolvermanager.resolvers.query.GeoportalResolverQueryStringBuilder.RESOLVE_AS;
import org.gcube.portlets.user.uriresolvermanager.resolvers.query.GeoportalResolverQueryStringBuilder.TARGET_GEOPORTAL_APP;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class GisClient {
public static String gisLink(RESOLVE_AS resolveAs, String profileID, String projectID, String scope, TARGET_GEOPORTAL_APP targetApp, boolean shortLink) {
log.debug("called gisLink as {} for scope {}, profileId {}, projectId {} ", resolveAs, scope, profileID,
projectID);
String theLink = "";
try {
log.debug("Trying to generate Geoportal Gis Link...");
// Contacting the Geoportal-Resolver via UriResolverManager
UriResolverManager uriResolverManager = new UriResolverManager("GEO");
GeoportalResolverQueryStringBuilder builder = new GeoportalResolverQueryStringBuilder(profileID, projectID);
builder.scope(scope);
builder.resolverAs(resolveAs);
if(targetApp!=null)
builder.targetApp(targetApp);
Map<String, String> params = builder.buildQueryParameters();
theLink = uriResolverManager.getLink(params, shortLink);
log.info("Geoportal GisViewer link is {} ", theLink);
} catch (Exception e) {
log.error("Error on creating the Geoportal GisViewer link for project id {}", projectID, e);
}
return theLink;
}
}

View File

@ -0,0 +1,33 @@
package org.gcube.application.cms.cataloguebinding.util;
import java.lang.reflect.Field;
import java.util.LinkedHashMap;
import org.json.JSONObject;
/**
* The Class JSONObjecOrdered.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Mar 10, 2022
*/
public final class JSONObjectOrdered {
/**
* Instance.
*
* @return the JSON object
*/
public static JSONObject instance() {
JSONObject jsonObject = new JSONObject();
try {
Field changeMap = jsonObject.getClass().getDeclaredField("map");
changeMap.setAccessible(true);
changeMap.set(jsonObject, new LinkedHashMap<>());
changeMap.setAccessible(false);
} catch (IllegalAccessException | NoSuchFieldException e) {
}
return jsonObject;
}
}

View File

@ -0,0 +1,117 @@
package org.gcube.application.cms.cataloguebinding.util;
import java.io.IOException;
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 SerializationUtil {
public static ObjectMapper mapper;
static {
mapper=new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);
mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
mapper.registerModule(new JavaTimeModule());
SimpleModule s=new SimpleModule();
s.addDeserializer(ObjectId.class,new ObjectIdDeserializer());
s.addSerializer(ObjectId.class,new ObjectIdSerializer());
s.addDeserializer(Semver.class,new SemverDeserializer());
s.addSerializer(Semver.class,new SemverSerializer());
mapper.registerModule(s);
}
public static String write(Object toWrite) throws JsonProcessingException {
String toReturn= mapper.writeValueAsString(toWrite);
return toReturn;
}
//**** PROFILED DOCUMENTS
public static final <T> T convert(Object d,Class<T> clazz){
return mapper.convertValue(d,clazz);
}
public static final Document asDocument(Object obj) throws JsonProcessingException {
return Document.parse(mapper.writeValueAsString(obj));
}
// ***** SerializationUtil Exceptions
// OBJECT ID
private static class ObjectIdSerializer extends JsonSerializer<ObjectId> {
@Override
public void serialize(ObjectId objectId, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException, JsonProcessingException {
if (objectId == null) jsonGenerator.writeNull();
else jsonGenerator.writeString(objectId.toString());
}
@Override
public Class<ObjectId> handledType() {
return ObjectId.class;
}
}
private static class ObjectIdDeserializer extends JsonDeserializer<ObjectId> {
@Override
public ObjectId deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
String value=jsonParser.getValueAsString();
if(value==null || value.isEmpty() || value.equals("null"))
return null;
else return new ObjectId(value);
}
@Override
public Class<ObjectId> handledType() {
return ObjectId.class;
}
}
//Sem Version
private static class SemverSerializer extends JsonSerializer<Semver> {
@Override
public void serialize(Semver semver, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException, JsonProcessingException {
if (semver == null) jsonGenerator.writeNull();
else jsonGenerator.writeString(semver.getValue());
}
@Override
public Class<Semver> handledType() {
return Semver.class;
}
}
private static class SemverDeserializer extends JsonDeserializer<Semver> {
@Override
public Semver deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
String value=jsonParser.getValueAsString();
if(value==null || value.isEmpty() || value.equals("null"))
return null;
else return new Semver(value);
}
@Override
public Class<Semver> handledType() {
return Semver.class;
}
}
}

View File

@ -0,0 +1 @@
/resources/

View File

@ -0,0 +1,107 @@
package geoportal_to_catalogue;
import org.gcube.application.cms.cataloguebinding.doaction.GCatCaller;
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.common.scope.api.ScopeProvider;
import org.json.JSONArray;
import org.json.JSONException;
import test.TestContextConfig;
public class CataloguePurgeDatasets {
public static void main(String[] args) {
TestContextConfig.readContextSettings();
System.out.println("CONTEXT: " + TestContextConfig.CONTEXT);
System.out.println("TOKEN: " + TestContextConfig.TOKEN);
int limit = 10;
int offset = 0;
boolean resultExists = true;
while (resultExists) {
System.out.println("offest: " + offset + ", limit: " + limit);
ScopeProvider.instance.set(TestContextConfig.CONTEXT);
SecurityTokenProvider.instance.set(TestContextConfig.TOKEN);
String items = new GCatCaller().list(limit, offset);
System.out.println("items: " + items);
if (items != null) {
resultExists = true;
JSONArray array;
try {
array = new JSONArray(items);
if (array.length() > 0) {
purgeDatasets(array);
} else
resultExists = false;
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
offset = limit + offset;
} else
resultExists = false;
}
System.out.println("done!");
}
public static void purgeDatasets(JSONArray array) {
try {
int index = 0;
int sleepingTime = 4000;
for (int i = 0; i < array.length(); i++) {
index++;
String datasetName = array.getString(i);
System.out.println(index + ") Deleting dataset name : " + datasetName);
ScopeProvider.instance.set(TestContextConfig.CONTEXT);
SecurityTokenProvider.instance.set(TestContextConfig.TOKEN);
new GCatCaller().deleteDatasetOnCatalogue(datasetName);
System.out.println("sleeping..." + sleepingTime);
Thread.sleep(sleepingTime);
}
System.out.println("done!");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static void purgeDatasets(int limit, int offset) {
TestContextConfig.readContextSettings();
try {
ScopeProvider.instance.set(TestContextConfig.CONTEXT);
SecurityTokenProvider.instance.set(TestContextConfig.TOKEN);
String items = new GCatCaller().list(limit, offset);
System.out.println("items: " + items);
JSONArray array = new JSONArray(items);
for (int i = 0; i < array.length(); i++) {
String datasetName = array.getString(i);
System.out.println(i + ") name : " + datasetName);
ScopeProvider.instance.set(TestContextConfig.CONTEXT);
SecurityTokenProvider.instance.set(TestContextConfig.TOKEN);
new GCatCaller().deleteDatasetOnCatalogue(datasetName);
Thread.sleep(5000);
}
System.out.println("done!");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,487 @@
package geoportal_to_catalogue;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.rmi.RemoteException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.gcube.application.cms.cataloguebinding.doaction.GCatCaller;
import org.gcube.application.cms.cataloguebinding.freemarker.MappingToCatalogue;
import org.gcube.application.geoportal.common.model.configuration.Archive;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
import org.gcube.application.geoportal.common.rest.Projects;
import org.gcube.application.geoportalcommon.geoportal.GeoportalClientCaller;
import org.gcube.application.geoportalcommon.geoportal.ProjectsCaller;
import org.gcube.application.geoportalcommon.shared.SearchingFilter;
import org.gcube.application.geoportalcommon.shared.SearchingFilter.LOGICAL_OP;
import org.gcube.application.geoportalcommon.shared.SearchingFilter.ORDER;
import org.gcube.application.geoportalcommon.shared.WhereClause;
import org.gcube.application.geoportalcommon.shared.geoportal.config.ItemFieldDV;
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.common.scope.api.ScopeProvider;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import lombok.extern.slf4j.Slf4j;
import test.TestContextConfig;
/**
* The Class GeoportalToCatalogueBatchPublisher.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Jun 25, 2024
*/
@Slf4j
public class GeoportalToCatalogueBatchPublisher {
public final static String profileID = "profiledConcessioni";
public final static Integer MAX_ITEMS = 100;
static PrintWriter reportPrintWriter;
static PrintWriter errorPrintWriter;
private static long startTime;
private static final String CSV_DELIMITER = ";";
/**
* The main method.
*
* @param args the arguments
*/
public static void main(String[] args) {
//procedureToPublishProjectsOnCatalogue();
String projectId = " 6663016a312dc236d217be5c";
checkMappingToJSONForProjectByID(projectId);
}
public static void checkMappingToJSONForProjectByID(String projectID) {
TestContextConfig.readContextSettings();
String sourceScope = TestContextConfig.CONTEXT;
String sourceToken = TestContextConfig.TOKEN;
ScopeProvider.instance.set(sourceScope);
SecurityTokenProvider.instance.set(sourceToken);
ProjectsCaller clientProjects = GeoportalClientCaller.projects();
Projects<Project> client = (Projects<Project>) clientProjects.getClient(profileID);
try {
UseCaseDescriptor ucd = GeoportalClientCaller.useCaseDescriptors().getUCDForId(profileID);
Project theProject = client.getById(projectID);
log.info("\n\nConverting the project {}", theProject.getId());
String toCatalogueJSON = mapToCatalogue(theProject, ucd, sourceScope, sourceToken);
String jsonPretty = prettyPrintUsingGson(toCatalogueJSON);
log.info(jsonPretty);
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
private static void procedureToPublishProjectsOnCatalogue() {
TestContextConfig.readContextSettings();
String sourceScope = TestContextConfig.CONTEXT;
String sourceToken = TestContextConfig.TOKEN;
String reportFile = TestContextConfig.CONTEXT.replaceAll("/", "_") + "_report_.csv";
String errorFile = TestContextConfig.CONTEXT.replaceAll("/", "_") + "_error_.csv";
try {
Files.deleteIfExists(Paths.get(reportFile));
Files.deleteIfExists(Paths.get(errorFile));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
FileWriter reportWriter = new FileWriter(reportFile, true);
FileWriter errorWriter = new FileWriter(errorFile, true);
BufferedWriter reportBW = new BufferedWriter(reportWriter);
BufferedWriter errorBW = new BufferedWriter(errorWriter);
reportPrintWriter = new PrintWriter(reportBW);
reportPrintWriter.println("NB." + CSV_DELIMITER + " PROJECT_ID" + CSV_DELIMITER + " MAPPING_TO_CATALOGUE"
+ CSV_DELIMITER + "");
errorPrintWriter = new PrintWriter(errorBW);
errorPrintWriter.println("NB." + CSV_DELIMITER + " PROJECT_ID" + CSV_DELIMITER + " MAPPING_TO_CATALOGUE"
+ CSV_DELIMITER + " ERROR" + CSV_DELIMITER + "");
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("Procedure starting at: "+getFormattedDateTime());
startTime = System.currentTimeMillis();
Integer totalProjects = null;
try {
ScopeProvider.instance.set(sourceScope);
SecurityTokenProvider.instance.set(sourceToken);
totalProjects = getTotalProjects(profileID);
} catch (Exception e) {
e.printStackTrace();
}
if (totalProjects == null) {
log.error("No document found!!!");
return;
}
log.info("Total projects are: " + totalProjects);
boolean documentFound = true;
boolean maxItemsReached = false;
int limit = 10;
int offset = 0;
int counter = 0;
try {
while (documentFound && !maxItemsReached) {
try {
/**
*
* ##### NB!!!! USING SOURCE SCOPE
*
*/
ScopeProvider.instance.set(sourceScope);
SecurityTokenProvider.instance.set(sourceToken);
List<Project> list = getListProjects(limit, offset);
log.info("limit {}, offset {}", limit, offset);
if (list.size() > 0) {
UseCaseDescriptor ucd = GeoportalClientCaller.useCaseDescriptors().getUCDForId(profileID);
for (int i = 0; i < list.size(); i++) {
counter++;
log.info("\n\nConuter is: " + counter);
if (MAX_ITEMS != null && counter > MAX_ITEMS) {
maxItemsReached = true;
log.info("\n###### MAX_ITEMS reached: " + maxItemsReached);
break;
}
Project theProject = list.get(i);
log.info("\n\nConverting the project {}", theProject.getId());
String toCatalogueJSON = "";
try {
toCatalogueJSON = mapToCatalogue(theProject, ucd, sourceScope, sourceToken);
/**
*
* ##### NB!!!! USING TARGET SCOPE
*
*/
String targetScope = "";
String targetToken = "";
if(targetScope==null || targetToken==null) {
throw new Exception("Check targetScope and/or targetToken!!!");
}
ScopeProvider.instance.set(targetScope);
SecurityTokenProvider.instance.set(targetToken);
log.info("\n publishOnCatalogue the PROJECT N. " + counter + " with id: "
+ theProject.getId());
publishOnCatalogue(theProject, toCatalogueJSON);
log.info("\n end publishOnCatalogue the PROJECT N. " + counter);
writeReport(counter + CSV_DELIMITER + " " + theProject.getId() + CSV_DELIMITER + "'"
+ toCatalogueJSON + "'" + CSV_DELIMITER);
log.info("\n###### sleeping " + counter);
Thread.sleep(3000);
} catch (Exception e) {
log.error("ERROR on publishing project with id: " + theProject.getId());
writeError(counter + CSV_DELIMITER + " " + theProject.getId() + CSV_DELIMITER + " '"
+ toCatalogueJSON + "'" + CSV_DELIMITER + " '" + e.getMessage() + "'"
+ CSV_DELIMITER);
}
}
} else {
documentFound = false;
}
offset = offset + limit;
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
documentFound = false;
}
}
} catch (Exception e) {
log.error("External error");
e.printStackTrace();
} finally {
if (reportPrintWriter != null)
reportPrintWriter.close();
if (errorPrintWriter != null)
errorPrintWriter.close();
System.out.println("\n\nFINISHED!!!");
System.out.println("Procedure terimated at: "+getFormattedDateTime());
long millis = System.currentTimeMillis()-startTime;
long minutes = TimeUnit.MILLISECONDS.toMinutes(millis);
System.out.println("Done! In ms: "+(millis) + ", minutes: "+minutes);
}
}
/**
* Publish on catalogue.
*
* @param theProject the the project
* @param toCatalogueJSON the to catalogue JSON
* @throws Exception the exception
*/
public static void publishOnCatalogue(Project theProject, String toCatalogueJSON) throws Exception {
new GCatCaller().createOrUpdateTheDatasetOnCatalogue(theProject.getId(), toCatalogueJSON);
}
/**
* Map to catalogue.
*
* @param theProject the the project
* @param ucd the ucd
* @param sourceScope the source scope
* @param sourceToken the source token
* @return the string
* @throws TemplateException the template exception
* @throws IOException Signals that an I/O exception has occurred.
*/
public static String mapToCatalogue(Project theProject, UseCaseDescriptor ucd, String sourceScope,
String sourceToken) throws TemplateException, IOException {
log.info("\n\nMapping the PROJECT with id: " + theProject.getId());
ScopeProvider.instance.set(sourceScope);
SecurityTokenProvider.instance.set(sourceToken);
Template fmTemplate = getLocalFreemarkerTemplate();
String toCatalogueJSON = MappingToCatalogue.apply(fmTemplate, theProject, ucd, sourceScope);
log.trace("mapping is: " + toCatalogueJSON);
return toCatalogueJSON;
}
/**
* Gets the list projects.
*
* @return the list projects
* @throws Exception the exception
*/
public static List<Project> getListProjects() throws Exception {
ProjectsCaller clientProjects = GeoportalClientCaller.projects();
return clientProjects.getListForProfileID(profileID);
}
/**
* Gets the list projects.
*
* @param limit the limit
* @param offset the offset
* @return the list projects
* @throws Exception the exception
*/
public static List<Project> getListProjects(int limit, int offset) throws Exception {
ProjectsCaller clientProjects = GeoportalClientCaller.projects();
SearchingFilter filter = new SearchingFilter();
filter.setOrder(ORDER.DESC);
List<ItemFieldDV> orederByFields = new ArrayList<ItemFieldDV>();
// Order By
ItemFieldDV fieldUpdated = new ItemFieldDV("Updated", Arrays.asList("_info._lastEditInfo._instant"), "$or",
true, true, true);
orederByFields.add(fieldUpdated);
// Where Conditions
List<WhereClause> conditions = new ArrayList<WhereClause>();
Map<String, Object> searchInto = new HashMap<String, Object>();
searchInto.put("_lifecycleInformation._phase", "Published");
conditions.add(new WhereClause(LOGICAL_OP.OR, searchInto));
filter.setConditions(conditions);
filter.setOrderByFields(orederByFields);
Iterator<Project> iterator = clientProjects.queryOnMongo(profileID, 300, offset, limit, filter);
List<Project> listP = new ArrayList<Project>();
while (iterator.hasNext()) {
listP.add(iterator.next());
}
return listP;
}
/**
* Gets the total projects.
*
* @param profileID the profile ID
* @return the total projects
* @throws Exception the exception
*/
public static Integer getTotalProjects(String profileID) throws Exception {
System.out.println("getTotalDocument called for profileID: " + profileID);
ProjectsCaller clientProjects = GeoportalClientCaller.projects();
Projects<Project> client = (Projects<Project>) clientProjects.getClient(profileID);
org.gcube.application.geoportal.common.model.configuration.Configuration config = client.getConfiguration();
List<Archive> listArchives = config.getArchives();
for (Archive archive : listArchives) {
String theType = archive.getString("_type");
if (theType.equalsIgnoreCase(ProjectsCaller.DOCUMENT_STORE_COLLECTION)) {
String totalDocumentAre = archive.get("count").toString();
int total = Integer.parseInt(totalDocumentAre);
log.info("total docs for profileID: {}, are: {}", profileID, total);
return total;
}
}
return null;
}
/**
* Fmt json util.
*
* @param json the json
* @return the map
* @throws JsonParseException the json parse exception
* @throws JsonMappingException the json mapping exception
* @throws IOException Signals that an I/O exception has occurred.
*/
public static Map<String, Object> fmtJsonUtil(String json)
throws JsonParseException, JsonMappingException, IOException {
ObjectMapper OBJECT_MAPPER = new ObjectMapper();
return OBJECT_MAPPER.readValue(json, new TypeReference<HashMap<String, Object>>() {
});
}
/**
* Gets the local freemarker template.
*
* @return the local freemarker template
* @throws IOException Signals that an I/O exception has occurred.
*/
public static Template getLocalFreemarkerTemplate() throws IOException {
// Create your Configuration instance, and specify if up to what FreeMarker
// version (here 2.3.32) do you want to apply the fixes that are not 100%
// backward-compatible. See the Configuration JavaDoc for details.
Configuration cfg = new Configuration(Configuration.VERSION_2_3_32);
System.out.println("Working Directory = " + System.getProperty("user.dir"));
// Specify the source where the template files come from. Here I set a
// plain directory for it, but non-file-system sources are possible too:
cfg.setDirectoryForTemplateLoading(
new File(System.getProperty("user.dir") + "/src/test/java/geoportal_to_catalogue"));
// Set the preferred charset template files are stored in. UTF-8 is
// a good choice in most applications:
cfg.setDefaultEncoding("UTF-8");
Template template = cfg.getTemplate("d4gna_to_catalogue_template.ftl");
return template;
}
/**
* Pretty print using gson.
*
* @param uglyJson the ugly json
* @return the string
*/
public static String prettyPrintUsingGson(String uglyJson) {
Gson gson = new GsonBuilder().setPrettyPrinting().create();
JsonElement jsonElement = new JsonParser().parse(uglyJson);
String prettyJsonString = gson.toJson(jsonElement);
return prettyJsonString;
}
/**
* Write report.
*
* @param newline the newline
*/
private static synchronized void writeReport(String newline) {
reportPrintWriter.println(newline);
reportPrintWriter.flush();
}
/**
* Write error.
*
* @param newline the newline
*/
private static synchronized void writeError(String newline) {
errorPrintWriter.println(newline);
errorPrintWriter.flush();
}
/**
* Gets the formatted date time.
*
* @return the formatted date time
*/
public static String getFormattedDateTime(){
long yourmilliseconds = System.currentTimeMillis();
SimpleDateFormat sdf = new SimpleDateFormat("MMM dd,yyyy HH:mm:ss");
Date resultdate = new Date(yourmilliseconds);
return sdf.format(resultdate);
}
/*
* public static void main(String[] args) {
*
* try {
*
* TestContextConfig.readContextSettings();
*
* ScopeProvider.instance.set(TestContextConfig.CONTEXT);
* SecurityTokenProvider.instance.set(TestContextConfig.TOKEN);
*
* ProjectsCaller clientProjects = GeoportalClientCaller.projects(); Project
* theProject = clientProjects.getProjectByID(profileID, projectID); Document
* asDocument = SerializationUtil.asDocument(theProject);
*
* UseCaseDescriptor ucd =
* GeoportalClientCaller.useCaseDescriptors().getUCDForId(profileID);
*
* System.out.println("Source JSON:");
* System.out.println(prettyPrintUsingGson(asDocument.toJson()));
* applyMappingToCatalogue(theProject, ucd);
*
* } catch (Exception e) { // TODO: handle exception }
*
* }
*/
}

View File

@ -0,0 +1,33 @@
package geoportal_to_catalogue;
import java.lang.reflect.Field;
import java.util.LinkedHashMap;
import org.json.JSONObject;
/**
* The Class JSONObjecOrdered.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Mar 10, 2022
*/
public final class JSONObjectOrdered {
/**
* Instance.
*
* @return the JSON object
*/
public static JSONObject instance() {
JSONObject jsonObject = new JSONObject();
try {
Field changeMap = jsonObject.getClass().getDeclaredField("map");
changeMap.setAccessible(true);
changeMap.set(jsonObject, new LinkedHashMap<>());
changeMap.setAccessible(false);
} catch (IllegalAccessException | NoSuchFieldException e) {
}
return jsonObject;
}
}

View File

@ -0,0 +1,350 @@
<#assign jsonProj=doc>
<#assign theDocument=jsonProj._theDocument>
<#assign resources=[]>
<#assign groups=[]>
<#assign tags=[]>
<#assign extras=[]>
<#function sanitizeString(value)>
<#if value??>
<#return value?trim?replace('\n','')?replace('\"','')>
</#if>
<#return "">
</#function>
<#function onlyAlphanumericString(value)>
<#if value??>
<#return value?trim?replace('\n','')?replace('\"','')?replace("[^\\w]+", "-", "r")>
</#if>
<#return "">
</#function>
<#-- Macro to assign Tags -->
<#macro assignTag in_tags>
<#if in_tags??>
<#if in_tags?is_sequence>
<#list in_tags as my_tag>
<#assign tags = tags + [onlyAlphanumericString(my_tag)] />
</#list>
<#else>
<#assign tags = tags + [onlyAlphanumericString(in_tags)] />
</#if>
</#if>
</#macro>
<#-- Macro to assign a Resource -->
<#macro assignResource name url description format>
<#if description??>
<#else>
<#assign description = ""/>
</#if>
<#if url??>
<#assign resource = {"name": name, "url": url, "description": sanitizeString(description), "format": format}>
<#assign resources = resources + [resource]/>
</#if>
</#macro>
<#-- Macro to assign Groups -->
<#macro assignGroup in_groups>
<#if in_groups??>
<#if in_groups?is_sequence>
<#list in_groups as my_group>
<#assign groups = groups + [my_group] />
</#list>
<#else>
<#assign groups = groups + [in_groups] />
</#if>
</#if>
</#macro>
<#-- Macro to assign Extras field -->
<#macro assignExtraField key value asObject>
<#if key??>
<#assign checkedValue = value/>
<#if key != "spatial">
<#assign checkedValue = sanitizeString(value)/>
</#if>
<#assign extra = {"key": sanitizeString(key), "value": checkedValue, "asObject": asObject}>
<#assign extras = extras + [extra]/>
</#if>
</#macro>
<#-- Macro to build the tags as [{},{},..{}] -->
<#macro buildTags the_tags>
<#if the_tags??>
"tags": [
<#list the_tags as tag>
{
"name": "${tag}"
}
<#if tag?is_last==false>,</#if>
</#list>
],
</#if>
</#macro>
<#-- Macro to build the groups as [{},{},..{}] -->
<#macro buildGroups the_groups>
<#if the_groups??>
"groups": [
<#list the_groups as the_group>
{
"name": "${the_group}"
}
<#if the_group?is_last==false>,</#if>
</#list>
],
</#if>
</#macro>
<#-- Macro to build the resources as [{},{},..{}] -->
<#macro buildResources the_resources>
<#if the_resources??>
"resources": [
<#list the_resources as resource>
{
"name": "${resource.name}",
"url": "${resource.url}",
"description": "${resource.description}",
"format": "${resource.format}"
}
<#if resource?is_last==false>,</#if>
</#list>
],
</#if>
</#macro>
<#-- Macro to build the extras as [{},{},..{}] -->
<#macro buildExtrasFields the_extras>
<#if the_extras??>
"extras": [
<#list the_extras as extra>
<#if extra.asObject?? && extra.asObject>
{
"key": "${extra.key}",
"value": ${extra.value}
}
<#else>
{
"key": "${extra.key}",
"value": "${extra.value}"
}
</#if>
<#if extra?is_last==false>,</#if>
</#list>
]
</#if>
</#macro>
<#--
############################################################
#
#
# Starting document mapping to Catalogue
#
#
############################################################
-->
<#compress>
{
"name": "${jsonProj._id}",
"title": "${sanitizeString(theDocument.nome)}",
"license_id": "CC-BY-SA-4.0",
"private": false,
<#assign sanitizedNotes = sanitizeString(theDocument.introduzione) />
"notes": "${sanitizedNotes}",
<#--
######################
RESOURCES
######################
-->
<#-- Mapping "Relazione Scavo" as resource -->
<#if theDocument.relazioneScavo?? && theDocument.relazioneScavo.fileset?? && theDocument.relazioneScavo.fileset._payloads??>
<#assign payloads = theDocument.relazioneScavo.fileset._payloads>
<#if payloads?size!=0>
<#-- Getting the first payload -->
<#assign payload = payloads[0]>
<@assignResource name=payload._name url=payload._link description=theDocument.relazioneScavo.titolo format=payload._mimetype></@assignResource>
</#if>
</#if>
<#-- Mapping "Immagine Rappresentative" as resource -->
<#if theDocument.immaginiRappresentative??>
<#if theDocument.immaginiRappresentative?is_sequence && theDocument.immaginiRappresentative?size gt 0>
<#list theDocument.immaginiRappresentative as the_image>
<#if the_image.fileset?? && the_image.fileset._payloads??>
<#assign payloads = the_image.fileset._payloads>
<#if payloads?size!=0>
<#-- Getting the first payload -->
<#assign payload = payloads[0]>
<@assignResource name=payload._name url=payload._link description=the_image.didascalia format=payload._mimetype></@assignResource>
</#if>
</#if>
</#list>
</#if>
<#assign payloads = theDocument.immaginiRappresentative[0].fileset._payloads>
<#if payloads?size!=0>
<#-- Getting the first payload -->
<#assign payload = payloads[0]>
<@assignResource name=payload._name url=payload._link description=theDocument.immaginiRappresentative[0].didascalia format=payload._mimetype></@assignResource>
</#if>
</#if>
<#-- Building Resources -->
<@buildResources the_resources=resources></@buildResources>
<#--
######################
TAGS
######################
-->
<#-- Mapping "paroleChiaveLibere" as tag -->
<#if theDocument.paroleChiaveLibere??>
<@assignTag in_tags=theDocument.paroleChiaveLibere></@assignTag>
</#if>
<#-- Building tags -->
<@buildTags the_tags=tags></@buildTags>
<#--
######################
GROUPS
######################
-->
<#-- Mapping the year of the "dataInizioProgetto" as group -->
<#assign dateString = theDocument.dataInizioProgetto?trim>
<#assign dataInizioYear = dateString?split("-")[0]>
<#-- <@assignGroup in_groups=dataInizioYear></@assignGroup> -->
<#-- Building groups -->
<@buildGroups the_groups=groups></@buildGroups>
<#--
######################
EXTRAS
######################
-->
<#-- Mapping extras fields -->
<#if theDocument.contributore??>
<@assignExtraField key="Contributore" value=theDocument.contributore asObject=false></@assignExtraField>
</#if>
<#if theDocument.responsabile??>
<@assignExtraField key="Responsabile dei contenuti" value=theDocument.responsabile asObject=false></@assignExtraField>
</#if>
<#if theDocument.editore??>
<@assignExtraField key="Ente responsabile del progetto" value=theDocument.editore asObject=false></@assignExtraField>
</#if>
<#if theDocument.ufficioMic??>
<@assignExtraField key="Ufficio MiC competente per territorio" value=theDocument.ufficioMic asObject=false></@assignExtraField>
</#if>
<#if theDocument.funzionarioResponsabile??>
<@assignExtraField key="Funzionario Responsabile" value=theDocument.funzionarioResponsabile asObject=false></@assignExtraField>
</#if>
<#if theDocument.fontiFinanziamento??>
<#if theDocument.fontiFinanziamento?is_sequence>
<#list theDocument.fontiFinanziamento as my_extra>
<@assignExtraField key="Fonte del finanziamento" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Fonte del finanziamento" value=theDocument.fontiFinanziamento asObject=false></@assignExtraField>
</#if>
</#if>
<#if theDocument.risorseCorrelate??>
<#if theDocument.risorseCorrelate?is_sequence>
<#list theDocument.risorseCorrelate as my_extra>
<@assignExtraField key="Risorse Correlate" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Risorse Correlate" value=theDocument.risorseCorrelate asObject=false></@assignExtraField>
</#if>
</#if>
<#if theDocument.dataInizioProgetto??>
<@assignExtraField key="Data inizio Campagna" value=theDocument.dataInizioProgetto?trim asObject=false></@assignExtraField>
</#if>
<#if theDocument.dataFineProgetto??>
<@assignExtraField key="Data fine Campagna" value=theDocument.dataFineProgetto?trim asObject=false></@assignExtraField>
</#if>
<#if theDocument.modalitaIndividuazione??>
<#if theDocument.modalitaIndividuazione?is_sequence>
<#list theDocument.modalitaIndividuazione as my_extra>
<@assignExtraField key="Modalità di individuazione" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Modalità di individuazione" value=theDocument.modalitaIndividuazione asObject=false></@assignExtraField>
</#if>
</#if>
<#if theDocument.contestoIndagine??>
<#if theDocument.contestoIndagine?is_sequence>
<#list theDocument.contestoIndagine as my_extra>
<@assignExtraField key="Contesto Indagine" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Contesto Indagine" value=theDocument.contestoIndagine asObject=false></@assignExtraField>
</#if>
</#if>
<#if theDocument.statoAttuale??>
<@assignExtraField key="Stato attuale" value=theDocument.statoAttuale asObject=false></@assignExtraField>
</#if>
<#if theDocument.accessibilita??>
<@assignExtraField key="Accessibilità" value=theDocument.accessibilita asObject=false></@assignExtraField>
</#if>
<#if theDocument.cronologiaMacrofase??>
<#if theDocument.cronologiaMacrofase?is_sequence>
<#list theDocument.cronologiaMacrofase as my_extra>
<@assignExtraField key="Cronologia Macrofase" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Cronologia Macrofase" value=theDocument.cronologiaMacrofase asObject=false></@assignExtraField>
</#if>
</#if>
<#-- spatial field -->
<#if jsonProj._identificationReferences?? && jsonProj._identificationReferences?size!=0 && jsonProj._identificationReferences[0].geoJSON??>
<#assign geoJSON = jsonProj._identificationReferences[0].geoJSON>
<#-- if coordinates exists, managing it as a Point -->
<#if geoJSON.coordinates?? && geoJSON.coordinates?is_sequence && geoJSON.coordinates?size gt 2>
<#assign point_Coordinates = [geoJSON.coordinates[0], geoJSON.coordinates[1]]>
<#assign spatialField = '{\\"type\\": \\"${geoJSON.type}\\", \\"coordinates\\": [${point_Coordinates?join(", ")}]}'>
<@assignExtraField key="spatial" value=spatialField asObject=false></@assignExtraField>
</#if>
</#if>
<#-- Adding extra field "Anno" to add it as group -->
<@assignExtraField key="Anno" value=dataInizioYear asObject=false></@assignExtraField>
<@buildExtrasFields the_extras=extras></@buildExtrasFields>
}
</#compress>

View File

@ -0,0 +1,296 @@
package junit;
import org.gcube.application.cms.cataloguebinding.CatalogueBindingPlugin;
import org.gcube.application.cms.cataloguebinding.config.CatalogueBindingPluginConfigModel;
import org.gcube.application.cms.implementations.utils.UserUtils;
import org.gcube.application.cms.plugins.events.EventManager;
import org.gcube.application.cms.plugins.events.EventManager.Event;
import org.gcube.application.cms.plugins.events.ItemObserved;
import org.gcube.application.cms.plugins.faults.InitializationException;
import org.gcube.application.cms.tests.TestProfiles;
import org.gcube.application.cms.tests.plugins.BasicPluginTest;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.document.accounting.AccountingInfo;
import org.gcube.application.geoportal.common.model.document.accounting.User;
import org.gcube.application.geoportal.common.model.document.lifecycle.LifecycleInformation;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
import org.gcube.application.geoportalcommon.geoportal.GeoportalClientCaller;
import org.gcube.application.geoportalcommon.geoportal.ProjectsCaller;
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.common.scope.api.ScopeProvider;
import org.junit.Test;
import test.TestContextConfig;
/**
* The Class CatalogueBindingPluginTest.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Jun 20, 2024
*/
public class CatalogueBindingPluginTest extends BasicPluginTest {
public final static String profileID = "profiledConcessioni";
public final static String projectID = "661d2c6f8804530afb90b132";
/**
* Check plugin.
*/
// @Test
public void checkPlugin() {
org.junit.Assume.assumeTrue(GCubeTest.isTestInfrastructureEnabled());
CatalogueBindingPlugin plugin = (CatalogueBindingPlugin) plugins.get(CatalogueBindingPlugin.DESCRIPTOR.getId());
//
// try {
// plugin.init();
// } catch (InitializationException e1) {
// e1.printStackTrace();
// }
// try {
// plugin.initInContext();
// } catch (InitializationException e1) {
// e1.printStackTrace();
// }
System.out.println("Plugin check: " + plugin);
}
/**
* Check plugin config.
*/
//@Test
public void checkPluginConfig() {
org.junit.Assume.assumeTrue(GCubeTest.isTestInfrastructureEnabled());
CatalogueBindingPlugin plugin = (CatalogueBindingPlugin) plugins.get(CatalogueBindingPlugin.DESCRIPTOR.getId());
UseCaseDescriptor descriptor = TestProfiles.profiles.get(profileID);
try {
plugin.init();
} catch (InitializationException e1) {
e1.printStackTrace();
}
try {
plugin.initInContext();
} catch (InitializationException e1) {
e1.printStackTrace();
}
try {
CatalogueBindingPluginConfigModel pluginBindingModel = plugin
.readEventsSubscribedFromConfigurationInTheUCD(descriptor);
System.out.println("CatalogueBindingPluginConfigModel: " + pluginBindingModel);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Check notify APPROV E SUBMITTE D on catalogue.
*/
@Test
public void checkNotify_APPROVE_SUBMITTED_onCatalogue() {
org.junit.Assume.assumeTrue(GCubeTest.isTestInfrastructureEnabled());
CatalogueBindingPlugin plugin = (CatalogueBindingPlugin) plugins.get(CatalogueBindingPlugin.DESCRIPTOR.getId());
UseCaseDescriptor descriptor = TestProfiles.profiles.get(profileID);
CatalogueBindingPluginConfigModel pluginBindingModel;
try {
pluginBindingModel = plugin.readEventsSubscribedFromConfigurationInTheUCD(descriptor);
System.out.println("Events: " + pluginBindingModel);
} catch (Exception e) {
e.printStackTrace();
}
ItemObserved<Project> item;
try {
EventManager.Event event = Event.LIFECYCLE_STEP_PERFORMED;
item = mockItemObserverd(event);
// Setting creator
User creator = new User();
creator.setUsername("francesco.mangiacrapa");
item.getProject().getInfo().getCreationInfo().setUser(creator);
LifecycleInformation lifecycleInfo = item.getProject().getLifecycleInformation();
// test PUBLISH ON CATALOGUE
lifecycleInfo.setPhase("Published");
lifecycleInfo.setLastInvokedStep("APPROVE-SUBMITTED");
System.out.println("By notifying event " + event + " project " + item.getProjectId());
EventManager.getInstance().notify(event, item);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* Check notify UNPUBLIS H on catalogue.
*/
@Test
public void checkNotify_UNPUBLISH_onCatalogue() {
org.junit.Assume.assumeTrue(GCubeTest.isTestInfrastructureEnabled());
CatalogueBindingPlugin plugin = (CatalogueBindingPlugin) plugins.get(CatalogueBindingPlugin.DESCRIPTOR.getId());
UseCaseDescriptor descriptor = TestProfiles.profiles.get(profileID);
CatalogueBindingPluginConfigModel pluginBindingModel;
try {
pluginBindingModel = plugin.readEventsSubscribedFromConfigurationInTheUCD(descriptor);
System.out.println("Events: " + pluginBindingModel);
} catch (Exception e) {
e.printStackTrace();
}
ItemObserved<Project> item;
try {
EventManager.Event event = Event.LIFECYCLE_STEP_PERFORMED;
item = mockItemObserverd(event);
// Setting creator
User creator = new User();
creator.setUsername("francesco.mangiacrapa");
item.getProject().getInfo().getCreationInfo().setUser(creator);
LifecycleInformation lifecycleInfo = item.getProject().getLifecycleInformation();
// Test delete the dataset on CATALOGUE
lifecycleInfo.setPhase("DRAFT");
lifecycleInfo.setLastInvokedStep("UNPUBLISH");
System.out.println("By notifying event " + event + " project " + item.getProjectId());
EventManager.getInstance().notify(event, item);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* Check notify PROJEC T CREATE D on catalogue.
*/
// @Test
public void checkNotify_PROJECT_CREATED_onCatalogue() {
org.junit.Assume.assumeTrue(GCubeTest.isTestInfrastructureEnabled());
CatalogueBindingPlugin plugin = (CatalogueBindingPlugin) plugins.get(CatalogueBindingPlugin.DESCRIPTOR.getId());
UseCaseDescriptor descriptor = TestProfiles.profiles.get(profileID);
CatalogueBindingPluginConfigModel pluginBindingModel;
try {
pluginBindingModel = plugin.readEventsSubscribedFromConfigurationInTheUCD(descriptor);
System.out.println("Events: " + pluginBindingModel);
} catch (Exception e) {
e.printStackTrace();
}
ItemObserved<Project> item;
try {
EventManager.Event event = Event.PROJECT_CREATED;
item = mockItemObserverd(event);
// Setting creator
User creator = new User();
creator.setUsername("francesco.mangiacrapa");
item.getProject().getInfo().getCreationInfo().setUser(creator);
LifecycleInformation lifecycleInfo = item.getProject().getLifecycleInformation();
// Test delete the dataset on CATALOGUE
lifecycleInfo.setPhase("DRAFT");
System.out.println("By notifying event " + event + " project " + item.getProjectId());
EventManager.getInstance().notify(event, item);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* Check notify PROJEC T DELETE D on catalogue.
*/
//@Test
public void checkNotify_PROJECT_DELETED_onCatalogue() {
org.junit.Assume.assumeTrue(GCubeTest.isTestInfrastructureEnabled());
CatalogueBindingPlugin plugin = (CatalogueBindingPlugin) plugins.get(CatalogueBindingPlugin.DESCRIPTOR.getId());
UseCaseDescriptor descriptor = TestProfiles.profiles.get(profileID);
CatalogueBindingPluginConfigModel pluginBindingModel;
try {
pluginBindingModel = plugin.readEventsSubscribedFromConfigurationInTheUCD(descriptor);
System.out.println("Events: " + pluginBindingModel);
} catch (Exception e) {
e.printStackTrace();
}
ItemObserved<Project> item;
try {
EventManager.Event event = Event.PROJECT_DELETED;
item = mockItemObserverd(event);
// Setting creator
User creator = new User();
creator.setUsername("francesco.mangiacrapa");
item.getProject().getInfo().getCreationInfo().setUser(creator);
LifecycleInformation lifecycleInfo = item.getProject().getLifecycleInformation();
// Test delete the dataset on CATALOGUE
lifecycleInfo.setPhase("DRAFT");
System.out.println("By notifying event " + event + " project " + item.getProjectId());
EventManager.getInstance().notify(event, item);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* Mock item observerd.
*
* @param event the event
* @return the item observed
* @throws Exception the exception
*/
private static ItemObserved<Project> mockItemObserverd(EventManager.Event event) throws Exception {
UseCaseDescriptor descriptor = TestProfiles.profiles.get(profileID);
// notifying the Event.PROJECT_CREATED;
ItemObserved<Project> item = new ItemObserved<Project>();
AccountingInfo user = UserUtils.getCurrent().asInfo();
// System.out.println(user.getUser());
// sysOut(user);
System.out.println("User is: " + user.getUser());
System.out.println("Context is: " + user.getContext());
item.setUserCaller(user.getUser());
item.setContext(user.getContext());
item.setEvent(event);
item.setUseCaseDescriptor(descriptor);
TestContextConfig.readContextSettings();
ScopeProvider.instance.set(TestContextConfig.CONTEXT);
SecurityTokenProvider.instance.set(TestContextConfig.TOKEN);
ProjectsCaller clientProjects = GeoportalClientCaller.projects();
Project theProject = clientProjects.getProjectByID(profileID, projectID);
item.setProject(theProject);
return item;
}
}

View File

@ -0,0 +1,41 @@
package test;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class TestContextConfig {
private static final String GCUBE_CONFIG_PROPERTIES_FILENAME = "gcube_config.properties";
// APP Working Directory + /src/test/resources must be the location of
// gcube_config.properties
private static String gcube_config_path = String.format("%s/%s",
System.getProperty("user.dir") + "/src/test/resources", GCUBE_CONFIG_PROPERTIES_FILENAME);
public static String CONTEXT;
public static String TOKEN;
/**
* Read context settings.
*/
public static void readContextSettings() {
try (InputStream input = new FileInputStream(gcube_config_path)) {
Properties prop = new Properties();
// load a properties file
prop.load(input);
CONTEXT = prop.getProperty("CONTEXT");
TOKEN = prop.getProperty("TOKEN");
// get the property value and print it out
System.out.println("CONTEXT: " + CONTEXT);
System.out.println("TOKEN: " + TOKEN);
} catch (IOException ex) {
ex.printStackTrace();
}
}
}

View File

@ -0,0 +1,2 @@
/tokens.properties
/resources/

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 # 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.0-SNAPSHOT] - 2022-02-24 ## [v1.0.1] - 2022-12-07
- Pom updates
## [v1.0.0] - 2022-02-24
- First release - 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 ## 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
@ -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 * [Maven](https://maven.apache.org/) - Dependency Management
## Documentation ## 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 ## Change log
See [CHANGELOG.md](CHANGELOG.md). See [CHANGELOG.md](CHANGELOG.md).
## License ## License
This project is licensed under the EUPL V.1.1 License - see the [LICENSE.md](LICENSE.md) file for details. This project is licensed under the EUPL V.1.1 License - see the [LICENSE.md](LICENSE.md) file for details.
## About the gCube Framework ## About the gCube Framework

View File

@ -5,14 +5,14 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>ckan-plugins</artifactId> <artifactId>ckan-plugins</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.2</version>
<name>gCube CMS - CKAN Plugins</name> <name>gCube CMS - CKAN Plugins</name>
<parent> <parent>
<groupId>org.gcube.application.cms</groupId> <groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId> <artifactId>gcube-cms-suite</artifactId>
<version>1.0.2-SNAPSHOT</version> <version>1.0.4</version>
</parent> </parent>
<properties> <properties>
@ -32,14 +32,14 @@
<dependency> <dependency>
<groupId>org.gcube.distribution</groupId> <groupId>org.gcube.distribution</groupId>
<artifactId>gcube-smartgears-bom</artifactId> <artifactId>gcube-smartgears-bom</artifactId>
<version>2.1.1</version> <version>${gcube-smartgears-bom-version}</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.gcube.application.cms</groupId> <groupId>org.gcube.application.cms</groupId>
<artifactId>cms-plugin-framework</artifactId> <artifactId>cms-plugin-framework</artifactId>
<version>1.0.1-SNAPSHOT</version> <version>${plugin-framework-version}</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>

View File

@ -1,9 +1,24 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for org.gcube.application.cms-plugin-framework # Changelog for org.gcube.application.cms-plugin-framework
## [v1.0.1-SNAPSHOT] 2022-01-17 ## [v1.0.5-SNAPSHOT] - 2023-12-21
- Implemented Event Broker [#26321]
## [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 - Serialization Features
## [v1.0.0] 2021-09-20 ## [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,7 +1,13 @@
CMS - Plugin Framework 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.
Morover, this module provides an `EventManager` to notify the events {`PROJECT_CREATED`, `PROJECT_UPDATED`, `PROJECT_DELETED` `LIFECYCLE_STEP_PERFORMED`}
to the plugins that subscribe to them.
## Built with ## Built with
* [gCube SDI] (https://gcube.wiki.gcube-system.org/gcube/) - The gCube SDI * [gCube SDI] (https://gcube.wiki.gcube-system.org/gcube/) - The gCube SDI
@ -12,8 +18,8 @@ CMS Plugin Framework is a library containing the definition of Java interfaces t
* [Maven](https://maven.apache.org/) - Dependency Management * [Maven](https://maven.apache.org/) - Dependency Management
## Documentation ## 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 ## Change log

View File

@ -4,12 +4,12 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>cms-plugin-framework</artifactId> <artifactId>cms-plugin-framework</artifactId>
<version>1.0.1-SNAPSHOT</version> <version>1.0.5-SNAPSHOT</version>
<parent> <parent>
<groupId>org.gcube.application.cms</groupId> <groupId>org.gcube.application.cms</groupId>
<artifactId>gcube-cms-suite</artifactId> <artifactId>gcube-cms-suite</artifactId>
<version>1.0.2-SNAPSHOT</version> <version>[1.0.0, 2.0.0-SNAPSHOT)</version>
</parent> </parent>
@ -32,7 +32,7 @@
<dependency> <dependency>
<groupId>org.gcube.distribution</groupId> <groupId>org.gcube.distribution</groupId>
<artifactId>gcube-smartgears-bom</artifactId> <artifactId>gcube-smartgears-bom</artifactId>
<version>2.1.1</version> <version>${gcube-smartgears-bom-version}</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
@ -45,15 +45,13 @@
<groupId>net.postgis</groupId> <groupId>net.postgis</groupId>
<artifactId>postgis-jdbc</artifactId> <artifactId>postgis-jdbc</artifactId>
<version>2.5.0</version> <version>2.5.0</version>
<scope>provided</scope>
</dependency> </dependency>
<!-- SDI --> <!-- SDI -->
<dependency> <dependency>
<groupId>org.gcube.spatial.data</groupId> <groupId>org.gcube.spatial.data</groupId>
<artifactId>gis-interface</artifactId> <artifactId>gis-interface</artifactId>
<version>[2.4.6,3.0.0)</version> <version>[2.4.6,3.0.0-SNAPSHOT)</version>
<scope>provided</scope>
</dependency> </dependency>
@ -61,8 +59,7 @@
<dependency> <dependency>
<groupId>org.gcube.data.transfer</groupId> <groupId>org.gcube.data.transfer</groupId>
<artifactId>data-transfer-library</artifactId> <artifactId>data-transfer-library</artifactId>
<version>[1.2.1,2.0.0]</version> <version>[1.2.1,2.0.0-SNAPSHOT)</version>
<scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>
@ -70,18 +67,28 @@
<dependencies> <dependencies>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>authorization-utils</artifactId>
<version>${authorization-utils-range}</version>
</dependency>
<dependency> <dependency>
<groupId>org.gcube.application.cms</groupId> <groupId>org.gcube.application.cms</groupId>
<artifactId>geoportal-common</artifactId> <artifactId>geoportal-common</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId> <artifactId>jackson-datatype-jsr310</artifactId>
</dependency> </dependency>
<!-- Storage HUB -->
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>storagehub-client-library</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/de.grundid.opendatalab/geojson-jackson --> <!-- https://mvnrepository.com/artifact/de.grundid.opendatalab/geojson-jackson -->
<dependency> <dependency>
@ -106,6 +113,12 @@
<artifactId>reflections</artifactId> <artifactId>reflections</artifactId>
</dependency> </dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<!-- <version>2.3.0</version> -->
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -1,17 +1,10 @@
package org.gcube.application.cms.caches; package org.gcube.application.cms.caches;
import lombok.NonNull; import org.gcube.application.cms.implementations.utils.UserUtils;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.Synchronized;
import lombok.extern.slf4j.Slf4j;
import org.gcube.application.geoportal.common.utils.ContextUtils;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import lombok.NonNull;
import java.time.LocalDateTime; import lombok.extern.slf4j.Slf4j;
import java.time.temporal.TemporalAmount;
import java.util.concurrent.ConcurrentHashMap;
@Slf4j @Slf4j
/** /**
@ -26,7 +19,10 @@ public abstract class AbstractScopedMap<T> extends TimedMap<String,T> implements
@Override @Override
public T getObject() throws ConfigurationException { 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

@ -0,0 +1,8 @@
package org.gcube.application.cms.caches;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
public interface ObjectManager<T>{
public T insert(T object) throws ConfigurationException;
}

View File

@ -1,11 +1,11 @@
package org.gcube.application.cms.caches; package org.gcube.application.cms.caches;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;
import lombok.ToString; import lombok.ToString;
import java.time.LocalDateTime;
@Getter @Getter
@ToString @ToString
@AllArgsConstructor @AllArgsConstructor

View File

@ -1,18 +1,16 @@
package org.gcube.application.cms.caches; package org.gcube.application.cms.caches;
import java.time.LocalDateTime;
import java.time.temporal.TemporalAmount;
import java.util.concurrent.ConcurrentHashMap;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import lombok.Getter; import lombok.Getter;
import lombok.NonNull; import lombok.NonNull;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.Setter; import lombok.Setter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.utils.ContextUtils;
import java.time.LocalDateTime;
import java.time.temporal.TemporalAmount;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@Slf4j @Slf4j
@RequiredArgsConstructor @RequiredArgsConstructor
@ -48,8 +46,8 @@ public abstract class TimedMap <K,V> implements Cache<K,V> {
scopeMap.put(key, newer); scopeMap.put(key, newer);
found=scopeMap.get(key); found=scopeMap.get(key);
} }
}else {log.debug(name+" : TTL is null, never disposing..");} }else {log.trace(name+" : TTL is null, never disposing..");}
log.debug(name+"Returning {} ",found); log.trace(name+"Returning {} ",found);
return found.getTheObject(); return found.getTheObject();
} }

View File

@ -1,13 +1,14 @@
package org.gcube.application.cms.implementations; package org.gcube.application.cms.implementations;
import java.util.List;
import org.gcube.application.cms.caches.Engine; import org.gcube.application.cms.caches.Engine;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.model.rest.DatabaseConnection; import org.gcube.application.geoportal.common.model.rest.DatabaseConnection;
import org.gcube.application.geoportal.common.utils.ISUtils; import org.gcube.application.geoportal.common.utils.ISUtils;
import org.gcube.common.resources.gcore.GenericResource;
import org.gcube.common.resources.gcore.ServiceEndpoint; import org.gcube.common.resources.gcore.ServiceEndpoint;
import java.util.List;
public class DefaultISProvider implements ISInterface, Engine<ISInterface> { public class DefaultISProvider implements ISInterface, Engine<ISInterface> {
@ -31,6 +32,16 @@ public class DefaultISProvider implements ISInterface, Engine<ISInterface> {
return ISUtils.encryptString(toEncrypt); return ISUtils.encryptString(toEncrypt);
} }
@Override
public List<GenericResource> getGenericResource(String secondaryType,String name) {
return ISUtils.getGenericResources(secondaryType,name);
}
@Override
public GenericResource createUpdateGR(GenericResource resource) {
return ISUtils.writeGR(resource);
}
// ** ENGINE // ** ENGINE
@Override @Override

View File

@ -1,15 +1,21 @@
package org.gcube.application.cms.implementations; package org.gcube.application.cms.implementations;
import java.util.List;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.model.rest.DatabaseConnection; import org.gcube.application.geoportal.common.model.rest.DatabaseConnection;
import org.gcube.common.resources.gcore.GenericResource;
import org.gcube.common.resources.gcore.ServiceEndpoint; import org.gcube.common.resources.gcore.ServiceEndpoint;
import java.util.List;
public interface ISInterface { public interface ISInterface {
public DatabaseConnection queryForDatabase(String category, String platform,String flagName, String flagValue) throws ConfigurationException; public DatabaseConnection queryForDatabase(String category, String platform,String flagName, String flagValue) throws ConfigurationException;
public List<ServiceEndpoint.AccessPoint> performGetAP(String category, String platform, String flagName, String flagValue); public List<ServiceEndpoint.AccessPoint> performGetAP(String category, String platform, String flagName, String flagValue);
public String decryptString(String toDecrypt); public String decryptString(String toDecrypt);
public String encryptString(String toEncrypt); public String encryptString(String toEncrypt);
public List<GenericResource> getGenericResource(String secondaryType,String name);
public GenericResource createUpdateGR(GenericResource res);
} }

View File

@ -1,13 +1,19 @@
package org.gcube.application.cms.implementations; package org.gcube.application.cms.implementations;
import lombok.Synchronized; import java.util.HashMap;
import org.gcube.application.cms.caches.Cache; import java.util.HashSet;
import org.gcube.application.cms.caches.Engine; import java.util.Map;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import org.gcube.application.cms.caches.Engine;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.common.storagehub.client.dsl.StorageHubClient;
import lombok.Synchronized;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class ImplementationProvider { public class ImplementationProvider {
private static ImplementationProvider instance=null; private static ImplementationProvider instance=null;
@ -21,10 +27,13 @@ public class ImplementationProvider {
} }
public <T> T getEngineByManagedClass(Class<T> clazz) throws ConfigurationException { public <T> T getProvidedObjectByClass(Class<T> clazz) throws ConfigurationException {
return (T) implementationsRegistry.get(clazz).getObject(); return (T) implementationsRegistry.get(clazz).getObject();
} }
public <T> Engine<T> getEngineByManagedClass(Class<T> clazz) throws ConfigurationException {
return implementationsRegistry.get(clazz);
}
private ConcurrentHashMap<Class,Engine> implementationsRegistry=new ConcurrentHashMap<>(); private ConcurrentHashMap<Class,Engine> implementationsRegistry=new ConcurrentHashMap<>();
@ -35,5 +44,59 @@ public class ImplementationProvider {
private ImplementationProvider(){ private ImplementationProvider(){
//Defaults //Defaults
setEngine(new DefaultISProvider(),ISInterface.class); setEngine(new DefaultISProvider(),ISInterface.class);
setEngine(new StorageHubProvider(), StorageHubClient.class);
}
public Map<Class,String> getManagerList(){
HashMap<Class,String> toReturn=new HashMap<>();
implementationsRegistry.forEach(
(aClass, engine) -> {toReturn.put(engine.getClass(),aClass.getCanonicalName());}
);
return toReturn;
}
private boolean isInit=false;
@Synchronized
public void initEngines(){
if(!isInit) {
log.info("INITIALIZING ENGINES. Size : {} ", implementationsRegistry.size());
HashSet<Class> failed = new HashSet<>();
implementationsRegistry.forEach((aClass, engine) -> {
log.info("Init : {} -> {}", engine.getClass().toGenericString(), aClass.getCanonicalName());
try {
engine.init();
} catch (Throwable t) {
failed.add(engine.getClass());
log.error("Unable to start engine {} ", engine.getClass(), t);
}
});
if (failed.isEmpty())
log.info("INIT OK");
else {
log.warn("!!!!! Following Engines FAILED INIT :");
failed.forEach(aClass -> log.warn(String.valueOf(aClass)));
}
isInit = true;
}else log.info("Received Init request but Engines already started");
}
public void shutdownEngines(){
log.info("SHUTTING DOWN ENGINES. Size : {} ",implementationsRegistry.size());
HashSet<Class> failed= new HashSet<>();
implementationsRegistry.forEach((aClass, engine) -> {
log.info("ShotDown : {} -> {}",engine.getClass().toGenericString(),aClass.getCanonicalName());
try{
engine.shutdown();
}catch (Throwable t){
failed.add(engine.getClass());
log.error("Unable to shutdown engine {} ",engine.getClass(),t);
}
});
if(failed.isEmpty())
log.info("SHUTDOWN OK");
else {
log.warn("!!!!! Following Engines FAILED SHUTDOWN :");
failed.forEach(aClass->log.warn(String.valueOf(aClass)));
}
} }
} }

View File

@ -0,0 +1,23 @@
package org.gcube.application.cms.implementations;
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.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.document.relationships.RelationshipNavigationObject;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.model.rest.QueryRequest;
public interface ProjectAccess {
public Project getById(String ucid,String id) throws RegistrationException, ConfigurationException, InvalidUserRoleException, ProjectNotFoundException, UnauthorizedAccess;
public Iterable<Document> query(String ucid, QueryRequest query) throws RegistrationException, ConfigurationException, InvalidUserRoleException;
public List<RelationshipNavigationObject> getRelations(String ucid, String id, String relation,Boolean deep) throws InvalidUserRoleException, RegistrationException, ProjectNotFoundException, ConfigurationException, UnauthorizedAccess;
}

View File

@ -1,4 +1,4 @@
package org.gcube.application.geoportal.service.engine.providers; package org.gcube.application.cms.implementations;
import org.gcube.application.cms.caches.Engine; import org.gcube.application.cms.caches.Engine;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.ConfigurationException;

View File

@ -1,21 +1,23 @@
package org.gcube.application.geoportal.service.engine; package org.gcube.application.cms.implementations;
import java.io.InputStream;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import org.gcube.application.cms.implementations.ImplementationProvider;
import org.gcube.application.geoportal.common.model.configuration.Archive; import org.gcube.application.geoportal.common.model.configuration.Archive;
import org.gcube.application.geoportal.common.model.document.filesets.RegisteredFile; import org.gcube.application.geoportal.common.model.document.filesets.RegisteredFile;
import org.gcube.application.geoportal.common.model.legacy.WorkspaceContent;
import org.gcube.application.geoportal.common.utils.Files;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.utils.Files;
import org.gcube.common.storagehub.client.dsl.FileContainer; import org.gcube.common.storagehub.client.dsl.FileContainer;
import org.gcube.common.storagehub.client.dsl.FolderContainer; import org.gcube.common.storagehub.client.dsl.FolderContainer;
import org.gcube.common.storagehub.client.dsl.StorageHubClient; import org.gcube.common.storagehub.client.dsl.StorageHubClient;
import org.gcube.common.storagehub.model.exceptions.StorageHubException; import org.gcube.common.storagehub.model.exceptions.StorageHubException;
import javax.validation.constraints.NotNull; import lombok.AllArgsConstructor;
import java.io.FileNotFoundException; import lombok.Getter;
import java.io.InputStream; import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.Synchronized;
import lombok.extern.slf4j.Slf4j;
@Slf4j @Slf4j
public class WorkspaceManager { public class WorkspaceManager {
@ -24,6 +26,7 @@ public class WorkspaceManager {
private StorageHubClient sgClient=null; private StorageHubClient sgClient=null;
@Getter
private FolderContainer appBase=null; private FolderContainer appBase=null;
@Getter @Getter
@ -31,7 +34,7 @@ public class WorkspaceManager {
@AllArgsConstructor @AllArgsConstructor
@RequiredArgsConstructor @RequiredArgsConstructor
public static class FolderOptions{ public static class FolderOptions{
@NotNull @NonNull
private String folderName; private String folderName;
private String folderDescription; private String folderDescription;
private FolderContainer parent; private FolderContainer parent;
@ -42,7 +45,7 @@ public class WorkspaceManager {
@AllArgsConstructor @AllArgsConstructor
@RequiredArgsConstructor @RequiredArgsConstructor
public static class FileOptions{ public static class FileOptions{
@NotNull @NonNull
private String fileName; private String fileName;
@NonNull @NonNull
private InputStream is; private InputStream is;
@ -59,7 +62,7 @@ public class WorkspaceManager {
} }
public WorkspaceManager() throws ConfigurationException, StorageHubException { public WorkspaceManager() throws ConfigurationException, StorageHubException {
sgClient= ImplementationProvider.get().getEngineByManagedClass(StorageHubClient.class); sgClient= ImplementationProvider.get().getProvidedObjectByClass(StorageHubClient.class);
appBase=getApplicationBaseFolder(sgClient); appBase=getApplicationBaseFolder(sgClient);
} }
@ -82,6 +85,19 @@ public class WorkspaceManager {
} }
public FolderContainer getSubFolder(FolderContainer parentFolder,String path) throws StorageHubException { public FolderContainer getSubFolder(FolderContainer parentFolder,String path) throws StorageHubException {
return getSubFolder(parentFolder,path,"");
}
/**
* Returns sub folder. Creates it if missing
*
* @param parentFolder
* @param path
* @return
* @throws StorageHubException
*/
public FolderContainer getSubFolder(FolderContainer parentFolder,String path, String description) throws StorageHubException {
try{ try{
return parentFolder.openByRelativePath(path).asFolder(); return parentFolder.openByRelativePath(path).asFolder();
}catch(StorageHubException e) { }catch(StorageHubException e) {
@ -94,24 +110,25 @@ public class WorkspaceManager {
targetParent=getSubFolder(parentFolder,parent); targetParent=getSubFolder(parentFolder,parent);
targetName=path.substring(path.lastIndexOf("/")+1); targetName=path.substring(path.lastIndexOf("/")+1);
} }
log.debug("Creating "+targetName); FolderOptions opts = new FolderOptions(targetName,description,targetParent);
return createFolder(new FolderOptions(targetName,"",targetParent)); log.debug("Creating FOLDER {}", opts);
return createFolder(opts);
} }
} }
public WorkspaceContent storeToWS(FileOptions opts) throws FileNotFoundException, StorageHubException { // public WorkspaceContent storeToWS(FileOptions opts) throws FileNotFoundException, StorageHubException {
FileContainer item=createFileRoutine(opts); // FileContainer item=createFileRoutine(opts);
item=sgClient.open(item.getId()).asFile(); // item=sgClient.open(item.getId()).asFile();
//
WorkspaceContent content=new WorkspaceContent(); // WorkspaceContent content=new WorkspaceContent();
content.setLink(item.getPublicLink().toString()); // content.setLink(item.getPublicLink().toString());
content.setMimetype(item.get().getContent().getMimeType()); // content.setMimetype(item.get().getContent().getMimeType());
content.setStorageID(item.getId()); // content.setStorageID(item.getId());
content.setName(item.get().getName()); // content.setName(item.get().getName());
return content; // return content;
//
} // }
public RegisteredFile registerFile(FileOptions opts) throws StorageHubException { public RegisteredFile registerFile(FileOptions opts) throws StorageHubException {
FileContainer item=createFileRoutine(opts); FileContainer item=createFileRoutine(opts);
@ -129,9 +146,9 @@ public class WorkspaceManager {
} }
public void deleteFromWS(WorkspaceContent toDelete) throws StorageHubException { // public void deleteFromWS(WorkspaceContent toDelete) throws StorageHubException {
sgClient.open(toDelete.getStorageID()).asFile().forceDelete(); // sgClient.open(toDelete.getStorageID()).asFile().forceDelete();
} // }
public void deleteItem(String itemId)throws StorageHubException{ public void deleteItem(String itemId)throws StorageHubException{
sgClient.open(itemId).asItem().forceDelete(); sgClient.open(itemId).asItem().forceDelete();

View File

@ -1,4 +1,4 @@
package org.gcube.application.geoportal.service.model.internal.faults; package org.gcube.application.cms.implementations.faults;
public class DataParsingException extends Exception { public class DataParsingException extends Exception {

View File

@ -1,4 +1,4 @@
package org.gcube.application.geoportal.service.model.internal.faults; package org.gcube.application.cms.implementations.faults;
public class DeletionException extends Exception { public class DeletionException extends Exception {

View File

@ -1,4 +1,4 @@
package org.gcube.application.geoportal.service.model.internal.faults; package org.gcube.application.cms.implementations.faults;
public class InvalidLockException extends Exception{ public class InvalidLockException extends Exception{
public InvalidLockException() { public InvalidLockException() {

View File

@ -1,4 +1,4 @@
package org.gcube.application.geoportal.service.model.internal.faults; package org.gcube.application.cms.implementations.faults;
public class InvalidStateException extends Exception { public class InvalidStateException extends Exception {

View File

@ -0,0 +1,23 @@
package org.gcube.application.cms.implementations.faults;
public class InvalidUserRoleException extends Exception {
public InvalidUserRoleException() {
}
public InvalidUserRoleException(String message) {
super(message);
}
public InvalidUserRoleException(String message, Throwable cause) {
super(message, cause);
}
public InvalidUserRoleException(Throwable cause) {
super(cause);
}
public InvalidUserRoleException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}

View File

@ -1,4 +1,4 @@
package org.gcube.application.geoportal.service.model.internal.faults; package org.gcube.application.cms.implementations.faults;
public class ProjectLockedException extends Exception{ public class ProjectLockedException extends Exception{
public ProjectLockedException() { public ProjectLockedException() {

View File

@ -1,4 +1,4 @@
package org.gcube.application.geoportal.service.model.internal.faults; package org.gcube.application.cms.implementations.faults;
public class ProjectNotFoundException extends Exception { public class ProjectNotFoundException extends Exception {
public ProjectNotFoundException() { public ProjectNotFoundException() {

View File

@ -1,4 +1,4 @@
package org.gcube.application.geoportal.service.model.internal.faults; package org.gcube.application.cms.implementations.faults;
public class RegistrationException extends Exception { public class RegistrationException extends Exception {

View File

@ -0,0 +1,23 @@
package org.gcube.application.cms.implementations.faults;
public class UnauthorizedAccess extends Exception {
public UnauthorizedAccess() {
}
public UnauthorizedAccess(String message) {
super(message);
}
public UnauthorizedAccess(String message, Throwable cause) {
super(message, cause);
}
public UnauthorizedAccess(Throwable cause) {
super(cause);
}
public UnauthorizedAccess(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}

View File

@ -1,35 +1,42 @@
package org.gcube.application.geoportal.service.utils; package org.gcube.application.cms.implementations.utils;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.gcube.application.geoportal.common.model.document.accounting.AccountingInfo; import org.gcube.application.geoportal.common.model.document.accounting.AccountingInfo;
import org.gcube.application.geoportal.common.model.document.accounting.Context; 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.accounting.User;
import org.gcube.common.authorization.library.provider.AccessTokenProvider; import org.gcube.common.authorization.library.provider.AccessTokenProvider;
import org.gcube.common.authorization.library.provider.AuthorizationProvider;
import org.gcube.common.authorization.library.provider.ClientInfo;
import org.gcube.common.authorization.library.provider.SecurityTokenProvider; import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.common.scope.api.ScopeProvider; import org.gcube.common.authorization.utils.manager.SecretManager;
import org.gcube.common.authorization.utils.manager.SecretManagerProvider;
import java.time.LocalDateTime; import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
@Slf4j @Slf4j
public class UserUtils { public class UserUtils {
public static List<String> DEFAULT_ROLES=new ArrayList<>();
public static AuthenticatedUser getCurrent() throws SecurityException { public static AuthenticatedUser getCurrent() throws SecurityException {
String context=ScopeProvider.instance.get(); log.debug("Loading caller info..");
SecretManager cm = SecretManagerProvider.instance.get();
String context = cm.getContext();
if(context==null) throw new SecurityException("Cannot determine context"); if(context==null) throw new SecurityException("Cannot determine context");
org.gcube.common.authorization.utils.user.User user = cm.getUser();
log.info("Identified caller {} in context {}",user.getUsername(),context);
log.debug("Context is {}, checking tokens..",context); Set<String> roles=new HashSet<>();
roles.addAll(user.getRoles());
ClientInfo client = null; AuthenticatedUser toReturn =
try{ new AuthenticatedUser(user,roles, AccessTokenProvider.instance.get(),SecurityTokenProvider.instance.get(),context);
AuthorizationProvider.instance.get().getClient();
}catch(Throwable e) {
log.warn("Unable to get client info ",e);
}
AuthenticatedUser toReturn = new AuthenticatedUser(client, AccessTokenProvider.instance.get(),SecurityTokenProvider.instance.get(),context);
log.info("Current User is {} ",toReturn); log.info("Current User is {} ",toReturn);
return toReturn; return toReturn;
@ -39,7 +46,11 @@ public class UserUtils {
@AllArgsConstructor @AllArgsConstructor
@Getter @Getter
public static class AuthenticatedUser { public static class AuthenticatedUser {
private ClientInfo user;
private org.gcube.common.authorization.utils.user.User user;
private Set<String> roles;
private String uma_token; private String uma_token;
private String gcube_token; private String gcube_token;
@ -57,6 +68,9 @@ public class UserUtils {
builder.append(", gcube_token="); builder.append(", gcube_token=");
builder.append(gcube_token==null?gcube_token:"***"); builder.append(gcube_token==null?gcube_token:"***");
builder.append(", roles=");
builder.append(roles);
builder.append(", context="); builder.append(", context=");
builder.append(context); builder.append(context);
builder.append("]"); builder.append("]");
@ -67,10 +81,13 @@ public class UserUtils {
AccountingInfo info=new AccountingInfo(); AccountingInfo info=new AccountingInfo();
User user = new User(); User user = new User();
try{ try{
user.setUsername(this.getUser().getId()); user.setUsername(this.getUser().getUsername());
user.setRoles(roles);
}catch(Exception e){ }catch(Exception e){
log.warn("Unable to determine user id, using FAKE"); log.warn("Unable to determine user id, using FAKE",e);
user.setUsername("FAKE"); user.setUsername("FAKE");
user.setRoles(new HashSet<>());
user.getRoles().addAll(DEFAULT_ROLES);
} }
info.setUser(user); info.setUser(user);

View File

@ -1,6 +0,0 @@
package org.gcube.application.cms.plugins;
public abstract class AbstractLifeCycleManager {
}

View File

@ -0,0 +1,10 @@
package org.gcube.application.cms.plugins;
import org.gcube.application.cms.plugins.events.ItemObserved;
import org.gcube.application.geoportal.common.model.document.Project;
public interface EventListenerPluginInterface extends InitializablePlugin {
public void doAction(ItemObserved<Project> itemObserved);
}

View File

@ -1,18 +1,19 @@
package org.gcube.application.cms.plugins; package org.gcube.application.cms.plugins;
import org.bson.Document;
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException; import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
import org.gcube.application.cms.plugins.reports.IndexDocumentReport; import org.gcube.application.cms.plugins.reports.IndexDocumentReport;
import org.gcube.application.cms.plugins.requests.BaseRequest; import org.gcube.application.cms.plugins.requests.BaseRequest;
import org.gcube.application.cms.plugins.requests.IndexDocumentRequest; import org.gcube.application.cms.plugins.requests.IndexDocumentRequest;
import org.gcube.application.geoportal.common.model.configuration.Index; import org.gcube.application.geoportal.common.model.configuration.Index;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
public interface IndexerPluginInterface extends InitializablePlugin{ public interface IndexerPluginInterface extends InitializablePlugin{
public IndexDocumentReport index(IndexDocumentRequest request) throws InvalidPluginRequestException; public IndexDocumentReport index(IndexDocumentRequest request) throws InvalidPluginRequestException;
public IndexDocumentReport deindex(IndexDocumentRequest request) throws InvalidPluginRequestException;
public Index getIndex(BaseRequest request) throws ConfigurationException; public Index getIndex(BaseRequest request) throws ConfigurationException;
} }

View File

@ -1,7 +1,9 @@
package org.gcube.application.cms.plugins; package org.gcube.application.cms.plugins;
import org.gcube.application.cms.plugins.faults.EventException; import org.gcube.application.cms.plugins.faults.EventException;
import org.gcube.application.cms.plugins.faults.InsufficientPrivileges;
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException; import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
import org.gcube.application.cms.plugins.faults.InvalidProfileException;
import org.gcube.application.cms.plugins.faults.StepException; import org.gcube.application.cms.plugins.faults.StepException;
import org.gcube.application.cms.plugins.reports.EventExecutionReport; import org.gcube.application.cms.plugins.reports.EventExecutionReport;
import org.gcube.application.cms.plugins.reports.StepExecutionReport; import org.gcube.application.cms.plugins.reports.StepExecutionReport;
@ -10,14 +12,13 @@ import org.gcube.application.cms.plugins.requests.EventExecutionRequest;
import org.gcube.application.cms.plugins.requests.StepExecutionRequest; 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.Configuration;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
public interface LifecycleManager extends InitializablePlugin{ public interface LifecycleManager extends InitializablePlugin{
// Lifecycle operations // Lifecycle operations
public StepExecutionReport performStep(StepExecutionRequest request) throws StepException, InvalidPluginRequestException; public StepExecutionReport performStep(StepExecutionRequest request) throws StepException, InvalidPluginRequestException, InvalidProfileException, ConfigurationException, InsufficientPrivileges;
public Configuration getCurrentConfiguration(BaseRequest request) throws ConfigurationException; public Configuration getCurrentConfiguration(BaseRequest request) throws ConfigurationException;

View File

@ -9,4 +9,6 @@ public interface MaterializationPlugin extends InitializablePlugin{
public MaterializationReport materialize(MaterializationRequest request) throws MaterializationException, InvalidPluginRequestException; public MaterializationReport materialize(MaterializationRequest request) throws MaterializationException, InvalidPluginRequestException;
public MaterializationReport dematerialize(MaterializationRequest request) throws MaterializationException, InvalidPluginRequestException;
} }

View File

@ -1,6 +1,6 @@
package org.gcube.application.cms.plugins; package org.gcube.application.cms.plugins;
import org.gcube.application.cms.plugins.model.PluginDescriptor; import org.gcube.application.geoportal.common.model.plugins.PluginDescriptor;
public interface Plugin { public interface Plugin {

View File

@ -1,10 +1,11 @@
package org.gcube.application.cms.plugins; package org.gcube.application.cms.plugins;
import org.gcube.application.cms.plugins.Plugin; import java.util.Map;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
public interface PluginManagerInterface { public interface PluginManagerInterface {
public Plugin getById(String pluginID) throws ConfigurationException; public Plugin getById(String pluginID) throws ConfigurationException;
public Map<String,Plugin> getByType(String type) throws ConfigurationException;
} }

View File

@ -1,14 +1,14 @@
package org.gcube.application.cms.plugins; package org.gcube.application.cms.plugins;
import lombok.extern.slf4j.Slf4j;
import org.reflections.Reflections;
import org.reflections.util.ConfigurationBuilder;
import org.reflections.util.FilterBuilder;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Set;
import org.reflections.Reflections;
import org.reflections.util.ConfigurationBuilder;
import org.reflections.util.FilterBuilder;
import lombok.extern.slf4j.Slf4j;
@Slf4j @Slf4j
public class PluginsReflections { public class PluginsReflections {
@ -26,7 +26,7 @@ public class PluginsReflections {
.filterInputsBy(new FilterBuilder().includePackage("org.gcube.application.cms"))); .filterInputsBy(new FilterBuilder().includePackage("org.gcube.application.cms")));
reflections.getSubTypesOf(Plugin.class).iterator().forEachRemaining(pluginClass->{ reflections.getSubTypesOf(Plugin.class).iterator().forEachRemaining(pluginClass->{
log.trace("Evaluating class {}",pluginClass); log.debug("Evaluating class {}",pluginClass);
if(!pluginClass.isInterface() && !Modifier.isAbstract(pluginClass.getModifiers())){ if(!pluginClass.isInterface() && !Modifier.isAbstract(pluginClass.getModifiers())){
try { try {
log.debug("Found implementation {} ",pluginClass); log.debug("Found implementation {} ",pluginClass);

View File

@ -0,0 +1,7 @@
package org.gcube.application.cms.plugins.events;
public interface EventListener<T extends ItemObservable> {
public void updated(T observerd);
}

View File

@ -0,0 +1,132 @@
package org.gcube.application.cms.plugins.events;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.gcube.application.geoportal.common.model.document.Project;
/**
* The Class EventManager.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Dec 11, 2023
*/
public class EventManager implements EventManagerInterface<ItemObserved<Project>> {
private HashMap<Event, List<EventListener<ItemObserved<Project>>>> listeners = new HashMap<Event, List<EventListener<ItemObserved<Project>>>>();
/**
* The Class Event.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Nov 29, 2023
*/
public static enum Event {
PROJECT_CREATED("PROJECT_CREATED"),
PROJECT_UPDATED("PROJECT_UPDATED"),
PROJECT_DELETED("PROJECT_DELETED"),
LIFECYCLE_STEP_PERFORMED("LIFECYCLE_STEP_PERFORMED");
String name;
/**
* Instantiates a new event.
*
* @param name the name
*/
Event(String name) {
this.name = name;
}
/**
* Gets the name.
*
* @return the name
*/
public String getName() {
return name;
}
}
// private instance, so that it can be
// accessed by only by getInstance() method
private static EventManager instance;
/**
* Instantiates a new event manager.
*/
private EventManager() {
// private constructor
}
/**
* Gets the single instance of EventManager.
*
* @return single instance of EventManager
*/
public static EventManager getInstance() {
if (instance == null) {
// synchronized block to remove overhead
synchronized (EventManager.class) {
if (instance == null) {
// if instance is null, initialize
instance = new EventManager();
}
}
}
return instance;
}
/**
* Subscribe.
*
* @param eventType the event type
* @param listener the listener
*/
public void subscribe(Event eventType, EventListener<ItemObserved<Project>> listener) {
List<EventListener<ItemObserved<Project>>> list = listeners.get(eventType);
if (list == null)
list = new ArrayList<EventListener<ItemObserved<Project>>>();
list.add(listener);
listeners.put(eventType, list);
}
/**
* Unsubscribe.
*
* @param eventType the event type
* @param listener the listener
*/
public void unsubscribe(Event eventType, EventListener<ItemObserved<Project>> listener) {
List<EventListener<ItemObserved<Project>>> list = listeners.get(eventType);
if (list == null)
return;
list.remove(listener);
listeners.put(eventType, list);
}
/**
* Notify.
*
* @param eventType the event type
* @param item the item
*/
public void notify(Event eventType, ItemObserved<Project> item) {
for (EventManager.Event event : listeners.keySet()) {
if (event.equals(eventType)) {
for (EventListener<ItemObserved<Project>> eventListner : listeners.get(eventType)) {
eventListner.updated(item);
}
}
}
}
}

View File

@ -0,0 +1,13 @@
package org.gcube.application.cms.plugins.events;
import org.gcube.application.cms.plugins.events.EventManager.Event;
public interface EventManagerInterface<T extends ItemObservable> {
public void subscribe(Event eventType, EventListener<T> listener);
public void unsubscribe(Event eventType, EventListener<T> listener);
public void notify(Event eventType, T item);
}

View File

@ -0,0 +1,9 @@
package org.gcube.application.cms.plugins.events;
public interface ItemObservable {
public String getProjectId();
public String getUCD_Id();
}

View File

@ -0,0 +1,110 @@
package org.gcube.application.cms.plugins.events;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map.Entry;
import org.bson.Document;
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.useCaseDescriptor.UseCaseDescriptor;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Slf4j
public class ItemObserved<T extends Project> implements ItemObservable {
private User userCaller;
private Context context;
private UseCaseDescriptor useCaseDescriptor;
private T project;
private EventManager.Event event;
private Document optional;
public static enum OPTIONAL_FIELD {
message, preview_url
}
public String getProjectId() {
log.debug("Called getProjectId");
if (project == null)
return null;
return project.getId();
}
@Override
public String getUCD_Id() {
log.debug("Called getUCD_Id");
if (useCaseDescriptor == null)
return null;
return useCaseDescriptor.getId();
}
public LinkedHashMap<String, Object> getDocumentEntries(int limit) {
LinkedHashMap<String, Object> documentAsMap = new LinkedHashMap<>();
try {
Iterator<Entry<String, Object>> entrySetsIt = project.getTheDocument().entrySet().iterator();
int i = 0;
while (entrySetsIt.hasNext()) {
if (i + 1 > limit)
break;
Entry<String, Object> entry = entrySetsIt.next();
documentAsMap.put(entry.getKey(), entry.getValue() != null ? entry.getValue().toString() : null);
i++;
}
} catch (Exception e) {
throw e;
}
return documentAsMap;
}
public void setOptional(OPTIONAL_FIELD optionalField, String value) {
this.optional = new Document();
if (optional == null)
this.optional = new Document();
this.optional.put(optionalField.name(), value);
}
public String getOptionalValue(OPTIONAL_FIELD optionalField) {
if (this.optional != null) {
return this.optional.getString(optionalField.name());
}
return null;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ItemObserved [userCaller=");
builder.append(userCaller);
builder.append(", context=");
builder.append(context);
builder.append(", useCaseDescriptor id=");
builder.append(useCaseDescriptor != null ? useCaseDescriptor.getId() : null);
builder.append(", project id=");
builder.append(project != null ? project.getId() : null);
builder.append(", event=");
builder.append(event);
builder.append(", optional=");
builder.append(optional);
builder.append("]");
return builder.toString();
}
}

View File

@ -0,0 +1,22 @@
package org.gcube.application.cms.plugins.faults;
public class InsufficientPrivileges extends Exception {
public InsufficientPrivileges() {
}
public InsufficientPrivileges(String message) {
super(message);
}
public InsufficientPrivileges(String message, Throwable cause) {
super(message, cause);
}
public InsufficientPrivileges(Throwable cause) {
super(cause);
}
public InsufficientPrivileges(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}

View File

@ -0,0 +1,22 @@
package org.gcube.application.cms.plugins.faults;
public class UnrecognizedEventException extends EventException{
public UnrecognizedEventException() {
}
public UnrecognizedEventException(String message) {
super(message);
}
public UnrecognizedEventException(String message, Throwable cause) {
super(message, cause);
}
public UnrecognizedEventException(Throwable cause) {
super(cause);
}
public UnrecognizedEventException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}

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