Commit Graph

309 Commits

Author SHA1 Message Date
Luca Frosini 386c2d0f87 fix: runQueryTemplate sends the limit and offset set on the client 2026-10-11 15:38:28 +02:00
Luca Frosini ab9a200073 test: what every method of the client puts on the wire; fix: a Context read is an array, and a Context the cache does not know is read by its own UUID 2026-10-11 15:24:08 +02:00
Luca Frosini 370d855df3 test: run the reference Query Templates by their current names 2026-10-11 09:48:37 +02:00
Luca Frosini a30a04c982 refactor: requests sent through GXRequest and GXResponse
The deprecated HttpURLConnection-based gx-http API is no longer used; the request on the wire is unchanged.
2026-10-08 10:00:48 +02:00
Luca Frosini c9ad261f36 feat: contextsPolicy and membershipScope replace includeContexts; Query Templates run through the /query fallback path 2026-10-08 09:51:57 +02:00
Luca Frosini 57920b62c8 refactor(client): take the Resource Registry address from ServiceInstance.getResourceRegistryURL() 2026-09-27 22:42:53 +02:00
Luca Frosini b5370e9a96 docs(changelog): normalize version headings
The latest version sections used a single hash, the level of the
document title; they now use the same level as the older entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 00:36:03 +02:00
Luca Frosini e4b000de04 docs(client): add missing javadoc parameters and exceptions to list and query aliases 2026-09-20 01:44:17 +02:00
Luca Frosini 6fcdfb0826 feat(client): add list and query method aliases to ResourceRegistryClient
Add default `list` and `query` method aliases to `ResourceRegistryClient` to maintain parity with `ResourceRegistryPublisher`.
2026-09-20 01:32:29 +02:00
Luca Frosini 02d7ec2567 refactor(client): fix history endpoint request path and handle null polymorphic parameter
Ensure history requests correctly include the access path part and prevent null pointer exceptions when adding the polymorphic query parameter in instance queries.
2026-09-20 00:54:19 +02:00
Luca Frosini 94a273a826 test(client): fix import order in TypeQueryClientTest 2026-09-17 20:04:54 +02:00
Luca Frosini da1ea742b2 refactor(client): rename fullPath to path
Matches the Context.fullPath -> path rename in information-system-model
and resource-registry-api.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 11:28:46 +02:00
Luca Frosini 8951a9da70 docs(client): update javadoc and refactor type hierarchy traversal in client
Update type reading methods documentation in the client interface, refactor recursive child type collection to use a stable breadth-first traversal order with deduplication in the implementation, and add comprehensive unit tests for type read operations.
2026-09-17 09:06:41 +02:00
Luca Frosini 5336fbc5aa fix(client): wrap unexpected exceptions and add type query tests
Update queryTypes implementation to wrap unexpected exceptions in
ResourceRegistryException rather than RuntimeException, improve javadoc
documentation, and add focused transport contract tests for type queries.
2026-09-16 10:23:34 +02:00
Luca Frosini 77916cb860 style(client): format javadoc and refactor local variables for readability 2026-09-08 11:08:21 +02:00
Luca Frosini d0b941c250 feat(client): add per-request options and response metadata support
Implement request options context handling to support per-request configuration, custom headers, and response metadata within the Resource Registry client.
2026-09-04 10:56:36 +02:00
Luca Frosini c94dfdeb02 docs(client): update query template parameter examples in javadoc
Update javadoc examples for `runQueryTemplate` to prefix parameter keys with `$` to align with expected query template parameter formatting, and handle null jsonNode values in `ResourceRegistryClientImpl`.
2026-09-03 18:48:06 +02:00
Luca Frosini 50b1fb79cd refactor(client): add HTTP method override header to query template requests 2026-09-03 13:03:31 +02:00
Luca Frosini ad9b48908d refactor(client): update javadoc for queryContexts method 2026-09-02 16:08:29 +02:00
Luca Frosini d8e16cfb5f refactor(client): add limit and offset parameters to query templates API
Include pagination parameters (`limit` and `offset`) in the query templates request implementation and update corresponding interface documentation.
2026-09-02 15:54:14 +02:00
Luca Frosini 9dce70b191 refactor(client): rename tree-based methods to dag-based
Rename `getTypeTreeNode` to `getTypeDagNode` and update related imports
to reflect the transition from tree structures to directed acyclic graphs
(DAGs) within the resource registry client.
2026-08-28 20:31:51 +02:00
Luca Frosini c252e7ef55 refactor(client): rename TypeInformation to SchemaTypeInformation
Update ModelKnowledge generic type and method references to use
SchemaTypeInformation instead of TypeInformation to improve naming
clarity and consistency with the domain model.
2026-08-28 09:38:47 +02:00
Luca Frosini 4b133f0221 style: reformat configuration files
Apply consistent indentation and formatting to Jenkinsjob.xml and pom.xml to improve readability and maintain project standards.
2026-08-27 15:19:07 +02:00
Luca Frosini 81f86deb0a style: fix formatting in CITATION.cff and pom.xml
Remove trailing whitespace in CITATION.cff and standardize indentation in pom.xml.
2026-08-27 15:08:09 +02:00
Luca Frosini 434922c1b1 style: fix indentation in pom.xml
Adjust whitespace and indentation in the project configuration file to match project standards.
2026-08-27 14:51:04 +02:00
Luca Frosini 3488c8ff08 refactor(client): simplify Javadoc references
Replace fully qualified class names with imported class references in Javadoc comments across the client implementation to improve readability and maintainability.
2026-08-27 14:24:11 +02:00
Luca Frosini e35c8f2d24 refactor(client): update discover method to use TypePath depth constant
Replace the boolean flag with TypePath.DEPTH_UNLIMITED in the discover method to improve code readability and align with the updated API.
2026-08-27 13:56:31 +02:00
Luca Frosini 799512d000 docs(client): fix grammatical errors and typos in documentation
Corrected phrasing and spelling in Javadoc comments and internal code documentation to improve clarity and consistency.
2026-08-27 12:32:09 +02:00
Luca Frosini b0e3a6f715 docs(client): update context retrieval documentation
Clarify that context retrieval is restricted to the self-inclusive subtree of the token Context and update authorization requirements to reflect the scope-based access model.
2026-08-27 12:11:11 +02:00
Luca Frosini 7ccc777948 refactor(client): improve type safety in getInstances
Refactor the unmarshalling process in getInstances to explicitly declare the list type and scope the @SuppressWarnings annotation to the specific assignment, improving code clarity and type safety.
2026-08-26 16:22:23 +02:00
Luca Frosini 0a3792075e test(client): remove unused Metadata import in ContextTest 2026-08-26 16:19:56 +02:00
Luca Frosini 07bebf2b7a feat(client): update API for JSON query and context depth support
- update `jsonQuery` to use `QUERY` method via `X-HTTP-Method-Override`
- add `queryContexts`, `queryTypes`, and `queryQueryTemplates` for JSON query endpoints
- add depth-based `getContext` methods to support recursive subtree retrieval
- add `getContextHistory` methods for context history tracking
- remove legacy prepared-query methods: `getResourcesFromReferenceFacet`, `getFilteredResources`, `getRelatedResourcesFromReferenceResource`, and `getRelatedResources`

