|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttachmentService
Method Summary | |
---|---|
java.lang.Iterable<Label> |
addLabels(long attachmentId,
java.lang.Iterable<Label> labels)
Adds the given labels to the specified content |
java.lang.Iterable<Label> |
getLabels(long attachmentId,
java.util.Collection<Label.Prefix> prefixes)
Get the labels attached to a given attachment. |
void |
removeLabel(long attachmentId,
long labelId)
Remove a label with labelId from the specified content |
Method Detail |
---|
java.lang.Iterable<Label> getLabels(long attachmentId, java.util.Collection<Label.Prefix> prefixes) throws NotFoundException
attachmentId
- id of the attachment to fetch labels for.
NotFoundException
- if the attachment does not exist, or is not viewable by the userjava.lang.Iterable<Label> addLabels(long attachmentId, java.lang.Iterable<Label> labels) throws java.lang.IllegalArgumentException
attachmentId
- the id of the content to add labels tolabels
- the label(s) that will be added
java.lang.IllegalArgumentException
- if at least one label is invalid. Provides an error messagevoid removeLabel(long attachmentId, long labelId) throws java.lang.IllegalArgumentException
attachmentId
- the id of the content to remove the label fromlabelId
- the id of the label to remove
java.lang.IllegalArgumentException
- failed to remove the label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |