@ApplicationScoped public class JPARegistryStorage extends Object implements RegistryStorage
Constructor and Description |
---|
JPARegistryStorage() |
public CompletionStage<ArtifactMetaDataDto> createArtifact(String artifactId, ArtifactType artifactType, String content) throws ArtifactAlreadyExistsException, RegistryStorageException
createArtifact
in interface RegistryStorage
ArtifactAlreadyExistsException
RegistryStorageException
public SortedSet<Long> deleteArtifact(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
deleteArtifact
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public StoredArtifact getArtifact(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
getArtifact
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public CompletionStage<ArtifactMetaDataDto> updateArtifact(String artifactId, ArtifactType artifactType, String content) throws ArtifactNotFoundException, RegistryStorageException
updateArtifact
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public Set<String> getArtifactIds()
getArtifactIds
in interface RegistryStorage
public ArtifactMetaDataDto getArtifactMetaData(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
getArtifactMetaData
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public ArtifactMetaDataDto getArtifactMetaData(String artifactId, String content) throws ArtifactNotFoundException, RegistryStorageException
getArtifactMetaData
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public ArtifactMetaDataDto getArtifactMetaData(long id) throws ArtifactNotFoundException, RegistryStorageException
getArtifactMetaData
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public void updateArtifactMetaData(String artifactId, EditableArtifactMetaDataDto metaData) throws ArtifactNotFoundException, RegistryStorageException
updateArtifactMetaData
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public List<RuleType> getArtifactRules(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
getArtifactRules
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public void createArtifactRule(String artifactId, RuleType rule, RuleConfigurationDto config) throws ArtifactNotFoundException, RuleAlreadyExistsException, RegistryStorageException
public void deleteArtifactRules(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
deleteArtifactRules
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public RuleConfigurationDto getArtifactRule(String artifactId, RuleType rule) throws ArtifactNotFoundException, RuleNotFoundException, RegistryStorageException
getArtifactRule
in interface RegistryStorage
ArtifactNotFoundException
RuleNotFoundException
RegistryStorageException
RegistryStorage.getArtifactRule(java.lang.String, io.apicurio.registry.types.RuleType)
public void updateArtifactRule(String artifactId, RuleType rule, RuleConfigurationDto config) throws ArtifactNotFoundException, RuleNotFoundException, RegistryStorageException
public void deleteArtifactRule(String artifactId, RuleType rule) throws ArtifactNotFoundException, RuleNotFoundException, RegistryStorageException
deleteArtifactRule
in interface RegistryStorage
ArtifactNotFoundException
RuleNotFoundException
RegistryStorageException
RegistryStorage.deleteArtifactRule(java.lang.String, io.apicurio.registry.types.RuleType)
public SortedSet<Long> getArtifactVersions(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
getArtifactVersions
in interface RegistryStorage
ArtifactNotFoundException
RegistryStorageException
public StoredArtifact getArtifactVersion(long id) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
getArtifactVersion
in interface RegistryStorage
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
public StoredArtifact getArtifactVersion(String artifactId, long version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
getArtifactVersion
in interface RegistryStorage
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
public void deleteArtifactVersion(String artifactId, long version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
deleteArtifactVersion
in interface RegistryStorage
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
public ArtifactVersionMetaDataDto getArtifactVersionMetaData(String artifactId, long version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
getArtifactVersionMetaData
in interface RegistryStorage
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
public void updateArtifactVersionMetaData(String artifactId, long version, EditableArtifactMetaDataDto metaData) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
updateArtifactVersionMetaData
in interface RegistryStorage
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
public void deleteArtifactVersionMetaData(String artifactId, long version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
deleteArtifactVersionMetaData
in interface RegistryStorage
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
public List<RuleType> getGlobalRules() throws RegistryStorageException
getGlobalRules
in interface RegistryStorage
RegistryStorageException
public void createGlobalRule(RuleType rule, RuleConfigurationDto config) throws RuleAlreadyExistsException, RegistryStorageException
public void deleteGlobalRules() throws RegistryStorageException
deleteGlobalRules
in interface RegistryStorage
RegistryStorageException
public RuleConfigurationDto getGlobalRule(RuleType rule) throws RuleNotFoundException, RegistryStorageException
getGlobalRule
in interface RegistryStorage
RuleNotFoundException
RegistryStorageException
RegistryStorage.getGlobalRule(io.apicurio.registry.types.RuleType)
public void updateGlobalRule(RuleType rule, RuleConfigurationDto config) throws RuleNotFoundException, RegistryStorageException
updateGlobalRule
in interface RegistryStorage
RuleNotFoundException
RegistryStorageException
RegistryStorage.updateGlobalRule(io.apicurio.registry.types.RuleType, io.apicurio.registry.storage.RuleConfigurationDto)
public void deleteGlobalRule(RuleType rule) throws RuleNotFoundException, RegistryStorageException
deleteGlobalRule
in interface RegistryStorage
RuleNotFoundException
RegistryStorageException
RegistryStorage.deleteGlobalRule(io.apicurio.registry.types.RuleType)
Copyright © 2019 Red Hat. All rights reserved.