BREAKING CHANGE: removed legacy prepared-query methods that targeted the deprecated `GET /access/query/{resource-type}/{relation-type}/{reference-type}` endpoint.
2026-08-25 11:51:31 +02:00
Luca Frosini 63043bedd1 build(deps): update gcube-bom to 4.1.0-SNAPSHOT and clean up dependencies
- Upgrade gcube-bom to 4.1.0-SNAPSHOT
- Remove explicit version declarations for managed dependencies in pom.xml
- Update CHANGELOG.md with recent feature and refactoring changes
2026-08-22 22:19:53 +02:00
Luca Frosini 5e66a3571a refactor(client): rename context full name methods to full path
Update ResourceRegistryClientImpl and ResourceRegistryClientTest to use
the more accurate terminology 'FullPath' instead of 'FullName' for
context identification.
2026-08-21 13:54:35 +02:00
Luca Frosini d259b9cd27 refactor(client): remove rawQuery methods from ResourceRegistryClient
Remove the `rawQuery` methods and associated documentation and tests as they are no longer supported in the ResourceRegistryClient interface and implementation.
2026-07-09 16:14:33 +02:00
Luca Frosini ddd300033c feat(client): add depth-based type retrieval to ResourceRegistryClient
Introduce an overloaded `getTypeFromServer` method that accepts a depth parameter for more granular control over polymorphic type expansion. Deprecate the existing boolean-based `getTypeFromServer` method in favor of this new implementation.
2026-06-23 10:46:48 +02:00
Luca Frosini fdf0d00722 build(deps): update gcube-bom to 4.0.2
Bump gcube-bom version from 4.0.1 to 4.0.2 in pom.xml to align with project dependencies.
2026-06-09 11:27:11 +02:00
Luca Frosini eb3952d2fa refactor(client): update import path for AvailableInAnotherContextException
Move the exception class to the instances package to align with the updated project structure.
2026-06-05 15:00:22 +02:00
Luca Frosini f321683a63 test(client): update user constant reference in ContextTest
Replace Metadata.UNKNOWN_USER with Element.UNKNOWN_USER to align with recent refactoring of metadata handling.
2026-06-02 11:59:30 +02:00
Luca Frosini ca42916df8 Update query parameter references to use METADATA_POLICY_QUERY_PARAMETER in documentation 2026-05-31 21:46:02 +02:00
Luca Frosini 2c9ea89f9c Refactor metadata handling by replacing includeMeta methods with a unified addMetadataPolicy method 2026-05-31 10:12:44 +02:00
Luca Frosini 1781177ded Update dependency versions for resource-registry-api, information-system-model, and gcube-model to latest SNAPSHOT releases 2026-05-26 16:10:35 +02:00
Luca Frosini 3d6806efb1 Bump version to 6.0.0-SNAPSHOT and update changelog for upcoming release 2026-05-26 15:51:01 +02:00
Luca Frosini b8f670dc18 Fix context retrieval by updating path constant in getContext methods 2026-05-25 17:05:16 +02:00
Luca Frosini 653214ed91 Refine `rawQuery` API documentation to accurately describe read-only enforcement and accepted SQL statements 2026-04-10 14:14:22 +02:00
Luca Frosini 2640c27071 Update changelog and refine rawQuery method documentation for clarity 2026-04-10 13:56:04 +02:00
Luca Frosini b809056520 Update SVG files for changelog, citation, and license images 2026-01-30 17:26:17 +01:00
Luca Frosini ef9c1bb6aa Update component documentation files 2026-01-27 16:45:17 +01:00
Luca Frosini 2cf54d35aa Update developers section in POM 2026-01-26 18:40:34 +01:00
Luca Frosini 22934023a9 Add wiki link and distribution management site URL to pom.xml 2026-01-22 18:58:42 +01:00