Class RegistryClientFacadeImpl_v2
java.lang.Object
io.apicurio.registry.resolver.client.RegistryClientFacadeImpl_v2
- All Implemented Interfaces:
RegistryClientFacade
An implementation of @
RegistryClientFacade that uses version 2 of the
Apicurio Registry Core API.-
Constructor Summary
Constructors -
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.Access the underlying (generated) client used by the facade to access the Registry API.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) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.apicurio.registry.resolver.client.RegistryClientFacade
getArtifactVersions, getContractRuleset, getVersionContractRuleset
-
Constructor Details
-
RegistryClientFacadeImpl_v2
-
-
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
-
getSchemaByGlobalId
- Specified by:
getSchemaByGlobalIdin interfaceRegistryClientFacade
-
getSchemaByGAV
- Specified by:
getSchemaByGAVin interfaceRegistryClientFacade
-
getSchemaByContentHash
- Specified by:
getSchemaByContentHashin interfaceRegistryClientFacade
-
getReferencesByContentId
- Specified by:
getReferencesByContentIdin interfaceRegistryClientFacade
-
getReferencesByGlobalId
- Specified by:
getReferencesByGlobalIdin interfaceRegistryClientFacade
-
getReferencesByGAV
public List<RegistryArtifactReference> getReferencesByGAV(String groupId, String artifactId, String version) - Specified by:
getReferencesByGAVin 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
-