@ApplicationScoped public class RegistryStorageFacadeImpl extends Object implements RegistryStorageFacade
Constructor and Description |
---|
RegistryStorageFacadeImpl() |
public List<String> getSubjects()
getSubjects
in interface RegistryStorageFacade
public List<SubjectVersion> getSubjectVersions(int globalId)
getSubjectVersions
in interface RegistryStorageFacade
public List<Integer> deleteSubject(String subject) throws ArtifactNotFoundException, RegistryStorageException
deleteSubject
in interface RegistryStorageFacade
ArtifactNotFoundException
RegistryStorageException
public SchemaContent getSchemaContent(int globalId) throws ArtifactNotFoundException, RegistryStorageException
getSchemaContent
in interface RegistryStorageFacade
ArtifactNotFoundException
RegistryStorageException
public Schema getSchema(String subject, String versionString) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
getSchema
in interface RegistryStorageFacade
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
public List<Integer> getVersions(String subject) throws ArtifactNotFoundException, RegistryStorageException
getVersions
in interface RegistryStorageFacade
ArtifactNotFoundException
RegistryStorageException
public Schema getSchema(String subject, SchemaContent schema) throws ArtifactNotFoundException, RegistryStorageException
getSchema
in interface RegistryStorageFacade
ArtifactNotFoundException
RegistryStorageException
public CompletionStage<Long> createSchema(String subject, String schema, String schemaType) throws ArtifactAlreadyExistsException, ArtifactNotFoundException, RegistryStorageException
RegistryStorageFacade
createSchema
in interface RegistryStorageFacade
ArtifactAlreadyExistsException
ArtifactNotFoundException
RegistryStorageException
public int deleteSchema(String subject, String versionString) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
deleteSchema
in interface RegistryStorageFacade
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
public void createOrUpdateArtifactRule(String subject, RuleType type, RuleConfigurationDto dto)
createOrUpdateArtifactRule
in interface RegistryStorageFacade
public void createOrUpdateGlobalRule(RuleType type, RuleConfigurationDto dto)
createOrUpdateGlobalRule
in interface RegistryStorageFacade
public CompatibilityCheckResponse testCompatibilityBySubjectName(String subject, String version, SchemaContent request)
testCompatibilityBySubjectName
in interface RegistryStorageFacade
public <T> T parseVersionString(String subject, String versionString, Function<Long,T> then)
parseVersionString
in interface RegistryStorageFacade
public RuleConfigurationDto getGlobalRule(RuleType ruleType)
getGlobalRule
in interface RegistryStorageFacade
public void deleteGlobalRule(RuleType ruleType)
deleteGlobalRule
in interface RegistryStorageFacade
public void deleteArtifactRule(String subject, RuleType ruleType)
deleteArtifactRule
in interface RegistryStorageFacade
public RuleConfigurationDto getArtifactRule(String subject, RuleType ruleType)
getArtifactRule
in interface RegistryStorageFacade
Copyright © 2020 Red Hat. All rights reserved.