Class RegistryClientImpl
java.lang.Object
io.apicurio.registry.rest.client.impl.RegistryClientImpl
- All Implemented Interfaces:
RegistryClient,Closeable,AutoCloseable
- Author:
- Carles Arnal 'carnalca@redhat.com'
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.apicurio.rest.client.spi.ApicurioHttpClient -
Constructor Summary
ConstructorsConstructorDescriptionRegistryClientImpl(io.apicurio.rest.client.spi.ApicurioHttpClient apicurioHttpClient) -
Method Summary
Modifier and TypeMethodDescriptionaddArtifactVersionComment(String groupId, String artifactId, String version, NewComment comment) protected voidcheckCommonQueryParams(SortBy orderBy, SortOrder order, Integer limit, Integer offset, Map<String, List<String>> queryParams) voidclose()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) protected RegistryClientImpl.CreateArtifactcreateArtifactLogic(String artifactId, String version, String artifactType, IfExists ifExists, Boolean canonical, String artifactName, String artifactDescription, String contentType, String artifactSHA) voidcreateArtifactRule(String groupId, String artifactId, Rule data) createArtifactVersion(String groupId, String artifactId, String version, String artifactName, String artifactDescription, String contentType, 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) getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, ArtifactContent artifactContent) getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, String contentType, InputStream data) getConfigProperty(String propertyName) getContentByGlobalId(long globalId) getContentByGlobalId(long globalId, Boolean canonical, Boolean dereference) 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.headersFrom(String version, String artifactName, String artifactDescription, String contentType) voidimportData(InputStream data) Deprecated.voidimportData(InputStream data, boolean preserveGlobalIds, boolean preserveContentIds) listArtifactRules(String groupId, String artifactId) 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.protected StringnormalizeGid(String groupId) protected static RestClientExceptionparseSerializationError(com.fasterxml.jackson.core.JsonProcessingException ex) removeLogConfiguration(String logger) Deprecated.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) voidtestUpdateArtifact(String groupId, String artifactId, String contentType, 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.apicurio.registry.rest.client.RegistryClient
createArtifact, createArtifact, createArtifact, createArtifact, createArtifact, createArtifact, createArtifactVersion, createArtifactVersion, createArtifactWithVersion, getArtifactVersionMetaDataByContent, getArtifactVersionMetaDataByContent, getArtifactVersionMetaDataByContent, getContentByHash, listArtifactsInGroup, searchArtifacts, testUpdateArtifact, updateArtifact, updateArtifact, updateArtifact
-
Field Details
-
apicurioHttpClient
protected final io.apicurio.rest.client.spi.ApicurioHttpClient apicurioHttpClient
-
-
Constructor Details
-
RegistryClientImpl
public RegistryClientImpl(io.apicurio.rest.client.spi.ApicurioHttpClient apicurioHttpClient)
-
-
Method Details
-
getLatestArtifact
- Specified by:
getLatestArtifactin interfaceRegistryClient
-
updateArtifact
public ArtifactMetaData updateArtifact(String groupId, String artifactId, String version, String artifactName, String artifactDescription, String contentType, InputStream data) - Specified by:
updateArtifactin interfaceRegistryClient
-
updateArtifact
public ArtifactMetaData updateArtifact(String groupId, String artifactId, String version, String artifactName, String artifactDescription, InputStream data, List<ArtifactReference> references) - Specified by:
updateArtifactin interfaceRegistryClient
-
deleteArtifact
- Specified by:
deleteArtifactin interfaceRegistryClient
-
getArtifactMetaData
- Specified by:
getArtifactMetaDatain interfaceRegistryClient
-
getArtifactOwner
- Specified by:
getArtifactOwnerin interfaceRegistryClient
-
updateArtifactMetaData
- Specified by:
updateArtifactMetaDatain interfaceRegistryClient
-
updateArtifactOwner
- Specified by:
updateArtifactOwnerin interfaceRegistryClient
-
getArtifactVersionMetaDataByContent
public VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, String contentType, InputStream data) - Specified by:
getArtifactVersionMetaDataByContentin interfaceRegistryClient
-
getArtifactVersionMetaDataByContent
public VersionMetaData getArtifactVersionMetaDataByContent(String groupId, String artifactId, Boolean canonical, ArtifactContent artifactContent) - Specified by:
getArtifactVersionMetaDataByContentin interfaceRegistryClient
-
listArtifactRules
- Specified by:
listArtifactRulesin interfaceRegistryClient
-
createArtifactRule
- Specified by:
createArtifactRulein interfaceRegistryClient
-
deleteArtifactRules
- Specified by:
deleteArtifactRulesin interfaceRegistryClient
-
getArtifactRuleConfig
- Specified by:
getArtifactRuleConfigin interfaceRegistryClient
-
updateArtifactRuleConfig
- Specified by:
updateArtifactRuleConfigin interfaceRegistryClient
-
deleteArtifactRule
- Specified by:
deleteArtifactRulein interfaceRegistryClient
-
updateArtifactState
- Specified by:
updateArtifactStatein interfaceRegistryClient
-
testUpdateArtifact
public void testUpdateArtifact(String groupId, String artifactId, String contentType, InputStream data) - Specified by:
testUpdateArtifactin interfaceRegistryClient
-
getArtifactVersion
- Specified by:
getArtifactVersionin interfaceRegistryClient
-
getArtifactVersionMetaData
public VersionMetaData getArtifactVersionMetaData(String groupId, String artifactId, String version) - Specified by:
getArtifactVersionMetaDatain interfaceRegistryClient
-
updateArtifactVersionMetaData
public void updateArtifactVersionMetaData(String groupId, String artifactId, String version, EditableMetaData data) - Specified by:
updateArtifactVersionMetaDatain interfaceRegistryClient
-
deleteArtifactVersionMetaData
- Specified by:
deleteArtifactVersionMetaDatain interfaceRegistryClient
-
updateArtifactVersionState
public void updateArtifactVersionState(String groupId, String artifactId, String version, UpdateState data) - Specified by:
updateArtifactVersionStatein interfaceRegistryClient
-
listArtifactVersions
public VersionSearchResults listArtifactVersions(String groupId, String artifactId, Integer offset, Integer limit) - Specified by:
listArtifactVersionsin interfaceRegistryClient
-
createArtifactVersion
public VersionMetaData createArtifactVersion(String groupId, String artifactId, String version, String artifactName, String artifactDescription, String contentType, InputStream data) - Specified by:
createArtifactVersionin interfaceRegistryClient
-
listArtifactsInGroup
public ArtifactSearchResults listArtifactsInGroup(String groupId, SortBy orderBy, SortOrder order, Integer offset, Integer limit) - Specified by:
listArtifactsInGroupin interfaceRegistryClient
-
createArtifactLogic
-
createArtifact
public 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) - Specified by:
createArtifactin interfaceRegistryClient
-
createArtifact
public 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) - Specified by:
createArtifactin interfaceRegistryClient
-
deleteArtifactsInGroup
- Specified by:
deleteArtifactsInGroupin interfaceRegistryClient
-
createArtifactGroup
- Specified by:
createArtifactGroupin interfaceRegistryClient
-
deleteArtifactGroup
- Specified by:
deleteArtifactGroupin interfaceRegistryClient
-
getArtifactGroup
- Specified by:
getArtifactGroupin interfaceRegistryClient
-
listGroups
public GroupSearchResults listGroups(SortBy orderBy, SortOrder order, Integer offset, Integer limit) - Specified by:
listGroupsin interfaceRegistryClient
-
getContentById
- Specified by:
getContentByIdin interfaceRegistryClient
-
getContentByGlobalId
- Specified by:
getContentByGlobalIdin interfaceRegistryClient
-
getContentByGlobalId
- Specified by:
getContentByGlobalIdin interfaceRegistryClient
-
getContentByHash
- Specified by:
getContentByHashin interfaceRegistryClient
-
searchArtifacts
public 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) - Specified by:
searchArtifactsin interfaceRegistryClient
-
searchArtifactsByContent
public ArtifactSearchResults searchArtifactsByContent(InputStream data, SortBy orderBy, SortOrder order, Integer offset, Integer limit) - Specified by:
searchArtifactsByContentin interfaceRegistryClient
-
listGlobalRules
Deprecated.- Specified by:
listGlobalRulesin interfaceRegistryClient
-
createGlobalRule
Deprecated.- Specified by:
createGlobalRulein interfaceRegistryClient
-
deleteAllGlobalRules
Deprecated.- Specified by:
deleteAllGlobalRulesin interfaceRegistryClient
-
getGlobalRuleConfig
Deprecated.- Specified by:
getGlobalRuleConfigin interfaceRegistryClient
-
updateGlobalRuleConfig
Deprecated.- Specified by:
updateGlobalRuleConfigin interfaceRegistryClient
-
deleteGlobalRule
Deprecated.- Specified by:
deleteGlobalRulein interfaceRegistryClient
-
listLogConfigurations
Deprecated.- Specified by:
listLogConfigurationsin interfaceRegistryClient
-
getLogConfiguration
Deprecated.- Specified by:
getLogConfigurationin interfaceRegistryClient
-
setLogConfiguration
Deprecated.- Specified by:
setLogConfigurationin interfaceRegistryClient
-
removeLogConfiguration
Deprecated.- Specified by:
removeLogConfigurationin interfaceRegistryClient
-
exportData
Deprecated.- Specified by:
exportDatain interfaceRegistryClient
-
importData
Deprecated.- Specified by:
importDatain interfaceRegistryClient
-
importData
- Specified by:
importDatain interfaceRegistryClient
-
createRoleMapping
Deprecated.- Specified by:
createRoleMappingin interfaceRegistryClient
-
deleteRoleMapping
Deprecated.- Specified by:
deleteRoleMappingin interfaceRegistryClient
-
getRoleMapping
Deprecated.- Specified by:
getRoleMappingin interfaceRegistryClient
-
listRoleMappings
Deprecated.- Specified by:
listRoleMappingsin interfaceRegistryClient
-
updateRoleMapping
Deprecated.- Specified by:
updateRoleMappingin interfaceRegistryClient
-
listConfigProperties
- Specified by:
listConfigPropertiesin interfaceRegistryClient
-
getConfigProperty
- Specified by:
getConfigPropertyin interfaceRegistryClient
-
setConfigProperty
- Specified by:
setConfigPropertyin interfaceRegistryClient
-
deleteConfigProperty
- Specified by:
deleteConfigPropertyin interfaceRegistryClient
-
getCurrentUserInfo
- Specified by:
getCurrentUserInfoin interfaceRegistryClient
-
getArtifactReferencesByGlobalId
- Specified by:
getArtifactReferencesByGlobalIdin interfaceRegistryClient
-
getArtifactReferencesByContentId
- Specified by:
getArtifactReferencesByContentIdin interfaceRegistryClient
-
getArtifactReferencesByContentHash
- Specified by:
getArtifactReferencesByContentHashin interfaceRegistryClient
-
getArtifactReferencesByCoordinates
public List<ArtifactReference> getArtifactReferencesByCoordinates(String groupId, String artifactId, String version) - Specified by:
getArtifactReferencesByCoordinatesin interfaceRegistryClient
-
addArtifactVersionComment
public Comment addArtifactVersionComment(String groupId, String artifactId, String version, NewComment comment) - Specified by:
addArtifactVersionCommentin interfaceRegistryClient
-
deleteArtifactVersionComment
public void deleteArtifactVersionComment(String groupId, String artifactId, String version, String commentId) - Specified by:
deleteArtifactVersionCommentin interfaceRegistryClient
-
editArtifactVersionComment
public void editArtifactVersionComment(String groupId, String artifactId, String version, String commentId, NewComment comment) - Specified by:
editArtifactVersionCommentin interfaceRegistryClient
-
getArtifactVersionComments
- Specified by:
getArtifactVersionCommentsin interfaceRegistryClient
-
setNextRequestHeaders
- Specified by:
setNextRequestHeadersin interfaceRegistryClient
-
getHeaders
- Specified by:
getHeadersin interfaceRegistryClient
-
checkCommonQueryParams
-
normalizeGid
-
headersFrom
-
parseSerializationError
protected static RestClientException parseSerializationError(com.fasterxml.jackson.core.JsonProcessingException ex) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-