Commit Graph

46 Commits

Author SHA1 Message Date
Manuele Simi 3650407264 Clean up code moved to gxRest.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162886 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-04 04:38:16 +00:00
Manuele Simi de8582c9be Migrate resource manager components to gxRest.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162885 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-04 04:36:56 +00:00
Manuele Simi 3f71638206 Make the deserializers final. Reduce their visibility at package level.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162830 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-01 03:42:42 +00:00
Manuele Simi 85bacd7afe Test the ErrorCode after with the new deserialization of the entity.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162829 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-01 03:32:56 +00:00
Manuele Simi 3adf77e8bd Add deserializers for ErrorCode and Exception. This makes the serializable entity a POJO.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162801 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-31 14:31:01 +00:00
Manuele Simi 2d80258f83 Keep the full qualified class name and message for the exception in the response. Rebuild the response at client side with reflection.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162764 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-31 05:35:13 +00:00
Manuele Simi 865c2255f7 Introduce error codes for the delete context method. Query the RR to validate the delete request.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162342 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-19 05:05:49 +00:00
Manuele Simi f08c550f1d Rename RMCode to RMCreateContextCode.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162299 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-18 05:05:35 +00:00
Manuele Simi 60a49651a5 More work on delete method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162207 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-16 03:57:22 +00:00
Manuele Simi 4e6d0a1192 Rename package exceptions to codeexceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162028 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-10 04:12:00 +00:00
Manuele Simi 37b5f00beb Fix typo in RMCode.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162026 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-10 03:11:59 +00:00
Manuele Simi 8d4941ef21 Rename CodeException to LocalCodeException.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162025 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-10 03:09:32 +00:00
Manuele Simi 3b4e4b17a8 Improve javadoc. Rename one of the values for RMCode.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161971 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-04 20:09:37 +00:00
Manuele Simi 2240582f2c Add plain CodeException to use internally in the webapp. WebCodeExceptions can be created from plain exceptions now. New test cases for exceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161932 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-02 03:13:00 +00:00
Manuele Simi 8aff6e850e Adapt CodeExceptionTest to web exceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161931 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-02 02:57:11 +00:00
Manuele Simi a70350c9df Rename CodeException to WebCodeException to make it clear that it is a subclass of WebAppException.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161930 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-01 20:40:26 +00:00
Manuele Simi 5c9549160c Move RMCode to rs package. This keeps the exceptions package as more generic as possible.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161929 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-01 20:37:28 +00:00
Manuele Simi f94fd01063 Fix javadoc.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161928 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-29 19:21:11 +00:00
Manuele Simi c1c79bf30d Add CodeFinder helper class to find codes and convert them into their equivalent enum value.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161927 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-29 17:46:27 +00:00
Manuele Simi 38feed8fdb Remove fields in the CodeException. The code and associated message are held in the response embedded in the superclass.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161925 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-29 03:25:00 +00:00
Manuele Simi 77b0722bf1 Initialize CodeException from ErrorCode instead of RMCode.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161923 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-28 05:14:55 +00:00
Manuele Simi 33c6212530 Rewrite CodeException as a specialized WebApplicationException. Integrate CodeException in the create context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161922 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-28 05:06:00 +00:00
Manuele Simi 0743f01692 Remove duplicated package-info.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161908 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-26 12:14:52 +00:00
Manuele Simi 228f1a54b8 Adjust test in error.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161907 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-26 12:13:55 +00:00
Manuele Simi 8fc30f39c6 Remove unused packages.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161906 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-26 12:07:49 +00:00
Manuele Simi 2c84b66dbe Rename test package to exceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161905 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-26 12:06:13 +00:00
Manuele Simi 05f3c6a810 Rename package to exceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161904 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-26 11:56:05 +00:00
Manuele Simi 8a09c93ce2 Move the test in the test source folder.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161897 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-26 03:48:19 +00:00
Manuele Simi 9e6e2299c8 Adjust the RM codes creation. Add test case.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161896 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-26 03:42:12 +00:00
Manuele Simi 9a9e0a0a06 Improve CodeExceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161895 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-23 04:26:08 +00:00
Manuele Simi 57d6749dea Instead of creating separate classes for each exception type, create just one. Use enums to indicate the exception’s type. This reduces the class count and remove the need to declare ad-hoc exceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161800 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-22 04:48:51 +00:00
Manuele Simi b95522d5ac Add a query parameter to context creation to force use a given RR instance. Mainly for testing purposes. Adjust the test accordingly.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160622 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-18 05:01:43 +00:00
Manuele Simi 34bb1f57ff Fix the application path (was clashing with jersey) and move the declaration to the io module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160249 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-10 03:26:37 +00:00
Manuele Simi d2c5d692f6 Complete the renaming of context and resource paths.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160035 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-05 04:27:51 +00:00
Manuele Simi 77831c3367 Add tests based on the Jersey Test Framework for Context methods. Simple container seems a good compromise for testing the methods.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158849 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-28 04:06:10 +00:00
Manuele Simi 87de702639 Stub implementation of the create method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158800 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-25 03:45:53 +00:00
Manuele Simi 46e739e086 Rename Root path to Resource.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158769 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 02:55:25 +00:00
Manuele Simi 400cfe78ee Add stubs for Resource and ResourcePath.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158768 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 02:38:04 +00:00
Manuele Simi 3d2aea155e Rename Access to Context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158636 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-18 04:46:11 +00:00
Manuele Simi abbcc67660 Clean up Maven dependencies.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158607 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-17 14:34:27 +00:00
Manuele Simi b0828f88ff Remove full coordinates from sub-modules.They inherit the parent's version and groupId.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158539 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-16 03:13:35 +00:00
Manuele Simi e48c8eeb8e Remove outdated rest package.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156280 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-15 11:51:04 +00:00
Manuele Simi 5e62131194 Rename rest packages to rs, as per convention from java.ws.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156279 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-15 11:46:25 +00:00
Manuele Simi 3d16c2ff4f Add dependency on manager I/O to the webapp module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156264 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-14 02:36:34 +00:00
Manuele Simi c7e06b968c Move AccessPath to manager I/O module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156263 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-14 02:33:37 +00:00
Manuele Simi 6c6657d741 New Manager I/O module. This module will collect I/O definitions shared among the webapp and its libraries/other clients.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156262 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-14 02:24:49 +00:00