lumis.content.webresource
Class ContentPageWebResourceDataProvider

Package class diagram package ContentPageWebResourceDataProvider
java.lang.Object
  extended by lumis.portal.page.webresource.AbstractPageWebResourceDataProvider
      extended by lumis.portal.page.webresource.DefaultPageWebResourceDataProvider
          extended by lumis.content.webresource.ContentPageWebResourceDataProvider
All Implemented Interfaces:
IPageWebResourceDataProvider

@StableMinor(version="5.5",
             sinceVersion="5.0")
public class ContentPageWebResourceDataProvider
extends DefaultPageWebResourceDataProvider

Provides the page information based on content being rendered.

This data 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:
5.0.0

Field Summary
 
Fields inherited from class lumis.portal.page.webresource.AbstractPageWebResourceDataProvider
pageWebResource
 
Constructor Summary
ContentPageWebResourceDataProvider()
           
 
Method Summary
protected  String getDescription()
          Returns the description for the page web resource.
protected  List<String> getKeywords()
          Returns the keywords for the page web resource.
protected  String getTitle()
          Returns the title for the page web resource.
 void init(PageWebResource instance)
          Sets AbstractPageWebResourceDataProvider.pageWebResource attribute with the given pageWebResource object.
 
Methods inherited from class lumis.portal.page.webresource.AbstractPageWebResourceDataProvider
getPageWebResourceData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentPageWebResourceDataProvider

public ContentPageWebResourceDataProvider()
Method Detail

init

public void init(PageWebResource instance)
          throws PortalException
Description copied from class: AbstractPageWebResourceDataProvider
Sets AbstractPageWebResourceDataProvider.pageWebResource attribute with the given pageWebResource object.

Specified by:
init in interface IPageWebResourceDataProvider
Overrides:
init in class AbstractPageWebResourceDataProvider
Parameters:
instance - the page web resource this provider will provide data for.
Throws:
PortalException

getDescription

protected String getDescription()
                         throws PortalException
Description copied from class: AbstractPageWebResourceDataProvider
Returns the description for the page web resource.

Overrides:
getDescription in class DefaultPageWebResourceDataProvider
Returns:
the description.
Throws:
PortalException

getKeywords

protected List<String> getKeywords()
                            throws PortalException
Description copied from class: AbstractPageWebResourceDataProvider
Returns the keywords for the page web resource.

Overrides:
getKeywords in class DefaultPageWebResourceDataProvider
Returns:
the keywords. Must not be null, but may be an empty list to indicate there are no keywords.
Throws:
PortalException

getTitle

protected String getTitle()
                   throws PortalException
Description copied from class: AbstractPageWebResourceDataProvider
Returns the title for the page web resource.

Overrides:
getTitle in class DefaultPageWebResourceDataProvider
Returns:
the title. Must not be null.
Throws:
PortalException


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