Interface RegistryStorageFacade
-
- All Known Implementing Classes:
RegistryStorageFacadeImpl
public interface RegistryStorageFacade
- Author:
- Ales Justin, Jakub Senko 'jsenko@redhat.com'
-
-
Method Summary
-
-
-
Method Detail
-
getSubjectVersions
List<SubjectVersion> getSubjectVersions(int contentId)
-
deleteSubject
List<Integer> deleteSubject(String subject) throws ArtifactNotFoundException, RegistryStorageException
- Returns:
- List of schema versions in the deleted subject
- Throws:
ArtifactNotFoundException
RegistryStorageException
-
createSchema
CompletionStage<Long> createSchema(String subject, String schema, String schemaType) throws ArtifactAlreadyExistsException, ArtifactNotFoundException, RegistryStorageException
Create a new schema in the given subject.- Returns:
- globalId as a future
- Throws:
ArtifactAlreadyExistsException
ArtifactNotFoundException
RegistryStorageException
-
getSchemaContent
SchemaContent getSchemaContent(int globalId) throws RegistryStorageException
- Throws:
RegistryStorageException
-
getSchema
Schema getSchema(String subject, String version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
-
getVersions
List<Integer> getVersions(String subject) throws ArtifactNotFoundException, RegistryStorageException
-
getSchema
Schema getSchema(String subject, SchemaContent schema) throws ArtifactNotFoundException, RegistryStorageException
-
deleteSchema
int deleteSchema(String subject, String version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
- Returns:
- schema version
- Throws:
IllegalArgumentException
- if the version string is not an int or "latest"ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
-
createOrUpdateArtifactRule
void createOrUpdateArtifactRule(String subject, RuleType type, RuleConfigurationDto dto)
-
createOrUpdateGlobalRule
void createOrUpdateGlobalRule(RuleType type, RuleConfigurationDto dto)
-
testCompatibilityBySubjectName
CompatibilityCheckResponse testCompatibilityBySubjectName(String subject, String version, SchemaContent request)
-
parseVersionString
<T> T parseVersionString(String subject, String versionString, Function<String,T> then)
-
getGlobalRule
RuleConfigurationDto getGlobalRule(RuleType ruleType)
-
deleteGlobalRule
void deleteGlobalRule(RuleType ruleType)
-
getArtifactRule
RuleConfigurationDto getArtifactRule(String subject, RuleType ruleType)
-
-