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 Details

    • getSchemaByContentId

      String getSchemaByContentId(Long contentId)
    • getSchemaByGlobalId

      String getSchemaByGlobalId(long globalId, boolean dereferenced)
    • getSchemaByGAV

      String getSchemaByGAV(String groupId, String artifactId, String version)
    • getSchemaByContentHash

      String getSchemaByContentHash(String contentHash)
    • getReferencesByContentId

      List<RegistryArtifactReference> getReferencesByContentId(long contentId)
    • getReferencesByGlobalId

      List<RegistryArtifactReference> getReferencesByGlobalId(long globalId)
    • getReferencesByGAV

      List<RegistryArtifactReference> getReferencesByGAV(String groupId, String artifactId, String version)
    • getReferencesByContentHash

      List<RegistryArtifactReference> getReferencesByContentHash(String contentHash)
    • 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 of RegistryClient.
    • getContractRuleset

      default ContractRuleSet getContractRuleset(String groupId, String artifactId)
      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

      default List<String> getArtifactVersions(String groupId, String artifactId)
      Gets the ordered list of version identifiers for an artifact. Returns an empty list if not supported.