54 Commits (master)

Author SHA1 Message Date
Manuele Simi 1fbb37defa Return the URI of the newly created context (compliance with REST).
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179219 82a268e6-3cf1-43bd-a215-b396298e98cf
5 years ago
Manuele Simi 0c0dfc02ed Advance version for all modules to 1.0.0-SNAPSHOT.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179218 82a268e6-3cf1-43bd-a215-b396298e98cf
5 years ago
Manuele Simi 96be6020f3 Add gxJRS depedendency to IO module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@176948 82a268e6-3cf1-43bd-a215-b396298e98cf
5 years ago
Manuele Simi 26dda75f89 Rename RMContext to RMContexts (as per REST conventions). Rename Path to Access in the IO lib.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@169756 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 162881f1ff Start shaping ResourcesInContext collection. Rename few path params.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@169755 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 7aee1a7989 Temporary add a dummy resource (RMTestForGXRest) for testing purposes.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@165612 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 5a6ae07d22 Overload the Queries constructor to create an instance with the given context client. Add check if an context is empty before deleting it (in progress).
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@164573 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 58e3ef8a37 Comply with the new gxRest package organization.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@163181 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
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
7 years ago
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
7 years ago
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
7 years ago
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
7 years ago
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
7 years ago
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
7 years ago