org.infoglue.cms.invokers
Class DecoratedComponentBasedHTMLPageInvoker

java.lang.Object
  extended byorg.infoglue.cms.invokers.PageInvoker
      extended byorg.infoglue.cms.invokers.ComponentBasedHTMLPageInvoker
          extended byorg.infoglue.cms.invokers.DecoratedComponentBasedHTMLPageInvoker

public class DecoratedComponentBasedHTMLPageInvoker
extends ComponentBasedHTMLPageInvoker

Author:
Mattias Bogeblad This class delivers a normal html page by using the component-based method but also decorates it so it can be used by the structure tool to manage the page components.

Constructor Summary
DecoratedComponentBasedHTMLPageInvoker(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, TemplateController templateController, DeliveryContext deliveryContext)
           
 
Method Summary
 java.util.List getComponentContents()
          This method returns the contents that are of contentTypeDefinition "HTMLTemplate"
 java.lang.String getDigitalAssetUrl(java.lang.Integer contentId, java.lang.String key)
          This method fetches an url to the asset for the component.
 void invokePage()
          This is the method that will render the page.
 
Methods inherited from class org.infoglue.cms.invokers.PageInvoker
cachePage, deliverPage, getDeliveryContext, getPageString, getRequest, getResponse, getTemplateController, setPageString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratedComponentBasedHTMLPageInvoker

public DecoratedComponentBasedHTMLPageInvoker(javax.servlet.http.HttpServletRequest request,
                                              javax.servlet.http.HttpServletResponse response,
                                              TemplateController templateController,
                                              DeliveryContext deliveryContext)
Method Detail

invokePage

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

Overrides:
invokePage in class ComponentBasedHTMLPageInvoker
Throws:
java.lang.Exception

getComponentContents

public java.util.List getComponentContents()
                                    throws java.lang.Exception
This method returns the contents that are of contentTypeDefinition "HTMLTemplate"

Throws:
java.lang.Exception

getDigitalAssetUrl

public java.lang.String getDigitalAssetUrl(java.lang.Integer contentId,
                                           java.lang.String key)
                                    throws java.lang.Exception
This method fetches an url to the asset for the component.

Throws:
java.lang.Exception