lumis.content.pageruntimedataprovider
Class ContentPageRuntimeDataProvider

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

public class ContentPageRuntimeDataProvider
extends DefaultPageRuntimeDataProvider

Provides the page information based on content being rendered.

This runtime provider detects if the current page contains a content id as a parameter. If true, it provides the content title and introduction from the ContentManager.

Since:
4.2.0

Field Summary
 
Fields inherited from class lumis.portal.page.context.DefaultPageRuntimeDataProvider
pageContext
 
Constructor Summary
ContentPageRuntimeDataProvider()
           
 
Method Summary
 void init(IPageContext context)
          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 lumis.portal.page.context.DefaultPageRuntimeDataProvider
getPageRuntimeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentPageRuntimeDataProvider

public ContentPageRuntimeDataProvider()
Method Detail

init

public void init(IPageContext context)
          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
Overrides:
init in class DefaultPageRuntimeDataProvider
Parameters:
context - current page context
Throws:
PortalException

setTitle

protected void setTitle(PageRuntimeData pageRuntimeData)
                 throws PortalException
Description copied from class: DefaultPageRuntimeDataProvider
Sets the title property on the given pageRuntimeData object.

Overrides:
setTitle in class DefaultPageRuntimeDataProvider
Throws:
PortalException

setDescription

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

The description value is taken from the introduction property of the content being visualized. If not applicable the default parent method is called.

Overrides:
setDescription in class DefaultPageRuntimeDataProvider
Parameters:
pageRuntimeData - page runtime data object.
Throws:
PortalException
Since:
4.2.0

setKeywords

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

The keywords value is taken from the keyword property of the content being visualized. This value is appended to the value returned from the parent implementation before setting the pageRuntimeData keywords property.

Overrides:
setKeywords in class DefaultPageRuntimeDataProvider
Parameters:
pageRuntimeData - page runtime data object.
Throws:
PortalException
Since:
4.2.0


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