@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 java.lang.Iterable<Label>> |
addLabels(ContentId contentId,
java.lang.Iterable<Label> labels)
Adds the given labels to the specified content
|
com.atlassian.util.concurrent.Promise<? extends java.lang.Iterable<Label>> |
getLabels(ContentId contentId,
java.util.Collection<Label.Prefix> prefixes,
PageRequest request)
Get the labels attached to a given piece of content in the given namespaces
|
void |
removeLabels(ContentId contentId,
java.lang.Iterable<Label> labels)
Remove a label with labelId from the specified content
|
com.atlassian.util.concurrent.Promise<? extends java.lang.Iterable<Label>> getLabels(ContentId contentId, java.util.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 usercom.atlassian.util.concurrent.Promise<? extends java.lang.Iterable<Label>> addLabels(ContentId contentId, java.lang.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 messagevoid removeLabels(ContentId contentId, java.lang.Iterable<Label> labels) throws ServiceException
contentId - the id of the content to remove the label fromlabels - the labels to removeServiceException - failed to remove the labelCopyright © 2003-2014 Atlassian. All Rights Reserved.