lumis.portal.page.context
Class DefaultPageRuntimeDataProvider

Package class diagram package DefaultPageRuntimeDataProvider
java.lang.Object
  extended by lumis.portal.page.context.DefaultPageRuntimeDataProvider
All Implemented Interfaces:
IPageRuntimeDataProvider
Direct Known Subclasses:
ContentPageRuntimeDataProvider

public class DefaultPageRuntimeDataProvider
extends Object
implements IPageRuntimeDataProvider

Default page runtime data provider. Simply returns the configurations specified in the page properties.

Since:
4.2.0

Field Summary
protected  IPageContext pageContext
           
 
Constructor Summary
DefaultPageRuntimeDataProvider()
           
 
Method Summary
 PageRuntimeData getPageRuntimeData()
          Returns the runtime data for the current page context.
 void init(IPageContext pageContext)
          Called by the portal framework when rendering a page.
protected  void setDescription(PageRuntimeData pageRuntimeData)
          Sets the description property on the given pageRuntimeData object.
protected  void setKeywords(PageRuntimeData pageRuntimeData)
          Sets the keywords property on the given pageRuntimeData object.
protected  void setTitle(PageRuntimeData pageRuntimeData)
          Sets the title property on the given pageRuntimeData object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageContext

protected IPageContext pageContext
Constructor Detail

DefaultPageRuntimeDataProvider

public DefaultPageRuntimeDataProvider()
Method Detail

init

public void init(IPageContext pageContext)
          throws PortalException
Description copied from interface: IPageRuntimeDataProvider
Called by the portal framework when rendering a page. Any initialization may be done here.

Specified by:
init in interface IPageRuntimeDataProvider
Parameters:
pageContext - current page context
Throws:
PortalException

getPageRuntimeData

public PageRuntimeData getPageRuntimeData()
                                   throws PortalException
Description copied from interface: IPageRuntimeDataProvider
Returns the runtime data for the current page context. The title property of the runtime data must not be null.

Specified by:
getPageRuntimeData in interface IPageRuntimeDataProvider
Returns:
the page runtime data.
Throws:
PortalException

setTitle

protected void setTitle(PageRuntimeData pageRuntimeData)
                 throws PortalException
Sets the title property on the given pageRuntimeData object.

Parameters:
pageRuntimeData -
Throws:
PortalException
Since:
4.2.0

setDescription

protected void setDescription(PageRuntimeData pageRuntimeData)
                       throws PortalException
Sets the description property on the given pageRuntimeData object.

Parameters:
pageRuntimeData -
Throws:
PortalException
Since:
4.2.0

setKeywords

protected void setKeywords(PageRuntimeData pageRuntimeData)
                    throws PortalException
Sets the keywords property on the given pageRuntimeData object.

Parameters:
pageRuntimeData - the runtime data for to which the keywords should be set
Throws:
PortalException
Since:
4.2.0


Lumisportal  4.2.1.080903 - Copyright © 2001-2007, Lumis. All Rights Reserved.