public interface RegistryStorageFacade
List<SubjectVersion> getSubjectVersions(int globalId)
List<Integer> deleteSubject(String subject) throws ArtifactNotFoundException, RegistryStorageException
ArtifactNotFoundException
RegistryStorageException
CompletionStage<Long> createSchema(String subject, String schema, String schemaType) throws ArtifactAlreadyExistsException, ArtifactNotFoundException, RegistryStorageException
ArtifactAlreadyExistsException
ArtifactNotFoundException
RegistryStorageException
SchemaContent getSchemaContent(int globalId) throws RegistryStorageException
RegistryStorageException
Schema getSchema(String subject, String version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
List<Integer> getVersions(String subject) throws ArtifactNotFoundException, RegistryStorageException
Schema getSchema(String subject, SchemaContent schema) throws ArtifactNotFoundException, RegistryStorageException
int deleteSchema(String subject, String version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
IllegalArgumentException
- if the version string is not an int or "latest"ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
void createOrUpdateArtifactRule(String subject, RuleType type, RuleConfigurationDto dto)
void createOrUpdateGlobalRule(RuleType type, RuleConfigurationDto dto)
CompatibilityCheckResponse testCompatibilityBySubjectName(String subject, String version, SchemaContent request)
<T> T parseVersionString(String subject, String versionString, Function<Long,T> then)
RuleConfigurationDto getGlobalRule(RuleType ruleType)
void deleteGlobalRule(RuleType ruleType)
RuleConfigurationDto getArtifactRule(String subject, RuleType ruleType)
Copyright © 2020 Red Hat. All rights reserved.