Package io.apicurio.registry.rest.client
Interface RegistryClient
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
RegistryClientImpl
public interface RegistryClient extends Closeable
- Author:
- Carles Arnal 'carnalca@redhat.com'
Rest client compatible with the Registry API V2
-
-
Method Summary
-
-
-
Method Detail
-
getLatestArtifact
InputStream getLatestArtifact(String groupId, String artifactId)
-
updateArtifact
ArtifactMetaData updateArtifact(String groupId, String artifactId, String version, String artifactName, String artifactDescription, String contentType, InputStream data)
-
updateArtifact
default ArtifactMetaData updateArtifact(String groupId, String artifactId, String version, String artifactName, String artifactDescription, InputStream data)
-
updateArtifact
default ArtifactMetaData updateArtifact(String groupId, String artifactId, String version, InputStream data)
-
updateArtifact
default ArtifactMetaData updateArtifact(String groupId, String artifactId, InputStream data)
-
getArtifactMetaData
ArtifactMetaData getArtifactMetaData(String groupId, String artifactId)
-
updateArtifactMetaData
void updateArtifactMetaData(String groupId, String artifactId, EditableMetaData data)
-
getArtifactVersionMetaDataByContent
VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, String contentType, InputStream data)
-
getArtifactVersionMetaDataByContent
default VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, InputStream data)
-
getArtifactVersionMetaDataByContent
default VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, InputStream data)
-
updateArtifactRuleConfig
Rule updateArtifactRuleConfig(String groupId, String artifactId, RuleType rule, Rule data)
-
updateArtifactState
void updateArtifactState(String groupId, String artifactId, UpdateState data)
-
testUpdateArtifact
void testUpdateArtifact(String groupId, String artifactId, String contentType, InputStream data)
-
testUpdateArtifact
default void testUpdateArtifact(String groupId, String artifactId, InputStream data)
-
getArtifactVersion
InputStream getArtifactVersion(String groupId, String artifactId, String version)
-
getArtifactVersionMetaData
VersionMetaData getArtifactVersionMetaData(String groupId, String artifactId, String version)
-
updateArtifactVersionMetaData
void updateArtifactVersionMetaData(String groupId, String artifactId, String version, EditableMetaData data)
-
deleteArtifactVersionMetaData
void deleteArtifactVersionMetaData(String groupId, String artifactId, String version)
-
updateArtifactVersionState
void updateArtifactVersionState(String groupId, String artifactId, String version, UpdateState data)
-
listArtifactVersions
VersionSearchResults listArtifactVersions(String groupId, String artifactId, Integer offset, Integer limit)
-
createArtifactVersion
VersionMetaData createArtifactVersion(String groupId, String artifactId, String version, String artifactName, String artifactDescription, String contentType, InputStream data)
-
createArtifactVersion
default VersionMetaData createArtifactVersion(String groupId, String artifactId, String version, String artifactName, String artifactDescription, InputStream data)
-
createArtifactVersion
default VersionMetaData createArtifactVersion(String groupId, String artifactId, String version, InputStream data)
-
listArtifactsInGroup
ArtifactSearchResults listArtifactsInGroup(String groupId, SortBy orderBy, SortOrder order, Integer offset, Integer limit)
-
listArtifactsInGroup
default ArtifactSearchResults listArtifactsInGroup(String groupId)
-
createArtifact
ArtifactMetaData createArtifact(String groupId, String artifactId, String version, ArtifactType artifactType, IfExists ifExists, Boolean canonical, String artifactName, String artifactDescription, String contentType, InputStream data)
-
createArtifact
ArtifactMetaData createArtifact(String groupId, String artifactId, String version, ArtifactType artifactType, IfExists ifExists, Boolean canonical, String artifactName, String artifactDescription, String contentType, InputStream data, List<ArtifactReference> artifactReferences)
-
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, String version, ArtifactType artifactType, IfExists ifExists, Boolean canonical, String artifactName, String artifactDescription, InputStream data)
-
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, String version, ArtifactType artifactType, IfExists ifExists, Boolean canonical, InputStream data)
-
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, InputStream data)
-
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, String version, InputStream data)
-
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, ArtifactType artifactType, InputStream data)
-
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, ArtifactType artifactType, IfExists ifExists, InputStream data)
-
deleteArtifactsInGroup
void deleteArtifactsInGroup(String groupId)
-
getContentById
InputStream getContentById(long contentId)
-
getContentByGlobalId
InputStream getContentByGlobalId(long globalId)
-
getContentByGlobalId
InputStream getContentByGlobalId(long globalId, Boolean canonical, Boolean dereference)
-
getContentByHash
InputStream getContentByHash(String contentHash, Boolean canonical)
-
getContentByHash
default InputStream getContentByHash(String contentHash)
-
searchArtifacts
default ArtifactSearchResults searchArtifacts(String group, String name, String description, List<String> labels, List<String> properties, SortBy orderBy, SortOrder order, Integer offset, Integer limit)
-
searchArtifacts
ArtifactSearchResults searchArtifacts(String group, String name, String description, List<String> labels, List<String> properties, Long globalId, Long contentId, SortBy orderBy, SortOrder order, Integer offset, Integer limit)
-
searchArtifactsByContent
ArtifactSearchResults searchArtifactsByContent(InputStream data, SortBy orderBy, SortOrder order, Integer offset, Integer limit)
-
listGlobalRules
@Deprecated List<RuleType> listGlobalRules()
Deprecated.
-
createGlobalRule
@Deprecated void createGlobalRule(Rule data)
Deprecated.
-
deleteAllGlobalRules
@Deprecated void deleteAllGlobalRules()
Deprecated.
-
getGlobalRuleConfig
@Deprecated Rule getGlobalRuleConfig(RuleType rule)
Deprecated.
-
updateGlobalRuleConfig
@Deprecated Rule updateGlobalRuleConfig(RuleType rule, Rule data)
Deprecated.
-
deleteGlobalRule
@Deprecated void deleteGlobalRule(RuleType rule)
Deprecated.
-
listLogConfigurations
@Deprecated List<NamedLogConfiguration> listLogConfigurations()
Deprecated.
-
getLogConfiguration
@Deprecated NamedLogConfiguration getLogConfiguration(String logger)
Deprecated.
-
setLogConfiguration
@Deprecated NamedLogConfiguration setLogConfiguration(String logger, LogConfiguration data)
Deprecated.
-
removeLogConfiguration
@Deprecated NamedLogConfiguration removeLogConfiguration(String logger)
Deprecated.
-
exportData
@Deprecated InputStream exportData()
Deprecated.
-
importData
@Deprecated void importData(InputStream data)
Deprecated.
-
importData
@Deprecated void importData(InputStream data, boolean preserveGlobalIds, boolean preserveContentIds)
Deprecated.
-
listRoleMappings
@Deprecated List<RoleMapping> listRoleMappings()
Deprecated.
-
createRoleMapping
@Deprecated void createRoleMapping(RoleMapping data)
Deprecated.
-
getRoleMapping
@Deprecated RoleMapping getRoleMapping(String principalId)
Deprecated.
-
updateRoleMapping
@Deprecated void updateRoleMapping(String principalId, RoleType role)
Deprecated.
-
deleteRoleMapping
@Deprecated void deleteRoleMapping(String principalId)
Deprecated.
-
getCurrentUserInfo
UserInfo getCurrentUserInfo()
-
listConfigProperties
List<ConfigurationProperty> listConfigProperties()
-
getConfigProperty
ConfigurationProperty getConfigProperty(String propertyName)
-
deleteConfigProperty
void deleteConfigProperty(String propertyName)
-
getArtifactReferencesByGlobalId
List<ArtifactReference> getArtifactReferencesByGlobalId(long globalId)
-
getArtifactReferencesByContentId
List<ArtifactReference> getArtifactReferencesByContentId(long contentId)
-
getArtifactReferencesByContentHash
List<ArtifactReference> getArtifactReferencesByContentHash(String contentHash)
-
getArtifactReferencesByCoordinates
List<ArtifactReference> getArtifactReferencesByCoordinates(String groupId, String artifactId, String version)
-
-