@ExperimentalApi
public interface RemoteContentLabelService
ContentLabelService
implementation that communicates with Confluence
remotely using the Confluence REST API.
Provides Promise
returning equivalents for the methods in ContentLabelService.
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<? extends Iterable<Label>> |
addLabels(ContentId contentId,
Iterable<Label> labels)
Deprecated.
since 7.0.1. Use
getLabelsCompletionStage(ContentId, Collection, PageRequest) instead. |
CompletionStage<? extends Iterable<Label>> |
addLabelsCompletionStage(ContentId contentId,
Iterable<Label> labels)
Adds the given labels to the specified content
|
com.atlassian.util.concurrent.Promise<? extends Iterable<Label>> |
getLabels(ContentId contentId,
Collection<Label.Prefix> prefixes,
PageRequest request)
Deprecated.
since 7.0.1. Use
getLabelsCompletionStage(ContentId, Collection, PageRequest) instead. |
CompletionStage<? extends Iterable<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
|
@Deprecated com.atlassian.util.concurrent.Promise<? extends Iterable<Label>> getLabels(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request) throws NotFoundException
getLabelsCompletionStage(ContentId, Collection, PageRequest)
instead.contentId
- the id of the content to retrieveNotFoundException
- if the content does not exist, or is not viewable by the userCompletionStage<? extends Iterable<Label>> getLabelsCompletionStage(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request) throws NotFoundException
contentId
- the id of the content to retrieveNotFoundException
- if the content does not exist, or is not viewable by the user@Deprecated com.atlassian.util.concurrent.Promise<? extends Iterable<Label>> addLabels(ContentId contentId, Iterable<Label> labels) throws ServiceException
getLabelsCompletionStage(ContentId, Collection, PageRequest)
instead.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 messageCompletionStage<? extends Iterable<Label>> addLabelsCompletionStage(ContentId contentId, Iterable<Label> labels) throws ServiceException
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 com.atlassian.util.concurrent.Promise<Void> removeLabel(ContentId contentId, String label) throws ServiceException
removeLabelCompletionStage(ContentId, Label)
contentId
- the id of the content to remove the label fromlabel
- the label to removeServiceException
- failed to remove the label@Deprecated com.atlassian.util.concurrent.Promise<Void> removeLabel(ContentId contentId, Label label)
removeLabelCompletionStage(ContentId, Label)
instead.contentId
- the id of the content to remove the label fromlabel
- the label to removeServiceException
- failed to remove the labelCompletionStage<Void> removeLabelCompletionStage(ContentId contentId, Label label)
contentId
- the id of the content to remove the label fromlabel
- the label to removeServiceException
- failed to remove the labelCopyright © 2003–2019 Atlassian. All rights reserved.