Class LegacyTemplateServiceImpl
java.lang.Object
com.atlassian.confluence.ui.rest.service.content.LegacyTemplateServiceImpl
- All Implemented Interfaces:
TemplateService
@Deprecated
@Component
public class LegacyTemplateServiceImpl
extends Object
implements TemplateService
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionLegacyTemplateServiceImpl
(PageTemplateManager pageTemplateManager, PermissionManager permissionManager, LabelsService labelsService, I18NBeanFactory i18NBeanFactory) Deprecated. -
Method Summary
Modifier 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 templatevoid
removeLabel
(long pageTemplateId, long labelId) Deprecated.Remove a label with labelId from the specified content
-
Constructor Details
-
LegacyTemplateServiceImpl
@Autowired public LegacyTemplateServiceImpl(PageTemplateManager pageTemplateManager, PermissionManager permissionManager, LabelsService labelsService, I18NBeanFactory i18NBeanFactory) Deprecated.
-
-
Method Details
-
getLabels
public Iterable<Label> getLabels(long pageTemplateId, Collection<Label.Prefix> prefixes) throws NotFoundException Deprecated.Description copied from interface:TemplateService
Get the labels attached to a given page template- Specified by:
getLabels
in interfaceTemplateService
- 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
-
addLabels
public Iterable<Label> addLabels(long pageTemplateId, Iterable<Label> labels) throws IllegalArgumentException Deprecated.Description copied from interface:TemplateService
Adds the given labels to the specified content- Specified by:
addLabels
in interfaceTemplateService
- Parameters:
pageTemplateId
- the id of the content to add labels tolabels
- 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
-
removeLabel
Deprecated.Description copied from interface:TemplateService
Remove a label with labelId from the specified content- Specified by:
removeLabel
in interfaceTemplateService
- Parameters:
pageTemplateId
- the id of the content to remove the label fromlabelId
- the id of the label to remove- Throws:
IllegalArgumentException
- failed to remove the label
-
ContentService