Compare commits
504 Commits
Author | SHA1 | Date |
---|---|---|
Francesco Mangiacrapa | b44edff8c7 | |
Francesco Mangiacrapa | 9e2cbd3dbd | |
Francesco Mangiacrapa | 2dbebaf648 | |
Francesco Mangiacrapa | 87448eb63c | |
Francesco Mangiacrapa | 63de032bd8 | |
Francesco Mangiacrapa | b57c90ad95 | |
Francesco Mangiacrapa | 2cdb2d4bae | |
Francesco Mangiacrapa | 651328fd75 | |
Francesco Mangiacrapa | 261438b509 | |
Francesco Mangiacrapa | 4f61deff95 | |
Francesco Mangiacrapa | 6998eef4eb | |
Francesco Mangiacrapa | 4b1a4b1158 | |
Francesco Mangiacrapa | 8c896f1799 | |
Francesco Mangiacrapa | c6230151c2 | |
Francesco Mangiacrapa | 0dfb132fc0 | |
Francesco Mangiacrapa | 75d9316081 | |
Francesco Mangiacrapa | 8f20c870d4 | |
Francesco Mangiacrapa | 85212f9983 | |
Francesco Mangiacrapa | e0ea0a9c48 | |
Francesco Mangiacrapa | bbe8ad1be7 | |
Francesco Mangiacrapa | 63511b568c | |
Francesco Mangiacrapa | 8e7b1abac2 | |
Francesco Mangiacrapa | 1386fec91c | |
Francesco Mangiacrapa | bb09f0bb8e | |
Francesco Mangiacrapa | f58e3264f0 | |
Francesco Mangiacrapa | c53c1020c8 | |
Francesco Mangiacrapa | d787d3d241 | |
Francesco Mangiacrapa | d1b4e929bf | |
Francesco Mangiacrapa | eff2351caf | |
Francesco Mangiacrapa | bc08d11a77 | |
Francesco Mangiacrapa | 303534e99c | |
Francesco Mangiacrapa | 1dfeba68c2 | |
Francesco Mangiacrapa | 84b1e25f5c | |
Francesco Mangiacrapa | fb8402b70b | |
Francesco Mangiacrapa | 6ba7fac42c | |
Francesco Mangiacrapa | 9b9b33c684 | |
Francesco Mangiacrapa | 824caa786c | |
Francesco Mangiacrapa | b9ed0b91d0 | |
Francesco Mangiacrapa | 80f6d5dfc1 | |
Francesco Mangiacrapa | ce8de7845f | |
Francesco Mangiacrapa | 8616634652 | |
Francesco Mangiacrapa | eaa48ca799 | |
Francesco Mangiacrapa | 028171275a | |
Francesco Mangiacrapa | 5341f19cec | |
Francesco Mangiacrapa | 1109cdc63c | |
Francesco Mangiacrapa | 7fd3aad846 | |
Francesco Mangiacrapa | 35e9971717 | |
Francesco Mangiacrapa | 564d6bb3cb | |
Francesco Mangiacrapa | e25a86306a | |
Francesco Mangiacrapa | fb6f84f0fe | |
Francesco Mangiacrapa | f70ba18eba | |
Francesco Mangiacrapa | 5cb9b85c32 | |
Francesco Mangiacrapa | 766861da37 | |
Francesco Mangiacrapa | 892ec092e1 | |
Francesco Mangiacrapa | 52ff58cbba | |
Francesco Mangiacrapa | da1c1502e0 | |
Francesco Mangiacrapa | 1fade30403 | |
Francesco Mangiacrapa | 22daeac777 | |
Francesco Mangiacrapa | 8d7330d16b | |
Francesco Mangiacrapa | 3b517978cb | |
Fabio Sinibaldi | ae8232cdbf | |
Francesco Mangiacrapa | f5697e1e7e | |
Francesco Mangiacrapa | ae950ee346 | |
Francesco Mangiacrapa | e415512628 | |
Francesco Mangiacrapa | eec035f77b | |
Francesco Mangiacrapa | cff7b260b4 | |
Francesco Mangiacrapa | 2580b09743 | |
Francesco Mangiacrapa | 745c7a81d8 | |
Francesco Mangiacrapa | df92c84b16 | |
Francesco Mangiacrapa | ddaf86f705 | |
Francesco Mangiacrapa | bb42e05d08 | |
Francesco Mangiacrapa | e4477f6f6f | |
Francesco Mangiacrapa | f666d3eb4a | |
Francesco Mangiacrapa | 04441cdae2 | |
Francesco Mangiacrapa | 9e8bf79e6e | |
Francesco Mangiacrapa | 9e96c69d2c | |
Francesco Mangiacrapa | f7de65307d | |
Francesco Mangiacrapa | 3cb5ebef57 | |
Francesco Mangiacrapa | d0bcaef962 | |
Francesco Mangiacrapa | 97dcf6aed9 | |
Francesco Mangiacrapa | 5e26c4ef61 | |
Francesco Mangiacrapa | a4db9a86c2 | |
Francesco Mangiacrapa | f4c6690bc4 | |
Francesco Mangiacrapa | f6ae2959ed | |
Francesco Mangiacrapa | 64231c75a9 | |
Francesco Mangiacrapa | a449b98bc0 | |
Francesco Mangiacrapa | 4b2fa14a6e | |
Francesco Mangiacrapa | c72f884206 | |
Francesco Mangiacrapa | fe0869975a | |
Francesco Mangiacrapa | 5e98b60a20 | |
Francesco Mangiacrapa | bdd92cd2ac | |
Francesco Mangiacrapa | ac5d2a5c63 | |
Francesco Mangiacrapa | ae16df71c3 | |
Francesco Mangiacrapa | a210d1e237 | |
Francesco Mangiacrapa | 8b92ee395b | |
Francesco Mangiacrapa | 2593fbf195 | |
Francesco Mangiacrapa | a8b14a911b | |
Francesco Mangiacrapa | f0488d5c73 | |
Francesco Mangiacrapa | 1b5eb2e5b0 | |
Francesco Mangiacrapa | 6203503026 | |
Francesco Mangiacrapa | 05634834fe | |
Francesco Mangiacrapa | 6b82b8bbef | |
Francesco Mangiacrapa | b820f68e7e | |
Francesco Mangiacrapa | 7eef6d1441 | |
Francesco Mangiacrapa | e871d0135e | |
Francesco Mangiacrapa | 194b083f4e | |
Francesco Mangiacrapa | 988fe9b4fe | |
Francesco Mangiacrapa | 5d4b947ad9 | |
Francesco Mangiacrapa | 76f67587e7 | |
Francesco Mangiacrapa | c273a2db2c | |
Francesco Mangiacrapa | 04a86e0280 | |
Francesco Mangiacrapa | 9f047dff91 | |
Francesco Mangiacrapa | c47b361a0c | |
Francesco Mangiacrapa | 4e93560cd1 | |
Francesco Mangiacrapa | 1408277fe9 | |
Francesco Mangiacrapa | 2636176796 | |
Francesco Mangiacrapa | c0e40c8898 | |
Francesco Mangiacrapa | d1ebce8d45 | |
Francesco Mangiacrapa | 7081772f19 | |
Francesco Mangiacrapa | 261d8f31c8 | |
Francesco Mangiacrapa | a65c4a86da | |
Francesco Mangiacrapa | cb9ae34034 | |
Francesco Mangiacrapa | 42cfe8e600 | |
Francesco Mangiacrapa | cc84875c23 | |
Francesco Mangiacrapa | 4960b50795 | |
Francesco Mangiacrapa | 3702ebe730 | |
Francesco Mangiacrapa | ac0095cacc | |
Francesco Mangiacrapa | 4b640a1803 | |
Francesco Mangiacrapa | e8b82d443c | |
Francesco Mangiacrapa | 03714f99ec | |
Francesco Mangiacrapa | cdab39e2af | |
Francesco Mangiacrapa | e7722548d6 | |
Francesco Mangiacrapa | 4964056fb4 | |
Francesco Mangiacrapa | b37bd06440 | |
Francesco Mangiacrapa | 7a7c79ef17 | |
Francesco Mangiacrapa | 17299c7dd1 | |
Francesco Mangiacrapa | 7fb96e75fe | |
Francesco Mangiacrapa | 292fe88107 | |
Francesco Mangiacrapa | c23245151f | |
Francesco Mangiacrapa | 9dd1b77b73 | |
Francesco Mangiacrapa | 42fc5e4ace | |
Francesco Mangiacrapa | 374544a28a | |
Francesco Mangiacrapa | 18458b99f6 | |
Francesco Mangiacrapa | d083cae89e | |
Francesco Mangiacrapa | 07730153ca | |
Francesco Mangiacrapa | e902fadce2 | |
Francesco Mangiacrapa | 5ac8725594 | |
Francesco Mangiacrapa | b2d696acf3 | |
Francesco Mangiacrapa | 755b6042c6 | |
Francesco Mangiacrapa | d1902a9664 | |
Francesco Mangiacrapa | 6072f4afbc | |
Francesco Mangiacrapa | 13b388f8a6 | |
Francesco Mangiacrapa | 93d490de79 | |
Francesco Mangiacrapa | d86b2026d3 | |
Francesco Mangiacrapa | 0f7e3f73b8 | |
Francesco Mangiacrapa | fcb8f3c378 | |
Francesco Mangiacrapa | 46ad6a0198 | |
Francesco Mangiacrapa | d3c043621b | |
Francesco Mangiacrapa | a499c5e151 | |
Francesco Mangiacrapa | 2bc5d3a192 | |
Francesco Mangiacrapa | 0dcdd2bf32 | |
Francesco Mangiacrapa | b2f93e2167 | |
Francesco Mangiacrapa | 2797ae5d76 | |
Francesco Mangiacrapa | 1b0a93d91c | |
Francesco Mangiacrapa | 7ea6719534 | |
Francesco Mangiacrapa | 23dae96c83 | |
Francesco Mangiacrapa | ed3fe284c1 | |
Francesco Mangiacrapa | 08eb6f85de | |
Francesco Mangiacrapa | b23e05b1e4 | |
Francesco Mangiacrapa | 5af02d427e | |
Francesco Mangiacrapa | 01d5c7d6fb | |
Francesco Mangiacrapa | 90f33434cb | |
Francesco Mangiacrapa | 84e69d7eea | |
Francesco Mangiacrapa | f4c5b00905 | |
Francesco Mangiacrapa | a22f4a7503 | |
Francesco Mangiacrapa | 7dade2d250 | |
Francesco Mangiacrapa | 4cf6d1e5d4 | |
Francesco Mangiacrapa | c9ef00c108 | |
Francesco Mangiacrapa | c1f2696909 | |
Francesco Mangiacrapa | e5fc626bd3 | |
Francesco Mangiacrapa | fb5b64442e | |
Francesco Mangiacrapa | bdd4884821 | |
Francesco Mangiacrapa | 0b8d2f3b4b | |
Francesco Mangiacrapa | 245f068210 | |
Francesco Mangiacrapa | 139e96222a | |
Francesco Mangiacrapa | a6f9e5be9b | |
Francesco Mangiacrapa | 6dd921fb05 | |
Francesco Mangiacrapa | 9c9bd0b382 | |
Francesco Mangiacrapa | 0090950e9d | |
Francesco Mangiacrapa | 1431a06171 | |
Francesco Mangiacrapa | 0edc6c6f1f | |
Francesco Mangiacrapa | 47a4558a46 | |
Francesco Mangiacrapa | c5de3cb00c | |
Francesco Mangiacrapa | 9f1950597e | |
Francesco Mangiacrapa | 87eb0ee41a | |
Francesco Mangiacrapa | eab6a27c76 | |
Francesco Mangiacrapa | c82f5a7ba9 | |
Francesco Mangiacrapa | 8d888a869e | |
Francesco Mangiacrapa | 2cd07f6f3b | |
Francesco Mangiacrapa | 0c536f2dde | |
Francesco Mangiacrapa | c5c5fdd6fe | |
Francesco Mangiacrapa | caec2f54c6 | |
Roberto Cirillo | 3014d475bb | |
Roberto Cirillo | df35df55b6 | |
Francesco Mangiacrapa | 161c545174 | |
Francesco Mangiacrapa | e059e9cfa7 | |
Francesco Mangiacrapa | fa90d62eca | |
Francesco Mangiacrapa | 038bfe26ba | |
Francesco Mangiacrapa | 56ca60f177 | |
Francesco Mangiacrapa | 905e12d067 | |
Fabio Sinibaldi | c193d7a948 | |
Fabio Sinibaldi | a6d1d5817a | |
Francesco Mangiacrapa | 7b7f30279d | |
Fabio Sinibaldi | aacd18582d | |
Francesco Mangiacrapa | 3ed5f73a14 | |
Francesco Mangiacrapa | 01d64343b7 | |
Fabio Sinibaldi | ed681eba2a | |
Fabio Sinibaldi | bac779b20d | |
Fabio Sinibaldi | 409df28cc1 | |
Fabio Sinibaldi | b115c8088b | |
Fabio Sinibaldi | 9ba3559a15 | |
Fabio Sinibaldi | b8cb4e86f0 | |
Fabio Sinibaldi | ae6c5c1ea7 | |
Fabio Sinibaldi | 2d62160ce1 | |
Fabio Sinibaldi | 87df1c2f96 | |
Fabio Sinibaldi | 917587d276 | |
Fabio Sinibaldi | 6e065ed359 | |
Fabio Sinibaldi | 2f13be58e8 | |
Francesco Mangiacrapa | 99d8c9a626 | |
Francesco Mangiacrapa | 52588425d2 | |
Fabio Sinibaldi | b4cf8ccd27 | |
Fabio Sinibaldi | 5e10aa610c | |
Fabio Sinibaldi | 1eaaf0f176 | |
Fabio Sinibaldi | 6234ef4a2f | |
Fabio Sinibaldi | edef974181 | |
Fabio Sinibaldi | d265c2d558 | |
Fabio Sinibaldi | 66a0424cc5 | |
Fabio Sinibaldi | a86310ade5 | |
Fabio Sinibaldi | 7bc7caa0de | |
Fabio Sinibaldi | 293689e788 | |
Fabio Sinibaldi | b5db9cfdf3 | |
Fabio Sinibaldi | 038049ebf6 | |
Fabio Sinibaldi | e7481f67c4 | |
Fabio Sinibaldi | a58bd458f7 | |
Fabio Sinibaldi | b7788c063e | |
Fabio Sinibaldi | bff898c57d | |
Fabio Sinibaldi | 253b13e49b | |
Fabio Sinibaldi | febc806c10 | |
Fabio Sinibaldi | 5ea3d278ad | |
Fabio Sinibaldi | 5055c548d1 | |
Fabio Sinibaldi | 56bac71bb2 | |
Fabio Sinibaldi | 3d03e565b4 | |
Fabio Sinibaldi | eb3a5083b9 | |
Fabio Sinibaldi | c4e5423a26 | |
Fabio Sinibaldi | a50c05a1f0 | |
Fabio Sinibaldi | 456a3d2bae | |
Fabio Sinibaldi | 390402e005 | |
Fabio Sinibaldi | 2561da665f | |
Fabio Sinibaldi | 20336ea57a | |
Fabio Sinibaldi | 87611c1245 | |
Fabio Sinibaldi | e1defba910 | |
Fabio Sinibaldi | 96a13efe72 | |
Fabio Sinibaldi | 912925202d | |
Fabio Sinibaldi | e3960d3d7e | |
Fabio Sinibaldi | de8ed2a811 | |
Fabio Sinibaldi | ec0b826313 | |
Fabio Sinibaldi | 3fb1b22ff5 | |
Fabio Sinibaldi | 8eeb5dee1e | |
Fabio Sinibaldi | ec6b347f90 | |
Fabio Sinibaldi | fc638de33c | |
Fabio Sinibaldi | cdff7547a5 | |
Fabio Sinibaldi | 9954a653f7 | |
Fabio Sinibaldi | e58c3009e9 | |
Fabio Sinibaldi | 633cf8ee5c | |
Fabio Sinibaldi | a7001b8100 | |
Fabio Sinibaldi | 235b47f595 | |
Fabio Sinibaldi | deec4a584c | |
Fabio Sinibaldi | b1515d1c33 | |
Fabio Sinibaldi | b1743a09c8 | |
Fabio Sinibaldi | 057750671e | |
Fabio Sinibaldi | 703ef65f66 | |
Fabio Sinibaldi | a7fc4ab1f3 | |
Fabio Sinibaldi | eec11e5d0b | |
Fabio Sinibaldi | c89f8a66c4 | |
Fabio Sinibaldi | 237014c3d0 | |
Fabio Sinibaldi | ffcfc2f6e3 | |
Fabio Sinibaldi | 0a653f2eda | |
Fabio Sinibaldi | 5442e727df | |
Fabio Sinibaldi | 936c2f92c5 | |
Fabio Sinibaldi | 3c9be903cc | |
Fabio Sinibaldi | 6e49b095e4 | |
Fabio Sinibaldi | 44b0d027e9 | |
Fabio Sinibaldi | 0ec65d1d30 | |
Fabio Sinibaldi | 222b337308 | |
Fabio Sinibaldi | 73618a02bd | |
Fabio Sinibaldi | 1f6512f105 | |
Fabio Sinibaldi | 8b25642459 | |
Fabio Sinibaldi | 6d67280f7c | |
Fabio Sinibaldi | aacf723ba9 | |
Fabio Sinibaldi | 1d955fbcfa | |
Fabio Sinibaldi | b811abcb54 | |
Fabio Sinibaldi | 40597d5769 | |
Fabio Sinibaldi | 0efb397af9 | |
Fabio Sinibaldi | b8a0e8db4c | |
Fabio Sinibaldi | 6244694f0d | |
Fabio Sinibaldi | f65edeea4e | |
Fabio Sinibaldi | 49120cf400 | |
Fabio Sinibaldi | 118a3474fa | |
Fabio Sinibaldi | 2b40d4058a | |
Fabio Sinibaldi | 39e09c436b | |
Fabio Sinibaldi | 1f4afcad4b | |
Fabio Sinibaldi | 908fb4fa31 | |
Fabio Sinibaldi | 7f8497e12a | |
Fabio Sinibaldi | 3da2170e9f | |
Fabio Sinibaldi | bcd32848ac | |
Fabio Sinibaldi | 0c20baab35 | |
Fabio Sinibaldi | f7101e98a4 | |
Fabio Sinibaldi | 888ff97c50 | |
Fabio Sinibaldi | 54e2b190d1 | |
Fabio Sinibaldi | 60de4f504b | |
Fabio Sinibaldi | 3a2a42f3b8 | |
Fabio Sinibaldi | 4c9455fd76 | |
Fabio Sinibaldi | bd5aa2d4d9 | |
Fabio Sinibaldi | 7fb88afb5b | |
Fabio Sinibaldi | 13c339d720 | |
Fabio Sinibaldi | df4e62cfcc | |
Fabio Sinibaldi | 1aa4a43b95 | |
Fabio Sinibaldi | 3b2ae25034 | |
Fabio Sinibaldi | ef30cd46d4 | |
Fabio Sinibaldi | 7d4bb76475 | |
Fabio Sinibaldi | ce253b5ade | |
Fabio Sinibaldi | 80459d5546 | |
Fabio Sinibaldi | 702f32dfa1 | |
Fabio Sinibaldi | d616e7ed3c | |
Fabio Sinibaldi | a5702a44fa | |
Fabio Sinibaldi | ac80cbbd7c | |
Fabio Sinibaldi | 53789aa882 | |
Fabio Sinibaldi | 303b8a035e | |
Fabio Sinibaldi | a1c0913e41 | |
Fabio Sinibaldi | 0915c23960 | |
Fabio Sinibaldi | e56aed85f8 | |
Fabio Sinibaldi | d05db92597 | |
Fabio Sinibaldi | 71d383e162 | |
Fabio Sinibaldi | 26e6350178 | |
Fabio Sinibaldi | dfbc6e0ea2 | |
Fabio Sinibaldi | 559347e5f7 | |
Fabio Sinibaldi | c8cd5118e8 | |
Fabio Sinibaldi | 332807f8bb | |
Fabio Sinibaldi | ae335a5289 | |
Fabio Sinibaldi | 9e3ff459bd | |
Fabio Sinibaldi | dbc2e37c83 | |
Fabio Sinibaldi | 2ba571e4af | |
Fabio Sinibaldi | 49094b73ee | |
Fabio Sinibaldi | a98d362ccf | |
Fabio Sinibaldi | 07dfe31292 | |
Fabio Sinibaldi | 6a22868696 | |
Fabio Sinibaldi | fc0f4e6411 | |
Fabio Sinibaldi | c601dcdda6 | |
Fabio Sinibaldi | 32ab7c7cfc | |
Fabio Sinibaldi | 8b92208774 | |
Fabio Sinibaldi | ebeba09151 | |
Fabio Sinibaldi | f27989065f | |
Fabio Sinibaldi | 34a180e843 | |
Fabio Sinibaldi | b189ef5cda | |
Fabio Sinibaldi | fb8cdec9e2 | |
Fabio Sinibaldi | 8cdaf705dc | |
Fabio Sinibaldi | 747acd010e | |
Fabio Sinibaldi | a4fddb9870 | |
Fabio Sinibaldi | 50979dee03 | |
Fabio Sinibaldi | da9bbdc563 | |
Fabio Sinibaldi | c20e11ff8e | |
Fabio Sinibaldi | e5ad1ef567 | |
Fabio Sinibaldi | 5413243bdf | |
Fabio Sinibaldi | ec28d3b53c | |
Fabio Sinibaldi | 74e2795161 | |
Fabio Sinibaldi | c5bd6f29d3 | |
Fabio Sinibaldi | bf2122c882 | |
Fabio Sinibaldi | 0f6a7909c3 | |
Fabio Sinibaldi | 63b0e0356e | |
Fabio Sinibaldi | 3b9f49529f | |
Fabio Sinibaldi | d1e0e973b6 | |
Fabio Sinibaldi | 3d33e50164 | |
Fabio Sinibaldi | e86fba8fe2 | |
Fabio Sinibaldi | 149686bfe3 | |
Fabio Sinibaldi | 34ca467ab0 | |
Fabio Sinibaldi | 8aa32e48ba | |
Fabio Sinibaldi | 5c8d476e56 | |
Fabio Sinibaldi | cf28f5b826 | |
Fabio Sinibaldi | fa533d3a4d | |
Fabio Sinibaldi | bccb531521 | |
Fabio Sinibaldi | 8636cc95f4 | |
Fabio Sinibaldi | ca8eb58beb | |
Fabio Sinibaldi | af3993cfef | |
Fabio Sinibaldi | 308352d2f9 | |
Fabio Sinibaldi | 30b21e8bcd | |
Fabio Sinibaldi | 74ce2eb6a3 | |
Fabio Sinibaldi | f413b33dc7 | |
Fabio Sinibaldi | 0516565b0c | |
Fabio Sinibaldi | 3f0091b8b1 | |
Fabio Sinibaldi | 073775b356 | |
Fabio Sinibaldi | 466a3b5809 | |
Fabio Sinibaldi | c2c06c1e3f | |
Fabio Sinibaldi | ba0545e2c7 | |
Fabio Sinibaldi | bd86648161 | |
Fabio Sinibaldi | 9b253621b3 | |
Fabio Sinibaldi | a2b9b8d5e8 | |
Fabio Sinibaldi | 7df98cb40e | |
Fabio Sinibaldi | ab4a8ef1dc | |
Fabio Sinibaldi | 521b5c90a6 | |
Fabio Sinibaldi | a0ffa08813 | |
Fabio Sinibaldi | c489f267e6 | |
Fabio Sinibaldi | 166ea432c3 | |
Fabio Sinibaldi | 9536379efb | |
Fabio Sinibaldi | 610f255dcd | |
Fabio Sinibaldi | 47043b482c | |
Fabio Sinibaldi | 17f4f5e991 | |
Fabio Sinibaldi | 43943af6b7 | |
Fabio Sinibaldi | 5f28029db1 | |
Fabio Sinibaldi | 4d52bf7123 | |
Fabio Sinibaldi | f1b7790cda | |
Fabio Sinibaldi | c5c2a4cec7 | |
Fabio Sinibaldi | 1a0c26b44f | |
Fabio Sinibaldi | 6fd3d4bb1c | |
Fabio Sinibaldi | 504311ae80 | |
Fabio Sinibaldi | 1036446bfd | |
Fabio Sinibaldi | 7ba4f3c680 | |
Fabio Sinibaldi | b12c4b456f | |
Fabio Sinibaldi | 64db661a9b | |
Fabio Sinibaldi | 240649b699 | |
Fabio Sinibaldi | 458df96496 | |
Fabio Sinibaldi | e84dd65585 | |
Fabio Sinibaldi | 0b2f078b31 | |
Fabio Sinibaldi | b0ae484408 | |
Fabio Sinibaldi | ec76ccfda9 | |
Fabio Sinibaldi | 4e19170a9f | |
Fabio Sinibaldi | 1d12a8f025 | |
Fabio Sinibaldi | 1d425405a9 | |
Fabio Sinibaldi | dd61ba2d37 | |
Fabio Sinibaldi | ea6fca3222 | |
Fabio Sinibaldi | 33155051ae | |
Fabio Sinibaldi | ce9f3be3fc | |
Fabio Sinibaldi | 10c450fb2f | |
Fabio Sinibaldi | e0daa09d6f | |
Fabio Sinibaldi | 2bd5336eee | |
Fabio Sinibaldi | 3d3f618f50 | |
Fabio Sinibaldi | 8eb1cd3f9d | |
Fabio Sinibaldi | 2989a493b9 | |
Fabio Sinibaldi | a77616f189 | |
Fabio Sinibaldi | f6a4d76a57 | |
Fabio Sinibaldi | d1ef58e5b6 | |
Fabio Sinibaldi | ab91340cec | |
Fabio Sinibaldi | a194811d85 | |
Fabio Sinibaldi | 66fcdfd72a | |
Fabio Sinibaldi | c44a8c851f | |
Fabio Sinibaldi | 21cc19c713 | |
Fabio Sinibaldi | 2f94fdef97 | |
Fabio Sinibaldi | de86108bda | |
Fabio Sinibaldi | 3968e78c87 | |
Fabio Sinibaldi | 9e9c696909 | |
Fabio Sinibaldi | 8ff0cee95a | |
Fabio Sinibaldi | a7280b0b1d | |
Fabio Sinibaldi | ca32991c18 | |
Fabio Sinibaldi | 0322042d73 | |
Fabio Sinibaldi | 8e6b1e0106 | |
Fabio Sinibaldi | 1b7658315c | |
Fabio Sinibaldi | 8cb1f8f447 | |
Fabio Sinibaldi | 8c0012e581 | |
Fabio Sinibaldi | 069ae9c5ec | |
Fabio Sinibaldi | 417a014fe7 | |
Fabio Sinibaldi | d6521900b5 | |
Fabio Sinibaldi | 2e6fa21426 | |
Fabio Sinibaldi | 615b05408c | |
Fabio Sinibaldi | 697f46ffa2 | |
Fabio Sinibaldi | 58fcad9da6 | |
Fabio Sinibaldi | 803e7776ee | |
Fabio Sinibaldi | c1e8000bd0 | |
Fabio Sinibaldi | 00536fc8b4 | |
Fabio Sinibaldi | fdd5c4845c | |
Fabio Sinibaldi | 6720e09ae5 | |
Fabio Sinibaldi | 70f427d67b | |
Fabio Sinibaldi | b810bbb3ed | |
Fabio Sinibaldi | 6f1e97c472 | |
Fabio Sinibaldi | 3849990e98 | |
Fabio Sinibaldi | 630815050a | |
Fabio Sinibaldi | 28fca1bb6d | |
Fabio Sinibaldi | c9e5cf473a | |
Fabio Sinibaldi | ff916ae3cd | |
Fabio Sinibaldi | 6c664bb6d3 | |
Fabio Sinibaldi | 5d3e56754f | |
Fabio Sinibaldi | bb47c90c9e | |
Fabio Sinibaldi | 724a6bcfff | |
Fabio Sinibaldi | 9921dec9ed | |
Fabio Sinibaldi | 085074740a | |
Fabio Sinibaldi | 3ae21711f9 | |
Fabio Sinibaldi | 3d6f86ef91 | |
Fabio Sinibaldi | e2d728042f | |
Fabio Sinibaldi | 17839745aa | |
Fabio Sinibaldi | f0d04b8c62 | |
Fabio Sinibaldi | d78cdc30e4 | |
Fabio Sinibaldi | 5d6aa5a4d1 | |
Fabio Sinibaldi | ca660cf8b6 | |
Fabio Sinibaldi | ee2f72041e | |
Fabio Sinibaldi | 0d919b72bb | |
Fabio Sinibaldi | 5cfffd201a |
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -2,7 +2,18 @@ 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.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
|
||||||
|
|
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 |
|
@ -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"}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,815 @@
|
||||||
|
{
|
||||||
|
"_id": "profiledConcessioni",
|
||||||
|
"_version": "1.0.0",
|
||||||
|
"_name": "Indagini svolte in regime di concessione",
|
||||||
|
"_schema": {
|
||||||
|
"abstractRelazione": {
|
||||||
|
"_min": 1,
|
||||||
|
"_children": [
|
||||||
|
{
|
||||||
|
"filesetIta": {
|
||||||
|
"_type": "RegisteredFileSet",
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filesetEng": {
|
||||||
|
"_type": "RegisteredFileSet"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": {
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"relazioneScavo": {
|
||||||
|
"_max": 1,
|
||||||
|
"_min": 1,
|
||||||
|
"_children": [
|
||||||
|
{
|
||||||
|
"fileset": {
|
||||||
|
"_type": "RegisteredFileSet",
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": {
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"immaginiRappresentative": {
|
||||||
|
"_max": 4,
|
||||||
|
"_children": [
|
||||||
|
{
|
||||||
|
"fileset": {
|
||||||
|
"_type": "RegisteredFileSet",
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": {
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"posizionamentoScavo": {
|
||||||
|
"_max": 1,
|
||||||
|
"_min": 1,
|
||||||
|
"_children": [
|
||||||
|
{
|
||||||
|
"fileset": {
|
||||||
|
"_type": "RegisteredFileSet",
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": {
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"pianteFineScavo": {
|
||||||
|
"_max": -1,
|
||||||
|
"_children": [
|
||||||
|
{
|
||||||
|
"fileset": {
|
||||||
|
"_type": "RegisteredFileSet",
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": {
|
||||||
|
"_min": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"_description": "Embedded profile for concessioni [mibac] management",
|
||||||
|
"_creationInfo": {
|
||||||
|
"_user": {
|
||||||
|
"_username": "francesco.mangiacrapa"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"_dataAccessPolicies": [
|
||||||
|
{
|
||||||
|
"_policy": {
|
||||||
|
"_read": "any",
|
||||||
|
"_write": "any"
|
||||||
|
},
|
||||||
|
"_roles": [
|
||||||
|
"Data-Manager"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_policy": {
|
||||||
|
"_read": "own",
|
||||||
|
"_write": "own"
|
||||||
|
},
|
||||||
|
"_roles": [
|
||||||
|
"Data-Editor"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_policy": {
|
||||||
|
"_read": "any",
|
||||||
|
"_write": "none"
|
||||||
|
},
|
||||||
|
"_roles": [
|
||||||
|
"Member"
|
||||||
|
],
|
||||||
|
"_enforcer": {
|
||||||
|
"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_policy": {
|
||||||
|
"_read": "none",
|
||||||
|
"_write": "none"
|
||||||
|
},
|
||||||
|
"_roles": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_handlers": [
|
||||||
|
{
|
||||||
|
"_id": "GNA-CONCESSIONI-LC",
|
||||||
|
"_type": "LifecycleManagement",
|
||||||
|
"_configuration": {
|
||||||
|
"step_access": [
|
||||||
|
{
|
||||||
|
"STEP": "SUBMIT-FOR-REVIEW",
|
||||||
|
"roles": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"STEP": "REJECT-DRAFT",
|
||||||
|
"roles": [
|
||||||
|
"Data-Manager",
|
||||||
|
"Data-Editor"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"STEP": "APPROVE-SUBMITTED",
|
||||||
|
"roles": [
|
||||||
|
"Data-Manager"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"STEP": "UNPUBLISH",
|
||||||
|
"roles": [
|
||||||
|
"Data-Manager"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "SDI-Default-Materializer",
|
||||||
|
"_type": "Materializer",
|
||||||
|
"_configuration": {
|
||||||
|
"registeredFileSetPaths": [
|
||||||
|
{
|
||||||
|
"schemaField": "pianteFineScavo",
|
||||||
|
"documentPath": "pianteFineScavo[*].fileset"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"schemaField": "posizionamentoScavo",
|
||||||
|
"documentPath": "posizionamentoScavo.fileset"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "SDI-Indexer-Plugin",
|
||||||
|
"_type": "Indexer",
|
||||||
|
"_configuration": {
|
||||||
|
"bboxEvaluation": [
|
||||||
|
"$..posizionamentoScavo.._bbox"
|
||||||
|
],
|
||||||
|
"explicitFieldMapping": [
|
||||||
|
{
|
||||||
|
"name": "nome",
|
||||||
|
"path": "$._theDocument.nome",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "data_inizio_progetto",
|
||||||
|
"path": "$._theDocument.dataInizioProgetto",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "descrizione",
|
||||||
|
"path": "$._theDocument.introduzione",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "contenuto",
|
||||||
|
"path": "$._theDocument.descrizioneContenuto",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "contributore",
|
||||||
|
"path": "$._theDocument.contributore",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "responsabile",
|
||||||
|
"path": "$._theDocument.responsabile",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "editore",
|
||||||
|
"path": "$._theDocument.editore",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ufficio_mic_competente",
|
||||||
|
"path": "$._theDocument.ufficioMic",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "funzionario_responsabile",
|
||||||
|
"path": "$._theDocument.funzionarioResponsabile",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "finanziamento",
|
||||||
|
"path": "$._theDocument.fontiFinanziamento",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "soggetto",
|
||||||
|
"path": "$._theDocument.soggetto",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "risorse",
|
||||||
|
"path": "$._theDocument.risorseCorrelate",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "data_fine_progetto",
|
||||||
|
"path": "$._theDocument.dataFineProgetto",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "data_archiviazione",
|
||||||
|
"path": "$._info._lastEditInfo._instant",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "versione",
|
||||||
|
"path": "$._version",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "licenza",
|
||||||
|
"path": "$._info._access._license",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "accesso",
|
||||||
|
"path": "$._info._access._license",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "parole_chiave",
|
||||||
|
"path": "$._theDocument.paroleChiaveLibere",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "modalita_individuazione",
|
||||||
|
"path": "$._theDocument.modalitaIndividuazione",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "contesto_indagine",
|
||||||
|
"path": "$._theDocument.contestoIndagine",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "denominazione",
|
||||||
|
"path": "$._theDocument.denominazione",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "stato_attuale",
|
||||||
|
"path": "$._theDocument.statoAttuale",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "accessibilita",
|
||||||
|
"path": "$._theDocument.accessibilita",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "cronologia_macrofase",
|
||||||
|
"path": "$._theDocument.cronologiaMacrofase",
|
||||||
|
"type": "TEXT",
|
||||||
|
"apply_regex": {
|
||||||
|
"type": "replaceAll",
|
||||||
|
"regex": "(\\s)?\\([\\s\\S]*",
|
||||||
|
"replacement": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "specifiche_cronologia",
|
||||||
|
"path": "$._theDocument.specificheCronologia",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "quota_max",
|
||||||
|
"path": "$._theDocument.quotaMax",
|
||||||
|
"type": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "quota_min",
|
||||||
|
"path": "$._theDocument.quotaMin",
|
||||||
|
"type": "TEXT"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"jslt": {},
|
||||||
|
"additionalLayers": [
|
||||||
|
{
|
||||||
|
"source": {
|
||||||
|
"url": "..."
|
||||||
|
},
|
||||||
|
"toSetTitle": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "org.gcube.portlets.user.geoportal-data-entry-app",
|
||||||
|
"_type": "DATA_ENTRY_GUI",
|
||||||
|
"_configuration": {
|
||||||
|
"gcubeProfiles": [
|
||||||
|
{
|
||||||
|
"gcubeSecondaryType": "GeoNaMetadata",
|
||||||
|
"gcubeName": "Informazioni_di_progetto",
|
||||||
|
"sectionName": "$.",
|
||||||
|
"sectionTitle": "Informazioni di Progetto"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gcubeSecondaryType": "GeoNaMetadata",
|
||||||
|
"gcubeName": "Abstract_Relazione_di_Scavo",
|
||||||
|
"sectionName": "abstractRelazione",
|
||||||
|
"sectionTitle": "Abstract della Relazione Scientifica",
|
||||||
|
"parentName": "$.",
|
||||||
|
"filePaths": [
|
||||||
|
{
|
||||||
|
"gcubeProfileFieldName": "Carica Abstract Ita (in PDF)",
|
||||||
|
"fieldDefinition": "$.abstractRelazione._children[?(@.filesetIta)]",
|
||||||
|
"fieldName": "filesetIta"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gcubeProfileFieldName": "Carica Abstract Eng (in PDF)",
|
||||||
|
"fieldDefinition": "$.abstractRelazione._children[?(@.filesetEng)]",
|
||||||
|
"fieldName": "filesetEng"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gcubeSecondaryType": "GeoNaMetadata",
|
||||||
|
"gcubeName": "Relazione_di_Scavo",
|
||||||
|
"sectionName": "relazioneScavo",
|
||||||
|
"sectionTitle": "Relazione Scientifica",
|
||||||
|
"parentName": "$.",
|
||||||
|
"filePaths": [
|
||||||
|
{
|
||||||
|
"gcubeProfileFieldName": "Relazione scientifica (in PDF)",
|
||||||
|
"fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]",
|
||||||
|
"fieldName": "fileset"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gcubeSecondaryType": "GeoNaMetadata",
|
||||||
|
"gcubeName": "Immagine_Rappresentativa_di_Scavo",
|
||||||
|
"sectionName": "immaginiRappresentative",
|
||||||
|
"sectionTitle": "Immagini Rappresentative",
|
||||||
|
"minOccurs": 1,
|
||||||
|
"maxOccurs": 4,
|
||||||
|
"parentName": "$.",
|
||||||
|
"filePaths": [
|
||||||
|
{
|
||||||
|
"gcubeProfileFieldName": "Immagine",
|
||||||
|
"fieldDefinition": "$.immaginiRappresentative._children[?(@.fileset)]",
|
||||||
|
"fieldName": "fileset"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gcubeSecondaryType": "GeoNaMetadata",
|
||||||
|
"gcubeName": "Posizionamento_dell_area_di_indagine",
|
||||||
|
"sectionName": "posizionamentoScavo",
|
||||||
|
"sectionTitle": "Posizionamento dell'Area di Indagine",
|
||||||
|
"parentName": "$.",
|
||||||
|
"filePaths": [
|
||||||
|
{
|
||||||
|
"gcubeProfileFieldName": "File",
|
||||||
|
"fieldDefinition": "$.posizionamentoScavo._children[?(@.fileset)]",
|
||||||
|
"fieldName": "fileset"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gcubeSecondaryType": "GeoNaMetadata",
|
||||||
|
"gcubeName": "Pianta_di_fine_Scavo",
|
||||||
|
"sectionName": "pianteFineScavo",
|
||||||
|
"sectionTitle": "Piante di Fine Indagine",
|
||||||
|
"parentName": "$.",
|
||||||
|
"minOccurs": 0,
|
||||||
|
"maxOccurs": 0,
|
||||||
|
"filePaths": [
|
||||||
|
{
|
||||||
|
"gcubeProfileFieldName": "File",
|
||||||
|
"fieldDefinition": "$.pianteFineScavo._children[?(@.fileset)]",
|
||||||
|
"fieldName": "fileset"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"saveStep": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "org.gcube.portlets.user.geoportal-data-list",
|
||||||
|
"_type": "DATA_LIST_GUI",
|
||||||
|
"_configuration": {
|
||||||
|
"itemFields": [
|
||||||
|
{
|
||||||
|
"label": "Any Field",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.nome",
|
||||||
|
"_theDocument.introduzione",
|
||||||
|
"_theDocument.contributore",
|
||||||
|
"_theDocument.editore",
|
||||||
|
"_theDocument.responsabile",
|
||||||
|
"_theDocument.paroleChiaveLibere",
|
||||||
|
"_theDocument.cronologiaMacrofase",
|
||||||
|
"_theDocument.contestoIndagine",
|
||||||
|
"_theDocument.paroleChiaveICCD"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Name",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.nome"
|
||||||
|
],
|
||||||
|
"operator": "$and",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": true,
|
||||||
|
"asResult": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Introduction",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.introduzione"
|
||||||
|
],
|
||||||
|
"operator": "$and",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Project Start (yyyy-mm-dd)",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.dataInizioProgetto"
|
||||||
|
],
|
||||||
|
"operator": "$and",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": true,
|
||||||
|
"asResult": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Director/Staff",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.contributore",
|
||||||
|
"_theDocument.responsabile",
|
||||||
|
"_theDocument.editore"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Keywords",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.paroleChiaveLibere",
|
||||||
|
"_theDocument.cronologiaMacrofase",
|
||||||
|
"_theDocument.paroleChiaveICCD"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Creator",
|
||||||
|
"paths": [
|
||||||
|
"_info._creationInfo._user._username"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Updated",
|
||||||
|
"paths": [
|
||||||
|
"_info._lastEditInfo._instant"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": false,
|
||||||
|
"sortable": true,
|
||||||
|
"asResult": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Phase",
|
||||||
|
"paths": [
|
||||||
|
"_lifecycleInformation._phase"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": true,
|
||||||
|
"asResult": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Status",
|
||||||
|
"paths": [
|
||||||
|
"_lifecycleInformation._lastOperationStatus"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": true,
|
||||||
|
"asResult": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "org.gcube.portlets.user.geoportal-basic-data-list",
|
||||||
|
"_type": "BASIC_DATA_LIST_GUI",
|
||||||
|
"_configuration": {
|
||||||
|
"itemFields": [
|
||||||
|
{
|
||||||
|
"label": "Any Field",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.nome",
|
||||||
|
"_theDocument.introduzione",
|
||||||
|
"_theDocument.contributore",
|
||||||
|
"_theDocument.editore",
|
||||||
|
"_theDocument.responsabile",
|
||||||
|
"_theDocument.paroleChiaveLibere",
|
||||||
|
"_theDocument.cronologiaMacrofase",
|
||||||
|
"_theDocument.contestoIndagine",
|
||||||
|
"_theDocument.paroleChiaveICCD"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Name",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.nome"
|
||||||
|
],
|
||||||
|
"operator": "$and",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": true,
|
||||||
|
"asResult": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Introduction",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.introduzione"
|
||||||
|
],
|
||||||
|
"operator": "$and",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Project Start",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.dataInizioProgetto"
|
||||||
|
],
|
||||||
|
"operator": "$and",
|
||||||
|
"searchable": false,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Project Start (YEAR)",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.dataInizioProgetto"
|
||||||
|
],
|
||||||
|
"operator": "$and",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Director/Staff",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.contributore",
|
||||||
|
"_theDocument.responsabile",
|
||||||
|
"_theDocument.editore"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Keywords",
|
||||||
|
"paths": [
|
||||||
|
"_theDocument.paroleChiaveLibere",
|
||||||
|
"_theDocument.cronologiaMacrofase",
|
||||||
|
"_theDocument.paroleChiaveICCD"
|
||||||
|
],
|
||||||
|
"operator": "$or",
|
||||||
|
"searchable": true,
|
||||||
|
"sortable": false,
|
||||||
|
"asResult": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "org.gcube.portlets.user.geoportal-timeline-json-template",
|
||||||
|
"_type": "TIMELINE_JSON_TEMPLATE",
|
||||||
|
"_configuration": {
|
||||||
|
"tjt_document": {
|
||||||
|
"content": "$.nome",
|
||||||
|
"title": "$.nome",
|
||||||
|
"start": "$.dataInizioProgetto",
|
||||||
|
"end": "$.dataFineProgetto"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "org.gcube.portlets.user.grouped_overlay_layers",
|
||||||
|
"_type": "GROUPED_OVERLAY_LAYERS",
|
||||||
|
"_configuration": {
|
||||||
|
"grouped_overlay_layers": [
|
||||||
|
{
|
||||||
|
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
|
||||||
|
"description": "Layers automatically added to the Map",
|
||||||
|
"layers": [
|
||||||
|
{
|
||||||
|
"title": "Regioni",
|
||||||
|
"name": "limiti_amministrativi:regioni",
|
||||||
|
"wms_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:regioni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
|
||||||
|
"display": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Province",
|
||||||
|
"name": "limiti_amministrativi:province",
|
||||||
|
"wms_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:province&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
|
||||||
|
"display": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Comuni",
|
||||||
|
"name": "limiti_amministrativi:comuni",
|
||||||
|
"wms_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:comuni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
|
||||||
|
"display": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "org.gcube.portlets.user.grouped_cross_filtering_layers",
|
||||||
|
"_type": "GROUPED_CROSS_FILTERING_LAYERS",
|
||||||
|
"_configuration": {
|
||||||
|
"grouped_cross_filtering_layers": [
|
||||||
|
{
|
||||||
|
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
|
||||||
|
"description": "Spatial filtering for the selected layer",
|
||||||
|
"layers": [
|
||||||
|
{
|
||||||
|
"title": "Regioni",
|
||||||
|
"description": "Le Regioni Italiane",
|
||||||
|
"name": "limiti_amministrativi:regioni",
|
||||||
|
"wfs_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:regioni&maxFeatures=50&outputFormat=application%2Fjson&propertyName=COD_REG,DEN_REG&sortby=DEN_REG",
|
||||||
|
"table_show_field": "DEN_REG",
|
||||||
|
"table_key_field": "COD_REG",
|
||||||
|
"table_parent_key_field": "",
|
||||||
|
"table_geometry_name": "the_geom",
|
||||||
|
"related_to": [
|
||||||
|
{
|
||||||
|
"title": "Province",
|
||||||
|
"description": "Le Province Italiane",
|
||||||
|
"name": "limiti_amministrativi:province",
|
||||||
|
"wfs_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:province&maxFeatures=150&outputFormat=application%2Fjson&propertyName=COD_PROV,DEN_PROV,COD_REG&sortby=DEN_PROV",
|
||||||
|
"table_show_field": "DEN_PROV",
|
||||||
|
"table_key_field": "COD_PROV",
|
||||||
|
"table_parent_key_field": "COD_REG",
|
||||||
|
"table_geometry_name": "the_geom",
|
||||||
|
"related_to": [
|
||||||
|
{
|
||||||
|
"title": "Comuni",
|
||||||
|
"description": "I Comuni Italiani",
|
||||||
|
"name": "limiti_amministrativi:comuni",
|
||||||
|
"wfs_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:comuni&maxFeatures=9000&outputFormat=application%2Fjson&propertyName=PRO_COM,COMUNE,COD_PROV&sortby=COMUNE",
|
||||||
|
"table_show_field": "COMUNE",
|
||||||
|
"table_key_field": "PRO_COM",
|
||||||
|
"table_parent_key_field": "COD_PROV",
|
||||||
|
"table_geometry_name": "the_geom"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "org.gcube.portlets.user.geoportal-workflow-action-list",
|
||||||
|
"_type": "WORKFLOW_ACTION_LIST_GUI",
|
||||||
|
"_configuration": {
|
||||||
|
"actionsDefinition": [
|
||||||
|
{
|
||||||
|
"id": "post_creation_action",
|
||||||
|
"title": "Post Creation Action",
|
||||||
|
"call_STEPS": [],
|
||||||
|
"description": "Action fired after the Project creation",
|
||||||
|
"display_on_phase": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "submit_for_review",
|
||||||
|
"title": "Submit for Review",
|
||||||
|
"call_STEPS": [
|
||||||
|
"SUBMIT-FOR-REVIEW"
|
||||||
|
],
|
||||||
|
"description": "Submit the Project (for review)",
|
||||||
|
"display_on_phase": [
|
||||||
|
"DRAFT"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "reject",
|
||||||
|
"title": "Reject",
|
||||||
|
"call_STEPS": [
|
||||||
|
"REJECT-DRAFT"
|
||||||
|
],
|
||||||
|
"description": "Reject the Project",
|
||||||
|
"display_on_phase": [
|
||||||
|
"Pending Approval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "approve",
|
||||||
|
"title": "Approve",
|
||||||
|
"call_STEPS": [
|
||||||
|
"APPROVE-SUBMITTED"
|
||||||
|
],
|
||||||
|
"description": "Approve the Project",
|
||||||
|
"display_on_phase": [
|
||||||
|
"Pending Approval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "unpublish",
|
||||||
|
"title": "UnPublish",
|
||||||
|
"call_STEPS": [
|
||||||
|
"UNPUBLISH"
|
||||||
|
],
|
||||||
|
"description": "UnPublish the Project",
|
||||||
|
"display_on_phase": [
|
||||||
|
"Published"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_relationshipDefinitions": [
|
||||||
|
{
|
||||||
|
"_id": "precedes",
|
||||||
|
"_label": "Precede",
|
||||||
|
"_reverseRelationId": "follows"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "follows",
|
||||||
|
"_label": "Segue",
|
||||||
|
"_reverseRelationId": "precedes"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -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"}
|
||||||
|
]
|
||||||
|
}
|
41
README.md
41
README.md
|
@ -1,23 +1,54 @@
|
||||||
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 cutom and configurable functions ranging from validation, data manifestazion, 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.
|
||||||
|
|
||||||
|
## General Architecture
|
||||||
|
[<img src="https://gcube.wiki.gcube-system.org/images_gcube/c/ce/Geoportal_General_Architecture.jpg">](https://geoportal.cloud.d4science.org/geoportal-service/docs/architecture.html)
|
||||||
|
|
||||||
|
## Use Case
|
||||||
|
##### D4GNA: component diagram
|
||||||
|
|
||||||
|
<img src="https://gcube.wiki.gcube-system.org/images_gcube/2/2e/Geoportal-Service_Workflow_and_Interactions_with_Engines.png" style="max-width:800px;" alt="D4GNA context: engines involved">
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
* [Dedicated Wiki](https://geoportal.d4science.org/geoportal-service/docs/index.html#) - powered by [Sphynx](https://www.sphinx-doc.org/en/master/)
|
||||||
|
* [Service Interactive API](https://geoportal.d4science.org/geoportal-service/api-docs/index.html) - powered by [Enunciate](http://enunciate.webcohesion.com/)
|
||||||
|
* [Gcube System Wiki](https://gcube.wiki.gcube-system.org/gcube/GeoPortal).
|
||||||
|
* [Guide Notebooks](use-cases) - powered by [Jupyter](https://jupyter.org/)
|
||||||
|
|
||||||
|
|
||||||
## 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
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
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).
|
||||||
|
|
||||||
|
## Authors
|
||||||
|
|
||||||
|
* **Fabio Sinibaldi** ([ORCID](https://orcid.org/0000-0003-1013-6203)) Computer Scientist at ISTI-CNR
|
||||||
|
|
||||||
|
* **Francesco Mangiacrapa** ([ORCID](https://orcid.org/0000-0002-6528-664X)) Computer Scientist at [ISTI-CNR Infrascience Group](http://nemis.isti.cnr.it/groups/infrascience)
|
||||||
|
|
||||||
|
|
||||||
## License
|
## 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.
|
||||||
|
|
|
@ -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).
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -1,9 +1,19 @@
|
||||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
||||||
|
|
||||||
# Changelog for org.gcube.application.cms-plugin-framework
|
# Changelog for org.gcube.application.cms-plugin-framework
|
||||||
|
|
||||||
## [v1.0.1-SNAPSHOT] 2022-01-17
|
## [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).
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
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.
|
||||||
|
|
||||||
## 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
|
||||||
* [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
|
||||||
|
@ -12,8 +15,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
|
||||||
|
|
||||||
|
|
|
@ -1,111 +1,124 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
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.4</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>
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
|
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
|
||||||
<sis.version>1.0</sis.version>
|
<sis.version>1.0</sis.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:${gitBaseUrl}/gcube-cms-suite</connection>
|
<connection>scm:git:${gitBaseUrl}/gcube-cms-suite</connection>
|
||||||
<developerConnection>scm:git:${gitBaseUrl}/gcube-cms-suite</developerConnection>
|
<developerConnection>scm:git:${gitBaseUrl}/gcube-cms-suite</developerConnection>
|
||||||
<url>${gitBaseUrl}/gcube-cms-suite</url>
|
<url>${gitBaseUrl}/gcube-cms-suite</url>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<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>
|
||||||
|
|
||||||
<!-- TO REMOVE WHEN LEGACY SUPPORT IS REMOVED -->
|
<!-- TO REMOVE WHEN LEGACY SUPPORT IS REMOVED -->
|
||||||
<!-- DEPRECATED LEGACY LOGIC SUPPORT -->
|
<!-- DEPRECATED LEGACY LOGIC SUPPORT -->
|
||||||
|
|
||||||
<!-- POSTGRES DRIVERS -->
|
<!-- POSTGRES DRIVERS -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- DT -->
|
<!-- DT -->
|
||||||
<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>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.application.cms</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>geoportal-common</artifactId>
|
<artifactId>authorization-utils</artifactId>
|
||||||
</dependency>
|
<version>[2.0.0, 3.0.0-SNAPSHOT)</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.application.cms</groupId>
|
||||||
|
<artifactId>geoportal-common</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||||
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Storage HUB -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.common</groupId>
|
||||||
|
<artifactId>storagehub-client-library</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- https://mvnrepository.com/artifact/de.grundid.opendatalab/geojson-jackson -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>de.grundid.opendatalab</groupId>
|
||||||
|
<artifactId>geojson-jackson</artifactId>
|
||||||
|
<version>1.14</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<!-- Common - basic -->
|
||||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
<dependency>
|
||||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
<groupId>org.slf4j</groupId>
|
||||||
</dependency>
|
<artifactId>slf4j-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- https://mvnrepository.com/artifact/de.grundid.opendatalab/geojson-jackson -->
|
<dependency>
|
||||||
<dependency>
|
<groupId>org.reflections</groupId>
|
||||||
<groupId>de.grundid.opendatalab</groupId>
|
<artifactId>reflections</artifactId>
|
||||||
<artifactId>geojson-jackson</artifactId>
|
</dependency>
|
||||||
<version>1.14</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Common - basic -->
|
<dependency>
|
||||||
<dependency>
|
<groupId>javax.xml.bind</groupId>
|
||||||
<groupId>org.slf4j</groupId>
|
<artifactId>jaxb-api</artifactId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<!-- <version>2.3.0</version> -->
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
</dependencies>
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.reflections</groupId>
|
|
||||||
<artifactId>reflections</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -1,17 +1,10 @@
|
||||||
package org.gcube.application.cms.caches;
|
package org.gcube.application.cms.caches;
|
||||||
|
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.Synchronized;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.gcube.application.geoportal.common.utils.ContextUtils;
|
import org.gcube.application.cms.implementations.utils.UserUtils;
|
||||||
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.ContextUtils;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
|
@ -6,12 +6,9 @@ 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.model.rest.ConfigurationException;
|
||||||
import org.gcube.application.geoportal.common.utils.ContextUtils;
|
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.time.temporal.TemporalAmount;
|
import java.time.temporal.TemporalAmount;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@ -48,8 +45,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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ 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;
|
import java.util.List;
|
||||||
|
@ -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
|
||||||
|
|
|
@ -2,6 +2,7 @@ package org.gcube.application.cms.implementations;
|
||||||
|
|
||||||
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;
|
import java.util.List;
|
||||||
|
@ -12,4 +13,9 @@ public interface ISInterface {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,17 @@ package org.gcube.application.cms.implementations;
|
||||||
|
|
||||||
|
|
||||||
import lombok.Synchronized;
|
import lombok.Synchronized;
|
||||||
import org.gcube.application.cms.caches.Cache;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
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.common.storagehub.client.dsl.StorageHubClient;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
public class ImplementationProvider {
|
public class ImplementationProvider {
|
||||||
|
|
||||||
private static ImplementationProvider instance=null;
|
private static ImplementationProvider instance=null;
|
||||||
|
@ -21,10 +26,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 +43,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)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package org.gcube.application.cms.implementations;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
|
@ -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;
|
|
@ -1,20 +1,16 @@
|
||||||
package org.gcube.application.geoportal.service.engine;
|
package org.gcube.application.cms.implementations;
|
||||||
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
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 java.io.FileNotFoundException;
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@ -24,6 +20,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 +28,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 +39,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 +56,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,10 +78,23 @@ public class WorkspaceManager {
|
||||||
sgClient.open(id).asFolder().delete();
|
sgClient.open(id).asFolder().delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
log.debug("Missing subPath "+path);
|
log.debug("Missing subPath "+path);
|
||||||
FolderContainer targetParent=parentFolder;
|
FolderContainer targetParent=parentFolder;
|
||||||
String targetName=path;
|
String targetName=path;
|
||||||
|
@ -94,24 +104,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 +140,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();
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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() {
|
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -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() {
|
|
@ -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() {
|
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package org.gcube.application.geoportal.service.utils;
|
package org.gcube.application.cms.implementations.utils;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
@ -7,29 +7,35 @@ import org.gcube.application.geoportal.common.model.document.accounting.Accounti
|
||||||
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 java.time.LocalDateTime;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
@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 +45,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 +67,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 +80,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);
|
|
@ -1,6 +0,0 @@
|
||||||
package org.gcube.application.cms.plugins;
|
|
||||||
|
|
||||||
public abstract class AbstractLifeCycleManager {
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
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.*;
|
||||||
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
|
|
||||||
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;
|
||||||
import org.gcube.application.cms.plugins.requests.BaseRequest;
|
import org.gcube.application.cms.plugins.requests.BaseRequest;
|
||||||
|
@ -10,14 +8,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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
package org.gcube.application.cms.plugins;
|
package org.gcube.application.cms.plugins;
|
||||||
|
|
||||||
import org.gcube.application.cms.plugins.Plugin;
|
|
||||||
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
|
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,6 @@ 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;
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class PluginsReflections {
|
public class PluginsReflections {
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package org.gcube.application.cms.plugins.faults;
|
||||||
|
|
||||||
|
public class UnrecognizedStepException extends StepException{
|
||||||
|
public UnrecognizedStepException() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public UnrecognizedStepException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
public UnrecognizedStepException(String message, Throwable cause) {
|
||||||
|
super(message, cause);
|
||||||
|
}
|
||||||
|
|
||||||
|
public UnrecognizedStepException(Throwable cause) {
|
||||||
|
super(cause);
|
||||||
|
}
|
||||||
|
|
||||||
|
public UnrecognizedStepException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
|
||||||
|
super(message, cause, enableSuppression, writableStackTrace);
|
||||||
|
}
|
||||||
|
}
|
|
@ -22,14 +22,7 @@ package org.gcube.application.cms.plugins.model;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
|
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
import java.util.ArrayDeque;
|
import java.util.*;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Deque;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
package org.gcube.application.cms.plugins.model;
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NonNull;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
public class PluginDescriptor {
|
|
||||||
|
|
||||||
public static class BaseTypes{
|
|
||||||
public static final String LIFECYCLE_MANAGER="LifecycleManagement";
|
|
||||||
public static final String MATERIALIZER="Materializer";
|
|
||||||
public static final String INDEXER="Indexer";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@NonNull
|
|
||||||
private String id;
|
|
||||||
@NonNull
|
|
||||||
private String type;
|
|
||||||
private String label;
|
|
||||||
private String description;
|
|
||||||
private ComparableVersion version;
|
|
||||||
|
|
||||||
}
|
|
|
@ -9,8 +9,12 @@ import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
|
||||||
import org.gcube.application.cms.plugins.faults.PluginExecutionException;
|
import org.gcube.application.cms.plugins.faults.PluginExecutionException;
|
||||||
import org.gcube.application.cms.plugins.requests.BaseExecutionRequest;
|
import org.gcube.application.cms.plugins.requests.BaseExecutionRequest;
|
||||||
import org.gcube.application.geoportal.common.model.document.Project;
|
import org.gcube.application.geoportal.common.model.document.Project;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.identification.IdentificationReference;
|
||||||
import org.gcube.application.geoportal.common.model.document.lifecycle.LifecycleInformation;
|
import org.gcube.application.geoportal.common.model.document.lifecycle.LifecycleInformation;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
|
||||||
|
@ -22,10 +26,19 @@ public class DocumentHandlingReport<T extends BaseExecutionRequest> extends Repo
|
||||||
Document resultingDocument;
|
Document resultingDocument;
|
||||||
LifecycleInformation toSetLifecycleInformation;
|
LifecycleInformation toSetLifecycleInformation;
|
||||||
|
|
||||||
|
protected List<IdentificationReference> toSetIdentificationReferences=null;
|
||||||
|
|
||||||
|
public DocumentHandlingReport<T> addIdentificationReference(IdentificationReference toAdd){
|
||||||
|
if(toSetIdentificationReferences == null) toSetIdentificationReferences = new ArrayList<>();
|
||||||
|
toSetIdentificationReferences.add(toAdd);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public DocumentHandlingReport(@NonNull T theRequest) throws InvalidPluginRequestException {
|
public DocumentHandlingReport(@NonNull T theRequest) throws InvalidPluginRequestException {
|
||||||
theRequest.validate();
|
theRequest.validate();
|
||||||
this.theRequest = theRequest;
|
this.theRequest = theRequest;
|
||||||
|
this.setStatus(Status.OK);
|
||||||
toSetLifecycleInformation=theRequest.getDocument().getLifecycleInformation();
|
toSetLifecycleInformation=theRequest.getDocument().getLifecycleInformation();
|
||||||
resultingDocument = theRequest.getDocument().getTheDocument();
|
resultingDocument = theRequest.getDocument().getTheDocument();
|
||||||
}
|
}
|
||||||
|
@ -71,6 +84,8 @@ public class DocumentHandlingReport<T extends BaseExecutionRequest> extends Repo
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(toSetIdentificationReferences!=null)
|
||||||
|
toReturn.setIdentificationReferences(toSetIdentificationReferences);
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1,34 @@
|
||||||
package org.gcube.application.cms.plugins.reports;
|
package org.gcube.application.cms.plugins.reports;
|
||||||
|
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
|
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
|
||||||
import org.gcube.application.cms.plugins.requests.EventExecutionRequest;
|
import org.gcube.application.cms.plugins.requests.EventExecutionRequest;
|
||||||
import org.gcube.application.geoportal.common.model.document.lifecycle.LifecycleInformation;
|
import org.gcube.application.geoportal.common.model.document.lifecycle.LifecycleInformation;
|
||||||
|
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
|
@Slf4j
|
||||||
public class EventExecutionReport extends DocumentHandlingReport<EventExecutionRequest>{
|
public class EventExecutionReport extends DocumentHandlingReport<EventExecutionRequest>{
|
||||||
|
|
||||||
public EventExecutionReport(EventExecutionRequest req) throws InvalidPluginRequestException {
|
public EventExecutionReport(EventExecutionRequest req) throws InvalidPluginRequestException {
|
||||||
super(req);
|
super(req);
|
||||||
this.setToSetLifecycleInformation(theRequest.getDocument().getLifecycleInformation().cleanState());
|
try{
|
||||||
|
if(theRequest.getDocument().getLifecycleInformation()!=null)
|
||||||
|
this.setToSetLifecycleInformation(theRequest.getDocument().getLifecycleInformation().cleanState());
|
||||||
|
else theRequest.getDocument().setLifecycleInformation(new LifecycleInformation().cleanState());
|
||||||
|
}catch(Throwable t){
|
||||||
|
log.warn("Cannot to clean state for lifecycle information {} in {} : {}",
|
||||||
|
theRequest.getDocument().getLifecycleInformation(),
|
||||||
|
theRequest.getDocument().getProfileID(),
|
||||||
|
theRequest.getDocument().getId(),
|
||||||
|
t);
|
||||||
|
}
|
||||||
|
this.getToSetLifecycleInformation().setLastOperationStatus(LifecycleInformation.Status.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setToSetLifecycleInformation(LifecycleInformation toSetLifecycleInformation) {
|
public void setToSetLifecycleInformation(LifecycleInformation toSetLifecycleInformation) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,33 +1,27 @@
|
||||||
package org.gcube.application.cms.plugins.reports;
|
package org.gcube.application.cms.plugins.reports;
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
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.faults.PluginExecutionException;
|
|
||||||
import org.gcube.application.cms.plugins.requests.IndexDocumentRequest;
|
import org.gcube.application.cms.plugins.requests.IndexDocumentRequest;
|
||||||
import org.gcube.application.geoportal.common.model.document.Project;
|
|
||||||
import org.gcube.application.geoportal.common.model.document.temporal.TemporalReference;
|
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
public class IndexDocumentReport extends DocumentHandlingReport<IndexDocumentRequest> {
|
public class IndexDocumentReport extends DocumentHandlingReport<IndexDocumentRequest> {
|
||||||
|
|
||||||
public TemporalReference toSetTemporalReference;
|
// protected List<IdentificationReference> toSetIndexReferences=new ArrayList<>();
|
||||||
public Document toSetSpatialReference;
|
|
||||||
|
|
||||||
|
|
||||||
public IndexDocumentReport(@NonNull IndexDocumentRequest theRequest) throws InvalidPluginRequestException {
|
public IndexDocumentReport(@NonNull IndexDocumentRequest theRequest) throws InvalidPluginRequestException {
|
||||||
super(theRequest);
|
super(theRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
// @Override
|
||||||
public Project prepareResult() throws JsonProcessingException, PluginExecutionException {
|
// public Project prepareResult() throws JsonProcessingException, PluginExecutionException {
|
||||||
Project toReturn= super.prepareResult();
|
// Project toReturn= super.prepareResult();
|
||||||
if(toSetSpatialReference != null) toReturn.setSpatialReference(toSetSpatialReference);
|
// if(toSetSpatialReference != null) toReturn.setSpatialReference(toSetSpatialReference);
|
||||||
if(toSetTemporalReference != null) toReturn.setTemporalReference(toSetTemporalReference);
|
// if(toSetTemporalReference != null) toReturn.setTemporalReference(toSetTemporalReference);
|
||||||
return toReturn;
|
// return toReturn;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package org.gcube.application.cms.plugins.reports;
|
package org.gcube.application.cms.plugins.reports;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
package org.gcube.application.cms.plugins.reports;
|
package org.gcube.application.cms.plugins.reports;
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import lombok.*;
|
import lombok.Getter;
|
||||||
import org.bson.Document;
|
import lombok.NonNull;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
|
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
|
||||||
import org.gcube.application.cms.plugins.faults.PluginExecutionException;
|
import org.gcube.application.cms.plugins.faults.PluginExecutionException;
|
||||||
import org.gcube.application.cms.plugins.requests.EventExecutionRequest;
|
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.document.Project;
|
import org.gcube.application.geoportal.common.model.document.Project;
|
||||||
import org.gcube.application.geoportal.common.model.document.temporal.TemporalReference;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -30,8 +31,6 @@ public class StepExecutionReport extends DocumentHandlingReport<StepExecutionReq
|
||||||
List<StepExecutionRequest> cascadeSteps;
|
List<StepExecutionRequest> cascadeSteps;
|
||||||
|
|
||||||
|
|
||||||
public TemporalReference toSetTemporalReference;
|
|
||||||
public Document toSetSpatialReference;
|
|
||||||
|
|
||||||
|
|
||||||
public StepExecutionReport addToTriggerEvent(EventExecutionRequest req){
|
public StepExecutionReport addToTriggerEvent(EventExecutionRequest req){
|
||||||
|
@ -50,8 +49,7 @@ public class StepExecutionReport extends DocumentHandlingReport<StepExecutionReq
|
||||||
@Override
|
@Override
|
||||||
public Project prepareResult() throws JsonProcessingException, PluginExecutionException {
|
public Project prepareResult() throws JsonProcessingException, PluginExecutionException {
|
||||||
Project toReturn= super.prepareResult();
|
Project toReturn= super.prepareResult();
|
||||||
if(toSetSpatialReference != null) toReturn.setSpatialReference(toSetSpatialReference);
|
|
||||||
if(toSetTemporalReference != null) toReturn.setTemporalReference(toSetTemporalReference);
|
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
package org.gcube.application.cms.plugins.requests;
|
package org.gcube.application.cms.plugins.requests;
|
||||||
|
|
||||||
import lombok.*;
|
import lombok.Getter;
|
||||||
import org.bson.Document;
|
import lombok.NonNull;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
|
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
|
||||||
import org.gcube.application.geoportal.common.model.document.Project;
|
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.Context;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package org.gcube.application.cms.plugins.requests;
|
package org.gcube.application.cms.plugins.requests;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ser.Serializers;
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import org.bson.Document;
|
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.serialization.Serialization;
|
||||||
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.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
|
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
|
||||||
|
@ -28,9 +28,17 @@ public class BaseRequest {
|
||||||
return getMandatory(param,callParameters);
|
return getMandatory(param,callParameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final String getWithDefault(String param,String defaultValue) {
|
||||||
|
try{
|
||||||
|
return getMandatory(param,callParameters);
|
||||||
|
}catch (InvalidPluginRequestException e){
|
||||||
|
return defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static final String getMandatory(String param,Document params) throws InvalidPluginRequestException {
|
public static final String getMandatory(String param,Document params) throws InvalidPluginRequestException {
|
||||||
if(!params.containsKey(param)) throw new InvalidPluginRequestException("Missing mandatory parameter "+param);
|
if(params==null || params.isEmpty()|| !params.containsKey(param)) throw new InvalidPluginRequestException("Missing mandatory parameter "+param);
|
||||||
return params.getString(param);
|
return Serialization.convert(params.get(param),String.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BaseRequest validate() throws InvalidPluginRequestException {
|
public BaseRequest validate() throws InvalidPluginRequestException {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
package org.gcube.application.cms.plugins.requests;
|
package org.gcube.application.cms.plugins.requests;
|
||||||
|
|
||||||
import lombok.*;
|
import lombok.Getter;
|
||||||
|
import lombok.NonNull;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
import org.gcube.application.geoportal.common.model.document.Project;
|
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.Context;
|
||||||
import org.gcube.application.geoportal.common.model.document.accounting.User;
|
import org.gcube.application.geoportal.common.model.document.accounting.User;
|
||||||
|
@ -12,9 +15,10 @@ import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDes
|
||||||
public class EventExecutionRequest extends BaseExecutionRequest{
|
public class EventExecutionRequest extends BaseExecutionRequest{
|
||||||
|
|
||||||
public static class Events{
|
public static class Events{
|
||||||
public static final String ON_INIT_DOCUMENT="@@@INIT_DOCUMENT@@";
|
public static final String ON_INIT_DOCUMENT="INIT_DOCUMENT";
|
||||||
public static final String ON_UPDATE_DOCUMENT="@@@UPDATE_DOCUMENT@@";
|
public static final String ON_UPDATE_DOCUMENT="UPDATE_DOCUMENT";
|
||||||
public static final String ON_DELETE_DOCUMENT="@@@DELETE_DOCUMENT@@";
|
public static final String ON_DELETE_DOCUMENT="DELETE_DOCUMENT";
|
||||||
|
public static final String ON_DELETE_FILESET="DELETE_FILESET";
|
||||||
}
|
}
|
||||||
|
|
||||||
public EventExecutionRequest(@NonNull UseCaseDescriptor useCaseDescriptor, @NonNull User caller, @NonNull Context context, Project document, String event) {
|
public EventExecutionRequest(@NonNull UseCaseDescriptor useCaseDescriptor, @NonNull User caller, @NonNull Context context, Project document, String event) {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
package org.gcube.application.cms.plugins.requests;
|
package org.gcube.application.cms.plugins.requests;
|
||||||
|
|
||||||
import lombok.*;
|
import lombok.Getter;
|
||||||
|
import lombok.NonNull;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
import org.gcube.application.geoportal.common.model.document.Project;
|
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.Context;
|
||||||
import org.gcube.application.geoportal.common.model.document.accounting.User;
|
import org.gcube.application.geoportal.common.model.document.accounting.User;
|
||||||
|
|
|
@ -40,8 +40,7 @@ public class Serialization {
|
||||||
|
|
||||||
s.addDeserializer(Semver.class,new SemverDeserializer());
|
s.addDeserializer(Semver.class,new SemverDeserializer());
|
||||||
s.addSerializer(Semver.class,new SemverSerializer());
|
s.addSerializer(Semver.class,new SemverSerializer());
|
||||||
|
|
||||||
|
|
||||||
mapper.registerModule(s);
|
mapper.registerModule(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,9 +60,9 @@ public class Serialization {
|
||||||
|
|
||||||
|
|
||||||
public static QueryRequest parseQuery(String queryString) throws IOException {
|
public static QueryRequest parseQuery(String queryString) throws IOException {
|
||||||
log.debug("Parsing query Request {} ",queryString);
|
log.trace("Parsing query Request {} ",queryString);
|
||||||
Document queryDocument = Document.parse(queryString);
|
Document queryDocument = Document.parse(queryString);
|
||||||
log.debug("Document is ",queryDocument.toJson());
|
log.trace("Document is ",queryDocument.toJson());
|
||||||
QueryRequest req = new QueryRequest();
|
QueryRequest req = new QueryRequest();
|
||||||
if (queryDocument.getOrDefault("ordering",null)!=null)
|
if (queryDocument.getOrDefault("ordering",null)!=null)
|
||||||
req.setOrdering(Serialization.read(((Document) queryDocument.get("ordering")).toJson(), QueryRequest.OrderedRequest.class));
|
req.setOrdering(Serialization.read(((Document) queryDocument.get("ordering")).toJson(), QueryRequest.OrderedRequest.class));
|
||||||
|
|
|
@ -1,12 +1,18 @@
|
||||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
||||||
|
|
||||||
# Changelog for org.gcube.application.cms.cms-test-commons
|
# Changelog for org.gcube.application.cms.cms-test-commons
|
||||||
|
|
||||||
## [v1.0.2-SNAPSHOT] - 2022-01-17
|
## [v1.0.4] - 2023-01-10
|
||||||
|
- Pom updates
|
||||||
|
|
||||||
|
## [v1.0.3] - 2022-12-07
|
||||||
|
- Pom updates
|
||||||
|
|
||||||
|
## [v1.0.2] - 2022-01-17
|
||||||
- Profiles
|
- Profiles
|
||||||
|
|
||||||
## [v1.0.1] - 2021-09-11
|
## [v1.0.1] - 2021-09-11
|
||||||
- Introduced profiled documents
|
- Introduced profiled documents
|
||||||
|
|
||||||
## [v1.0.0] - 2021-09-11
|
## [v1.0.0] - 2021-09-11
|
||||||
- First release
|
- First release
|
||||||
|
|
||||||
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
|
@ -1,14 +1,19 @@
|
||||||
gCube CMS - test-commons
|
gCube CMS - test-commons
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
Common logic used by test cases
|
Common utilities for testing such as :
|
||||||
|
|
||||||
|
- access to test-resources Maps
|
||||||
|
- Test Credentials management
|
||||||
|
- Basic plugin Test Case implementations
|
||||||
|
|
||||||
|
|
||||||
## Built with
|
## Built with
|
||||||
* [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
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>cms-test-commons</artifactId>
|
<artifactId>cms-test-commons</artifactId>
|
||||||
<version>1.0.2-SNAPSHOT</version>
|
<version>1.0.4</version>
|
||||||
<name>CMS Test Commons</name>
|
<name>CMS Test Commons</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>
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,14 +33,14 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.distribution</groupId>
|
<groupId>org.gcube.distribution</groupId>
|
||||||
<artifactId>gcube-bom</artifactId>
|
<artifactId>gcube-bom</artifactId>
|
||||||
<version>2.0.2</version>
|
<version>${gcube-bom-version}</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<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>
|
||||||
|
@ -63,6 +63,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.application.cms</groupId>
|
<groupId>org.gcube.application.cms</groupId>
|
||||||
<artifactId>cms-plugin-framework</artifactId>
|
<artifactId>cms-plugin-framework</artifactId>
|
||||||
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -84,11 +85,60 @@
|
||||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.common</groupId>
|
||||||
|
<artifactId>authorization-utils</artifactId>
|
||||||
|
<version>[2.0.0, 3.0.0-SNAPSHOT)</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.common</groupId>
|
||||||
|
<artifactId>authorization-client</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.common</groupId>
|
||||||
|
<artifactId>common-authorization</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.core</groupId>
|
||||||
|
<artifactId>common-encryption</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.logging.log4j</groupId>
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
<artifactId>log4j-slf4j18-impl</artifactId>
|
<artifactId>log4j-slf4j18-impl</artifactId>
|
||||||
<version>2.13.3</version>
|
<version>2.13.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Missing in JDK 11 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.sun.xml.bind</groupId>
|
||||||
|
<artifactId>jaxb-impl</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.glassfish.jaxb</groupId>
|
||||||
|
<artifactId>jaxb-runtime</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.sun.xml.bind</groupId>
|
||||||
|
<artifactId>jaxb-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.activation</groupId>
|
||||||
|
<artifactId>activation</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -1,86 +0,0 @@
|
||||||
package org.gcube.application.cms.tests;
|
|
||||||
|
|
||||||
import org.gcube.application.cms.implementations.ISInterface;
|
|
||||||
import org.gcube.application.cms.implementations.ImplementationProvider;
|
|
||||||
import org.gcube.application.cms.plugins.InitializablePlugin;
|
|
||||||
import org.gcube.application.cms.plugins.LifecycleManager;
|
|
||||||
import org.gcube.application.cms.plugins.Plugin;
|
|
||||||
import org.gcube.application.cms.plugins.PluginsReflections;
|
|
||||||
import org.gcube.application.cms.plugins.faults.InitializationException;
|
|
||||||
import org.gcube.application.cms.plugins.faults.PluginExecutionException;
|
|
||||||
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.rest.ConfigurationException;
|
|
||||||
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
|
|
||||||
import org.junit.*;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import static org.junit.Assume.assumeTrue;
|
|
||||||
|
|
||||||
public class BasicPluginTest {
|
|
||||||
|
|
||||||
|
|
||||||
protected User getTestUser(){
|
|
||||||
User toReturn = new User();
|
|
||||||
toReturn.setUsername("test-user");
|
|
||||||
return toReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected Context getTestContext(){
|
|
||||||
Context toReturn = new Context();
|
|
||||||
String contextId =GCubeTest.getContext();
|
|
||||||
toReturn.setId(contextId);
|
|
||||||
toReturn.setName(contextId.substring(contextId.lastIndexOf("/")));
|
|
||||||
return toReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected static Map<String,Plugin> plugins=new HashMap<>();
|
|
||||||
|
|
||||||
@BeforeClass
|
|
||||||
public static void checkPluginRegistration() {
|
|
||||||
plugins.putAll(PluginsReflections.load());
|
|
||||||
plugins.forEach((s,p) -> System.out.println(s+" "+p.getDescriptor()));
|
|
||||||
|
|
||||||
Assert.assertFalse(plugins.isEmpty());
|
|
||||||
|
|
||||||
|
|
||||||
plugins.forEach((s,p)->{
|
|
||||||
System.out.println("INIT Plugin "+p.getClass());
|
|
||||||
Assert.assertNotNull(p.getDescriptor());
|
|
||||||
Assert.assertNotNull(p.getDescriptor().getId());
|
|
||||||
Assert.assertNotNull(p.getDescriptor().getType());
|
|
||||||
Assert.assertNotNull(p.getDescriptor().getVersion());
|
|
||||||
if(p instanceof InitializablePlugin){
|
|
||||||
InitializablePlugin ip=(InitializablePlugin)p;
|
|
||||||
try {
|
|
||||||
ip.init().validate();
|
|
||||||
|
|
||||||
|
|
||||||
if(GCubeTest.isTestInfrastructureEnabled()){
|
|
||||||
TokenSetter.set(GCubeTest.getContext());
|
|
||||||
ip.initInContext().validate();
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace(System.err);
|
|
||||||
Assert.fail("Unable to Init "+p.getDescriptor().getId());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("Plugin Loading OK");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Before
|
|
||||||
public void initContext(){
|
|
||||||
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
|
|
||||||
TokenSetter.set(GCubeTest.getContext());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -14,8 +14,8 @@ public class TestDocuments {
|
||||||
public static final HashMap<String, Project> documentMap =new HashMap<>();
|
public static final HashMap<String, Project> documentMap =new HashMap<>();
|
||||||
|
|
||||||
static{
|
static{
|
||||||
|
if(!BASE_FOLDER.exists()) System.err.println("Cannot load documents : folder not found, path "+BASE_FOLDER.getAbsolutePath());
|
||||||
for(File f:BASE_FOLDER.listFiles()){
|
for(File f:BASE_FOLDER.listFiles(pathname -> {return pathname.getName().endsWith(".json");})){
|
||||||
try {
|
try {
|
||||||
if(!f.isDirectory()) {
|
if(!f.isDirectory()) {
|
||||||
Project p = Serialization.read(
|
Project p = Serialization.read(
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
package org.gcube.application.cms.tests;
|
||||||
|
|
||||||
|
import org.bson.Document;
|
||||||
|
import org.gcube.application.geoportal.common.utils.Files;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.nio.charset.Charset;
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
public class TestSchemas {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static File BASE_FOLDER =new File("../test-data/profiledDocuments/schemas");
|
||||||
|
public static final HashMap<String, Document> schemas =new HashMap<>();
|
||||||
|
|
||||||
|
static{
|
||||||
|
|
||||||
|
for(File f:BASE_FOLDER.listFiles()){
|
||||||
|
try {
|
||||||
|
schemas.put(f.getName(), Document.parse(Files.readFileAsString(f.getAbsolutePath(), Charset.defaultCharset())));
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new RuntimeException("Unable to read "+f.getAbsolutePath(),e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
package org.gcube.application.cms.tests;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
public class Tests {
|
||||||
|
|
||||||
|
public static File BASE_FOLDER =new File("../test-data");
|
||||||
|
public static File FOLDER_CONCESSIONI =new File("../test-data/concessioni");
|
||||||
|
}
|
|
@ -1,11 +1,34 @@
|
||||||
package org.gcube.application.cms.tests;
|
package org.gcube.application.cms.tests;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.gcube.application.geoportal.common.utils.Files;
|
||||||
|
import org.gcube.common.authorization.library.provider.AccessTokenProvider;
|
||||||
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
||||||
|
import org.gcube.common.authorization.utils.manager.SecretManager;
|
||||||
|
import org.gcube.common.authorization.utils.manager.SecretManagerProvider;
|
||||||
|
import org.gcube.common.authorization.utils.secret.GCubeSecret;
|
||||||
|
import org.gcube.common.authorization.utils.secret.JWTSecret;
|
||||||
|
import org.gcube.common.authorization.utils.secret.Secret;
|
||||||
import org.gcube.common.scope.api.ScopeProvider;
|
import org.gcube.common.scope.api.ScopeProvider;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.nio.charset.Charset;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is used in order to set gCube Credentials for tests that needs a gCube Infrastructure.
|
||||||
|
*
|
||||||
|
* The method TokenSetter.set(String context) is used in order to specify the context to test.
|
||||||
|
*
|
||||||
|
* The library expects a Properties file /tokens.properties in the classpath like the following example :
|
||||||
|
*
|
||||||
|
* /root/vo/vre1 = GCUBE-TOKEN
|
||||||
|
* ...
|
||||||
|
* /devRoot/vo = JWT-TOKEN
|
||||||
|
* ...
|
||||||
|
*
|
||||||
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class TokenSetter {
|
public class TokenSetter {
|
||||||
|
|
||||||
|
@ -16,18 +39,37 @@ public class TokenSetter {
|
||||||
try {
|
try {
|
||||||
props.load(TokenSetter.class.getResourceAsStream("/tokens.properties"));
|
props.load(TokenSetter.class.getResourceAsStream("/tokens.properties"));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException("YOU NEED TO SET TOKEN FILE IN CONFIGURATION");
|
throw new RuntimeException("YOU NEED TO SET TOKEN FILE IN CONFIGURATION",e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void set(String scope){
|
public static void set(String scope){
|
||||||
|
SecretManagerProvider.instance.set(new SecretManager());
|
||||||
|
if(!props.containsKey(scope)) throw new RuntimeException("No token found for scope : "+scope);
|
||||||
|
// Secret secret = SecretUtility. getSecretByTokenString(token); // se non sai con che token hai a che fare;
|
||||||
|
// oppure
|
||||||
|
String toSet= props.getProperty(scope);
|
||||||
|
log.debug("Setting secret "+toSet);
|
||||||
|
|
||||||
|
Secret secret = null;
|
||||||
|
if(toSet.length()>50)
|
||||||
|
secret = new JWTSecret(toSet); // se nuovo token
|
||||||
|
else
|
||||||
|
secret = new GCubeSecret(toSet); // se vecchio token
|
||||||
|
|
||||||
|
|
||||||
|
SecretManagerProvider.instance.get().addSecret(secret);
|
||||||
try{
|
try{
|
||||||
if(!props.containsKey(scope)) throw new RuntimeException("No token found for scope : "+scope);
|
SecretManagerProvider.instance.get().set();
|
||||||
SecurityTokenProvider.instance.set(props.getProperty(scope));
|
}catch(Exception e ){throw new RuntimeException("Unable to set secret for context "+scope,e);}
|
||||||
}catch(Throwable e){
|
|
||||||
log.warn("Unable to set token for scope "+scope,e);
|
|
||||||
}
|
|
||||||
ScopeProvider.instance.set(scope);
|
|
||||||
}
|
}
|
||||||
}
|
//
|
||||||
|
// public static void setUma() throws IOException {
|
||||||
|
// File umaFile = new File("uma.json");
|
||||||
|
// String uma= Files.readFileAsString(umaFile.getAbsolutePath(), Charset.defaultCharset());
|
||||||
|
// AccessTokenProvider.instance.set(uma);
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,160 @@
|
||||||
|
package org.gcube.application.cms.tests.model;
|
||||||
|
|
||||||
|
import com.vdurmont.semver4j.Semver;
|
||||||
|
import org.bson.Document;
|
||||||
|
import org.gcube.application.cms.tests.TokenSetter;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.Project;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.access.Access;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.access.AccessPolicy;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.accounting.AccountingInfo;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.accounting.Context;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.accounting.PublicationInfo;
|
||||||
|
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.plugins.LifecycleManagerDescriptor;
|
||||||
|
import org.gcube.application.geoportal.common.model.useCaseDescriptor.DataAccessPolicy;
|
||||||
|
import org.gcube.application.geoportal.common.model.useCaseDescriptor.HandlerDeclaration;
|
||||||
|
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
|
||||||
|
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
|
||||||
|
import org.junit.BeforeClass;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import static junit.framework.TestCase.assertTrue;
|
||||||
|
import static org.junit.Assume.assumeTrue;
|
||||||
|
|
||||||
|
public class BasicTests extends GCubeTest {
|
||||||
|
|
||||||
|
|
||||||
|
@BeforeClass
|
||||||
|
public static void initContext(){
|
||||||
|
assumeTrue(isTestInfrastructureEnabled());
|
||||||
|
TokenSetter.set(getContext());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected User getCurrentUser(){
|
||||||
|
User u= new User();
|
||||||
|
u.setUsername("fake-user");
|
||||||
|
return u;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected UseCaseDescriptor getUCD(){
|
||||||
|
return initUCD(getContextObject(),getCurrentUser());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Document getBasicDocument(){
|
||||||
|
return new Document();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Project getBasicProject(){
|
||||||
|
return initProject(getBasicDocument(),getUCD(), getCurrentUser(), getContextObject());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Context getContextObject(){
|
||||||
|
Context toReturn = new Context();
|
||||||
|
toReturn.setName("My Fake Vre");
|
||||||
|
toReturn.setId("FAKE-VRE");
|
||||||
|
return toReturn;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected PublicationInfo getCurrentInfo(){
|
||||||
|
return initPublicationInfo(getUCD(),getContextObject(),getCurrentUser());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static PublicationInfo initPublicationInfo(UseCaseDescriptor ucd, Context ctx, User user){
|
||||||
|
PublicationInfo toReturn = new PublicationInfo();
|
||||||
|
|
||||||
|
// TODO Set Access From UseCaseDescriptor
|
||||||
|
Access access=new Access();
|
||||||
|
access.setLicense("");
|
||||||
|
access.setPolicy(AccessPolicy.OPEN);
|
||||||
|
toReturn.setAccess(access);
|
||||||
|
|
||||||
|
toReturn.setCreationInfo(initAccountingInfo(ctx,user));
|
||||||
|
return toReturn;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static AccountingInfo initAccountingInfo(Context ctx, User user){
|
||||||
|
AccountingInfo accInfo = new AccountingInfo();
|
||||||
|
accInfo.setInstant(LocalDateTime.now());
|
||||||
|
accInfo.setContext(ctx);
|
||||||
|
accInfo.setUser(user);
|
||||||
|
return accInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static Project initProject(Document doc, UseCaseDescriptor ucd,User user, Context ctx){
|
||||||
|
Project p = new Project();
|
||||||
|
|
||||||
|
p.setId(UUID.randomUUID().toString());
|
||||||
|
p.setInfo(initPublicationInfo(ucd,ctx,user));
|
||||||
|
|
||||||
|
p.setProfileID(ucd.getId());
|
||||||
|
p.setProfileVersion(ucd.getVersion());
|
||||||
|
p.setVersion(new Semver("1.0.0"));
|
||||||
|
|
||||||
|
LifecycleInformation draftInfo=new LifecycleInformation().cleanState();
|
||||||
|
draftInfo.setPhase(LifecycleInformation.CommonPhases.DRAFT_PHASE);
|
||||||
|
draftInfo.setLastOperationStatus(LifecycleInformation.Status.OK);
|
||||||
|
p.setLifecycleInformation(draftInfo);
|
||||||
|
return p;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static UseCaseDescriptor initUCD(Context ctx, User u){
|
||||||
|
UseCaseDescriptor ucd = new UseCaseDescriptor();
|
||||||
|
ucd.setName("Test UCD");
|
||||||
|
ucd.setId("test-ucd");
|
||||||
|
ucd.setDescription("Just a test dummy profile");
|
||||||
|
ucd.setCreationInfo(initAccountingInfo(ctx,u));
|
||||||
|
|
||||||
|
ucd.setVersion(new Semver("1.0.0"));
|
||||||
|
HandlerDeclaration h= new HandlerDeclaration();
|
||||||
|
h.setType(LifecycleManagerDescriptor.LIFECYCLE_MANAGER_TYPE);
|
||||||
|
h.setId(UUID.randomUUID().toString());
|
||||||
|
ucd.setHandlers(Collections.singletonList(h));
|
||||||
|
|
||||||
|
DataAccessPolicy p =new DataAccessPolicy();
|
||||||
|
p.setPolicy(new DataAccessPolicy.Policy());
|
||||||
|
p.getPolicy().setRead(DataAccessPolicy.Policy.Type.any);
|
||||||
|
p.getPolicy().setWrite(DataAccessPolicy.Policy.Type.any);
|
||||||
|
ucd.setDataAccessPolicies(Collections.singletonList(p));
|
||||||
|
return ucd;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static void validate (Project doc){
|
||||||
|
assertTrue(doc!=null);
|
||||||
|
assertTrue(doc.getId()!=null);
|
||||||
|
assertTrue(doc.getLifecycleInformation().getPhase()!=null);
|
||||||
|
assertTrue(doc.getLifecycleInformation().getLastOperationStatus()!=null);
|
||||||
|
if(doc.getLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.ERROR))
|
||||||
|
assertTrue(doc.getLifecycleInformation().getErrorMessages().size()>0);
|
||||||
|
if(doc.getLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.WARNING))
|
||||||
|
assertTrue(doc.getLifecycleInformation().getWarningMessages().size()>0);
|
||||||
|
|
||||||
|
if(doc.getLifecycleInformation().getTriggeredEvents()!=null)
|
||||||
|
doc.getLifecycleInformation().getTriggeredEvents().forEach(triggeredEvents -> {
|
||||||
|
assertTrue(triggeredEvents.getEvent()!=null);
|
||||||
|
assertTrue(triggeredEvents.getLastOperationStatus()!=null);
|
||||||
|
if(triggeredEvents.getLastOperationStatus().equals(LifecycleInformation.Status.ERROR))
|
||||||
|
assertTrue(triggeredEvents.getErrorMessages().size()>0);
|
||||||
|
if(triggeredEvents.getLastOperationStatus().equals(LifecycleInformation.Status.WARNING))
|
||||||
|
assertTrue(triggeredEvents.getWarningMessages().size()>0);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
assertTrue(doc.getInfo()!=null);
|
||||||
|
assertTrue(doc.getInfo().getCreationInfo()!=null);
|
||||||
|
assertTrue(doc.getInfo().getCreationInfo().getContext()!=null);
|
||||||
|
assertTrue(doc.getInfo().getCreationInfo().getContext().getId()!=null);
|
||||||
|
assertTrue(doc.getInfo().getCreationInfo().getContext().getName()!=null);
|
||||||
|
assertTrue(doc.getInfo().getCreationInfo().getInstant()!=null);
|
||||||
|
assertTrue(doc.getInfo().getCreationInfo().getInstant()!=null);
|
||||||
|
assertTrue(doc.getInfo().getCreationInfo().getUser()!=null);
|
||||||
|
assertTrue(doc.getInfo().getCreationInfo().getUser().getUsername()!=null);
|
||||||
|
|
||||||
|
assertTrue(doc.getTheDocument()!=null);
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,19 +1,17 @@
|
||||||
package org.gcube.application.cms.tests.model;
|
package org.gcube.application.cms.tests.model;
|
||||||
|
|
||||||
import org.bson.Document;
|
import com.vdurmont.semver4j.Semver;
|
||||||
import org.gcube.application.cms.plugins.IndexerPluginInterface;
|
import org.gcube.application.cms.plugins.IndexerPluginInterface;
|
||||||
import org.gcube.application.cms.plugins.LifecycleManager;
|
import org.gcube.application.cms.plugins.LifecycleManager;
|
||||||
import org.gcube.application.cms.plugins.MaterializationPlugin;
|
import org.gcube.application.cms.plugins.MaterializationPlugin;
|
||||||
import org.gcube.application.cms.plugins.PluginManagerInterface;
|
import org.gcube.application.cms.plugins.PluginManagerInterface;
|
||||||
import org.gcube.application.cms.plugins.faults.*;
|
import org.gcube.application.cms.plugins.faults.*;
|
||||||
import org.gcube.application.cms.plugins.model.ComparableVersion;
|
|
||||||
import org.gcube.application.cms.plugins.model.PluginDescriptor;
|
|
||||||
import org.gcube.application.cms.plugins.reports.*;
|
import org.gcube.application.cms.plugins.reports.*;
|
||||||
import org.gcube.application.cms.plugins.requests.*;
|
import org.gcube.application.cms.plugins.requests.*;
|
||||||
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.configuration.Index;
|
import org.gcube.application.geoportal.common.model.configuration.Index;
|
||||||
|
import org.gcube.application.geoportal.common.model.plugins.PluginDescriptor;
|
||||||
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
|
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
|
||||||
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
|
|
||||||
|
|
||||||
public class DummyPlugin implements LifecycleManager, IndexerPluginInterface, MaterializationPlugin {
|
public class DummyPlugin implements LifecycleManager, IndexerPluginInterface, MaterializationPlugin {
|
||||||
|
|
||||||
|
@ -23,6 +21,11 @@ public class DummyPlugin implements LifecycleManager, IndexerPluginInterface, Ma
|
||||||
return new IndexDocumentReport(request);
|
return new IndexDocumentReport(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IndexDocumentReport deindex(IndexDocumentRequest request) throws InvalidPluginRequestException {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Index getIndex(BaseRequest request) throws ConfigurationException {
|
public Index getIndex(BaseRequest request) throws ConfigurationException {
|
||||||
return new Index("Dummy index");
|
return new Index("Dummy index");
|
||||||
|
@ -69,8 +72,13 @@ public class DummyPlugin implements LifecycleManager, IndexerPluginInterface, Ma
|
||||||
return new MaterializationReport(request);
|
return new MaterializationReport(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MaterializationReport dematerialize(MaterializationRequest request) throws MaterializationException, InvalidPluginRequestException {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PluginDescriptor getDescriptor() {
|
public PluginDescriptor getDescriptor() {
|
||||||
return new PluginDescriptor("DUMMY-PLUGIN","DUMMY-TYPE","Dummy","No op plugin", new ComparableVersion("1.0.0"));
|
return new PluginDescriptor("DUMMY-PLUGIN","DUMMY-TYPE","Dummy","No op plugin", new Semver("1.0.0"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
package org.gcube.application.cms.tests.model.concessioni;
|
|
||||||
|
|
||||||
import org.gcube.application.geoportal.common.utils.Files;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.nio.charset.Charset;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
public class TestConcessioniFilters {
|
|
||||||
|
|
||||||
public static final HashMap<String,String> filters=new HashMap<>();
|
|
||||||
|
|
||||||
static{
|
|
||||||
|
|
||||||
for(File f:new File(TestConcessioniModel.getBaseFolder(),"filters").listFiles()){
|
|
||||||
try {
|
|
||||||
filters.put(f.getName(), Files.readFileAsString(f.getAbsolutePath(), Charset.defaultCharset()));
|
|
||||||
} catch (IOException e) {
|
|
||||||
throw new RuntimeException("Unable to read "+f.getAbsolutePath(),e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,135 +0,0 @@
|
||||||
package org.gcube.application.cms.tests.model.concessioni;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
|
|
||||||
import org.bson.types.ObjectId;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.*;
|
|
||||||
|
|
||||||
public class TestConcessioniModel {
|
|
||||||
|
|
||||||
public static File getBaseFolder(){
|
|
||||||
File toReturn =new File("../test-data/concessioni");
|
|
||||||
if(!toReturn.exists()) toReturn = new File("test-data/concessioni");
|
|
||||||
if(!toReturn.exists()) throw new RuntimeException("Unable to find test data");
|
|
||||||
return toReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static Concessione prepareEmptyConcessione() {
|
|
||||||
Concessione concessione=new Concessione();
|
|
||||||
|
|
||||||
// Generic fields
|
|
||||||
|
|
||||||
// Concessione fields
|
|
||||||
concessione.setNome("MONGO Italia, forse, ma su ");
|
|
||||||
concessione.setIntroduzione("This is my MONGO project");
|
|
||||||
concessione.setDescrizioneContenuto("It contains this and that");
|
|
||||||
|
|
||||||
concessione.setAuthors(Arrays.asList(new String[] {"Some one","Some, oneelse"}));
|
|
||||||
|
|
||||||
concessione.setContributore("Contrib 1");
|
|
||||||
concessione.setTitolari(Arrays.asList(new String[] {"Some one","Some, oneelse"}));
|
|
||||||
concessione.setResponsabile("Someone");
|
|
||||||
concessione.setEditore("Editore");
|
|
||||||
|
|
||||||
concessione.setFontiFinanziamento(Arrays.asList(new String[] {"Big pharma","Pentagon"}));
|
|
||||||
|
|
||||||
|
|
||||||
concessione.setSoggetto(Arrays.asList(new String[] {"Research Excavation","Archeology"}));
|
|
||||||
|
|
||||||
|
|
||||||
concessione.setDataInizioProgetto(LocalDateTime.now());
|
|
||||||
concessione.setDataFineProgetto(LocalDateTime.now());
|
|
||||||
|
|
||||||
concessione.setLicenzaID("CC-BY");
|
|
||||||
|
|
||||||
concessione.setTitolareLicenza(Arrays.asList(new String[] {"Qualcun altro"}));
|
|
||||||
concessione.setTitolareCopyright(Arrays.asList(new String[] {"Chiedilo in giro"}));
|
|
||||||
|
|
||||||
concessione.setParoleChiaveLibere(Arrays.asList(new String[] {"Robba","Stuff"}));
|
|
||||||
concessione.setParoleChiaveICCD(Arrays.asList(new String[] {"vattelapesca","somthing something"}));
|
|
||||||
|
|
||||||
|
|
||||||
// concessione.setCentroidLat(43.0); //N-S
|
|
||||||
// concessione.setCentroidLong(9.0); //E-W
|
|
||||||
//
|
|
||||||
return concessione;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final Concessione setIds(Concessione c) {
|
|
||||||
// c.setMongo_id(rnd());
|
|
||||||
c.getRelazioneScavo().setMongo_id(rnd());
|
|
||||||
c.getPosizionamentoScavo().setMongo_id(rnd());
|
|
||||||
c.getPianteFineScavo().forEach((LayerConcessione l)->{l.setMongo_id(rnd());});
|
|
||||||
c.getImmaginiRappresentative().forEach((UploadedImage i)->{i.setMongo_id(rnd());});
|
|
||||||
return c;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String rnd() {
|
|
||||||
return new ObjectId().toHexString();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static Concessione prepareConcessione() {
|
|
||||||
return prepareConcessione(4,2);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Concessione prepareConcessione(int pianteCount ,int imgsCount) {
|
|
||||||
|
|
||||||
Concessione concessione=prepareEmptyConcessione();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Attachments
|
|
||||||
// Relazione scavo
|
|
||||||
RelazioneScavo relScavo=new RelazioneScavo();
|
|
||||||
relScavo.setResponsabili(concessione.getAuthors());
|
|
||||||
concessione.setRelazioneScavo(relScavo);
|
|
||||||
|
|
||||||
//Abstract
|
|
||||||
AbstractRelazione abstractRelazione=new AbstractRelazione();
|
|
||||||
abstractRelazione.setAbstractIta("Il mio abstract");
|
|
||||||
abstractRelazione.setAbstractEng("My abstract");
|
|
||||||
concessione.setAbstractRelazione(abstractRelazione);
|
|
||||||
|
|
||||||
|
|
||||||
//Immagini rappresentative
|
|
||||||
ArrayList<UploadedImage> imgs=new ArrayList<>();
|
|
||||||
for(int i=0;i<imgsCount;i++) {
|
|
||||||
UploadedImage img=new UploadedImage();
|
|
||||||
img.setTitolo("My image number "+i);
|
|
||||||
img.setDidascalia("You can see my image number "+i);
|
|
||||||
img.setFormat("TIFF");
|
|
||||||
img.setCreationTime(LocalDateTime.now());
|
|
||||||
img.setResponsabili(concessione.getAuthors());
|
|
||||||
imgs.add(img);
|
|
||||||
}
|
|
||||||
concessione.setImmaginiRappresentative(imgs);
|
|
||||||
//Posizionamento
|
|
||||||
LayerConcessione posizionamento=new LayerConcessione();
|
|
||||||
posizionamento.setValutazioneQualita("Secondo me si");
|
|
||||||
posizionamento.setMetodoRaccoltaDati("Fattobbene");
|
|
||||||
posizionamento.setScalaAcquisizione("1:10000");
|
|
||||||
posizionamento.setAuthors(concessione.getAuthors());
|
|
||||||
concessione.setPosizionamentoScavo(posizionamento);
|
|
||||||
|
|
||||||
// Piante fine scavo
|
|
||||||
ArrayList<LayerConcessione> piante=new ArrayList<LayerConcessione>();
|
|
||||||
for(int i=0;i<pianteCount;i++) {
|
|
||||||
LayerConcessione pianta=new LayerConcessione();
|
|
||||||
pianta.setValutazioneQualita("Secondo me si");
|
|
||||||
pianta.setMetodoRaccoltaDati("Fattobbene");
|
|
||||||
pianta.setScalaAcquisizione("1:10000");
|
|
||||||
pianta.setAuthors(concessione.getAuthors());
|
|
||||||
pianta.setPolicy(AccessPolicy.RESTRICTED);
|
|
||||||
piante.add(pianta);
|
|
||||||
}
|
|
||||||
concessione.setPianteFineScavo(piante);
|
|
||||||
|
|
||||||
return concessione;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
package org.gcube.application.cms.tests.model.concessioni;
|
|
||||||
|
|
||||||
import org.gcube.application.geoportal.common.utils.Files;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.nio.charset.Charset;
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
public class TestConcessioniQueries {
|
|
||||||
|
|
||||||
public static final HashMap<String,String> queries =new HashMap<>();
|
|
||||||
|
|
||||||
static{
|
|
||||||
|
|
||||||
for(File f:new File(TestConcessioniModel.getBaseFolder(),"queries").listFiles()){
|
|
||||||
try {
|
|
||||||
queries.put(f.getName(), Files.readFileAsString(f.getAbsolutePath(), Charset.defaultCharset()));
|
|
||||||
} catch (IOException e) {
|
|
||||||
throw new RuntimeException("Unable to read "+f.getAbsolutePath(),e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,83 @@
|
||||||
|
package org.gcube.application.cms.tests.plugins;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.gcube.application.cms.plugins.LifecycleManager;
|
||||||
|
import org.gcube.application.cms.plugins.Plugin;
|
||||||
|
import org.gcube.application.cms.plugins.faults.*;
|
||||||
|
import org.gcube.application.cms.plugins.reports.EventExecutionReport;
|
||||||
|
import org.gcube.application.cms.plugins.reports.StepExecutionReport;
|
||||||
|
import org.gcube.application.cms.plugins.requests.EventExecutionRequest;
|
||||||
|
import org.gcube.application.cms.plugins.requests.StepExecutionRequest;
|
||||||
|
import org.gcube.application.cms.tests.TokenSetter;
|
||||||
|
import org.gcube.application.geoportal.common.model.plugins.LifecycleManagerDescriptor;
|
||||||
|
import org.gcube.application.geoportal.common.model.plugins.OperationDescriptor;
|
||||||
|
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
|
||||||
|
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class BasicLCPluginTest extends BasicPluginTest{
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLifeCycle(){
|
||||||
|
for (Map.Entry<String, Plugin> entry : plugins.entrySet()) {
|
||||||
|
String s = entry.getKey();
|
||||||
|
Plugin p = entry.getValue();
|
||||||
|
if (p.getDescriptor().getType().equals(LifecycleManagerDescriptor.LIFECYCLE_MANAGER_TYPE)) {
|
||||||
|
System.out.println("Testing LC Manager " + p.getDescriptor());
|
||||||
|
LifecycleManager ip = (LifecycleManager) p;
|
||||||
|
try {
|
||||||
|
LifecycleManagerDescriptor descriptor =(LifecycleManagerDescriptor)p.getDescriptor();
|
||||||
|
log.info("EVENTS ARE {}",descriptor.getSupportedEvents());
|
||||||
|
for(Map.Entry<String, OperationDescriptor> e : descriptor.getSupportedEvents().entrySet()){
|
||||||
|
EventExecutionRequest req = prepareEventRequest(e.getKey());
|
||||||
|
log.info("Launching request {} ",req);
|
||||||
|
EventExecutionReport rep = testEvent(ip,req);
|
||||||
|
log.info("Report is {} ",rep);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(descriptor.getSupportedSteps()!=null) {
|
||||||
|
log.info("STEPS ARE {}", descriptor.getSupportedEvents());
|
||||||
|
for (Map.Entry<String, OperationDescriptor> e : descriptor.getSupportedSteps().entrySet()) {
|
||||||
|
StepExecutionRequest req = prepareStepRequest(e.getKey());
|
||||||
|
log.info("Launching request {} ", req);
|
||||||
|
StepExecutionReport rep = testStep(ip, req);
|
||||||
|
log.info("Report is {} ", rep);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ip.init().validate();
|
||||||
|
|
||||||
|
if (GCubeTest.isTestInfrastructureEnabled()) {
|
||||||
|
TokenSetter.set(GCubeTest.getContext());
|
||||||
|
ip.initInContext().validate();
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace(System.err);
|
||||||
|
Assert.fail("Unable to Init " + p.getDescriptor().getId());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected StepExecutionRequest prepareStepRequest(String stepId){
|
||||||
|
return new StepExecutionRequest(getUCD(),getCurrentUser(),getContextObject(),getBasicProject(),stepId);
|
||||||
|
};
|
||||||
|
|
||||||
|
protected EventExecutionRequest prepareEventRequest(String event){
|
||||||
|
return new EventExecutionRequest(getUCD(),getCurrentUser(),getContextObject(),getBasicProject(),event);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
protected EventExecutionReport testEvent(LifecycleManager lc, EventExecutionRequest r) throws InvalidPluginRequestException, EventException {
|
||||||
|
return lc.onEvent(r);
|
||||||
|
}
|
||||||
|
protected StepExecutionReport testStep(LifecycleManager lc, StepExecutionRequest r) throws InvalidPluginRequestException, StepException, InvalidProfileException, StepException, ConfigurationException, InsufficientPrivileges {
|
||||||
|
return lc.performStep(r);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,66 @@
|
||||||
|
package org.gcube.application.cms.tests.plugins;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.gcube.application.cms.caches.Engine;
|
||||||
|
import org.gcube.application.cms.implementations.ImplementationProvider;
|
||||||
|
import org.gcube.application.cms.plugins.Plugin;
|
||||||
|
import org.gcube.application.cms.plugins.PluginsReflections;
|
||||||
|
import org.gcube.application.cms.tests.TokenSetter;
|
||||||
|
import org.gcube.application.cms.tests.model.BasicTests;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.accounting.Context;
|
||||||
|
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
|
||||||
|
import org.gcube.application.geoportal.common.utils.StorageUtils;
|
||||||
|
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.BeforeClass;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public abstract class BasicPluginTest extends BasicTests {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
protected Context getTestContext(){
|
||||||
|
Context toReturn = new Context();
|
||||||
|
String contextId =GCubeTest.getContext();
|
||||||
|
toReturn.setId(contextId);
|
||||||
|
toReturn.setName(contextId.substring(contextId.lastIndexOf("/")));
|
||||||
|
return toReturn;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static Map<String,Plugin> plugins=new HashMap<>();
|
||||||
|
|
||||||
|
@BeforeClass
|
||||||
|
public static void checkPluginRegistration() {
|
||||||
|
plugins.putAll(PluginsReflections.load());
|
||||||
|
plugins.forEach((s,p) -> System.out.println(s+" "+p.getDescriptor()));
|
||||||
|
|
||||||
|
Assert.assertFalse(plugins.isEmpty());
|
||||||
|
|
||||||
|
plugins.forEach(PluginCheks.descriptor);
|
||||||
|
plugins.forEach(PluginCheks.init);
|
||||||
|
System.out.println("Plugin Loading OK");
|
||||||
|
|
||||||
|
|
||||||
|
ImplementationProvider.get().setEngine(new Engine<StorageUtils>() {
|
||||||
|
@Override
|
||||||
|
public void init() {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void shutdown() {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StorageUtils getObject() throws ConfigurationException {
|
||||||
|
TokenSetter.set(GCubeTest.getContext());
|
||||||
|
return new StorageUtils();
|
||||||
|
}
|
||||||
|
|
||||||
|
},StorageUtils.class);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,57 @@
|
||||||
|
package org.gcube.application.cms.tests.plugins;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.gcube.application.cms.plugins.*;
|
||||||
|
import org.gcube.application.cms.tests.TokenSetter;
|
||||||
|
import org.gcube.application.geoportal.common.model.plugins.IndexerPluginDescriptor;
|
||||||
|
import org.gcube.application.geoportal.common.model.plugins.LifecycleManagerDescriptor;
|
||||||
|
import org.gcube.application.geoportal.common.model.plugins.MaterializerPluginDescriptor;
|
||||||
|
import org.gcube.application.geoportal.common.utils.tests.GCubeTest;
|
||||||
|
import org.junit.Assert;
|
||||||
|
|
||||||
|
import java.util.function.BiConsumer;
|
||||||
|
|
||||||
|
import static junit.framework.TestCase.assertTrue;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public class PluginCheks {
|
||||||
|
|
||||||
|
static BiConsumer<String, Plugin> init= (s,p)->{
|
||||||
|
if(p instanceof InitializablePlugin){
|
||||||
|
log.info("INIT Plugin "+p.getDescriptor());
|
||||||
|
InitializablePlugin ip=(InitializablePlugin)p;
|
||||||
|
try {
|
||||||
|
ip.init().validate();
|
||||||
|
|
||||||
|
if(GCubeTest.isTestInfrastructureEnabled()){
|
||||||
|
log.info("INIT Plugin "+p.getDescriptor()+" under "+GCubeTest.getContext());
|
||||||
|
TokenSetter.set(GCubeTest.getContext());
|
||||||
|
ip.initInContext().validate();
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("Unable to init {} ",p,e);
|
||||||
|
Assert.fail("Unable to Init "+p.getDescriptor().getId());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static BiConsumer<String, Plugin> descriptor= (s,p)->{
|
||||||
|
log.info("Checking Plugin Descriptor "+p.getClass());
|
||||||
|
Assert.assertNotNull(p.getDescriptor());
|
||||||
|
Assert.assertNotNull(p.getDescriptor().getId());
|
||||||
|
Assert.assertNotNull(p.getDescriptor().getType());
|
||||||
|
switch(p.getDescriptor().getType()){
|
||||||
|
case LifecycleManagerDescriptor.LIFECYCLE_MANAGER_TYPE:{
|
||||||
|
assertTrue(p instanceof LifecycleManager);
|
||||||
|
break; }
|
||||||
|
case MaterializerPluginDescriptor.MATERIALIZER:{
|
||||||
|
assertTrue(p instanceof MaterializationPlugin);
|
||||||
|
break; }
|
||||||
|
case IndexerPluginDescriptor.INDEXER:{
|
||||||
|
assertTrue(p instanceof IndexerPluginInterface);
|
||||||
|
break; }
|
||||||
|
default:{}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package org.gcube.application.cms.commons.model;
|
package org.gcube.application.cms.commons.model;
|
||||||
|
|
||||||
import org.gcube.application.cms.tests.BasicPluginTest;
|
import org.gcube.application.cms.tests.plugins.BasicPluginTest;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class DummyTest extends BasicPluginTest {
|
public class DummyTest extends BasicPluginTest {
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
package org.gcube.application.cms.commons.model;
|
||||||
|
|
||||||
|
import org.gcube.application.cms.tests.TestProfiles;
|
||||||
|
import org.gcube.application.cms.tests.model.BasicTests;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.accounting.User;
|
||||||
|
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
|
||||||
|
import static junit.framework.TestCase.assertNotNull;
|
||||||
|
|
||||||
|
public class RolesTesting extends BasicTests {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public UseCaseDescriptor getUcd() {
|
||||||
|
return TestProfiles.profiles.get("profiledConcessioni");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void checkRoles(){
|
||||||
|
User u = getCurrentUser();
|
||||||
|
UseCaseDescriptor ucd = getUcd();
|
||||||
|
u.setRoles(Collections.emptySet());
|
||||||
|
assertNotNull(ucd.getMatching(u));
|
||||||
|
|
||||||
|
u.setRoles(Collections.singleton("FakeUser"));
|
||||||
|
assertNotNull(ucd.getMatching(u));
|
||||||
|
u.setRoles(Collections.singleton("FakeAdmin"));
|
||||||
|
assertNotNull(ucd.getMatching(u));
|
||||||
|
u.setRoles(Collections.singleton("FakeEditor"));
|
||||||
|
assertNotNull(ucd.getMatching(u));
|
||||||
|
u.setRoles(Collections.singleton("FakeMember"));
|
||||||
|
assertNotNull(ucd.getMatching(u));
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,12 @@
|
||||||
package org.gcube.application.cms.commons.model;
|
package org.gcube.application.cms.commons.model;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
public class Serialization {
|
public class Serialization {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSerializations(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
package org.gcube.application.cms.commons.model.concessioni;
|
|
||||||
|
|
||||||
import org.gcube.application.cms.tests.model.concessioni.TestConcessioniFilters;
|
|
||||||
import org.gcube.application.cms.tests.model.concessioni.TestConcessioniModel;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.Concessione;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertTrue;
|
|
||||||
|
|
||||||
public class Models {
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void checkFilters(){
|
|
||||||
assertTrue(TestConcessioniFilters.filters.size()>0);
|
|
||||||
TestConcessioniFilters.filters.keySet().forEach(f -> {
|
|
||||||
System.out.println(f);});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void checkConcessione(){
|
|
||||||
Concessione c= TestConcessioniModel.prepareConcessione(3,5);
|
|
||||||
assertTrue(c.getPianteFineScavo().size()==3);
|
|
||||||
assertTrue(c.getImmaginiRappresentative().size()==5);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,67 +0,0 @@
|
||||||
package org.gcube.application.cms.commons.model.concessioni;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
|
|
||||||
import org.gcube.application.cms.tests.model.concessioni.TestConcessioniModel;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.Concessione;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.Concessione.Paths;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.LayerConcessione;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.RelazioneScavo;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.UploadedImage;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
|
|
||||||
public class PathsTest {
|
|
||||||
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void embeddedPaths() {
|
|
||||||
Concessione c= TestConcessioniModel.prepareConcessione();
|
|
||||||
c= TestConcessioniModel.setIds(c);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
LayerConcessione p=(LayerConcessione) c.getContentByPath(Paths.POSIZIONAMENTO);
|
|
||||||
Assert.assertEquals(c.getPosizionamentoScavo(), p);
|
|
||||||
|
|
||||||
RelazioneScavo rel=(RelazioneScavo) c.getContentByPath(Paths.RELAZIONE);
|
|
||||||
Assert.assertEquals(c.getRelazioneScavo(), rel);
|
|
||||||
|
|
||||||
for(int i=0;i<c.getPianteFineScavo().size();i++) {
|
|
||||||
LayerConcessione l=(LayerConcessione) c.getContentByPath(Paths.piantaByIndex(i));
|
|
||||||
Assert.assertEquals(c.getPianteFineScavo().get(i),l);
|
|
||||||
}
|
|
||||||
|
|
||||||
for(int i=0;i<c.getImmaginiRappresentative().size();i++) {
|
|
||||||
UploadedImage l=(UploadedImage) c.getContentByPath(Paths.imgByIndex(i));
|
|
||||||
Assert.assertEquals(c.getImmaginiRappresentative().get(i),l);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
for(int i=0;i<c.getPianteFineScavo().size();i++) {
|
|
||||||
LayerConcessione layer=c.getPianteFineScavo().get(i);
|
|
||||||
LayerConcessione l=(LayerConcessione) c.getContentByPath(Paths.piantaById(layer.getMongo_id()));
|
|
||||||
Assert.assertEquals(layer,l);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for(int i=0;i<c.getImmaginiRappresentative().size();i++) {
|
|
||||||
UploadedImage layer=c.getImmaginiRappresentative().get(i);
|
|
||||||
UploadedImage l=(UploadedImage) c.getContentByPath(Paths.imgById(layer.getMongo_id()));
|
|
||||||
Assert.assertEquals(layer,l);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println();
|
|
||||||
System.out.println();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,72 +0,0 @@
|
||||||
package org.gcube.application.cms.commons.model.concessioni;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import org.gcube.application.cms.tests.model.concessioni.TestConcessioniModel;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.AccessPolicy;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.Concessione;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
||||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
|
||||||
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
|
|
||||||
public class SerializationTest {
|
|
||||||
|
|
||||||
|
|
||||||
private static ObjectMapper mapper = new ObjectMapper();
|
|
||||||
|
|
||||||
static {
|
|
||||||
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);
|
|
||||||
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS,false);
|
|
||||||
mapper.configure(SerializationFeature.WRITE_EMPTY_JSON_ARRAYS, false);
|
|
||||||
mapper.setSerializationInclusion(Include.NON_NULL);
|
|
||||||
// mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
|
|
||||||
mapper.registerModule(new JavaTimeModule());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// @Test
|
|
||||||
// public void readProfile() throws JsonProcessingException, IOException {
|
|
||||||
//
|
|
||||||
// UseCaseDescriptor concessione=mapper.readerFor(UseCaseDescriptor.class).readValue(new File(TestConcessioniModel.getBaseFolder(),"ProfileConcessioni.json"));
|
|
||||||
//
|
|
||||||
// System.out.println("UseCaseDescriptor is "+mapper.writeValueAsString(concessione));
|
|
||||||
//
|
|
||||||
// //Assert.assertTrue(concessione .getFields().size()>0);
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void readConcessione() throws JsonProcessingException, IOException {
|
|
||||||
Concessione concessione=mapper.readerFor(Concessione.class).readValue(new File(TestConcessioniModel.getBaseFolder(),"Concessione.json"));
|
|
||||||
System.out.println("Concessione is "+concessione.toString());
|
|
||||||
|
|
||||||
concessione.getRelazioneScavo().setPolicy(AccessPolicy.EMBARGOED);
|
|
||||||
assertEquals(AccessPolicy.EMBARGOED,concessione.getRelazioneScavo().getPolicy());
|
|
||||||
|
|
||||||
concessione=mapper.readerFor(Concessione.class).readValue(mapper.writeValueAsString(concessione));
|
|
||||||
assertEquals(AccessPolicy.EMBARGOED,concessione.getRelazioneScavo().getPolicy());
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void generic() throws JsonProcessingException, IOException {
|
|
||||||
Concessione conc= TestConcessioniModel.prepareConcessione();
|
|
||||||
conc.validate();
|
|
||||||
full(conc);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void full(Object obj) throws JsonProcessingException, IOException {
|
|
||||||
String asString=mapper.writeValueAsString(obj);
|
|
||||||
Object other=mapper.readerFor(obj.getClass()).readValue(asString);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +1,26 @@
|
||||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
||||||
|
|
||||||
# Changelog for org.gcube.application.cms.concessioni-lifecycle
|
# Changelog for org.gcube.application.cms.concessioni-lifecycle
|
||||||
|
|
||||||
This library contains custom extensions for the support of GNA "concessioni" use case
|
## [v1.1.1] - 2023-09-06
|
||||||
|
- Using parent version range [#25572]
|
||||||
|
|
||||||
## [v1.0.1-SNAPSHOT] - 2022-01-17
|
## [v1.1.0] - 2023-03-13
|
||||||
|
- [#24754] Fixed hide/show project ids on the latest node of the relation chain
|
||||||
|
|
||||||
|
## [v1.0.4] - 2023-03-06
|
||||||
|
- [#24702] Fixed the default-lc-managers dependency
|
||||||
|
|
||||||
|
## [v1.0.3] - 2023-01-10
|
||||||
|
- Pom updates
|
||||||
|
- Fixes default access
|
||||||
|
|
||||||
|
## [v1.0.2] - 2022-12-07
|
||||||
|
- Pom updates
|
||||||
|
- Introduced module default-lc-managers
|
||||||
|
-
|
||||||
|
## [v1.0.1] - 2022-01-17
|
||||||
- Serialization adaptation
|
- Serialization adaptation
|
||||||
|
|
||||||
## [v1.0.0] - 2021-12-15
|
## [v1.0.0] - 2021-12-15
|
||||||
- First release
|
- First release
|
||||||
|
|
||||||
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
gCube CMS Suite
|
gCube CMS Suite : Concessioni Lifecycle
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
gCube CMS Suite is a set of components designed to manage complex space-temporal Documents defined by metadata Profiles.
|
This library contains custom extensions for the support of GNA "concessioni" use case custom requirements.
|
||||||
|
It contains a Lifecycle Manager built on top of default 3-PHASE, extending :
|
||||||
|
|
||||||
|
- Default values setting / evaluation
|
||||||
|
- Indexing parameters :
|
||||||
|
- Relationship management : relationship chains on "follows" and "precedes" are evaluated in order to show only last published project in centroids map
|
||||||
|
|
||||||
|
|
||||||
## Built with
|
## 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
|
||||||
|
@ -11,8 +17,8 @@ gCube CMS Suite is a set of components designed to manage complex space-temporal
|
||||||
* [Maven](https://maven.apache.org/) - Dependency Management
|
* [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
|
||||||
|
|
||||||
|
|
|
@ -3,17 +3,15 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
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>concessioni-lifecycle</artifactId>
|
<artifactId>concessioni-lifecycle</artifactId>
|
||||||
<version>1.0.1-SNAPSHOT</version>
|
<version>1.1.1</version>
|
||||||
<name>GNA Concessioni Lifecycle</name>
|
<name>GNA Concessioni Lifecycle</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.0, 2.0.0-SNAPSHOT)</version>
|
||||||
<version>1.0.2-SNAPSHOT</version>
|
</parent>
|
||||||
</parent>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
|
<gitBaseUrl>https://code-repo.d4science.org/gCubeSystem</gitBaseUrl>
|
||||||
|
@ -33,7 +31,7 @@
|
||||||
<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>
|
||||||
|
@ -44,7 +42,8 @@
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.application.cms</groupId>
|
<groupId>org.gcube.application.cms</groupId>
|
||||||
<artifactId>cms-plugin-framework</artifactId>
|
<artifactId>default-lc-managers</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,18 +52,12 @@
|
||||||
<artifactId>concessioni-model</artifactId>
|
<artifactId>concessioni-model</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- <!– SDI –>-->
|
|
||||||
<!-- <dependency>-->
|
|
||||||
<!-- <groupId>org.gcube.spatial.data</groupId>-->
|
|
||||||
<!-- <artifactId>gis-interface</artifactId>-->
|
|
||||||
<!-- <version>[2.4.6,3.0.0)</version>-->
|
|
||||||
<!-- </dependency>-->
|
|
||||||
|
|
||||||
<!-- DT -->
|
<!-- DT -->
|
||||||
<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>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,372 +1,316 @@
|
||||||
package org.gcube.application.cms.concessioni.plugins;
|
package org.gcube.application.cms.concessioni.plugins;
|
||||||
|
|
||||||
import lombok.Setter;
|
import java.io.IOException;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.bson.BsonDocument;
|
|
||||||
import org.bson.BsonString;
|
|
||||||
import org.bson.BsonValue;
|
|
||||||
import org.bson.Document;
|
|
||||||
import org.gcube.application.cms.plugins.IndexerPluginInterface;
|
|
||||||
import org.gcube.application.cms.plugins.MaterializationPlugin;
|
|
||||||
import org.gcube.application.cms.plugins.PluginManagerInterface;
|
|
||||||
import org.gcube.application.cms.plugins.faults.*;
|
|
||||||
import org.gcube.application.cms.plugins.model.ComparableVersion;
|
|
||||||
import org.gcube.application.cms.plugins.reports.*;
|
|
||||||
import org.gcube.application.cms.plugins.requests.*;
|
|
||||||
import org.gcube.application.cms.serialization.Serialization;
|
|
||||||
import org.gcube.application.cms.custom.gna.concessioni.model.ProfiledConcessione;
|
|
||||||
import org.gcube.application.cms.plugins.LifecycleManager;
|
|
||||||
import org.gcube.application.cms.plugins.model.PluginDescriptor;
|
|
||||||
import org.gcube.application.geoportal.common.model.configuration.Index;
|
|
||||||
import org.gcube.application.geoportal.common.model.document.*;
|
|
||||||
import org.gcube.application.geoportal.common.model.document.access.Access;
|
|
||||||
import org.gcube.application.geoportal.common.model.document.access.AccessPolicy;
|
|
||||||
import org.gcube.application.geoportal.common.model.document.filesets.RegisteredFileSet;
|
|
||||||
import org.gcube.application.geoportal.common.model.document.lifecycle.LifecycleInformation;
|
|
||||||
import org.gcube.application.geoportal.common.model.document.lifecycle.TriggeredEvents;
|
|
||||||
import org.gcube.application.geoportal.common.model.legacy.report.ConstraintCheck;
|
|
||||||
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.useCaseDescriptor.UseCaseDescriptor;
|
|
||||||
import org.gcube.application.geoportal.common.utils.ContextUtils;
|
|
||||||
import org.gcube.application.geoportal.common.utils.Files;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.Comparator;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.bson.Document;
|
||||||
|
import org.gcube.application.cms.custom.gna.concessioni.model.ProfiledConcessione;
|
||||||
|
import org.gcube.application.cms.implementations.ImplementationProvider;
|
||||||
|
import org.gcube.application.cms.implementations.ProjectAccess;
|
||||||
|
import org.gcube.application.cms.plugins.LifecycleManager;
|
||||||
|
import org.gcube.application.cms.plugins.faults.IndexingException;
|
||||||
|
import org.gcube.application.cms.plugins.implementations.Default3PhaseManager;
|
||||||
|
import org.gcube.application.cms.plugins.reports.EventExecutionReport;
|
||||||
|
import org.gcube.application.cms.plugins.reports.Report;
|
||||||
|
import org.gcube.application.cms.plugins.requests.IndexDocumentRequest;
|
||||||
|
import org.gcube.application.cms.serialization.Serialization;
|
||||||
|
import org.gcube.application.geoportal.common.model.JSONPathWrapper;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.Project;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.relationships.Relationship;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.relationships.RelationshipNavigationObject;
|
||||||
|
import org.gcube.application.geoportal.common.model.legacy.report.ConstraintCheck;
|
||||||
|
|
||||||
|
import com.vdurmont.semver4j.Semver;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class ConcessioniLifeCycleManager implements LifecycleManager {
|
/**
|
||||||
|
* Overrides 3 Phases lifecycle with override of default values
|
||||||
private static class Phases {
|
*
|
||||||
public static final String PENDING_APPROVAL="Pending Approval";
|
*/
|
||||||
}
|
public class ConcessioniLifeCycleManager extends Default3PhaseManager implements LifecycleManager {
|
||||||
|
|
||||||
|
private static final String FOLLOWS = "follows";
|
||||||
private static final PluginDescriptor DESCRIPTOR=new PluginDescriptor("GNA-CONCESSIONI-LC", PluginDescriptor.BaseTypes.LIFECYCLE_MANAGER);
|
private static final String PRECEDES = "precedes";
|
||||||
static {
|
|
||||||
DESCRIPTOR.setDescription("GNA Concessioni. This plugin supports custom lifecycle management for the GNA Concessioni UseCase.");
|
public ConcessioniLifeCycleManager() {
|
||||||
DESCRIPTOR.setVersion(new ComparableVersion("1.0.0"));
|
DESCRIPTOR.setId("GNA-CONCESSIONI-LC");
|
||||||
}
|
DESCRIPTOR.setDescription(
|
||||||
|
"GNA Concessioni. This plugin supports custom lifecycle management for the GNA Concessioni UseCase.");
|
||||||
@Setter
|
DESCRIPTOR.setVersion(new Semver("1.0.0"));
|
||||||
PluginManagerInterface pluginManager;
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EventExecutionReport setDefault(EventExecutionReport currentReport) {
|
||||||
@Override
|
EventExecutionReport report = super.setDefault(currentReport);
|
||||||
public InitializationReport initInContext() throws InitializationException {
|
try {
|
||||||
InitializationReport report = new InitializationReport();
|
report.setResultingDocument(setDefaults(report.getTheRequest().getDocument()).getTheDocument());
|
||||||
try{
|
} catch (Throwable t) {
|
||||||
report.setStatus(Report.Status.OK);
|
log.error("Unable to evaluate defaults for concessione "
|
||||||
} catch (Throwable e) {
|
+ currentReport.getTheRequest().getDocument().getId(), t);
|
||||||
log.error("Unable to initialize plugins in {} ",ContextUtils.getCurrentScope(),e);
|
log.debug("Object was {} ", report.getTheRequest().getDocument());
|
||||||
report.setStatus(Report.Status.WARNING);
|
report.setStatus(Report.Status.ERROR);
|
||||||
report.putMessage("Unable to initialize plugins in "+ ContextUtils.getCurrentScope()+" : "+e.getMessage());
|
report.getMessages().add("Unable to evaluate defaults : " + t.getMessage());
|
||||||
}
|
}
|
||||||
return report;
|
return report;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
// STATIC ROUTINES
|
||||||
public InitializationReport init() throws InitializationException {
|
|
||||||
InitializationReport report = new InitializationReport();
|
static final Project setDefaults(Project document) throws IOException {
|
||||||
try{
|
log.info("Concessione ID {}, setting defaults..", document.getId());
|
||||||
report.setStatus(Report.Status.OK);
|
log.debug("Full concessione is {}", document);
|
||||||
|
ProfiledConcessione c = Serialization.convert(document, ProfiledConcessione.class);
|
||||||
} catch (Throwable e) {
|
Document doc = c.getTheDocument();
|
||||||
log.error("Unable to initialize plugins ",e);
|
doc.putIfAbsent(ProfiledConcessione.SOGGETTO, new String[] { "Research Excavation", "Archaeology" });
|
||||||
report.setStatus(Report.Status.WARNING);
|
|
||||||
report.putMessage("Unable to initialize plugins : "+e.getMessage());
|
doc.putIfAbsent(ProfiledConcessione.DESCRIZIONE_CONTENUTO,
|
||||||
}
|
"Relazione di fine scavo e relativo abstract; selezione di immagini rappresentative;"
|
||||||
return report;
|
+ " posizionamento topografico dell'area indagata, pianta di fine scavo.");
|
||||||
}
|
|
||||||
|
// Super Section
|
||||||
@Override
|
// TODO read from UCD
|
||||||
public void shutdown() throws ShutDownException {
|
c.getInfo().getAccess()
|
||||||
|
.setLicense(ConstraintCheck.defaultFor(c.getInfo().getAccess().getLicense(), "CC0-1.0").evaluate());
|
||||||
}
|
|
||||||
|
// RELAZIONE
|
||||||
@Override
|
Document rel = doc.containsKey(ProfiledConcessione.RELAZIONE_SCAVO)
|
||||||
public StepExecutionReport performStep(StepExecutionRequest request) throws StepException, InvalidPluginRequestException {
|
? Serialization.convert(doc.get(ProfiledConcessione.RELAZIONE_SCAVO), Document.class)
|
||||||
log.info("Serving Request {}",request);
|
: new Document();
|
||||||
StepExecutionReport report=new StepExecutionReport(request);
|
log.debug("Concessione {}, managing relazione {}", document.getId(), rel);
|
||||||
report.setStatus(Report.Status.OK);
|
rel.putIfAbsent(ProfiledConcessione.Sections.TITOLO,
|
||||||
|
doc.getString(ProfiledConcessione.NOME) + " relazione di scavo");
|
||||||
LifecycleInformation info=report.getToSetLifecycleInformation();
|
rel.putIfAbsent(ProfiledConcessione.SOGGETTO, doc.get(ProfiledConcessione.SOGGETTO));
|
||||||
info.setLastOperationStatus(LifecycleInformation.Status.OK);
|
doc.put(ProfiledConcessione.RELAZIONE_SCAVO, rel);
|
||||||
info.setLastInvokedStep(request.getStep());
|
|
||||||
try {
|
// ABSTRACT Relazione
|
||||||
|
Document abs = doc.containsKey(ProfiledConcessione.ABSTRACT_RELAZIONE)
|
||||||
MaterializationPlugin plugin;
|
? Serialization.convert(doc.get(ProfiledConcessione.ABSTRACT_RELAZIONE), Document.class)
|
||||||
|
: new Document();
|
||||||
IndexerPluginInterface indexerPlugin;
|
log.debug("Concessione {}, managing abstract relazione {}", document.getId(), abs);
|
||||||
|
abs.putIfAbsent(ProfiledConcessione.Sections.TITOLO,
|
||||||
plugin= (MaterializationPlugin) pluginManager.getById("SDI-Default-Materializer");
|
doc.getString(ProfiledConcessione.NOME) + " abstract relazione di scavo");
|
||||||
indexerPlugin = (IndexerPluginInterface) pluginManager.getById("SDI-Indexer-Plugin");
|
doc.put(ProfiledConcessione.ABSTRACT_RELAZIONE, abs);
|
||||||
|
|
||||||
switch (request.getStep()) {
|
// Posizionamento scavo
|
||||||
case "SUBMIT-FOR-REVIEW" :{
|
if (doc.containsKey(ProfiledConcessione.POSIZIONAMENTO_SCAVO)) {
|
||||||
|
Document pos = Serialization.convert(doc.get(ProfiledConcessione.POSIZIONAMENTO_SCAVO), Document.class);
|
||||||
//TODO Checks
|
log.debug("Concessione {}, managing posizionamento scavo {}", document.getId(), pos);
|
||||||
if(!request.getDocument().getLifecycleInformation().getPhase().equals(LifecycleInformation.DRAFT_PHASE))
|
pos.putIfAbsent(ProfiledConcessione.Sections.TITOLO,
|
||||||
throw new StepException("Document is not in Draft phase");
|
doc.getString(ProfiledConcessione.NOME) + " posizionamento scavo");
|
||||||
//Materialize layers
|
pos.putIfAbsent(ProfiledConcessione.Sections.ABSTRACT,
|
||||||
MaterializationRequest matReq = new MaterializationRequest(request.getUseCaseDescriptor(),request.getCaller(), request.getContext(), request.getDocument());
|
"Posizionamento topografico georeferenziato dell’area interessata dalle indagini");
|
||||||
|
pos.putIfAbsent(ProfiledConcessione.Layers.TOPIC, "Society");
|
||||||
matReq.setDocument(request.getDocument());
|
pos.putIfAbsent(ProfiledConcessione.Layers.SUB_TOPIC, "Archeology");
|
||||||
matReq.setUseCaseDescriptor(request.getUseCaseDescriptor());
|
|
||||||
Document params = new Document();
|
pos.putIfAbsent(ProfiledConcessione.PAROLE_CHIAVE_LIBERE,
|
||||||
String workspace = request.getUseCaseDescriptor().getId() + request.getContext().getId();
|
doc.get(ProfiledConcessione.PAROLE_CHIAVE_LIBERE));
|
||||||
params.put("workspace", Files.fixFilename(workspace));
|
pos.putIfAbsent(ProfiledConcessione.PAREOLE_CHIAVE_ICCD, doc.get(ProfiledConcessione.PAREOLE_CHIAVE_ICCD));
|
||||||
|
|
||||||
|
// BBOX in registered filesets
|
||||||
matReq.setCallParameters(params);
|
|
||||||
MaterializationReport matRep = plugin.materialize(matReq);
|
pos.put(ProfiledConcessione.RESPONSABILE, doc.get(ProfiledConcessione.RESPONSABILE));
|
||||||
|
doc.put(ProfiledConcessione.POSIZIONAMENTO_SCAVO, pos);
|
||||||
|
}
|
||||||
report.setResultingDocument(matRep.getResultingDocument());
|
|
||||||
switch(matRep.getStatus()){
|
// IMMAGINI RAPPRESENTATIVE
|
||||||
case OK : {
|
|
||||||
info.setPhase(Phases.PENDING_APPROVAL);
|
JSONPathWrapper wrapper = new JSONPathWrapper(Serialization.write(doc));
|
||||||
|
if (doc.containsKey(ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE)) {
|
||||||
//TODO Index-confidential
|
List imgs = wrapper.getByPath("$." + ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE, List.class).get(0);
|
||||||
|
log.debug("Concessione {}, found imgs {}", document.getId(), imgs.size());
|
||||||
|
for (int i = 0; i < imgs.size(); i++) {
|
||||||
//TODO Notifications
|
Document imgDoc = Serialization.asDocument(imgs.get(i));
|
||||||
|
imgDoc.putIfAbsent(ProfiledConcessione.SOGGETTO, doc.get(ProfiledConcessione.SOGGETTO));
|
||||||
break;
|
|
||||||
}
|
wrapper.setElement("$." + ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE + "[" + i + "]", imgDoc);
|
||||||
case ERROR : {
|
}
|
||||||
info.setLastOperationStatus(LifecycleInformation.Status.ERROR);
|
}
|
||||||
matRep.getMessages().forEach(s -> info.addErrorMessage(s));
|
|
||||||
break;
|
// Layers
|
||||||
}
|
if (doc.containsKey(ProfiledConcessione.PIANTE_FINE_SCAVO)) {
|
||||||
case WARNING : {
|
List piante = wrapper.getByPath("$." + ProfiledConcessione.PIANTE_FINE_SCAVO, List.class).get(0);
|
||||||
info.setLastOperationStatus(LifecycleInformation.Status.WARNING);
|
log.debug("Concessione {}, found piante {}", document.getId(), piante.size());
|
||||||
matRep.getMessages().forEach(s -> info.addWarningMessage(s));
|
for (int i = 0; i < piante.size(); i++) {
|
||||||
break;
|
Document piantaDoc = Serialization.asDocument(piante.get(i));
|
||||||
}
|
log.debug("Concessione {}, managing pianta {}", document.getId(), piantaDoc);
|
||||||
}
|
piantaDoc.putIfAbsent(ProfiledConcessione.Sections.TITOLO,
|
||||||
|
doc.getString(ProfiledConcessione.NOME) + " pianta fine scavo");
|
||||||
}
|
piantaDoc.putIfAbsent(ProfiledConcessione.Sections.ABSTRACT,
|
||||||
break;
|
"Planimetria georeferenziata dell'area indagata al termine delle attività");
|
||||||
case "REJECT-DRAFT":{
|
piantaDoc.putIfAbsent(ProfiledConcessione.Layers.TOPIC, "Society");
|
||||||
// Notification
|
piantaDoc.putIfAbsent(ProfiledConcessione.Layers.SUB_TOPIC, "Archeology");
|
||||||
// Set
|
|
||||||
break;
|
piantaDoc.putIfAbsent(ProfiledConcessione.PAROLE_CHIAVE_LIBERE,
|
||||||
}
|
doc.get(ProfiledConcessione.PAROLE_CHIAVE_LIBERE));
|
||||||
|
piantaDoc.putIfAbsent(ProfiledConcessione.PAREOLE_CHIAVE_ICCD,
|
||||||
case "APPROVE DRAFT":{
|
doc.get(ProfiledConcessione.PAREOLE_CHIAVE_ICCD));
|
||||||
// Index-published
|
|
||||||
|
// BBOX in registered filesets
|
||||||
if(!request.getDocument().getLifecycleInformation().getPhase()
|
|
||||||
.equals(Phases.PENDING_APPROVAL))
|
piantaDoc.put(ProfiledConcessione.RESPONSABILE, doc.get(ProfiledConcessione.RESPONSABILE));
|
||||||
throw new StepException("Document is not in "+Phases.PENDING_APPROVAL+" phase");
|
|
||||||
|
wrapper.setElement("$." + ProfiledConcessione.PIANTE_FINE_SCAVO + "[" + i + "]", piantaDoc);
|
||||||
IndexDocumentRequest indexRequest = new IndexDocumentRequest(request.getUseCaseDescriptor(),request.getCaller(), request.getContext(),request.getDocument());
|
}
|
||||||
|
}
|
||||||
Document callParameters = getPublicIndexParams(request);
|
|
||||||
indexRequest.setCallParameters(callParameters);
|
c.setTheDocument(Serialization.read(wrapper.getValueCTX().jsonString(), Document.class));
|
||||||
|
return c;
|
||||||
IndexDocumentReport indexReport = indexerPlugin.index(indexRequest);
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* New method implemented by Francesco
|
||||||
switch(indexReport.getStatus()){
|
*/
|
||||||
case OK : {
|
@Override
|
||||||
info.setPhase("PUBLISHED");
|
protected Document evaluateAdditionalIndexParameters(IndexDocumentRequest request) throws IndexingException {
|
||||||
report.setToSetSpatialReference(indexReport.getToSetSpatialReference());
|
Document toReturn = super.evaluateAdditionalIndexParameters(request);
|
||||||
break;
|
if (toReturn == null)
|
||||||
}
|
toReturn = new Document();
|
||||||
case ERROR : {
|
Project indexingProject = request.getDocument();
|
||||||
info.setLastOperationStatus(LifecycleInformation.Status.ERROR);
|
|
||||||
indexReport.getMessages().forEach(s -> info.addErrorMessage(s));
|
// Evaluate to display project IDs
|
||||||
break;
|
log.info("Evaluating relationship chain. Current ID is {}", indexingProject.getId());
|
||||||
}
|
try {
|
||||||
case WARNING : {
|
ArrayList<Project> projects = new ArrayList<>();
|
||||||
info.setLastOperationStatus(LifecycleInformation.Status.WARNING);
|
ProjectAccess access = ImplementationProvider.get().getProvidedObjectByClass(ProjectAccess.class);
|
||||||
indexReport.getMessages().forEach(s -> info.addWarningMessage(s));
|
// get Last ID in relation chain
|
||||||
break;
|
projects.add(indexingProject);
|
||||||
}
|
if (!indexingProject.getRelationshipsByName(PRECEDES).isEmpty())
|
||||||
}
|
scanRelation(projects, access
|
||||||
break;
|
.getRelations(indexingProject.getProfileID(), indexingProject.getId(), PRECEDES, true).get(0),
|
||||||
}
|
false);
|
||||||
|
if (!indexingProject.getRelationshipsByName(FOLLOWS).isEmpty())
|
||||||
default:
|
scanRelation(projects, access
|
||||||
throw new StepException("Invalid Step " + request.getStep());
|
.getRelations(indexingProject.getProfileID(), indexingProject.getId(), FOLLOWS, true).get(0),
|
||||||
}
|
false);
|
||||||
}catch (StepException e){
|
|
||||||
throw e;
|
log.debug("Produced full chain [size : {}] from {}, evaluating last available for PHASE {} ",
|
||||||
}catch (Throwable t){
|
projects.size(), indexingProject.getId(), indexingProject.getLifecycleInformation().getPhase());
|
||||||
log.error("Unable to perform step "+request.getStep(),t);
|
|
||||||
String msg = "Unable to execute Step "+request.getStep()+". Error was "+t.getMessage();
|
log.info("projects are: " + projects.size());
|
||||||
report.setStatus(Report.Status.ERROR);
|
|
||||||
report.putMessage(msg);
|
List<String> toDisplayId = new ArrayList<>();
|
||||||
info.setLastOperationStatus(LifecycleInformation.Status.ERROR);
|
List<String> toHideIds = new ArrayList<>();
|
||||||
info.addErrorMessage(msg);
|
|
||||||
}
|
// Reverse Order means from the last FOLLOW to the first one (temporal reverse
|
||||||
return report;
|
// order)
|
||||||
}
|
Collections.sort(projects, Collections.reverseOrder(new ProjectRelationComparator()));
|
||||||
|
|
||||||
|
if (log.isInfoEnabled()) {
|
||||||
@Override
|
int j = 0;
|
||||||
public EventExecutionReport onEvent(EventExecutionRequest request) throws EventException, InvalidPluginRequestException {
|
log.info("Printing project reverse order....");
|
||||||
log.info("Executing Event {}",request);
|
for (Project theProject : projects) {
|
||||||
EventExecutionReport report=new EventExecutionReport(request);
|
log.info(++j + ") " + theProject.getId() + " data inizio: "
|
||||||
|
+ theProject.getTheDocument().get("dataInizioProgetto"));
|
||||||
TriggeredEvents info=new TriggeredEvents();
|
}
|
||||||
info.setEvent(request.getEvent());
|
}
|
||||||
info.setLastOperationStatus(LifecycleInformation.Status.OK);
|
|
||||||
report.setStatus(Report.Status.OK);
|
log.trace("Checking from LAST.. ");
|
||||||
|
for (int i = 0; i < projects.size(); i++) {
|
||||||
try {
|
|
||||||
switch(request.getEvent()){
|
Project p = projects.get(i);
|
||||||
case EventExecutionRequest.Events.ON_INIT_DOCUMENT:
|
String phase = p.getLifecycleInformation().getPhase();
|
||||||
// Set Defaults as for on update
|
|
||||||
case EventExecutionRequest.Events.ON_UPDATE_DOCUMENT: {
|
// IS TO DISPLAY EMPTY? Step into only once.
|
||||||
log.debug("Setting default values..");
|
// Indexing the first project that is in PENDING APPROVAL or PUBLISHED or
|
||||||
// TODO implement defaults for concessione
|
// updating the phase of the indexing (selected) project
|
||||||
// report.setResult(setDefaults(request.getDocument()));
|
if (toDisplayId.isEmpty()) {
|
||||||
break;
|
// IF PHASE IS PENDING APPROVAL OR PUBLISHED adding toDisplayId
|
||||||
}
|
if ((phase.equals(Phases.PENDING_APPROVAL) || phase.equals(Phases.PUBLISHED))) {
|
||||||
case EventExecutionRequest.Events.ON_DELETE_DOCUMENT: {
|
toDisplayId.add(p.getId());
|
||||||
//DELETE ALL
|
} else if (p.getId().compareTo(indexingProject.getId()) == 0) {
|
||||||
break;
|
// Means that the operation has been called on the indexing project from DRAFT
|
||||||
}
|
// phase to PENDING_APPROVAL or PUBLISH
|
||||||
default: throw new EventException("Unexpected Event "+request.getEvent());
|
toDisplayId.add(p.getId());
|
||||||
}
|
}
|
||||||
}catch (EventException e){
|
|
||||||
throw e;
|
} else {
|
||||||
}catch (Throwable t){
|
// Hides the centroid regardless of project phase
|
||||||
log.error("Unable to execute on event "+request.getEvent(),t);
|
toHideIds.add(p.getId());
|
||||||
String msg = "Unable to execute on event "+request.getEvent()+". Error was "+t.getMessage();
|
}
|
||||||
info.setLastOperationStatus(LifecycleInformation.Status.ERROR);
|
}
|
||||||
info.addErrorMessage(msg);
|
|
||||||
report.setStatus(Report.Status.ERROR);
|
toReturn.put("_toHideIds", toHideIds);
|
||||||
report.putMessage(msg);
|
toReturn.put("_toDisplayIds", toDisplayId);
|
||||||
}finally{
|
|
||||||
report.getToSetLifecycleInformation().addEventReport(info);
|
log.info(
|
||||||
}
|
"Indexing request for " + indexingProject.getProfileID()
|
||||||
return report;
|
+ " [ID {}] with to _toHideIds {} and _toDisplayIds {} ",
|
||||||
}
|
indexingProject.getId(), toHideIds, toDisplayId);
|
||||||
|
return toReturn;
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("Unable to evaluate to Hide and Display Ids ", e);
|
||||||
@Override
|
throw new IndexingException("Unable to evaluate chain ids to hide / display", e);
|
||||||
public Configuration getCurrentConfiguration(BaseRequest req) throws ConfigurationException {
|
}
|
||||||
Configuration toReturn = new Configuration();
|
|
||||||
toReturn.setIndexes(new ArrayList<>());
|
}
|
||||||
|
|
||||||
IndexerPluginInterface indexerPlugin;
|
private static void scanRelation(ArrayList chain, RelationshipNavigationObject obj, boolean putBefore) {
|
||||||
indexerPlugin = (IndexerPluginInterface) pluginManager.getById("SDI-Indexer-Plugin");
|
if (putBefore)
|
||||||
BaseRequest indexRequest = new BaseRequest(req.getUseCaseDescriptor(),req.getCaller(),req.getContext());
|
chain.add(0, obj.getTarget());
|
||||||
|
else
|
||||||
// Info on Public index
|
chain.add(obj.getTarget());
|
||||||
try {
|
if (obj.getChildren() != null)
|
||||||
indexRequest.setCallParameters(getPublicIndexParams(req));
|
obj.getChildren().forEach(r -> scanRelation(chain, r, putBefore));
|
||||||
Index publicIndex = indexerPlugin.getIndex(indexRequest);
|
}
|
||||||
publicIndex.put("flag", "public");
|
|
||||||
toReturn.getIndexes().add(publicIndex);
|
public static class ProjectRelationComparator implements Comparator<Project> {
|
||||||
}catch(ConfigurationException e){
|
@Override
|
||||||
toReturn.addErrorMessage("Unable to gather information on public GIS Centroids Index : "+e.getMessage());
|
public int compare(Project p1, Project p2) {
|
||||||
log.error("Unable to gather information on public GIS Centroids Index",e);
|
|
||||||
}
|
if (p1 == null)
|
||||||
// Info on internal_index
|
return 1;
|
||||||
try {
|
if (p2 == null)
|
||||||
indexRequest.setCallParameters(getInternalIndexParams(req));
|
return -1;
|
||||||
Index internalIndex = indexerPlugin.getIndex(indexRequest);
|
|
||||||
internalIndex.put("flag", "internal");
|
Integer compareResult = null;
|
||||||
toReturn.getIndexes().add(internalIndex);
|
compareResult = compareProjectAgainstRelations(p1, p2);
|
||||||
}catch(ConfigurationException e){
|
log.trace("p1 & p2, comparator result: {}", compareResult);
|
||||||
toReturn.addErrorMessage("Unable to gather information on internal GIS Centroids Index : "+e.getMessage());
|
if (compareResult == null) {
|
||||||
log.error("Unable to gather information on internal GIS Centroids Index",e);
|
log.debug("No relations beetween p1 & p2, checking inverted relations");
|
||||||
}
|
compareResult = compareProjectAgainstRelations(p2, p1);
|
||||||
return toReturn;
|
log.trace("p2 & p1, comparator result: {}", compareResult);
|
||||||
}
|
|
||||||
|
if (compareResult == null) {
|
||||||
@Override
|
log.trace("p1 & p2, are not comparable, returning 0");
|
||||||
public PluginDescriptor getDescriptor() {
|
compareResult = 0;
|
||||||
return DESCRIPTOR;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.debug("p1 & p2, comparator result, returns: {}", compareResult);
|
||||||
private Document getInternalIndexParams(BaseRequest req){
|
return compareResult;
|
||||||
Document callParameters = new Document();
|
}
|
||||||
|
}
|
||||||
callParameters.put("workspace",Files.fixFilename(req.getUseCaseDescriptor().getId()+"_internal_"+req.getContext().getName()));
|
|
||||||
callParameters.put("indexName",Files.fixFilename(req.getUseCaseDescriptor().getId()+"_internal_"+req.getContext().getName()+"_centroids"));
|
public static Integer compareProjectAgainstRelations(Project source, Project target) {
|
||||||
return callParameters;
|
log.debug("comparing source {} and target {}", source.getId(), target.getId());
|
||||||
}
|
List<Relationship> listRel = source.getRelationships();
|
||||||
|
log.debug("relationships of {} are : {}", source.getId(), listRel);
|
||||||
private Document getPublicIndexParams(BaseRequest req){
|
if (listRel != null) {
|
||||||
Document callParameters = new Document();
|
String targetId = target.getId();
|
||||||
callParameters.put("workspace",Files.fixFilename(req.getUseCaseDescriptor().getId()+req.getContext().getName()));
|
for (Relationship relationship : listRel) {
|
||||||
callParameters.put("indexName",Files.fixFilename(req.getUseCaseDescriptor().getId()+req.getContext().getName()+"_centroids"));
|
String relTargetId = relationship.getTargetID();
|
||||||
return callParameters;
|
if (targetId.compareTo(relTargetId) == 0) {
|
||||||
}
|
String relationName = relationship.getRelationshipName();
|
||||||
|
if (relationName.equals(PRECEDES)) {
|
||||||
|
log.debug("source {} [rel {} ] target {}, so source < target ", source.getId(), PRECEDES,
|
||||||
// STATIC ROUTINES
|
target.getId());
|
||||||
|
// source < target
|
||||||
private static final Project setDefaults(Project document){
|
return -1;
|
||||||
ProfiledConcessione c=Serialization.convert(document,ProfiledConcessione.class);
|
} else if (relationName.equals(FOLLOWS)) {
|
||||||
|
log.debug("source {} [rel {} ] target {}, so source > target ", source.getId(), FOLLOWS,
|
||||||
|
target.getId());
|
||||||
|
// source > target
|
||||||
Document doc=c.getTheDocument();
|
return 1;
|
||||||
doc.putIfAbsent(ProfiledConcessione.SOGGETTO,new String[]{"Research Excavation","Archaeology"});
|
}
|
||||||
|
}
|
||||||
doc.putIfAbsent(ProfiledConcessione.DSCRIZIONE_CONTENUTO,"Relazione di fine scavo e relativo abstract; selezione di immagini rappresentative;"
|
}
|
||||||
+ " posizionamento topografico dell'area indagata, pianta di fine scavo.");
|
}
|
||||||
|
log.debug("No relations beetween a & b");
|
||||||
// Super Section
|
return null;
|
||||||
c.getInfo().getAccess().setLicense(
|
}
|
||||||
ConstraintCheck.defaultFor(c.getInfo().getAccess().getLicense(), "CC0-1.0").evaluate());
|
|
||||||
|
|
||||||
|
|
||||||
//RELAZIONE
|
|
||||||
// TODO NB provare se object gia' presente sia usando Document che sub Object
|
|
||||||
doc.putIfAbsent(ProfiledConcessione.RELAZIONE_SCAVO,new Document());
|
|
||||||
Document rel=Serialization.convert(doc.get(ProfiledConcessione.RELAZIONE_SCAVO), Document.class);
|
|
||||||
|
|
||||||
rel.putIfAbsent(ProfiledConcessione.Sections.TITOLO,doc.getString(ProfiledConcessione.NOME)+" relazione di scavo");
|
|
||||||
rel.putIfAbsent(ProfiledConcessione.SOGGETTO,doc.get(ProfiledConcessione.SOGGETTO));
|
|
||||||
rel.putIfAbsent(RegisteredFileSet.CREATION_INFO,c.getInfo().getCreationInfo());
|
|
||||||
rel.putIfAbsent(RegisteredFileSet.ACCESS,c.getInfo().getAccess());
|
|
||||||
Access relAccess=Serialization.convert(rel.get(RegisteredFileSet.ACCESS),Access.class);
|
|
||||||
relAccess.setLicense(ConstraintCheck.defaultFor(relAccess.getLicense(),"CC-BY-4.0").evaluate());
|
|
||||||
relAccess.setPolicy(ConstraintCheck.defaultFor(relAccess.getPolicy(), AccessPolicy.OPEN).evaluate());
|
|
||||||
|
|
||||||
//ABSTRACT Relazione
|
|
||||||
doc.putIfAbsent(ProfiledConcessione.ABSTRACT_RELAZIONE,new Document());
|
|
||||||
Document abs=Serialization.convert(doc.get(ProfiledConcessione.ABSTRACT_RELAZIONE),Document.class);
|
|
||||||
abs.putIfAbsent(ProfiledConcessione.Sections.TITOLO,doc.getString(ProfiledConcessione.NOME)+" abstract relazione di scavo");
|
|
||||||
abs.putIfAbsent(RegisteredFileSet.CREATION_INFO,c.getInfo().getCreationInfo());
|
|
||||||
abs.putIfAbsent(RegisteredFileSet.ACCESS,c.getInfo().getAccess());
|
|
||||||
Access absAccess=Serialization.convert(abs.get(RegisteredFileSet.ACCESS),Access.class);
|
|
||||||
absAccess.setLicense(ConstraintCheck.defaultFor(absAccess.getLicense(),"CC-BY-4.0").evaluate());
|
|
||||||
absAccess.setPolicy(ConstraintCheck.defaultFor(absAccess.getPolicy(), AccessPolicy.OPEN).evaluate());
|
|
||||||
|
|
||||||
//TODO complete setDefaults
|
|
||||||
//IMMAGINI RAPPRESENTATIVE
|
|
||||||
|
|
||||||
|
|
||||||
if(doc.containsKey(ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE)) {
|
|
||||||
for (BsonValue bsonValue : doc.toBsonDocument(null, null).
|
|
||||||
getArray(ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE)) {
|
|
||||||
|
|
||||||
BsonDocument imgDocument = bsonValue.asDocument();
|
|
||||||
imgDocument.putIfAbsent(ProfiledConcessione.SOGGETTO,new BsonString(doc.getString(ProfiledConcessione.SOGGETTO)));
|
|
||||||
// imgDocument.putIfAbsent(RegisteredFileSet.CREATION_INFO,this.getInfo().getCreationInfo());
|
|
||||||
// imgDocument.putIfAbsent(RegisteredFileSet.CREATION_INFO,new BsonDocument(new Document()));
|
|
||||||
// imgDocument.putIfAbsent(RegisteredFileSet.ACCESS,this.getInfo().getAccess());
|
|
||||||
// Access absAccess=rel.get(RegisteredFileSet.ACCESS,Access.class);
|
|
||||||
// absAccess.setLicense(ConstraintCheck.defaultFor(absAccess.getLicense(),"CC-BY-4.0").evaluate());
|
|
||||||
// absAccess.setPolicy(ConstraintCheck.defaultFor(absAccess.getPolicy(), AccessPolicy.OPEN).evaluate());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return c;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,117 @@
|
||||||
|
package org.gcube.application.cms.concessioni.plugins;
|
||||||
|
|
||||||
|
import org.bson.Document;
|
||||||
|
import org.gcube.application.cms.custom.gna.concessioni.model.ProfiledConcessione;
|
||||||
|
import org.gcube.application.cms.plugins.faults.IndexingException;
|
||||||
|
import org.gcube.application.cms.plugins.requests.IndexDocumentRequest;
|
||||||
|
import org.gcube.application.cms.plugins.requests.StepExecutionRequest;
|
||||||
|
import org.gcube.application.cms.serialization.Serialization;
|
||||||
|
import org.gcube.application.cms.tests.TestDocuments;
|
||||||
|
import org.gcube.application.cms.tests.plugins.BasicPluginTest;
|
||||||
|
import org.gcube.application.geoportal.common.model.JSONPathWrapper;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.Project;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.accounting.Context;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.accounting.User;
|
||||||
|
import org.gcube.application.geoportal.common.model.document.filesets.RegisteredFileSet;
|
||||||
|
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static junit.framework.TestCase.*;
|
||||||
|
|
||||||
|
public class ConcessioniPluginTests extends BasicPluginTest {
|
||||||
|
|
||||||
|
public static final String SCOPE_TEST = "/gcube/devsec/devVRE";
|
||||||
|
public static final String USERNAME = "francesco.mangiacrapa";
|
||||||
|
public static final String UCD_ID = "concessioni-estere";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLoad(){
|
||||||
|
Assert.assertTrue(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//@Test
|
||||||
|
public void testDefaults() throws IOException {
|
||||||
|
Project c= TestDocuments.documentMap.get("dummy.json");
|
||||||
|
|
||||||
|
LocalDateTime start = LocalDateTime.now();
|
||||||
|
c.getTheDocument().put(ProfiledConcessione.DATA_INZIO_PROGETTO,start);
|
||||||
|
c.getTheDocument().put(ProfiledConcessione.DATA_FINE_PROGETTO,start);
|
||||||
|
|
||||||
|
c.getTheDocument().put(ProfiledConcessione.POSIZIONAMENTO_SCAVO,new Document());
|
||||||
|
c.getTheDocument().put(ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE,new Document[]{new Document()});
|
||||||
|
c.getTheDocument().put(ProfiledConcessione.PIANTE_FINE_SCAVO,new Document[]{new Document()});
|
||||||
|
|
||||||
|
c= (ProfiledConcessione) ConcessioniLifeCycleManager.setDefaults(c);
|
||||||
|
|
||||||
|
System.out.println("Obtained "+Serialization.write(c));
|
||||||
|
|
||||||
|
assertNotNull(c.getTheDocument().get(ProfiledConcessione.SOGGETTO));
|
||||||
|
assertNotNull(c.getTheDocument().getString(ProfiledConcessione.DESCRIZIONE_CONTENUTO));
|
||||||
|
|
||||||
|
assertNotNull(c.getTheDocument().get(ProfiledConcessione.DATA_INZIO_PROGETTO));
|
||||||
|
assertEquals(Serialization.convert(c.getTheDocument().get(ProfiledConcessione.DATA_INZIO_PROGETTO),LocalDateTime.class),start);
|
||||||
|
assertNotNull(c.getTheDocument().get(ProfiledConcessione.DATA_FINE_PROGETTO));
|
||||||
|
assertEquals(Serialization.convert(c.getTheDocument().get(ProfiledConcessione.DATA_FINE_PROGETTO),LocalDateTime.class),start);
|
||||||
|
|
||||||
|
assertNotNull(c.getTheDocument().get(ProfiledConcessione.RELAZIONE_SCAVO));
|
||||||
|
Document rel = Serialization.convert(c.getTheDocument().get(ProfiledConcessione.RELAZIONE_SCAVO), Document.class);
|
||||||
|
assertNotNull(rel.get(ProfiledConcessione.Sections.TITOLO));
|
||||||
|
assertNotNull(rel.get(ProfiledConcessione.SOGGETTO));
|
||||||
|
assertNull(rel.get(RegisteredFileSet.CREATION_INFO));
|
||||||
|
assertNull(rel.get(RegisteredFileSet.ACCESS));
|
||||||
|
|
||||||
|
Document abs = Serialization.convert(c.getTheDocument().get(ProfiledConcessione.ABSTRACT_RELAZIONE), Document.class);
|
||||||
|
assertNotNull(abs.get(ProfiledConcessione.Sections.TITOLO));
|
||||||
|
assertNull(abs.get(RegisteredFileSet.CREATION_INFO));
|
||||||
|
assertNull(abs.get(RegisteredFileSet.ACCESS));
|
||||||
|
|
||||||
|
|
||||||
|
Document pos = Serialization.convert(c.getTheDocument().get(ProfiledConcessione.POSIZIONAMENTO_SCAVO), Document.class);
|
||||||
|
assertNotNull(pos.get(ProfiledConcessione.Sections.TITOLO));
|
||||||
|
assertNotNull(pos.get(ProfiledConcessione.Sections.ABSTRACT));
|
||||||
|
assertNotNull(pos.get(ProfiledConcessione.Layers.TOPIC));
|
||||||
|
assertNotNull(pos.get(ProfiledConcessione.Layers.SUB_TOPIC));
|
||||||
|
assertNull(pos.get(RegisteredFileSet.CREATION_INFO));
|
||||||
|
assertNull(pos.get(RegisteredFileSet.ACCESS));
|
||||||
|
|
||||||
|
|
||||||
|
JSONPathWrapper wrapper = new JSONPathWrapper(c.getTheDocument().toJson());
|
||||||
|
assertTrue(c.getTheDocument().containsKey(ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE));
|
||||||
|
c.getTheDocument().get(ProfiledConcessione.IMMAGINI_RAPPRESENTATIVE, List.class).forEach(o -> {
|
||||||
|
try{
|
||||||
|
Document img = Serialization.asDocument(o);
|
||||||
|
assertNotNull(img.get(ProfiledConcessione.SOGGETTO));
|
||||||
|
assertNull(img.get(RegisteredFileSet.CREATION_INFO));
|
||||||
|
assertNull(img.get(RegisteredFileSet.ACCESS));
|
||||||
|
}catch (Throwable t){
|
||||||
|
System.out.println("Unable to read IMG "+o);
|
||||||
|
t.printStackTrace();
|
||||||
|
fail(t.getMessage());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
assertTrue(c.getTheDocument().containsKey(ProfiledConcessione.PIANTE_FINE_SCAVO));
|
||||||
|
c.getTheDocument().get(ProfiledConcessione.PIANTE_FINE_SCAVO, List.class).forEach(o -> {
|
||||||
|
try{
|
||||||
|
Document pianta = Serialization.asDocument(o);
|
||||||
|
assertNotNull(pianta.get(ProfiledConcessione.Sections.TITOLO));
|
||||||
|
assertNotNull(pianta.get(ProfiledConcessione.Sections.ABSTRACT));
|
||||||
|
assertNotNull(pianta.get(ProfiledConcessione.Layers.TOPIC));
|
||||||
|
assertNotNull(pianta.get(ProfiledConcessione.Layers.SUB_TOPIC));
|
||||||
|
assertNull(pianta.get(RegisteredFileSet.CREATION_INFO));
|
||||||
|
assertNull(pianta.get(RegisteredFileSet.ACCESS));
|
||||||
|
}catch (Throwable t){
|
||||||
|
System.out.println("Unable to read pianta "+o);
|
||||||
|
t.printStackTrace();
|
||||||
|
fail(t.getMessage());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue