public interface TemplateManager
Modifier and Type | Method and Description |
---|---|
Template |
createTemplate(java.lang.String parentPath,
java.lang.String templateType,
java.lang.String templateName,
ValueMap templateProperties)
Creates a new template
|
void |
deleteTemplate(Template template) |
java.util.List<Template> |
getAllTemplates() |
java.util.List<Page> |
getContainingPages(Template template) |
Template |
getContainingTemplate(Resource resource) |
java.util.List<Resource> |
getStructureResources(ComponentContext componentContext) |
Template |
getTemplate(java.lang.String templatePath) |
java.util.List<Template> |
getTemplates(Predicate filter) |
java.util.List<Template> |
getTemplateTypes(java.lang.String parentPath)
Get template types
|
Template createTemplate(java.lang.String parentPath, java.lang.String templateType, java.lang.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.java.util.List<Page> getContainingPages(Template template)
template
- the templatejava.util.List<Resource> getStructureResources(ComponentContext componentContext)
componentContext
- the component contextTemplate getContainingTemplate(Resource resource)
resource
- the resource that contains templatejava.util.List<Template> getAllTemplates()
java.util.List<Template> getTemplates(Predicate filter)
filter
- filter templatesTemplate getTemplate(java.lang.String templatePath)
templatePath
- the path for the templatejava.util.List<Template> getTemplateTypes(java.lang.String parentPath)
parentPath
- The parent path for the templates"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"