Commit Graph

101 Commits

Author SHA1 Message Date
Costantino Perciante 187730a87e added junit test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133039 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-11 10:00:23 +00:00
Costantino Perciante 279625a541 one more junit test added
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133015 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-11 08:05:48 +00:00
Costantino Perciante e54a81eec2 Assign dataset to group no longer uses the jackan client, but the ckan apis directly
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133014 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-11 08:05:12 +00:00
Costantino Perciante 357d242cd6 group name now looks like group-name and no longer group_name
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133005 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-10 15:11:38 +00:00
Costantino Perciante 10db5b07d2 added trim method calls to information retrieved from IS
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@132813 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-06 12:40:37 +00:00
Costantino Perciante 81cd4aa4b3 test of file existence performed over http only
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@132806 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-06 11:53:55 +00:00
Costantino Perciante 55311493ba minor fix for application profile reader
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@132285 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-01 14:45:51 +00:00
Costantino Perciante bc442f5caf minor fixes: the association of a dataset to a group is always performed by the sysadmin
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@132002 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-28 16:12:40 +00:00
Costantino Perciante cf91c2721a minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131998 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-28 14:53:38 +00:00
Costantino Perciante c3a30f738c removed stack trace for existProductWithNameOrId method
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131996 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-28 14:48:43 +00:00
Costantino Perciante 1d46a200e6 minor fix to regex for group and product titles mapping
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131993 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-28 14:40:32 +00:00
Costantino Perciante 80c29474f3 minor fix to method's name
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131992 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-28 14:21:27 +00:00
Costantino Perciante 4114bf0f92 Version updated to 2.0.0: several classes changed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131978 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-28 12:49:40 +00:00
Costantino Perciante 0b1428efd8 added methods to manage groups
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131949 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-28 09:40:12 +00:00
Costantino Perciante ec1dac7750 added methods to manage groups
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131818 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-26 16:34:48 +00:00
Costantino Perciante 9ed1027b67 fix to existsProductWithNameOrId method
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131771 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-26 08:32:03 +00:00
Costantino Perciante cb0c641ae4 log added, method to check if a dataset already exists fixed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131747 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-23 12:37:32 +00:00
Costantino Perciante 6295a91bae fix in checkrole method
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131418 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-15 15:41:33 +00:00
Costantino Perciante 5fa2475614 http session attributes moved into the ckan library
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131393 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-15 14:28:42 +00:00
Costantino Perciante fbb3a28851 minor changes to class ApplicationProfileScopePerUrlReader (method getScopePerUrl is now static)
The utility method to merge a key and the scope has been moved within the library

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131387 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-15 13:43:15 +00:00
Costantino Perciante 40459ae18b removed embedded mapping for production root
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131363 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-14 16:00:10 +00:00
Costantino Perciante ff6df17384 minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131353 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-14 14:23:30 +00:00
Costantino Perciante 5d0fa734d5 pom fix for new metadata retriever
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131302 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-12 15:56:30 +00:00
Costantino Perciante 9d02712c78 removed no longer needed method to retrieve user organization's admin
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131292 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-12 13:01:06 +00:00
Costantino Perciante 78f8494381 To set visible/private a product the sysadmin api key is used
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131291 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-12 13:00:30 +00:00
Costantino Perciante 6ed9d7eeff Minor fix to getLicenses method
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131274 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-12 08:39:49 +00:00
Costantino Perciante 73a187b382 minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131267 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-09 14:38:05 +00:00
Costantino Perciante f8de0ce20a distro updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131218 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-08 13:15:23 +00:00
Costantino Perciante 5ce7b9899b minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131217 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-08 13:13:49 +00:00
Costantino Perciante 51ae09387d Added code to discover Application Profile DataCatalogueMapScopesUrls
Minor fixes

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131116 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-09-05 16:03:27 +00:00
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