Commit Graph

389 Commits

Author SHA1 Message Date
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 a7962d5f79 Ignored copied file 2020-08-06 12:33:57 +02:00
Luca Frosini 18108d1324 Switched changelog to the new format 2020-08-06 12:26:03 +02:00
Luca Frosini 6f7f71daa6 Fixing changelog 2020-07-13 16:23:08 +02: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 c6b3f53bce Fixed pom for a better management of distro files 2019-11-21 17:01:08 +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
Luca Frosini 3f542a763b Fixed HTTP Error 2019-09-18 12:57:30 +02:00
Luca Frosini 8afc2aa2cf Added check for Profile management. Only editor and admin can do that 2019-09-16 15:46:11 +02:00
Luca Frosini 1c64d870f0 User Cache expires avery 15 minutes 2019-09-16 14:55:57 +02:00
Luca Frosini 11cd97e1c7 Formatted code 2019-09-16 14:48:18 +02:00
Luca Frosini 63246f7cce Added user cache 2019-09-16 12:00:49 +02:00
Luca Frosini d59786d415 Removed the dependency from ckan-util-library 2019-09-12 17:58:39 +02:00
Luca Frosini 0ad1df026e Fixing the feature 2019-09-12 16:05:45 +02:00
Luca Frosini 4a7c0f2a70 Code refactored which enable the following functions. For each request
- the requesting user role and email are retrieved via social networking
service and updated on CKAN.
2019-09-12 14:26:24 +02:00
Luca Frosini 635825ebd9 Error message has been moved in a constant 2019-09-09 14:25:27 +02:00
Luca Frosini 8d7e88ff72 Added the possibility to download the XSD which validate the profile
schema
2019-09-09 14:20:09 +02:00
Luca Frosini a7f35422c9 Fixed client error from 400 Bad Request to 405 Method Not Allowed 2019-09-06 16:55:46 +02:00
Luca Frosini a5bdbc6500 Added the capability to get the profile schema in profile collection 2019-09-06 16:38:15 +02:00
Luca Frosini b0017e0558 Ignored generated directory 2019-07-24 18:25:09 +02:00
Luca Frosini 0986131e1d Merged from release branch
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@181278 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-07-22 09:54:05 +00:00
Luca Frosini 8ffe031cf8 Merged from branch of release 4.14.0
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@179481 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-05-20 15:23:49 +00:00
Luca Frosini 3627189715 Fixing group and tag generation on Item Validator
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177325 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-27 16:36:09 +00:00
Luca Frosini f90b768b39 Fixing group and tag generation on Item Validator
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177319 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-27 13:09:44 +00:00
Luca Frosini 10201a9cea Saparated REST class from Profile management and code to effectively manage profile on IS
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177318 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-27 12:02:20 +00:00
Luca Frosini efec120695 Merged from branch of release 4.13.1 ref #12988
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177280 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-26 13:58:06 +00:00
Luca Frosini 3e13bbbdde Refs #13306: gCat MUST enforce extra field "searchable" in published Items
Task-Url: https://support.d4science.org/issues/13306

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177054 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-08 15:49:30 +00:00
Luca Frosini 280a41dbad Refs #13306: gCat MUST enforce extra field "searchable" in published Items
Task-Url: https://support.d4science.org/issues/13306

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177053 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-08 14:39:09 +00:00
Luca Frosini d1a7a9c16b Refs #13306: gCat MUST enforce extra field "searchable" in published Items
Task-Url: https://support.d4science.org/issues/13306

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177052 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-08 14:31:29 +00:00
Luca Frosini e1de49f00f Refs #13307: Item List must use package_search in place of package_list
Task-Url: https://support.d4science.org/issues/13307

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177051 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-08 14:17:09 +00:00
Luca Frosini 8f27af53e0 Refs #13307: Item List must use package_search in place of package_list
Task-Url: https://support.d4science.org/issues/13307

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177049 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-08 13:40:57 +00:00
Luca Frosini 5066cae1ee Refs #13307: Item List must use package_search in place of package_list
Task-Url: https://support.d4science.org/issues/13307

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177045 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-08 11:25:19 +00:00
Luca Frosini 6f2e32337f Refs #13306: gCat MUST enforce extra field "searchable" in published Items
Task-Url: https://support.d4science.org/issues/13306

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177044 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-08 11:04:20 +00:00
Luca Frosini e1e7a413ba Merged from branch of release 4.13.0
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@177043 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-08 10:10:59 +00:00
Luca Frosini b6891d4d89 Using gcat-api refs #13216
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@176866 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-01-29 16:46:22 +00:00
Luca Frosini f21a714851 Merged from private branch
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@176439 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-01-10 11:29:47 +00:00
Luca Frosini 42badcda3e Committing before merge
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@176438 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-01-10 11:28:38 +00:00
Luca Frosini a0a0f6bbd9 Fixed distro files
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@174590 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-12-05 12:45:13 +00:00
Luca Frosini 9d2a167478 Fixing web.xml
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@174542 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-12-04 15:16:15 +00:00
Luca Frosini 50106016bc Restored commented code
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@174536 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-12-04 13:33:50 +00:00
Luca Frosini 30d8d56598 Renamed Project
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@174534 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-12-04 11:30:19 +00:00
Luca Frosini 6469bf2681 Renamed Project
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@174533 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-12-04 11:29:34 +00:00
Luca Frosini 5743fc03ed Service Refatored and Renamed to gCcat
Refs #12810: Refactor catalogue-ws 

Task-Url: https://support.d4science.org/issues/12810

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@174532 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-12-04 11:06:22 +00:00