Commit Graph

45 Commits

Author SHA1 Message Date
Costantino Perciante c99954c9d5 Changed structure of the library (which is now a gwt widget basically).
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141741 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-01-24 16:24:22 +00:00
Costantino Perciante 9a07dc0c59 minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@140055 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-16 17:30:17 +00:00
Costantino Perciante a6cde11d39 patchDataset method now performs differently: if a custom field with a given key is present its values won't be replaced, but merged with the new values.
Added a removeCustomField method too: it accepts a key and a value.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139806 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-07 17:32:07 +00:00
Costantino Perciante 5d8ec1875a minor fix for getProductUrl method
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139751 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-07 10:22:48 +00:00
Costantino Perciante 305b470532 added code to discover the uri resolver, create an url given the dataset id and generate it
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139732 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-06 18:01:21 +00:00
Costantino Perciante 0f993230d6 added method getProductsInGroup
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139724 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-06 16:03:39 +00:00
Costantino Perciante 7bef683fd3 added method isDatasetInGroup()
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139714 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-06 14:58:38 +00:00
Costantino Perciante aa2eabadff added method to set the parent group of a group
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@135261 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-02 21:42:17 +00:00
Costantino Perciante 610946dcf5 added get parent groups method
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@135155 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-01 07:26:51 +00:00
Costantino Perciante 495c10958e added remove group method for product
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@135116 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-30 14:10:30 +00:00
Costantino Perciante ce1c7c5f63 product patch is available and allows to edit all the custom fields
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@135095 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-30 09:33:58 +00:00
Costantino Perciante 8d6b1771ec added manage product option
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@135023 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-29 09:28:50 +00:00
Costantino Perciante 9ac732dda2 fixed method to patch resource (needed for grsf publisher)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@134685 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 14:48:43 +00:00
Costantino Perciante 2996d99339 added methods to convert to and from ckan roles
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@134314 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-17 13:03:33 +00:00
Costantino Perciante 71cefc4b77 minor improvements
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@134267 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-16 17:00:48 +00:00
Costantino Perciante cbe92db9d1 added code to set both title and name (if needed) for dataset creation. In case the name is not available, the title is transformed to match a well fitted ckan name
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133894 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-04 10:13:18 +00:00
Costantino Perciante e18c5ff89c Searchability field is now managed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133697 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-28 08:55:13 +00:00
Costantino Perciante 9091c57696 Added methods to delete/retrieve a product
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133211 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-14 15:10:43 +00:00
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
Costantino Perciante 898b9ff04c Metadata profiles lookup removed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129021 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-09 08:05:16 +00:00
Costantino Perciante 0eafcafdc1 Start adding support for Metadata formats
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129019 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-08 16:31:25 +00:00
Costantino Perciante 2e63bc3455 First import
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129006 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-06-07 14:00:05 +00:00