Commit Graph

380 Commits

Author SHA1 Message Date
Luca Frosini 08312a1a19 Fixed GRSF utility 2022-05-23 15:09:30 +02:00
Luca Frosini ff7b8d7399 Added moderation link 2022-05-19 12:06:59 +02:00
Luca Frosini e3e8ffd393 Changed GRSF tests 2022-05-12 16:25:58 +02:00
Luca Frosini d9ed838a89 Fixing user cache management #23303 2022-05-10 15:59:04 +02:00
Luca Frosini 4dd7aa5efb Fixed issue with thread 2022-05-10 11:13:50 +02:00
Luca Frosini 623a5120df Restored previous version 2022-04-28 15:11:39 +02:00
Luca Frosini 5c22db37c7 Added the possibility of using '_' in group id 2022-04-28 10:48:26 +02:00
Luca Frosini 4d290b3a13 Fixed tests 2022-04-27 16:44:26 +02:00
Luca Frosini 35feb32c93 Fixed error message 2022-04-21 17:51:57 +02:00
Luca Frosini 04090463c9 Fixed user cache management 2022-04-21 17:44:34 +02:00
Luca Frosini 7acdc6a718 User cache is removed on configuration update/create 2022-04-21 17:18:02 +02:00
Luca Frosini c227d5069d Fixed add to organization 2022-04-21 17:12:41 +02:00
Luca Frosini 7db232b970 Added synchronized to methods 2022-04-21 16:48:27 +02:00
Luca Frosini 38b3c9aa72 Added a way to remove user from cache 2022-04-21 16:43:24 +02:00
Luca Frosini 49b8424965 Added support for status ANY 2022-04-21 15:41:13 +02:00
Luca Frosini 88bea376f3 Using sysadmin to list item in moderation. Filtering own item 2022-04-21 13:18:15 +02:00
Luca Frosini a2c2c0044e Commented annotations for role filtering refs #23103 2022-04-12 11:48:12 +02:00
Luca Frosini 4c427b3e26 Fixed javadoc 2022-04-11 16:21:04 +02:00
Luca Frosini e198f1a089 Added a reset for api key 2022-04-11 16:14:33 +02:00
Luca Frosini 1ccec24890 Used sysadmin to approve/reject the item 2022-04-11 16:10:49 +02:00
Luca Frosini 8395cebf3c Adding docs 2022-04-11 15:39:11 +02:00
Luca Frosini 9cb889e227 Added requested header in base class 2022-04-11 15:19:59 +02:00
Luca Frosini e7699bfc95 Removed the annotation for the moment 2022-04-11 14:23:37 +02:00
Luca Frosini 1262179b8f Trying to add annotation to base class for doc generation 2022-04-11 14:20:18 +02:00
Luca Frosini 17714db2a7 Enhancing generated docs 2022-04-11 14:15:06 +02:00
Luca Frosini 9411de7341 Fixed subject 2022-04-11 10:52:28 +02:00
Luca Frosini e10fec1a07 Cleaning code 2022-04-08 17:54:19 +02:00
Luca Frosini 74753120ab added filter 2022-04-08 17:53:15 +02:00
Luca Frosini 8822df842d Fixed bug #23154 2022-04-08 17:48:28 +02:00
Luca Frosini 51d1f11d56 Fixing roles 2022-04-08 13:50:01 +02:00
Luca Frosini 6c86abbd8a Ported master branch patch 2022-04-07 17:39:49 +02:00
Luca Frosini 8c455f0f05 Merge remote-tracking branch 'origin/master' into feature/23103 2022-04-07 17:38:02 +02:00
Luca Frosini 0f86ce828d Fixed messaging 2022-04-07 16:24:46 +02:00
Luca Frosini e2763d6804 Fixed required role to create/update Profile 2022-04-07 11:41:58 +02:00
Luca Frosini 48bf3ec676 Merge remote-tracking branch 'origin/master' into feature/23103 2022-04-07 11:39:09 +02:00
Luca Frosini bcd6ee9bbe Fixed messages 2022-04-06 17:15:46 +02:00
Luca Frosini debc1330f7 Fixed offset in package list 2022-04-06 12:01:11 +02:00
Luca Frosini cceed61fba Added authorship in the class 2022-04-05 17:32:03 +02:00
Luca Frosini 9a0d965745 Fixing moderation message 2022-04-04 18:12:31 +02:00
Luca Frosini b90a3c97d4 Fixing role filtering 2022-04-01 18:37:45 +02:00
Luca Frosini db98454ee4 Adding role filtering 2022-04-01 15:49:44 +02:00
Luca Frosini 8a3159ee4b Fixing docs 2022-03-31 18:48:31 +02:00
Luca Frosini 489cd05268 Fixing path 2022-03-31 18:32:38 +02:00
Luca Frosini b572c22003 Fixing docs path 2022-03-31 18:19:16 +02:00
Luca Frosini 100133b21c Fixed docs path 2022-03-31 18:11:20 +02:00
Luca Frosini 5d3dc89766 Added docs management 2022-03-31 18:04:55 +02:00
Luca Frosini 36977e1c16 Fixing Social Message delivery 2022-03-31 15:49:22 +02:00
Luca Frosini 2bef5f60ec Fixed role checks 2022-03-31 13:05:33 +02:00
Luca Frosini f41f43fff3 fixed javadoc 2022-03-31 11:44:57 +02:00
Luca Frosini 013af6c3f3 Adding support for Messages 2022-03-29 15:17:30 +02:00
Luca Frosini e291485133 Fixing Code to send messages via social 2022-03-28 16:03:34 +02:00
Luca Frosini 9bb4c11602 Adding message facilities 2022-03-25 18:38:26 +01:00
Luca Frosini 1a581e39ef Fixed code 2022-03-24 17:33:27 +01:00
Luca Frosini e8bdb5b880 Fixed code 2022-03-24 17:32:12 +01:00
Luca Frosini 2370d4daac Cleaned code 2022-03-24 17:30:40 +01:00
Luca Frosini 79aabdd91e Fixed fullname 2022-03-24 16:12:37 +01:00
Luca Frosini d39350aedf Trying to fix the support of clientID 2022-03-23 14:10:57 +01:00
Luca Frosini e7a2c2edd4 Added check on null eMail, fullName or jobTitle to support clientID 2022-03-22 14:42:21 +01:00
Luca Frosini b24b600118 Removed non up to date javadoc 2022-02-28 15:59:58 +01:00
Luca Frosini f797247c5f Switching code to SecretManagerProvider 2022-02-28 15:43:40 +01:00
Luca Frosini 51fc8627b8 Improved code readibility 2022-02-28 10:28:48 +01:00
Luca Frosini 0073fb84ce Removed Request Filter because SecremManager reset is no more needed 2022-02-25 16:18:47 +01:00
Luca Frosini c85b66e026 Added constraint in query 2022-02-24 12:09:42 +01:00
Luca Frosini ea71d5d8e5 Old configuration is not deleted on purge 2022-02-24 12:01:55 +01:00
Luca Frosini b74d768630 Fixing update configuration 2022-02-23 17:49:27 +01:00
Luca Frosini 1dbf73bc41 Fixed bug on updated 2022-02-23 17:35:21 +01:00
Luca Frosini f298f59dc5 Fixing configuration management 2022-02-23 17:26:12 +01:00
Luca Frosini 8b43f00fb2 Fixed configuration issues 2022-02-22 16:49:05 +01:00
Luca Frosini ef2cb362f3 Fixing old and new configuration management 2022-02-22 15:42:53 +01:00
Luca Frosini e0a018e083 The id of the resource is not set for old configuration 2022-02-22 15:40:44 +01:00
Luca Frosini 1a4f5e81a4 Fixing new config creation/update 2022-02-22 15:39:41 +01:00
Luca Frosini b0e6aff70c fixed configurations path 2022-02-22 10:46:44 +01:00
Luca Frosini a52f8980e8 Fixed Jersey REST paths 2022-02-22 10:33:51 +01:00
Luca Frosini eca3d130c8 Improving configuration on IS 2022-02-22 09:34:07 +01:00
Luca Frosini 7b21261ce6 fixed returns 2022-02-21 13:17:57 +01:00
Luca Frosini 303c092cfb content-type is get from gcat-api to avoid conflicts 2022-02-21 10:34:52 +01:00
Luca Frosini 49dd701c01 Moved here the constant 2022-02-17 17:10:08 +01:00
Luca Frosini 91fe3633c2 Added facilities to manage decrypted and encrypted values 2022-02-17 16:32:54 +01:00
Luca Frosini 0155efbd99 ckanDB and sysAdminToken are provided only to Catalogue-Manager 2022-02-16 22:59:27 +01:00
Luca Frosini b66b1fcd56 Adding CKAN DB in configuration 2022-02-16 22:34:30 +01:00
Luca Frosini bd22fb48c3 Added defaults for missing configuration properties 2022-02-15 21:34:50 +01:00
Luca Frosini 4df3e7cf5c Implementing configuration management 2022-02-15 21:18:02 +01:00
Luca Frosini c8e383ea3c Added configuration on IS management 2022-02-15 16:22:53 +01:00
Luca Frosini 2edc222f6e Implementing Configuration Management refs #22658 2022-02-15 09:59:02 +01:00
Luca Frosini bd05ffd7b3 Switching to new authz 2022-01-31 15:40:30 +01:00
Luca Frosini 3e1b48d645 Switching to new authz 2022-01-31 11:59:58 +01:00
Luca Frosini fab1cb240a Switching gcat credentials to new IAM authz 2022-01-28 17:37:33 +01:00
Luca Frosini cf19709756 Added request filters 2021-12-21 13:41:28 +01:00
Luca Frosini d11fb1849d Renamed class 2021-12-21 09:19:16 +01:00
Luca Frosini 6cc6d855da Fixed REST interface 2021-12-21 08:58:13 +01:00
Luca Frosini 917e50b684 Using gCat API interface 2021-12-20 14:12:57 +01:00
Luca Frosini 8c3b4b5495 Added empty thrash API 2021-12-20 13:46:50 +01:00
Luca Frosini a8732e2045 Switched to UriResolverManager 2021-12-16 15:13:54 +01:00
Luca Frosini 65aaefa8d2 Ported code to storagehub-application-persistence 2021-12-16 12:33:49 +01:00
Luca Frosini bdb930092f Fixed moderation bugs 2021-12-15 18:03:51 +01:00
Luca Frosini dda7bf6234 Allowed organizations in Generic Resource are now defined as JSON 2021-12-14 19:14:30 +01:00
Luca Frosini 190f500684 Removed enforcement of moderation 2021-12-07 16:48:16 +01:00
Luca Frosini 4f998f90ca Added dependencies no more provided by others dependencies 2021-12-07 14:46:12 +01:00
Luca Frosini 20ae014249 Switched code to use authorization-utils improvements 2021-12-07 14:32:47 +01:00
Luca Frosini dd6bf694b4 Switched user info retrieving to authorization utils library 2021-12-06 17:45:15 +01:00
Luca Frosini 58674cec7a Implemented and tested bulk delete 2021-12-03 17:41:38 +01:00
Luca Frosini abc354ee1b Added owner filter in lsiting and deleteAll 2021-12-03 11:25:32 +01:00
Luca Frosini b438820f86 Changes made due to gcat-api reorganization 2021-12-02 11:50:18 +01:00
Luca Frosini f845e52a5a Removed ContextUtility class and started using authorization-utils lib 2021-12-01 17:12:04 +01:00
Luca Frosini e1423021d9 Stated switching to new authz 2021-11-30 11:48:35 +01:00
Luca Frosini 41260b972d Fixed test 2021-11-26 12:38:37 +01:00
Luca Frosini c9b2a3b6f7 The moderation thread has been generalised form the implementation 2021-11-26 12:27:31 +01:00
Luca Frosini 06c4e5f539 Reorganizing packages 2021-11-26 12:00:13 +01:00
Luca Frosini 9069397b58 Getting catalogue moderators from social 2021-11-25 17:58:56 +01:00
Luca Frosini 69a22d2461 Getting usernames with role from social service 2021-11-25 17:50:14 +01:00
Luca Frosini 04ae243f1d Commented zulip interaction 2021-11-25 14:20:08 +01:00
Luca Frosini 0f3c5e38e0 Implemented zulip interaction 2021-11-23 17:53:37 +01:00
Luca Frosini d7c6257978 Fixing zulip interaction 2021-11-22 16:38:56 +01:00
Luca Frosini e769f7ef2b Revisited moderation code 2021-11-19 16:49:43 +01:00
Luca Frosini 3333d15b87 Removed whitespace block 2021-11-19 11:17:34 +01:00
Luca Frosini 25bf1ab1c5 Improving code 2021-11-18 17:53:00 +01:00
Luca Frosini bdbb954ba5 improving the zulip integration 2021-11-18 17:49:24 +01:00
Luca Frosini f00127a82a Reorganized function order 2021-11-18 16:54:17 +01:00
Luca Frosini 904e475f2f Removed old commented code 2021-11-18 16:53:59 +01:00
Luca Frosini 8d1fc7f045 Adding Zulip interaction 2021-11-18 16:53:46 +01:00
Luca Frosini 89b98f625f Adding Zulip interaction 2021-11-17 17:47:58 +01:00
Luca Frosini 8a1a7738bc Implementing moderation 2021-11-16 18:57:05 +01:00
Luca Frosini eb27d67845 Adding feature #21345 2021-06-21 17:09:49 +02:00
Luca Frosini dfe711f419 Author will be in the form <Surname Name> #21479 2021-06-21 15:24:22 +02:00
Luca Frosini 1d81da329a committing 2021-06-16 10:31:23 +02:00
Luca Frosini 72164da170 Implementing feature 2021-05-14 15:34:11 +02:00
Luca Frosini b31befdc8d Implementing content moderation 2021-05-11 16:05:39 +02:00
Luca Frosini e00b2010d1 Implementing feature 2021-05-11 11:43:24 +02:00
Luca Frosini bf637e439f Rationalizing configuration got from IS 2021-05-10 17:05:05 +02:00
Luca Frosini 7051a5b952 Enhanced version to start implemented content moderation feature 2021-05-10 16:16:18 +02:00
Luca Frosini 6fad1ba8d1 improved code 2021-04-20 15:41:54 +02:00
Luca Frosini 6d00320353 Fixed content-disposition 2021-04-19 14:50:30 +02:00
Luca Frosini 8cf2e5a3d8 Fixed bug #21059 2021-04-16 16:14:13 +02:00
Luca Frosini 68b3e2c71a backported fixes 2021-04-14 15:08:11 +02:00
Luca Frosini 6cab331db0 Merge remote-tracking branch 'origin/feature/20225' 2021-04-14 15:07:14 +02:00
Luca Frosini 08a2b09b57 removed uneeded imports 2021-04-14 14:53:18 +02:00
Luca Frosini dd8919f9de Fixing validation bug 2021-03-29 16:15:49 +02:00
Luca Frosini 34d9c0759d Fixed null pointer exception 2021-03-29 14:13:57 +02:00
Luca Frosini e90829157a Merge branch 'feature/20225' of gitea@code-repo.d4science.org:gCubeSystem/gcat.git into feature/20225 2021-03-29 11:01:01 +02:00
Luca Frosini 98aec729cc Fixing GeoJson validation 2021-03-29 10:58:42 +02:00
Luca Frosini 97a28c3157 Improved error message 2021-03-15 10:12:09 +01:00
Luca Frosini 0d5c734d5b Improved error management 2021-03-15 10:02:38 +01:00
Luca Frosini d0eb17812b Improved returned error messages 2021-03-12 18:21:48 +01:00
Luca Frosini 1a6d5733a2 Improving error message 2021-03-12 18:18:25 +01:00
Luca Frosini 2f5885579b Ported patch from branch feature/20965 2021-03-12 12:52:19 +01:00
Luca Frosini 1877291fba Patched the upperBound calculation 2021-03-12 12:44:01 +01:00
Luca Frosini 4ece53108f Ported bug fix made in version 1.4.5 2021-03-09 12:16:42 +01:00
Luca Frosini dbefb6c6e2 Removed owner_org from the read item refs #20919 2021-03-09 11:30:12 +01:00
Luca Frosini 93d886ba37 Fixed wiki link due to wiki reoganization 2021-03-02 16:16:53 +01:00
Luca Frosini 501b65c92d Moved links from http to https refs #20778 2021-02-22 09:29:52 +01:00
Luca Frosini 243cae757f Fixed check on controlled vocabulary 2021-02-17 17:30:25 +01:00
Luca Frosini bbf1755f72 Removing owner_org key from created/updated/patched item 2021-02-10 14:25:15 +01:00
Luca Frosini 878b5cfae9 Removed owner_org from created/updated/read item 2021-02-10 14:18:38 +01:00
Luca Frosini eb8e0b7bea Commented code which add non mandatory field as empty field if there are
no mandatory fields
2021-02-10 12:26:12 +01:00
Luca Frosini 51b76c89e6 commented code which does not compile due to new gcube-model 2021-02-09 17:12:42 +01:00
Luca Frosini 826a990b42 Ported count method from version 1.4.4 to 2.0.0-SNAPSHOT 2021-02-09 15:44:15 +01:00
Luca Frosini cf0cafdcd6 Fixed changelog and version 2021-02-04 09:40:33 +01:00
Luca Frosini 2d32d782e9 Added count methods for Organization, Groups and Profiles refs #20629 2021-02-03 21:55:32 +01:00
Luca Frosini 786bbc337f Fixed GCat constant 2021-02-03 16:50:23 +01:00
Luca Frosini 4e479f0db0 Implemented count on items 2021-02-03 16:48:42 +01:00
Luca Frosini f258ff80a2 Fixed constant usage 2021-02-03 16:44:28 +01:00
Luca Frosini 09ae3573f8 Added support to get only the number of total items refs #20627 2021-02-03 16:28:17 +01:00
Luca Frosini 989df62fe2 Merge branch 'feature/20225' of
gitea@code-repo.d4science.org:gCubeSystem/gcat.git into feature/20225

Conflicts:
	src/main/java/org/gcube/gcat/profile/ISProfile.java
2021-01-27 11:44:42 +01:00
Luca Frosini 6b011e4e09 Fixed publishing on new Is due to change in gcube model 2021-01-24 23:31:33 +01:00
Luca Frosini 9436e96d90 Fixed profile according to latest version of IS Model and gCube Model 2021-01-11 13:17:53 +01:00
Luca Frosini 275880c428 Adding Configuration read/create to switch to the new IS 2020-12-09 15:33:28 +01:00
Luca Frosini 7a434f999a Fixed patch method 2020-12-02 16:57:39 +01:00
Luca Frosini ab0892eaf3 Migrated gCat from Jackson to gCube Jackson 2020-12-01 16:58:36 +01:00
Luca Frosini 2f5b23addf Improved error message 2020-12-01 15:39:06 +01:00
Luca Frosini 8cd17acfe9 fixed typo 2020-12-01 09:57:48 +01:00
Luca Frosini b384c08972 Refactored code which check basic provided information 2020-12-01 09:55:16 +01:00
Luca Frosini 1733b66c05 Implementing patch method 2020-11-30 19:44:15 +01:00
Luca Frosini 861ddc0f4b Fixed recursion 2020-06-23 15:06:27 +02:00
Luca Frosini ae173ccbd4 Adding the user to all supported organization instead of only to the
organization the item is going to be published.
2020-06-23 13:17:58 +02:00
Luca Frosini 7a0dbf48a9 Added check for supported organizations in list/search method 2020-06-22 19:39:29 +02:00
Luca Frosini 1ef0537f0e Fixing feature 2020-06-22 15:51:11 +02:00
Luca Frosini edbf4cd1d0 Fixing the implementation of the feature 2020-06-22 15:39:37 +02:00
Luca Frosini 62bb1d7a50 Added TODO 2020-06-19 18:26:15 +02:00
Luca Frosini d7cbc03f97 Changing the organization behavior to implement the feature. 2020-06-19 17:32:21 +02:00
Luca Frosini cb963dd702 Fixed CHANGELOG 2020-06-19 12:15:19 +02:00
Luca Frosini 85845fb8fc Fixed logger class 2020-05-29 13:04:17 +02:00
Luca Frosini c7ffb6c9ed Removed unneeded line of codes which causes null pointer bug 2020-05-29 13:03:59 +02:00
Luca Frosini a51c7f9312 Social Post is disabled if not explicitly enabled by the client #19295 2020-05-22 15:24:56 +02:00
Luca Frosini 5a382ce556 Fixed bug 2020-02-04 09:45:26 +01:00
Luca Frosini e9e1539e16 Catching situation where the file was not persisted by gcat 2020-02-03 15:50:58 +01:00
Luca Frosini c6f8ffa4fa Skipping file management for files not persisted 2020-01-23 15:04:51 +01:00
Luca Frosini 62a852ca40 Fixed bug on resource update 2020-01-22 17:35:48 +01:00
Luca Frosini b9c6fb995c Catching null object 2019-12-19 16:21:38 +01:00
Luca Frosini cbf7f04655 Added resolver URL check for preprod. 2019-12-19 14:13:44 +01:00
Luca Frosini 78c60541d8 Fixed dev base url 2019-12-19 12:41:38 +01:00
Luca Frosini 2f655c4ff8 Fixed component 2019-12-05 16:32:24 +01:00
Luca Frosini 6580680f6f Fixing code to allow to operate on VO which does not have a
corresponding organization
2019-10-10 14:26:15 +02:00
Luca Frosini c13656d3e3 Fixed javadoc warning 2019-10-04 17:04:50 +02:00
Luca Frosini f96e9e3d41 Fixed allow list for query parameter in list method 2019-10-04 14:42:44 +02:00
Luca Frosini 7322b7d43e Added allowed list of field instead of checking the ones to be rejected
reject
2019-10-04 14:16:34 +02:00
Luca Frosini 78a54707ec Added the possibility to list items by specifying query parameters (used
for direct query on Slr via Ckan package_search API)
2019-10-01 18:00:40 +02:00
Luca Frosini 9779afe1e5 Added organization parameter to allow client to specify the target
organization in item listing (in VO and ROOT) refs #17635
2019-09-27 17:33:10 +02:00
Luca Frosini 56261f96ab Fixed bug which does not allow to create a new cache because the second
had the same name of the first
2019-09-27 17:24:34 +02:00
Luca Frosini f6b97c7b3d Only admin can manage profiles 2019-09-23 11:15:49 +02:00
Luca Frosini d12ed67446 User Cache is per Scope and not per ckan installation. Fixed this issue 2019-09-18 12:58:03 +02:00