|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.types.AbstractModelObject org.springframework.extensions.surf.types.PageImpl
public class PageImpl
Default page implementation
Field Summary |
---|
Fields inherited from class org.springframework.extensions.surf.types.AbstractModelObject |
---|
CONTAINER_PROPERTIES, CONTAINER_RESOURCES, customProperties, description, descriptionId, document, id, info, modelProperties, modelVersion, modificationTime, resourceContainer, title, titleId |
Fields inherited from interface org.springframework.extensions.surf.types.Page |
---|
ATTR_FORMAT_ID, DEFAULT_PAGE_TYPE_ID, PROP_AUTHENTICATION, PROP_PAGE_TYPE_ID, PROP_TEMPLATE_INSTANCE, TYPE_ID |
Fields inherited from interface org.springframework.extensions.surf.ModelObject |
---|
PROP_DESCRIPTION, PROP_DESCRIPTION_ID, PROP_ID, PROP_TITLE, PROP_TITLE_ID |
Constructor Summary | |
---|---|
PageImpl(String id,
ModelPersisterInfo key,
org.dom4j.Document document)
Instantiates a new page for a given XML document |
Method Summary | |
---|---|
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(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. |
Methods inherited from class org.springframework.extensions.surf.types.AbstractModelObject |
---|
addResource, addResource, getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModelVersion, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.extensions.surf.ModelObject |
---|
getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModelVersion, getModificationTime, getPersisterId, getProperties, getProperty, getStoragePath, getTitle, getTitleId, isSaved, removeCustomProperty, removeModelProperty, removeProperty, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setProperty, setTitle, setTitleId, touch, toXML |
Constructor Detail |
---|
public PageImpl(String id, ModelPersisterInfo key, org.dom4j.Document document)
document
- the documentMethod Detail |
---|
public String getTypeId()
ModelObject
getTypeId
in interface ModelObject
getTypeId
in class AbstractModelObject
public String getTemplateId()
Page
getTemplateId
in interface Page
public String getTemplateId(String formatId)
Page
getTemplateId
in interface Page
formatId
- the format id
public void setTemplateId(String templateId)
Page
setTemplateId
in interface Page
templateId
- the new template idpublic void setTemplateId(String templateId, String formatId)
Page
setTemplateId
in interface Page
templateId
- the template idformatId
- the format idpublic void removeTemplateId(String formatId)
Page
removeTemplateId
in interface Page
formatId
- the format idpublic Map<String,TemplateInstance> getTemplates(RequestContext context)
Page
getTemplates
in interface Page
context
- the context
public TemplateInstance getTemplate(RequestContext context)
Page
getTemplate
in interface Page
context
- the context
public TemplateInstance getTemplate(RequestContext context, String formatId)
Page
getTemplate
in interface Page
context
- the contextformatId
- the format id
public PageImpl[] getChildPages(RequestContext context)
Page
getChildPages
in interface Page
context
- the context
public String getPageTypeId()
Page
getPageTypeId
in interface Page
public void setPageTypeId(String pageTypeId)
Page
setPageTypeId
in interface Page
pageTypeId
- the new page type idpublic Description.RequiredAuthentication getAuthentication()
getAuthentication
in interface Page
public void setAuthentication(String authentication)
setAuthentication
in interface Page
authentication
- the authentication level to setpublic PageType getPageType(RequestContext context)
Page
getPageType
in interface Page
context
- the context
protected org.dom4j.Element getTemplateElement(String formatId)
formatId
- the format id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |