public class PageImpl extends AbstractModelObject implements Page
customProperties, description, descriptionId, id, info, modelProperties, modificationTime, resourceContainer, title, titleIdATTR_FORMAT_ID, DEFAULT_PAGE_TYPE_ID, PROP_AUTHENTICATION, PROP_PAGE_TYPE_ID, PROP_TEMPLATE_INSTANCE, TYPE_IDPROP_DESCRIPTION, PROP_DESCRIPTION_ID, PROP_ID, PROP_TITLE, PROP_TITLE_ID| Constructor and Description |
|---|
PageImpl(String id,
ModelPersisterInfo key,
org.dom4j.Document document)
Instantiates a new page for a given XML document
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.extensions.webscripts.Description.RequiredAuthentication |
getAuthentication() |
PageImpl[] |
getChildPages(RequestContext context)
Gets the child pages.
|
PageType |
getPageType(RequestContext context)
Gets the page type.
|
String |
getPageTypeId()
Gets the page type id.
|
TemplateInstance |
getTemplate(RequestContext context)
Gets the template.
|
TemplateInstance |
getTemplate(RequestContext context,
String formatId)
Gets the template.
|
protected org.dom4j.Element |
getTemplateElement(org.dom4j.Document document,
String formatId)
Gets the template element.
|
protected org.dom4j.Element |
getTemplateElement(String formatId)
Gets the template element.
|
String |
getTemplateId()
Gets the template id.
|
String |
getTemplateId(String formatId)
Gets the template id.
|
Map<String,TemplateInstance> |
getTemplates(RequestContext context)
Gets the templates.
|
String |
getTypeId()
Returns the type id of the model object.
|
void |
removeTemplateId(String formatId)
Removes the template id.
|
void |
setAuthentication(String authentication) |
void |
setPageTypeId(String pageTypeId)
Sets the page type id.
|
void |
setTemplateId(String templateId)
Sets the template id.
|
void |
setTemplateId(String templateId,
String formatId)
Sets the template id.
|
addResource, addResource, getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModificationTime, getPersisterId, getProperties, getProperty, getResource, getResourceContainer, getResources, getResourcesMap, getStoragePath, getTitle, getTitleId, isCustomProperty, isModelProperty, isSaved, removeCustomProperty, removeModelProperty, removeProperty, removeResource, setCustomProperty, setDescription, setDescriptionId, setId, setModelProperty, setModificationTime, setProperty, setTitle, setTitleId, toString, touch, toXML, updateResource, updateXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModificationTime, getPersisterId, getProperties, getProperty, getStoragePath, getTitle, getTitleId, isSaved, removeCustomProperty, removeModelProperty, removeProperty, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setProperty, setTitle, setTitleId, touch, toXMLpublic PageImpl(String id, ModelPersisterInfo key, org.dom4j.Document document)
document - the documentpublic String getTypeId()
ModelObjectgetTypeId in interface ModelObjectgetTypeId in class AbstractModelObjectpublic String getTemplateId()
PagegetTemplateId in interface Pagepublic String getTemplateId(String formatId)
PagegetTemplateId in interface PageformatId - the format idpublic void setTemplateId(String templateId)
PagesetTemplateId in interface PagetemplateId - the new template idpublic void setTemplateId(String templateId, String formatId)
PagesetTemplateId in interface PagetemplateId - the template idformatId - the format idpublic void removeTemplateId(String formatId)
PageremoveTemplateId in interface PageformatId - the format idpublic Map<String,TemplateInstance> getTemplates(RequestContext context)
PagegetTemplates in interface Pagecontext - the contextpublic TemplateInstance getTemplate(RequestContext context)
PagegetTemplate in interface Pagecontext - the contextpublic TemplateInstance getTemplate(RequestContext context, String formatId)
PagegetTemplate in interface Pagecontext - the contextformatId - the format idpublic PageImpl[] getChildPages(RequestContext context)
PagegetChildPages in interface Pagecontext - the contextpublic String getPageTypeId()
PagegetPageTypeId in interface Pagepublic void setPageTypeId(String pageTypeId)
PagesetPageTypeId in interface PagepageTypeId - the new page type idpublic org.springframework.extensions.webscripts.Description.RequiredAuthentication getAuthentication()
getAuthentication in interface Pagepublic void setAuthentication(String authentication)
setAuthentication in interface Pageauthentication - the authentication level to setpublic PageType getPageType(RequestContext context)
PagegetPageType in interface Pagecontext - the contextprotected org.dom4j.Element getTemplateElement(String formatId)
formatId - the optional format idprotected org.dom4j.Element getTemplateElement(org.dom4j.Document document,
String formatId)
document - the XML DocumentformatId - the optional format idCopyright © 2005–2016 Alfresco Software. All rights reserved.