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 PageTemplate
A 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.Resource
getResource()
String
getTemplate()
String
getTitle()
String
toString()
-
-
-
Method Detail
-
getAllowedPaths
public String[] getAllowedPaths()
- Specified by:
getAllowedPaths
in interfacePageTemplate
- Returns:
- the allowedPaths
-
getComponentPolicies
public List<ComponentPolicy> getComponentPolicies()
- Specified by:
getComponentPolicies
in 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:
getResource
in interfacePageTemplate
- Returns:
- the resource
-
getTemplate
public String getTemplate()
- Specified by:
getTemplate
in interfacePageTemplate
- Returns:
- the template
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfacePageTemplate
- Returns:
- the title
-
-