Class RemoteContentLabelServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<ContentLabelService>
-
- com.atlassian.confluence.rest.client.AbstractRemoteContentLabelService
-
- com.atlassian.confluence.rest.client.RemoteContentLabelServiceImpl
-
- All Implemented Interfaces:
RemoteContentLabelService
public class RemoteContentLabelServiceImpl extends AbstractRemoteContentLabelService
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Constructor Summary
Constructors Constructor Description RemoteContentLabelServiceImpl(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 namespacesContentLabelService.Validatorvalidator()Remote validation is not currently supported, this method exists to satisfy the RemoteProxyCreator-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteContentLabelService
addLabels, addLabelsCompletionStage, removeLabel, removeLabel, removeLabelCompletionStage
-
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
-
RemoteContentLabelServiceImpl
public RemoteContentLabelServiceImpl(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
-
validator
public ContentLabelService.Validator validator()
Remote validation is not currently supported, this method exists to satisfy the RemoteProxyCreator- Overrides:
validatorin classAbstractRemoteContentLabelService- Throws:
UnsupportedOperationException
-
-