107 Commits (master)

Author SHA1 Message Date
Manuele Simi 54f89d7681 Migrate to use ResourceRegistryContextClient to query Contexts.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162169 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 4336297bcd Starting to shape the DeleteRequest and delete resource method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162161 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 4c161325cd Add test case to fetch the Context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162160 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi ef245330c7 Queries to check if a context exists and to fetch a context given its UUID
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162159 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 aedbeed7de Draft delete method's signature in the RMContext resource.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162027 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 fc90485dca Set calledMethod for create context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161941 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 0dbd823c26 Convert back the SerializableErrorCode to the correspondent RMCode.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161926 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 36dd483b04 Integrate CodeExceptions in the webapp.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161909 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 7b31392c6f Improve formatting.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161894 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 4dccab1032 Skip tests that require a connection to Resource Registry when the token is not set.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161893 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 4b98621cc8 Create a failure response when the new context already exists.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160691 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi eb160612be Gives a chance to each request to validate the response from the RR.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160673 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 5ad360fbb2 Remove unused test.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160672 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 76183b49f2 Configure the jersey tests for RMContext resource with authorization permission.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160671 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 f4e1170f78 Avoid exceptions with Optional objects with no value.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160621 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 6db70871b8 Different instantiations for RRContextClient according to the forceURL parameter.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160619 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi d6bdcd615f Create and initialize the context client in the base request.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160618 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 6f73b07dcb Manage more response cases. Adjust tests accordingly.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160616 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 4b9abb09f0 Move the RMContextTest to the same package of the webapp. This way tests can access protected functionalities.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160615 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi ac8d0cf465 Introduce the validation step for the request. Handle exceptions. More structure on the response.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160614 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 7f5de4c5af Make sure the context holder is not null in the request.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160526 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi 265dca22df Handle null exceptions in the response with Optional.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160525 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi b6b7e25d32 Update test cases.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160524 82a268e6-3cf1-43bd-a215-b396298e98cf
6 years ago
Manuele Simi ca5bc87382 Start to model the request/response interactions with the Resource Registry.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160523 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 83ad08446c Adjust poms, modules and paths.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160098 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 da7841fd0f Rename Context to RMContext to avoid to fully qualify the Context in the model.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158933 82a268e6-3cf1-43bd-a215-b396298e98cf
7 years ago
Manuele Simi f841ccffa6 Fix the test case with the invalid parent scope.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158932 82a268e6-3cf1-43bd-a215-b396298e98cf
7 years ago
Manuele Simi 3683a3d602 Resolve the jersey dependencies through the jersey-bom.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158931 82a268e6-3cf1-43bd-a215-b396298e98cf
7 years ago
Manuele Simi 70e6b303b8 Unmarshal the context in the create method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158883 82a268e6-3cf1-43bd-a215-b396298e98cf
7 years ago
Manuele Simi a4e32dd47a Add test cases for parent context and marshaling/unmarshaling of a simple context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158882 82a268e6-3cf1-43bd-a215-b396298e98cf
7 years ago
Manuele Simi 047ed63b59 Exploit the latest gcube-resources in the context tests.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158881 82a268e6-3cf1-43bd-a215-b396298e98cf
7 years ago
Manuele Simi 38aaad7f83 Add dependency on the RR context-library.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158880 82a268e6-3cf1-43bd-a215-b396298e98cf
7 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
7 years ago
Manuele Simi 362743bed2 Remove path for the create method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158801 82a268e6-3cf1-43bd-a215-b396298e98cf
7 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
7 years ago
Manuele Simi b3c66a742f Add dependency on RR context client.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158799 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 01b55f0327 Rename voidMethod to create in Context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158758 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 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
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
7 years ago
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
7 years ago
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
7 years ago
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
7 years ago
Manuele Simi dcfede1e17 Refactor the project as a Maven multiple module project. This will separate the webapp (the only module now in the project) with common parts reusable by the clients.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@155186 82a268e6-3cf1-43bd-a215-b396298e98cf
7 years ago
Manuele Simi 0b9b9dc976 Refactor the project as a Maven multiple module project. This will separate the webapp (the only module now in the project) with common parts reusable by the clients.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@155185 82a268e6-3cf1-43bd-a215-b396298e98cf
7 years ago