Package io.apicurio.registry.rest.client
Interface RegistryClient
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
RegistryClientImpl
- Author:
- Carles Arnal 'carnalca@redhat.com'
Rest client compatible with the Registry API V2
-
Method Summary
Modifier and TypeMethodDescriptionaddArtifactVersionComment(String groupId, String artifactId, String version, NewComment comment) default ArtifactMetaDatacreateArtifact(String groupId, String artifactId, InputStream data) default ArtifactMetaDatacreateArtifact(String groupId, String artifactId, InputStream data, List<ArtifactReference> artifactReferences) default ArtifactMetaDatacreateArtifact(String groupId, String artifactId, String artifactType, IfExists ifExists, InputStream data) default ArtifactMetaDatacreateArtifact(String groupId, String artifactId, String artifactType, InputStream data) default ArtifactMetaDatacreateArtifact(String groupId, String artifactId, String version, String artifactType, IfExists ifExists, Boolean canonical, InputStream data) default ArtifactMetaDatacreateArtifact(String groupId, String artifactId, String version, String artifactType, IfExists ifExists, Boolean canonical, String artifactName, String artifactDescription, InputStream data) createArtifact(String groupId, String artifactId, String version, String artifactType, IfExists ifExists, Boolean canonical, String artifactName, String artifactDescription, String contentType, String fromURL, String artifactSHA, InputStream data) createArtifact(String groupId, String artifactId, String version, String artifactType, IfExists ifExists, Boolean canonical, String artifactName, String artifactDescription, String contentType, String fromURL, String artifactSHA, InputStream data, List<ArtifactReference> artifactReferences) voidcreateArtifactGroup(GroupMetaData groupMetaData) voidcreateArtifactRule(String groupId, String artifactId, Rule data) default VersionMetaDatacreateArtifactVersion(String groupId, String artifactId, String version, InputStream data) default VersionMetaDatacreateArtifactVersion(String groupId, String artifactId, String version, String artifactName, String artifactDescription, InputStream data) createArtifactVersion(String groupId, String artifactId, String version, String artifactName, String artifactDescription, String contentType, InputStream data) default ArtifactMetaDatacreateArtifactWithVersion(String groupId, String artifactId, String version, InputStream data) voidcreateGlobalRule(Rule data) Deprecated.voidcreateRoleMapping(RoleMapping data) Deprecated.voidDeprecated.voiddeleteArtifact(String groupId, String artifactId) voiddeleteArtifactGroup(String groupId) voiddeleteArtifactRule(String groupId, String artifactId, RuleType rule) voiddeleteArtifactRules(String groupId, String artifactId) voiddeleteArtifactsInGroup(String groupId) voiddeleteArtifactVersionComment(String groupId, String artifactId, String version, String commentId) voiddeleteArtifactVersionMetaData(String groupId, String artifactId, String version) voiddeleteConfigProperty(String propertyName) voiddeleteGlobalRule(RuleType rule) Deprecated.voiddeleteRoleMapping(String principalId) Deprecated.voideditArtifactVersionComment(String groupId, String artifactId, String version, String commentId, NewComment comment) Deprecated.getArtifactGroup(String groupId) getArtifactMetaData(String groupId, String artifactId) getArtifactOwner(String groupId, String artifactId) getArtifactReferencesByContentHash(String contentHash) getArtifactReferencesByContentId(long contentId) getArtifactReferencesByCoordinates(String groupId, String artifactId, String version) getArtifactReferencesByGlobalId(long globalId) getArtifactRuleConfig(String groupId, String artifactId, RuleType rule) getArtifactVersion(String groupId, String artifactId, String version) getArtifactVersionComments(String groupId, String artifactId, String version) getArtifactVersionMetaData(String groupId, String artifactId, String version) default VersionMetaDatagetArtifactVersionMetaDataByContent(String groupId, String artifactId, ArtifactContent artifactContent) default VersionMetaDatagetArtifactVersionMetaDataByContent(String groupId, String artifactId, InputStream data) getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, ArtifactContent artifactContent) default VersionMetaDatagetArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, InputStream data) getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, String contentType, InputStream data) getConfigProperty(String propertyName) getContentByGlobalId(long globalId) getContentByGlobalId(long globalId, Boolean canonical, Boolean dereference) default InputStreamgetContentByHash(String contentHash) getContentByHash(String contentHash, Boolean canonical) getContentById(long contentId) getGlobalRuleConfig(RuleType rule) Deprecated.getLatestArtifact(String groupId, String artifactId) getLogConfiguration(String logger) Deprecated.getRoleMapping(String principalId) Deprecated.voidimportData(InputStream data) Deprecated.voidimportData(InputStream data, boolean preserveGlobalIds, boolean preserveContentIds) Deprecated.listArtifactRules(String groupId, String artifactId) default ArtifactSearchResultslistArtifactsInGroup(String groupId) listArtifactsInGroup(String groupId, SortBy orderBy, SortOrder order, Integer offset, Integer limit) listArtifactVersions(String groupId, String artifactId, Integer offset, Integer limit) Deprecated.listGroups(SortBy orderBy, SortOrder order, Integer offset, Integer limit) Deprecated.Deprecated.removeLogConfiguration(String logger) Deprecated.default ArtifactSearchResultssearchArtifacts(String group, String name, String description, List<String> labels, List<String> properties, SortBy orderBy, SortOrder order, Integer offset, Integer limit) 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(InputStream data, SortBy orderBy, SortOrder order, Integer offset, Integer limit) voidsetConfigProperty(String propertyName, String propertyValue) setLogConfiguration(String logger, LogConfiguration data) Deprecated.voidsetNextRequestHeaders(Map<String, String> requestHeaders) default voidtestUpdateArtifact(String groupId, String artifactId, InputStream data) voidtestUpdateArtifact(String groupId, String artifactId, String contentType, InputStream data) default ArtifactMetaDataupdateArtifact(String groupId, String artifactId, InputStream data) default ArtifactMetaDataupdateArtifact(String groupId, String artifactId, String version, InputStream data) default ArtifactMetaDataupdateArtifact(String groupId, String artifactId, String version, String artifactName, String artifactDescription, InputStream data) updateArtifact(String groupId, String artifactId, String version, String artifactName, String artifactDescription, InputStream data, List<ArtifactReference> references) updateArtifact(String groupId, String artifactId, String version, String artifactName, String artifactDescription, String contentType, InputStream data) voidupdateArtifactMetaData(String groupId, String artifactId, EditableMetaData data) voidupdateArtifactOwner(String groupId, String artifactId, ArtifactOwner owner) updateArtifactRuleConfig(String groupId, String artifactId, RuleType rule, Rule data) voidupdateArtifactState(String groupId, String artifactId, UpdateState data) voidupdateArtifactVersionMetaData(String groupId, String artifactId, String version, EditableMetaData data) voidupdateArtifactVersionState(String groupId, String artifactId, String version, UpdateState data) updateGlobalRuleConfig(RuleType rule, Rule data) Deprecated.voidupdateRoleMapping(String principalId, RoleType role) Deprecated.
-
Method Details
-
getLatestArtifact
-
updateArtifact
ArtifactMetaData updateArtifact(String groupId, String artifactId, String version, String artifactName, String artifactDescription, String contentType, InputStream data) -
updateArtifact
ArtifactMetaData updateArtifact(String groupId, String artifactId, String version, String artifactName, String artifactDescription, InputStream data, List<ArtifactReference> references) -
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
-
deleteArtifact
-
getArtifactMetaData
-
getArtifactOwner
-
updateArtifactMetaData
-
updateArtifactOwner
-
getArtifactVersionMetaDataByContent
VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, String contentType, InputStream data) -
getArtifactVersionMetaDataByContent
VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, ArtifactContent artifactContent) -
getArtifactVersionMetaDataByContent
default VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, InputStream data) -
getArtifactVersionMetaDataByContent
default VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, InputStream data) -
getArtifactVersionMetaDataByContent
default VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, ArtifactContent artifactContent) -
listArtifactRules
-
createArtifactRule
-
deleteArtifactRules
-
getArtifactRuleConfig
-
updateArtifactRuleConfig
-
deleteArtifactRule
-
getArtifactVersionComments
-
addArtifactVersionComment
Comment addArtifactVersionComment(String groupId, String artifactId, String version, NewComment comment) -
deleteArtifactVersionComment
-
editArtifactVersionComment
void editArtifactVersionComment(String groupId, String artifactId, String version, String commentId, NewComment comment) -
updateArtifactState
-
testUpdateArtifact
-
testUpdateArtifact
-
getArtifactVersion
-
getArtifactVersionMetaData
-
updateArtifactVersionMetaData
void updateArtifactVersionMetaData(String groupId, String artifactId, String version, EditableMetaData data) -
deleteArtifactVersionMetaData
-
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
-
listArtifactsInGroup
-
createArtifact
-
createArtifact
ArtifactMetaData createArtifact(String groupId, String artifactId, String version, String artifactType, IfExists ifExists, Boolean canonical, String artifactName, String artifactDescription, String contentType, String fromURL, String artifactSHA, InputStream data, List<ArtifactReference> artifactReferences) -
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, String version, String artifactType, IfExists ifExists, Boolean canonical, String artifactName, String artifactDescription, InputStream data) -
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, String version, String artifactType, IfExists ifExists, Boolean canonical, InputStream data) -
createArtifact
-
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, InputStream data, List<ArtifactReference> artifactReferences) -
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, String artifactType, IfExists ifExists, InputStream data) -
createArtifact
default ArtifactMetaData createArtifact(String groupId, String artifactId, String artifactType, InputStream data) -
createArtifactWithVersion
default ArtifactMetaData createArtifactWithVersion(String groupId, String artifactId, String version, InputStream data) -
deleteArtifactsInGroup
-
createArtifactGroup
-
deleteArtifactGroup
-
getArtifactGroup
-
listGroups
-
getContentById
-
getContentByGlobalId
-
getContentByGlobalId
-
getContentByHash
-
getContentByHash
-
searchArtifacts
-
searchArtifacts
-
searchArtifactsByContent
ArtifactSearchResults searchArtifactsByContent(InputStream data, SortBy orderBy, SortOrder order, Integer offset, Integer limit) -
listGlobalRules
Deprecated. -
createGlobalRule
Deprecated. -
deleteAllGlobalRules
Deprecated. -
getGlobalRuleConfig
Deprecated. -
updateGlobalRuleConfig
Deprecated. -
deleteGlobalRule
Deprecated. -
listLogConfigurations
Deprecated. -
getLogConfiguration
Deprecated. -
setLogConfiguration
Deprecated. -
removeLogConfiguration
Deprecated. -
exportData
Deprecated. -
importData
Deprecated. -
importData
@Deprecated void importData(InputStream data, boolean preserveGlobalIds, boolean preserveContentIds) Deprecated. -
listRoleMappings
Deprecated. -
createRoleMapping
Deprecated. -
getRoleMapping
Deprecated. -
updateRoleMapping
Deprecated. -
deleteRoleMapping
Deprecated. -
getCurrentUserInfo
UserInfo getCurrentUserInfo() -
setNextRequestHeaders
-
getHeaders
-
listConfigProperties
List<ConfigurationProperty> listConfigProperties() -
setConfigProperty
-
getConfigProperty
-
deleteConfigProperty
-
getArtifactReferencesByGlobalId
-
getArtifactReferencesByContentId
-
getArtifactReferencesByContentHash
-
getArtifactReferencesByCoordinates
List<ArtifactReference> getArtifactReferencesByCoordinates(String groupId, String artifactId, String version)
-