@Internal public class GraphQLRemoteContentLabelServiceImpl extends AbstractRemoteContentLabelService
ContentLabelService
implementation that communicates with Confluence
remotely using the Confluence GraphQL API.Modifier and Type | Class and Description |
---|---|
static class |
GraphQLRemoteContentLabelServiceImpl.GraphQLQueryLabelsResponse |
provider
Constructor and Description |
---|
GraphQLRemoteContentLabelServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<PageResponse<Label>> |
getLabels(ContentId contentId,
Collection<Label.Prefix> prefixes,
PageRequest request)
Deprecated.
since 7.0.1. Use
getLabelsCompletionStage(ContentId, Collection, PageRequest) instead. |
CompletionStage<PageResponse<Label>> |
getLabelsCompletionStage(ContentId contentId,
Collection<Label.Prefix> prefixes,
PageRequest request)
Get the labels attached to a given piece of content in the given namespaces
|
addLabels, addLabelsCompletionStage, removeLabel, removeLabel, removeLabelCompletionStage, validator
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, putCompletionStage, putFuture
public GraphQLRemoteContentLabelServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
@Deprecated public com.atlassian.util.concurrent.Promise<PageResponse<Label>> getLabels(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request) throws NotFoundException
getLabelsCompletionStage(ContentId, Collection, PageRequest)
instead.RemoteContentLabelService
getLabels
in interface RemoteContentLabelService
getLabels
in class AbstractRemoteContentLabelService
contentId
- the id of the content to retrieveNotFoundException
- if the content does not exist, or is not viewable by the userpublic CompletionStage<PageResponse<Label>> getLabelsCompletionStage(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request)
RemoteContentLabelService
getLabelsCompletionStage
in interface RemoteContentLabelService
getLabelsCompletionStage
in class AbstractRemoteContentLabelService
contentId
- the id of the content to retrieveCopyright © 2003–2021 Atlassian. All rights reserved.