public interface ContentLabelService
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ContentLabelService.Validator |
| Modifier and Type | Method and Description |
|---|---|
PageResponse<Label> |
addLabels(ContentId contentId,
java.lang.Iterable<Label> labels)
Adds the given labels to the specified content
|
PageResponse<Label> |
getLabels(ContentId contentId,
java.util.Collection<Label.Prefix> prefixes,
PageRequest pageRequest)
Get the labels attached to a given piece of content in the given namespaces
|
ContentLabelService.Validator |
validator() |
PageResponse<Label> getLabels(ContentId contentId, java.util.Collection<Label.Prefix> prefixes, PageRequest pageRequest) throws NotFoundException
contentId - the id of the content to retrieveprefixes - - the prefixes to filter the returned labels by, if empty no prefix filter is appliedpageRequest - - indicates how many labels to return and from what offsetNotFoundException - if the content does not exist, or is not viewable by the userPageResponse<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 messageContentLabelService.Validator validator()
Copyright © 2003-2014 Atlassian. All Rights Reserved.