org.infoglue.deliver.invokers
Class ComponentBasedHTMLPageInvoker

java.lang.Object
  extended by org.infoglue.deliver.invokers.PageInvoker
      extended by org.infoglue.deliver.invokers.ComponentBasedHTMLPageInvoker
Direct Known Subclasses:
DecoratedComponentBasedHTMLPageInvoker

public class ComponentBasedHTMLPageInvoker
extends PageInvoker

Author:
Mattias Bogeblad This class delivers a normal html page by using the component-based method.

Constructor Summary
ComponentBasedHTMLPageInvoker()
           
 
Method Summary
protected  java.util.Map getComponent(org.exolab.castor.jdo.Database db, org.dom4j.Element element, java.lang.String componentName, TemplateController templateController, InfoGlueComponent parentComponent)
          This method gets a specific component.
protected  InfoGlueComponent getComponent(org.exolab.castor.jdo.Database db, TemplateController templateController, InfoGlueComponent component, java.lang.Integer siteNodeId, java.lang.String id)
          This method fetches a subcomponent from either the current page or from a parent node if it's not defined.
protected  java.util.Map getComponents(org.exolab.castor.jdo.Database db, org.dom4j.Element element, TemplateController templateController, InfoGlueComponent parentComponent)
          This method gets a Map of the components available on the page.
protected  java.util.List getComponents(org.exolab.castor.jdo.Database db, TemplateController templateController, InfoGlueComponent component, java.lang.Integer siteNodeId, java.lang.String id)
          This method fetches a subcomponent from either the current page or from a parent node if it's not defined.
protected  java.lang.String getComponentString(TemplateController templateController, java.lang.Integer contentId, InfoGlueComponent component)
          This method fetches the component template as a string.
 PageInvoker getDecoratedPageInvoker()
          This method should return an instance of the class that should be used for page editing inside the tools or in working.
protected  java.util.List getInheritedComponents(org.exolab.castor.jdo.Database db, TemplateController templateController, InfoGlueComponent component, java.lang.Integer siteNodeId, java.lang.String id, boolean inherit)
          This method fetches a subcomponent from either the current page or from a parent node if it's not defined.
protected  java.util.List getPageComponents(org.exolab.castor.jdo.Database db, java.lang.String componentXML, org.dom4j.Element element, java.lang.String slotName, TemplateController templateController, InfoGlueComponent parentComponent)
          This method gets the component structure on the page.
protected  org.dom4j.Document getPageComponentsDOM4JDocument(org.exolab.castor.jdo.Database db, TemplateController templateController, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId)
          This method fetches the pageComponent structure as a document.
protected  java.lang.String getPageComponentsString(org.exolab.castor.jdo.Database db, TemplateController templateController, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId)
          This method fetches the pageComponent structure from the metainfo content.
 void invokePage()
          This is the method that will render the page.
 
Methods inherited from class org.infoglue.deliver.invokers.PageInvoker
cachePage, deliverPage, getDatabase, getDefaultContext, getDeliveryContext, getPageString, getRequest, getResponse, getTemplateController, setPageString, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentBasedHTMLPageInvoker

public ComponentBasedHTMLPageInvoker()
Method Detail

getDecoratedPageInvoker

public PageInvoker getDecoratedPageInvoker()
                                    throws SystemException
This method should return an instance of the class that should be used for page editing inside the tools or in working. Makes it possible to have an alternative to the ordinary delivery optimized class.

Specified by:
getDecoratedPageInvoker in class PageInvoker
Throws:
SystemException

invokePage

public void invokePage()
                throws SystemException,
                       java.lang.Exception
This is the method that will render the page. It uses the new component based structure.

Specified by:
invokePage in class PageInvoker
Throws:
SystemException
java.lang.Exception

getPageComponentsString

protected java.lang.String getPageComponentsString(org.exolab.castor.jdo.Database db,
                                                   TemplateController templateController,
                                                   java.lang.Integer siteNodeId,
                                                   java.lang.Integer languageId,
                                                   java.lang.Integer contentId)
                                            throws SystemException,
                                                   java.lang.Exception
This method fetches the pageComponent structure from the metainfo content.

Throws:
SystemException
java.lang.Exception

getPageComponentsDOM4JDocument

protected org.dom4j.Document getPageComponentsDOM4JDocument(org.exolab.castor.jdo.Database db,
                                                            TemplateController templateController,
                                                            java.lang.Integer siteNodeId,
                                                            java.lang.Integer languageId,
                                                            java.lang.Integer contentId)
                                                     throws SystemException,
                                                            java.lang.Exception
This method fetches the pageComponent structure as a document.

Throws:
SystemException
java.lang.Exception

getComponents

protected java.util.Map getComponents(org.exolab.castor.jdo.Database db,
                                      org.dom4j.Element element,
                                      TemplateController templateController,
                                      InfoGlueComponent parentComponent)
                               throws java.lang.Exception
This method gets a Map of the components available on the page.

Throws:
java.lang.Exception

getComponent

protected java.util.Map getComponent(org.exolab.castor.jdo.Database db,
                                     org.dom4j.Element element,
                                     java.lang.String componentName,
                                     TemplateController templateController,
                                     InfoGlueComponent parentComponent)
                              throws java.lang.Exception
This method gets a specific component.

Throws:
java.lang.Exception

getComponentString

protected java.lang.String getComponentString(TemplateController templateController,
                                              java.lang.Integer contentId,
                                              InfoGlueComponent component)
                                       throws SystemException,
                                              java.lang.Exception
This method fetches the component template as a string.

Throws:
SystemException
java.lang.Exception

getInheritedComponents

protected java.util.List getInheritedComponents(org.exolab.castor.jdo.Database db,
                                                TemplateController templateController,
                                                InfoGlueComponent component,
                                                java.lang.Integer siteNodeId,
                                                java.lang.String id,
                                                boolean inherit)
                                         throws java.lang.Exception
This method fetches a subcomponent from either the current page or from a parent node if it's not defined.

Throws:
java.lang.Exception

getComponent

protected InfoGlueComponent getComponent(org.exolab.castor.jdo.Database db,
                                         TemplateController templateController,
                                         InfoGlueComponent component,
                                         java.lang.Integer siteNodeId,
                                         java.lang.String id)
                                  throws java.lang.Exception
This method fetches a subcomponent from either the current page or from a parent node if it's not defined.

Throws:
java.lang.Exception

getComponents

protected java.util.List getComponents(org.exolab.castor.jdo.Database db,
                                       TemplateController templateController,
                                       InfoGlueComponent component,
                                       java.lang.Integer siteNodeId,
                                       java.lang.String id)
                                throws java.lang.Exception
This method fetches a subcomponent from either the current page or from a parent node if it's not defined.

Throws:
java.lang.Exception

getPageComponents

protected java.util.List getPageComponents(org.exolab.castor.jdo.Database db,
                                           java.lang.String componentXML,
                                           org.dom4j.Element element,
                                           java.lang.String slotName,
                                           TemplateController templateController,
                                           InfoGlueComponent parentComponent)
                                    throws java.lang.Exception
This method gets the component structure on the page.

Throws:
java.lang.Exception


Copyright © 2005 InfoGlue.org All Rights Reserved.