@ProviderType public interface TemplateManager
| Modifier and Type | Method and Description |
|---|---|
Template |
createTemplate(String parentPath,
String templateType,
String templateName,
ValueMap templateProperties)
Creates a new template
|
void |
deleteTemplate(Template template) |
List<Template> |
getAllTemplates() |
List<Page> |
getContainingPages(Template template) |
Template |
getContainingTemplate(Resource resource) |
List<Resource> |
getStructureResources(ComponentContext componentContext) |
Template |
getTemplate(String templatePath) |
List<Template> |
getTemplates(Predicate filter) |
List<Template> |
getTemplateTypes(String parentPath)
Get template types
|
boolean |
isTemplateUsed(Template template)
Verifies if there is any Page using the given Template.
|
Template createTemplate(String parentPath, String templateType, String templateName, ValueMap templateProperties) throws WCMException
parentPath - the parent pathtemplateName - the template nametemplateProperties - properties of templatetemplateType - type of templateWCMException - is thrown if the template is still used on pages.void deleteTemplate(Template template) throws WCMException
template - the templateWCMException - is thrown if the template is still used on pages.List<Page> getContainingPages(Template template)
template - the templateList<Resource> getStructureResources(ComponentContext componentContext)
componentContext - the component contextTemplate getContainingTemplate(Resource resource)
resource - the resource that contains templateList<Template> getTemplates(Predicate filter)
filter - filter templatesTemplate getTemplate(String templatePath)
templatePath - the path for the templateList<Template> getTemplateTypes(String parentPath)
parentPath - The parent path for the templatesboolean isTemplateUsed(Template template)
template - the Template to testtrue if there is any Page using the TemplateCopyright © 2010 - 2020 Adobe. All Rights Reserved