Class PageTemplateImpl
- java.lang.Object
-
- org.apache.sling.cms.core.internal.models.PageTemplateImpl
-
- All Implemented Interfaces:
PageTemplate
@Model(adaptables=org.apache.sling.api.resource.Resource.class, adapters=org.apache.sling.cms.PageTemplate.class) public class PageTemplateImpl extends Object implements PageTemplateA simple model for representing a page template
-
-
Constructor Summary
Constructors Constructor Description PageTemplateImpl(org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getAllowedPaths()List<ComponentPolicy>getComponentPolicies()List<org.apache.sling.api.resource.Resource>getFields()org.apache.sling.api.resource.ResourcegetResource()StringgetTemplate()StringgetTitle()StringtoString()
-
-
-
Method Detail
-
getAllowedPaths
public String[] getAllowedPaths()
- Specified by:
getAllowedPathsin interfacePageTemplate- Returns:
- the allowedPaths
-
getComponentPolicies
public List<ComponentPolicy> getComponentPolicies()
- Specified by:
getComponentPoliciesin interfacePageTemplate
-
getFields
public List<org.apache.sling.api.resource.Resource> getFields()
- Returns:
- the fields
-
getResource
public org.apache.sling.api.resource.Resource getResource()
- Specified by:
getResourcein interfacePageTemplate- Returns:
- the resource
-
getTemplate
public String getTemplate()
- Specified by:
getTemplatein interfacePageTemplate- Returns:
- the template
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfacePageTemplate- Returns:
- the title
-
-