Commit Graph

71 Commits

Author SHA1 Message Date
Costantino Perciante 336b41f723 improved comments to some methods
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131100 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-05 07:46:00 +00:00
Costantino Perciante e101fe9786 fixed getRelationships: it now supports one parameter only too
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131081 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-02 09:18:11 +00:00
Costantino Perciante d93fc8f59c comment fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131070 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-01 14:57:01 +00:00
Costantino Perciante ad3d646db5 metadata discovery dependency shifted to range [1.0, 2.0)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131031 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-08-29 14:29:53 +00:00
Costantino Perciante 59a36e293b minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130976 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-08-04 16:25:57 +00:00
Costantino Perciante 41c8b09ee7 Support added for datasets' relationships (added methods for creating, deleting and retrieving relationships between datasets). Some problems are reported here https://support.d4science.org/issues/4455
Test methods added too. The above methods all use the REST APIs since I wasn't able to make things properly work through jackan

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130975 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-08-04 16:24:39 +00:00
Costantino Perciante 7c662a0c93 factory class added
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130932 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-08-01 16:02:51 +00:00
Costantino Perciante e257569657 added scm
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130929 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-08-01 15:35:23 +00:00
Costantino Perciante fc8aa58958 fixed root production organization name
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130671 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-22 07:44:36 +00:00
Costantino Perciante 0c9a7bda53 changed visibility
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130666 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-21 20:19:44 +00:00
Costantino Perciante 580d19bbf0 fix for production root
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130664 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-21 20:09:25 +00:00
Costantino Perciante 52e0ebcf5c log level fixed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130425 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-14 16:05:41 +00:00
Costantino Perciante bf7e442304 Added code and exception to solve ties at root scope level when querying for service endpoints
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130418 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-14 16:00:38 +00:00
Costantino Perciante d82c7e0279 dataset id is always generated automatically
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130342 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-14 08:45:24 +00:00
Costantino Perciante 183a148239 added method to retrieve ckan licenses beans
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130316 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-13 14:21:24 +00:00
Costantino Perciante c2de9da3c7 added disconnect connection
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130210 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-10 16:45:05 +00:00
Costantino Perciante 98def5426d if more than one resources with the same name is found, just take the information from the first one
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@130175 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-08 13:50:22 +00:00
Costantino Perciante 63a129ab5b minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129922 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-05 12:25:28 +00:00
Costantino Perciante 5c28cbf40c connection request/close fixed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129877 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-04 14:44:41 +00:00
Costantino Perciante d96572a771 changed name to the interface
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129808 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-07-02 21:57:46 +00:00
Costantino Perciante edcddc6a5b ckan roles enumerators removed from here
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129626 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-29 10:09:50 +00:00
Costantino Perciante 6f654614a8 minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129623 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-29 09:58:11 +00:00
Costantino Perciante 53edd1278f Role fixed (they were added into the usermanagement)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129622 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-29 09:52:07 +00:00
Costantino Perciante e5b70d599c Minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129617 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-29 09:45:18 +00:00
Costantino Perciante 6507f61021 The portlet url is now retrieved from the infrastructure according to the scope
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129616 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-29 09:44:24 +00:00
Costantino Perciante d1fc9d01ae Updated getUrlFromDatasetIdOrName() method
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129610 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-29 09:17:23 +00:00
Costantino Perciante 4d18dae66c The dataset id will be always generated by ckan
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129590 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-28 16:31:25 +00:00
Costantino Perciante 2a3a247351 removed useless modifier
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129563 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-28 15:19:45 +00:00
Costantino Perciante 4b967fd9a8 Fix for getUrlFromDatasetIdOrName
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129482 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-27 14:56:47 +00:00
Costantino Perciante 662eb869cc fix for dataset visibility
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129480 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-27 14:44:00 +00:00
Costantino Perciante b19e751083 Minor fix: there is a bug into the jackan library, the list of users retrieved by organization.getUsers() is always null. We need to invoke client.getOrganization(orgName).getUsers();
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129447 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-27 08:04:07 +00:00
Costantino Perciante 43b4e938c0 The methods isAlreadyRoleSet, getOrganizationsByUser and getGroupsAndRolesByUser no longer use the database connection. They now use the jackan client
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129444 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-26 19:59:26 +00:00
Costantino Perciante 29950eff98 Updated the liferay's roles that map the ones of ckan (editor, member, admin)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129311 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-22 15:25:17 +00:00
Costantino Perciante 75c7c16c00 Closeable http client closed correctly now
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129195 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-21 09:14:24 +00:00
Costantino Perciante cb0f751b06 pom fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129187 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-20 15:18:49 +00:00
Costantino Perciante 22e41c9f65 create method fixed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129186 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-20 15:18:30 +00:00
Costantino Perciante e088102978 Added createOrganization method to create a ckan organization (it uses the ckan-connector)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129183 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-20 14:05:29 +00:00
Costantino Perciante 2dc35c2424 Removed useless test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129172 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-20 10:16:09 +00:00
Costantino Perciante 90310c6f6e Minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129170 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-20 10:13:12 +00:00
Costantino Perciante e63f7de731 Fixed connection pool handling
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129169 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-20 09:29:58 +00:00
Costantino Perciante a2da9329f0 log added
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129167 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-20 08:30:18 +00:00
Costantino Perciante 6b8c310d30 minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129166 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-20 08:13:46 +00:00
Costantino Perciante 1425113df5 The CKanClient is created just once
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129164 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-18 15:12:15 +00:00
Costantino Perciante 846b30b24f minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129162 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-18 14:59:07 +00:00
Costantino Perciante 3a2ab0b8c1 Added a method to retrieve all organizations' names
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129155 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-18 08:12:47 +00:00
Costantino Perciante 9ea6242cf0 Minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129154 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-18 08:05:10 +00:00
Costantino Perciante a1e25a6208 minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129152 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-17 20:42:31 +00:00
Costantino Perciante 02ab17035d added connection pool for jdbc. Fixed getRolesForOrganizations and the user id is now retrieved using jackan
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129151 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-17 20:17:42 +00:00
Costantino Perciante 0791e7f065 Utils method function created. Now it is possible to update automatically the role a user has into an organization
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129147 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-16 16:09:26 +00:00
Costantino Perciante 53ab6322cf minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129122 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-14 15:50:47 +00:00