Commit Graph

206 Commits

Author SHA1 Message Date
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
Costantino Perciante 5c8605f1dc Other functionalities added to manage the correspondence between ckan and liferay roles map
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129120 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-14 15:05:24 +00:00
Costantino Perciante 7f13048bde minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129118 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-14 12:07:23 +00:00
Costantino Perciante 060b22960d The library has been enhanced with methods to create a dataset and add/delete a resource from this.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129107 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-14 10:31:19 +00:00
Costantino Perciante 7a7981f797 Minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129091 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-13 14:29:49 +00:00
Costantino Perciante 7ffb33200e minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129082 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-13 12:45:24 +00:00
Costantino Perciante ab63c6c83a minor log fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129081 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-13 12:18:37 +00:00
Costantino Perciante 9562f2ce7b minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129080 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-13 12:15:06 +00:00
Costantino Perciante 71e54d17c9 minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129077 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-13 10:29:21 +00:00
Costantino Perciante 11cbdd12d1 minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129076 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-13 10:08:19 +00:00
Costantino Perciante aae6e04e94 Set/reset scope for password decryption
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129075 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-13 10:07:41 +00:00
Costantino Perciante 63e240e5d5 fixed common encryption version
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129072 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-13 09:14:10 +00:00
Costantino Perciante 949cf3b650 minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129059 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-10 14:32:27 +00:00
Costantino Perciante 8b914ba9f1 Added setDatasetPrivate function for visibility
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129058 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-10 14:26:01 +00:00
Costantino Perciante 213d328070 Since ckan can run on a different machine wrt its database, two queries are made against the IS
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129051 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-10 12:15:38 +00:00
Costantino Perciante 2bc573d6c5 minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129048 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-10 07:31:28 +00:00