Interface RegistryClientFacade
- All Known Implementing Classes:
RegistryClientFacadeImpl,RegistryClientFacadeImpl_v2
public interface RegistryClientFacade
This interface represents a layer of abstraction between Registry clients and the
Registry server, allowing us to support multiple versions of the Registry Core API
at the same time.
Use the @
RegistryClientFacadeFactory to create an instance of this interface,
allowing integration with an instance of a Registry.
Note: This interface is considered internal and therefore can, but
probably SHOULD NOT, be implemented outside the apicurio-registry codebase.-
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.default ContractRuleSetgetContractRuleset(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) default ContractRuleSetgetVersionContractRuleset(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.
-
Method Details
-
getSchemaByContentId
-
getSchemaByGlobalId
-
getSchemaByGAV
-
getSchemaByContentHash
-
getReferencesByContentId
-
getReferencesByGlobalId
-
getReferencesByGAV
List<RegistryArtifactReference> getReferencesByGAV(String groupId, String artifactId, String version) -
getReferencesByContentHash
-
searchVersionsByContent
List<RegistryVersionCoordinates> 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. -
createSchema
RegistryVersionCoordinates createSchema(String artifactType, String groupId, String artifactId, String version, String autoCreateBehavior, boolean canonical, String schemaString, Set<RegistryArtifactReference> references) Create a new schema.NOTE: References must not be repeated, so we require a set instead of a list to protect against that.
-
getVersionCoordinatesByGAV
RegistryVersionCoordinates getVersionCoordinatesByGAV(String groupId, String artifactId, String version) Gets "full" coordinates (includes all IDs) of a schema version given its GAV coordinates. -
getClient
Object getClient()Access the underlying (generated) client used by the facade to access the Registry API. For example, this might return an instance ofRegistryClient. -
getContractRuleset
Gets the merged contract ruleset (global + artifact scope) for the given artifact. Returns null if contract rules are not supported by this facade implementation. -
getVersionContractRuleset
default ContractRuleSet getVersionContractRuleset(String groupId, String artifactId, String version) Gets the contract ruleset for a specific artifact version (version-level rules only). Returns null if contract rules are not supported by this facade implementation. -
getArtifactVersions
Gets the ordered list of version identifiers for an artifact. Returns an empty list if not supported.
-