public class RemoteContentLabelServiceImpl extends AbstractRemoteContentLabelService
provider
Constructor and Description |
---|
RemoteContentLabelServiceImpl(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
|
ContentLabelService.Validator |
validator()
Remote validation is not currently supported, this method exists to satisfy the RemoteProxyCreator
|
addLabels, addLabelsCompletionStage, removeLabel, removeLabel, removeLabelCompletionStage
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 RemoteContentLabelServiceImpl(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 retrievepublic ContentLabelService.Validator validator()
validator
in class AbstractRemoteContentLabelService
UnsupportedOperationException
Copyright © 2003–2020 Atlassian. All rights reserved.