@Model(adaptables=org.apache.sling.api.resource.Resource.class, adapters=org.apache.sling.cms.Page.class) public class PageImpl extends Object implements Page
Modifier and Type | Field and Description |
---|---|
protected org.apache.sling.api.resource.Resource |
resource |
Constructor and Description |
---|
PageImpl(org.apache.sling.api.resource.Resource resource) |
Modifier and Type | Method and Description |
---|---|
static Page |
getContainingPage(org.apache.sling.api.resource.Resource resource) |
org.apache.sling.api.resource.Resource |
getContentResource() |
Calendar |
getCreated() |
String |
getCreatedBy() |
String[] |
getKeywords() |
Calendar |
getLastModified() |
String |
getLastModifiedBy() |
String |
getName() |
org.apache.sling.api.resource.Resource |
getParent() |
String |
getPath() |
org.apache.sling.api.resource.ValueMap |
getProperties() |
String |
getPublishedPath() |
String |
getPublishedUrl() |
org.apache.sling.api.resource.Resource |
getResource() |
Site |
getSite() |
PageTemplate |
getTemplate() |
String |
getTemplatePath() |
String |
getTitle() |
boolean |
isPublished() |
public static final Page getContainingPage(org.apache.sling.api.resource.Resource resource)
public org.apache.sling.api.resource.Resource getContentResource()
getContentResource
in interface Page
public Calendar getCreated()
getCreated
in interface Page
public String getCreatedBy()
getCreatedBy
in interface Page
public String[] getKeywords()
getKeywords
in interface Page
public Calendar getLastModified()
getLastModified
in interface Page
public String getLastModifiedBy()
getLastModifiedBy
in interface Page
public org.apache.sling.api.resource.Resource getParent()
public org.apache.sling.api.resource.ValueMap getProperties()
getProperties
in interface Page
public String getPublishedPath()
getPublishedPath
in interface Page
public String getPublishedUrl()
getPublishedUrl
in interface Page
public org.apache.sling.api.resource.Resource getResource()
getResource
in interface Page
public PageTemplate getTemplate()
getTemplate
in interface Page
public String getTemplatePath()
getTemplatePath
in interface Page
public boolean isPublished()
isPublished
in interface Page
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.