Interface TemplateService
- All Known Implementing Classes:
- LegacyTemplateServiceImpl
Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.Adds the given labels to the specified contentgetLabels(long pageTemplateId, Collection<Label.Prefix> prefixes) Deprecated.Get the labels attached to a given page templatevoidremoveLabel(long pageTemplateId, long labelId) Deprecated.Remove a label with labelId from the specified content
- 
Method Details- 
getLabelsIterable<Label> getLabels(long pageTemplateId, Collection<Label.Prefix> prefixes) throws NotFoundException Deprecated.Get the labels attached to a given page template- Parameters:
- pageTemplateId- id of the page template to fetch labels for.
- Throws:
- NotFoundException- if the page template does not exist, or is not viewable by the user
 
- 
addLabelsIterable<Label> addLabels(long pageTemplateId, Iterable<Label> labels) throws IllegalArgumentException Deprecated.Adds the given labels to the specified content- Parameters:
- pageTemplateId- the id of the content to add labels to
- labels- the label(s) that will be added
- Returns:
- all the labels that are associated with the specified content
- Throws:
- IllegalArgumentException- if at least one label is invalid. Provides an error message
 
- 
removeLabelDeprecated.Remove a label with labelId from the specified content- Parameters:
- pageTemplateId- the id of the content to remove the label from
- labelId- the id of the label to remove
- Throws:
- IllegalArgumentException- failed to remove the label
 
 
- 
ContentLabelService