Commit Graph

184 Commits

Author SHA1 Message Date
Luca Frosini 963afbe0fb Refactoring EntityManagement
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@141257 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-19 14:56:16 +00:00
Luca Frosini 8b68f5d93f Refactoring EntityManagement
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@141252 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-19 14:37:15 +00:00
Luca Frosini b1112136fa Refactored EntityManagement
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@141249 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-19 13:59:27 +00:00
Luca Frosini 6960ef5738 removed uneeded import
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@135249 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-02 15:45:33 +00:00
Luca Frosini d8943fa68e Added facet creation even with a provided header
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@135182 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-01 17:14:14 +00:00
Luca Frosini 6d0d99f0a8 Added code (and commented) to return also target Resource on Resource marshalling.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@135176 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-12-01 16:17:03 +00:00
Luca Frosini 78213468eb Implementing Referential integrity
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@135078 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-29 17:49:43 +00:00
Luca Frosini bcad10fe05 Deleting facet when deleting resource taking in account referential intergity attribute on consistsOf relation if any.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@135032 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-29 12:10:49 +00:00
Luca Frosini 35adebb0fa Preparing query
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@135025 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-29 10:13:00 +00:00
Luca Frosini ee136fb6a6 Checking if an entity with the same UUID already exist. Throwing an exception in such a case
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@135011 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-28 17:17:14 +00:00
Luca Frosini a576d3d8fa Refactoring service due to exception reoganization in resource-registry-api
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@135001 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-28 16:18:07 +00:00
Luca Frosini 1399e48456 Upgraded version after release
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134933 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-28 09:19:55 +00:00
Luca Frosini 02de4c1b0d Fixed test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134931 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-28 08:13:20 +00:00
Luca Frosini ffdc507202 Added missing commit
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134849 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-25 16:06:25 +00:00
Luca Frosini 62553c1bf5 Fixed test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134839 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-25 15:41:22 +00:00
Luca Frosini 0bb59cb6c2 Fixed bug on properties update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134838 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-25 15:39:17 +00:00
Luca Frosini 1c9f4cec10 Removed catch in resource marshalling
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134820 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-25 14:48:35 +00:00
Luca Frosini e4cbaf19d4 Fixing update properties
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134816 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-25 14:44:21 +00:00
Luca Frosini eb2c8022ba Fixed error on resource marshalling
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134709 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 16:56:05 +00:00
Luca Frosini 92173467be Added a method where the graph connection is provided
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134708 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 16:55:35 +00:00
Luca Frosini 77c47433d4 Added test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134706 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 16:54:32 +00:00
Luca Frosini 1b0c54852a Fixed bug introduced with refactoring
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134683 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 14:13:55 +00:00
Luca Frosini 62c0d06750 Fixed bug
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134672 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 11:28:30 +00:00
Luca Frosini 635f18f667 Removed uneeded log
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134662 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 10:27:36 +00:00
Luca Frosini 87cd63d2b6 Fixed bug introduced on function merging. Set a function to static.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134654 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-24 09:40:51 +00:00
Luca Frosini 0b1bd22e4e Changed updateResource method signature. Exposed REST API for Update Resource
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134639 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-23 17:14:56 +00:00
Luca Frosini 7a65a38438 Added missing function due to changes in relative interface
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134626 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-23 16:57:10 +00:00
Luca Frosini fe3be05045 Refactored code and added update resource function
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134625 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-23 16:56:21 +00:00
Luca Frosini 9954274a9d Changed function invocation due to refactoring of called method
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134619 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-23 16:54:17 +00:00
Luca Frosini 149ab8de56 Changed function signature for compliancy with all invocations
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134617 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-23 16:53:41 +00:00
Luca Frosini 5e37f319d3 Merged two functions to reduce code
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134616 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-23 16:52:04 +00:00
Luca Frosini a10c66578a Merged three functions in only one
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134607 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-23 16:25:47 +00:00
Luca Frosini e1d3c9d65d Commented test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134560 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-22 16:36:18 +00:00
Luca Frosini 83e1234841 Changed comment
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134559 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-22 16:32:24 +00:00
Luca Frosini 7c4816ae59 Changed comment
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134558 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-22 16:31:42 +00:00
Luca Frosini 8d622edf8c Using gcube-smartgears-bom instead of maven-smartgears-bom for dependency management
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134557 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-22 16:22:17 +00:00
Luca Frosini f7784bfb39 Fixing header
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134422 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-21 10:52:56 +00:00
Luca Frosini 3a0541a8b4 PUt parameter moved from query params to content
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134412 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-21 09:07:28 +00:00
Luca Frosini cf36f9784a Fixed log level on some logs
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134407 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-21 09:02:40 +00:00
Luca Frosini 1b4376137a Fixed bug while updating properties of facet
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134406 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-21 08:54:56 +00:00
Luca Frosini ebb17ba6bf Fixing POST and PUT methods in entity manager to be able to manage large content
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134391 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-18 18:35:23 +00:00
Luca Frosini 28e62b7b83 Fixing POST and PUT methods in entity manager to be able to manage large content
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134390 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-18 18:10:32 +00:00
Luca Frosini aa41ffb22c Fixing test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134355 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-18 07:46:20 +00:00
Luca Frosini ab786c6f28 Fixing bug on properties
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134351 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-17 17:47:00 +00:00
Luca Frosini daf61bc522 Fixing bug on properties
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134345 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-17 17:28:05 +00:00
Luca Frosini 14e35279bb Added logs to better understanding what happen in case of failure
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134335 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-17 16:41:13 +00:00
Luca Frosini cfa9c0ed32 Added logs to better understanding what happen in case of failure
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134334 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-17 16:40:46 +00:00
Luca Frosini 6dff36cb0c Added logs
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134330 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-17 16:02:48 +00:00
Luca Frosini fb98a6e857 Fixed Header Issue
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134322 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-17 13:50:37 +00:00
Luca Frosini afc66c822e Exposing AddToContext APi refs #5701
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134120 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-11-14 15:33:27 +00:00