public abstract class AbstractRemoteContentLabelService extends AbstractRemoteService<ContentLabelService> implements RemoteContentLabelService
ContentLabelService
implementation that communicates with Confluence remotely.provider
Modifier | Constructor and Description |
---|---|
protected |
AbstractRemoteContentLabelService(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<PageResponse<Label>> |
addLabels(ContentId contentId,
Iterable<Label> labels)
Deprecated.
since 7.0.1. Use
addLabelsCompletionStage(ContentId, Iterable) instead. |
CompletionStage<PageResponse<Label>> |
addLabelsCompletionStage(ContentId contentId,
Iterable<Label> labels)
Adds the given labels to the specified content
|
abstract 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. |
abstract 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
|
com.atlassian.util.concurrent.Promise<Void> |
removeLabel(ContentId contentId,
Label label)
Deprecated.
since 7.0.1. Use
removeLabelCompletionStage(ContentId, Label) instead. |
com.atlassian.util.concurrent.Promise<Void> |
removeLabel(ContentId contentId,
String label)
Deprecated.
since 6.5.0 use {
removeLabelCompletionStage(ContentId, Label) } |
CompletionStage<Void> |
removeLabelCompletionStage(ContentId contentId,
Label label)
Remove a label with from the specified content
|
ContentLabelService.Validator |
validator()
Remote validation is not currently supported, this method exists to satisfy the RemoteProxyCreator
|
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
protected AbstractRemoteContentLabelService(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
@Deprecated public abstract com.atlassian.util.concurrent.Promise<PageResponse<Label>> getLabels(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request)
getLabelsCompletionStage(ContentId, Collection, PageRequest)
instead.RemoteContentLabelService
getLabels
in interface RemoteContentLabelService
contentId
- the id of the content to retrievepublic abstract CompletionStage<PageResponse<Label>> getLabelsCompletionStage(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request)
RemoteContentLabelService
getLabelsCompletionStage
in interface RemoteContentLabelService
contentId
- the id of the content to retrieve@Deprecated public com.atlassian.util.concurrent.Promise<PageResponse<Label>> addLabels(ContentId contentId, Iterable<Label> labels) throws ServiceException
addLabelsCompletionStage(ContentId, Iterable)
instead.RemoteContentLabelService
addLabels
in interface RemoteContentLabelService
contentId
- the id of the content to add labels tolabels
- the label(s) that will be addedServiceException
- if at least one label is invalid. Provides an error messagepublic CompletionStage<PageResponse<Label>> addLabelsCompletionStage(ContentId contentId, Iterable<Label> labels) throws ServiceException
RemoteContentLabelService
addLabelsCompletionStage
in interface RemoteContentLabelService
contentId
- the id of the content to add labels tolabels
- the label(s) that will be addedServiceException
- if at least one label is invalid. Provides an error message@Deprecated public com.atlassian.util.concurrent.Promise<Void> removeLabel(ContentId contentId, String label) throws ServiceException
removeLabelCompletionStage(ContentId, Label)
}RemoteContentLabelService
removeLabel
in interface RemoteContentLabelService
contentId
- the id of the content to remove the label fromlabel
- the label to removeServiceException
- failed to remove the label@Deprecated public com.atlassian.util.concurrent.Promise<Void> removeLabel(ContentId contentId, Label label)
removeLabelCompletionStage(ContentId, Label)
instead.RemoteContentLabelService
removeLabel
in interface RemoteContentLabelService
contentId
- the id of the content to remove the label fromlabel
- the label to removepublic CompletionStage<Void> removeLabelCompletionStage(ContentId contentId, Label label)
RemoteContentLabelService
removeLabelCompletionStage
in interface RemoteContentLabelService
contentId
- the id of the content to remove the label fromlabel
- the label to removepublic ContentLabelService.Validator validator()
UnsupportedOperationException
Copyright © 2003–2019 Atlassian. All rights reserved.