Class GraphQLRemoteContentLabelServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<ContentLabelService>
-
- com.atlassian.confluence.rest.client.AbstractRemoteContentLabelService
-
- com.atlassian.confluence.rest.client.graphql.GraphQLRemoteContentLabelServiceImpl
-
- All Implemented Interfaces:
RemoteContentLabelService
@Internal public class GraphQLRemoteContentLabelServiceImpl extends AbstractRemoteContentLabelService
ContentLabelServiceimplementation that communicates with Confluence remotely using the Confluence GraphQL API.- Since:
- 6.12.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphQLRemoteContentLabelServiceImpl.GraphQLQueryLabelsResponse
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Constructor Summary
Constructors Constructor Description GraphQLRemoteContentLabelServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.atlassian.util.concurrent.Promise<PageResponse<Label>>getLabels(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request)Deprecated.since 7.0.1.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-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteContentLabelService
addLabels, addLabelsCompletionStage, removeLabel, removeLabel, removeLabelCompletionStage, validator
-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
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
-
-
-
-
Constructor Detail
-
GraphQLRemoteContentLabelServiceImpl
public GraphQLRemoteContentLabelServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
-
Method Detail
-
getLabels
@Deprecated public com.atlassian.util.concurrent.Promise<PageResponse<Label>> getLabels(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request) throws NotFoundException
Deprecated.since 7.0.1. UsegetLabelsCompletionStage(ContentId, Collection, PageRequest)instead.Description copied from interface:RemoteContentLabelServiceGet the labels attached to a given piece of content in the given namespaces- Specified by:
getLabelsin interfaceRemoteContentLabelService- Specified by:
getLabelsin classAbstractRemoteContentLabelService- Parameters:
contentId- the id of the content to retrieve- Throws:
NotFoundException- if the content does not exist, or is not viewable by the user
-
getLabelsCompletionStage
public CompletionStage<PageResponse<Label>> getLabelsCompletionStage(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request)
Description copied from interface:RemoteContentLabelServiceGet the labels attached to a given piece of content in the given namespaces- Specified by:
getLabelsCompletionStagein interfaceRemoteContentLabelService- Specified by:
getLabelsCompletionStagein classAbstractRemoteContentLabelService- Parameters:
contentId- the id of the content to retrieve
-
-