Class RegistryClientFacadeImpl
java.lang.Object
io.apicurio.registry.resolver.client.RegistryClientFacadeImpl
- All Implemented Interfaces:
RegistryClientFacade
An implementation of @
RegistryClientFacade that uses version 3 of the
Apicurio Registry Core API.-
Constructor Summary
ConstructorsConstructorDescriptionRegistryClientFacadeImpl(RegistryClient client, String baseUrl, String clientId) -
Method Summary
Modifier and TypeMethodDescriptioncreateSchema(String artifactType, String groupId, String artifactId, String version, String autoCreateBehavior, boolean canonical, String schemaString, Set<RegistryArtifactReference> references) Create a new schema.getArtifactVersions(String groupId, String artifactId) Gets the ordered list of version identifiers for an artifact.Access the underlying (generated) client used by the facade to access the Registry API.getContractRuleset(String groupId, String artifactId) Gets the merged contract ruleset (global + artifact scope) for the given artifact.getReferencesByContentHash(String contentHash) getReferencesByContentId(long contentId) getReferencesByGAV(String groupId, String artifactId, String version) getReferencesByGlobalId(long globalId) getSchemaByContentHash(String contentHash) getSchemaByContentId(Long contentId) getSchemaByGAV(String groupId, String artifactId, String version) getSchemaByGlobalId(long globalId, boolean dereferenced) getVersionContractRuleset(String groupId, String artifactId, String version) Gets the contract ruleset for a specific artifact version (version-level rules only).getVersionCoordinatesByGAV(String groupId, String artifactId, String version) Gets "full" coordinates (includes all IDs) of a schema version given its GAV coordinates.searchVersionsByContent(String schemaString, String artifactType, ArtifactReference reference, boolean canonical) Get a list of versions (for a specific artifact) that refer to a schema with the given content.
-
Constructor Details
-
RegistryClientFacadeImpl
-
RegistryClientFacadeImpl
-
-
Method Details
-
getClient
Description copied from interface:RegistryClientFacadeAccess the underlying (generated) client used by the facade to access the Registry API. For example, this might return an instance ofRegistryClient.- Specified by:
getClientin interfaceRegistryClientFacade
-
getSchemaByContentId
- Specified by:
getSchemaByContentIdin interfaceRegistryClientFacade
-
getReferencesByContentId
- Specified by:
getReferencesByContentIdin interfaceRegistryClientFacade
-
getSchemaByGlobalId
- Specified by:
getSchemaByGlobalIdin interfaceRegistryClientFacade
-
getReferencesByGlobalId
- Specified by:
getReferencesByGlobalIdin interfaceRegistryClientFacade
-
getSchemaByGAV
- Specified by:
getSchemaByGAVin interfaceRegistryClientFacade
-
getReferencesByGAV
public List<RegistryArtifactReference> getReferencesByGAV(String groupId, String artifactId, String version) - Specified by:
getReferencesByGAVin interfaceRegistryClientFacade
-
getSchemaByContentHash
- Specified by:
getSchemaByContentHashin interfaceRegistryClientFacade
-
getReferencesByContentHash
- Specified by:
getReferencesByContentHashin interfaceRegistryClientFacade
-
searchVersionsByContent
public List<RegistryVersionCoordinates> searchVersionsByContent(String schemaString, String artifactType, ArtifactReference reference, boolean canonical) Description copied from interface:RegistryClientFacadeGet a list of versions (for a specific artifact) that refer to a schema with the given content.- Specified by:
searchVersionsByContentin interfaceRegistryClientFacade
-
createSchema
public RegistryVersionCoordinates createSchema(String artifactType, String groupId, String artifactId, String version, String autoCreateBehavior, boolean canonical, String schemaString, Set<RegistryArtifactReference> references) Description copied from interface:RegistryClientFacadeCreate a new schema.NOTE: References must not be repeated, so we require a set instead of a list to protect against that.
- Specified by:
createSchemain interfaceRegistryClientFacade
-
getVersionCoordinatesByGAV
public RegistryVersionCoordinates getVersionCoordinatesByGAV(String groupId, String artifactId, String version) Description copied from interface:RegistryClientFacadeGets "full" coordinates (includes all IDs) of a schema version given its GAV coordinates.- Specified by:
getVersionCoordinatesByGAVin interfaceRegistryClientFacade
-
getContractRuleset
Description copied from interface:RegistryClientFacadeGets the merged contract ruleset (global + artifact scope) for the given artifact. Returns null if contract rules are not supported by this facade implementation.- Specified by:
getContractRulesetin interfaceRegistryClientFacade
-
getVersionContractRuleset
Description copied from interface:RegistryClientFacadeGets the contract ruleset for a specific artifact version (version-level rules only). Returns null if contract rules are not supported by this facade implementation.- Specified by:
getVersionContractRulesetin interfaceRegistryClientFacade
-
getArtifactVersions
Description copied from interface:RegistryClientFacadeGets the ordered list of version identifiers for an artifact. Returns an empty list if not supported.- Specified by:
getArtifactVersionsin interfaceRegistryClientFacade
-