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>> |
addLabels(ContentId contentId,
Iterable<Label> labels)
Adds the given labels to the specified content
|
com.atlassian.util.concurrent.Promise<PageResponse<Label>> |
getLabels(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
|
removeLabel, removeLabeladdExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuturepublic RemoteContentLabelServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public com.atlassian.util.concurrent.Promise<PageResponse<Label>> getLabels(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request) throws NotFoundException
RemoteContentLabelServicegetLabels in interface RemoteContentLabelServicegetLabels in class AbstractRemoteContentLabelServicecontentId - the id of the content to retrieveNotFoundException - if the content does not exist, or is not viewable by the userpublic com.atlassian.util.concurrent.Promise<PageResponse<Label>> addLabels(ContentId contentId, Iterable<Label> labels) throws ServiceException
RemoteContentLabelServiceaddLabels in interface RemoteContentLabelServiceaddLabels in class AbstractRemoteContentLabelServicecontentId - 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 ContentLabelService.Validator validator()
validator in class AbstractRemoteContentLabelServiceUnsupportedOperationExceptionCopyright © 2003–2019 Atlassian. All rights reserved.