Commit Graph

179 Commits

Author SHA1 Message Date
Costantino Perciante 8f05166de4 added ALERT_USERS_ON_POST_CREATION field in CkanDataCatalogue resource to be read
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@148359 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-05-08 09:42:44 +00:00
Costantino Perciante 612dcf19a6 added getGroupByName
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@148341 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-05-06 17:22:05 +00:00
Costantino Perciante be0ab0518a removed extras sorting code snippet
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@148318 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-05-05 10:52:23 +00:00
Costantino Perciante 23e1662a2e pom fixes, moved to java 1.8. Version is 2.3
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@148313 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-05-05 10:13:55 +00:00
Costantino Perciante 440cc907e4 added method to fetch dataset also without api key (only public datasets)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@146751 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-04-11 13:18:18 +00:00
Costantino Perciante ebadddd097 gcubedatacatalogue-metadata-discovery fixed at 2.0.0 version
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@146584 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-04-05 14:00:33 +00:00
Costantino Perciante d88951411c error is thrown on failure for addResourceToDataset
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@146583 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-04-05 13:59:48 +00:00
Costantino Perciante 6044a9b1d9 exception is now thrown when dataset is created, if it is the case
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@146579 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-04-05 12:38:14 +00:00
Costantino Perciante 866e16024e fixed range metadataprofile reader in pom.xml
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@146338 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-03-24 16:50:33 +00:00
Costantino Perciante 9bc07fb2e8 minor refactoring
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@144750 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-03-08 15:35:56 +00:00
Costantino Perciante 8e9352aae5 java version set back to 1.7
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@142685 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-02-17 13:42:34 +00:00
Costantino Perciante 3991df8d00 minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@142026 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-02-01 17:29:06 +00:00
Costantino Perciante fbfee9aefb added method to evaluate the higher role in ckan
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@142013 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-02-01 17:07:35 +00:00
Costantino Perciante 303f7c657a added methods getUserRoleByGroup and getUserRoleByOrganization which are much faster than the rest apis of ckan because they use query the db
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141850 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-01-27 10:08:02 +00:00
Costantino Perciante 46fc1c8dd9 added method getOrganization
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141826 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-01-26 15:46:19 +00:00
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 67cf760cbb removed useless parameter to be saved into session
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141703 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-01-23 15:35:06 +00:00
Costantino Perciante aa60cedf53 removed SCOPE_CLIENT_PORTLET_URL_MAP parameter
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141700 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-01-23 14:34:38 +00:00
Costantino Perciante 8712b8ac54 Added method to purge groups
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141607 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-01-17 14:14:28 +00:00
Costantino Perciante 89d9abc1b6 clear_url is not a boolean but a String
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141281 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-20 15:35:36 +00:00
Costantino Perciante 2ea40a8949 entity context "dataset" has been changed in "product" for url generation
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141269 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-20 10:59:46 +00:00
Costantino Perciante 57ce4f6caf minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141263 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-19 16:06:21 +00:00
Costantino Perciante ef000671ee added method to generate the product url in clear (i.e., not encrypted)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@141262 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-19 16:01:05 +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 4239ed4c3b new method for retrieving ids of products from a group/organization without limits added
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@140054 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-16 17:25:38 +00:00
Costantino Perciante 5c1ca13f14 minor fix at patchProductCustomFields
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139933 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-12 16:39:30 +00:00
Costantino Perciante ad7fd86acc minor fix for uri resolver property (when it is missing)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139924 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-12 16:04:21 +00:00
Costantino Perciante 1bc3ae3673 patchProduct for grsf is performed with a sysadmin token so that we can give a role of member/editor to the other members in the grsf-admin organization
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139904 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-12 09:25:18 +00:00
Costantino Perciante cc8b9b7c0f patchProduct is performed with the provided apikey
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139901 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-12 08:22:46 +00:00
Costantino Perciante ec5c34ecb2 Added method patchProductWithJSON to patch a product in one shot
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139869 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-10 09:48:33 +00:00
Costantino Perciante aec8452e7b Minor fixes (added suppress warning on some methods)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139813 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-08 17:26:38 +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 0ccf090e14 added code to sort custom fields before publishing products
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139746 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-07 10:00:57 +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 22a849332b added methods to add and remove tags to a product
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@135115 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-30 13:54:21 +00:00
Costantino Perciante c43c8e8307 changelog updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@135097 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-30 09:37:42 +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 6f1812ded6 minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@135024 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-29 09:32:32 +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 32a50abe9a minor fixes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@134859 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-25 16:26:56 +00:00
Costantino Perciante 50ca67c356 patch resource method fixed. The upload resource one now returns a ckan resource that can be manipulated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@134707 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 16:55:00 +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 504f947973 removed scope as attribute session
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@134666 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 10:43:34 +00:00
Costantino Perciante af25dfd8b0 added method to upload a resource given a file
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@134577 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-23 11:52:08 +00:00