@StableMinor(version="9.0", sinceVersion="5.0") public class ContentPageWebResourceDataProvider extends DefaultPageWebResourceDataProvider
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.
pageWebResource
Constructor and Description |
---|
ContentPageWebResourceDataProvider() |
Modifier and Type | Method and Description |
---|---|
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. |
getMetaTags, getPageWebResourceData
public void init(PageWebResource instance) throws PortalException
AbstractPageWebResourceDataProvider
AbstractPageWebResourceDataProvider.pageWebResource
attribute with the given pageWebResource object.init
in interface IPageWebResourceDataProvider
init
in class AbstractPageWebResourceDataProvider
instance
- the page web resource this provider will
provide data for.PortalException
protected String getDescription() throws PortalException
AbstractPageWebResourceDataProvider
getDescription
in class DefaultPageWebResourceDataProvider
PortalException
protected List<String> getKeywords() throws PortalException
AbstractPageWebResourceDataProvider
getKeywords
in class DefaultPageWebResourceDataProvider
null
, but may be an
empty list to indicate there are no keywords.PortalException
protected String getTitle() throws PortalException
AbstractPageWebResourceDataProvider
getTitle
in class DefaultPageWebResourceDataProvider
null
.PortalException
Lumisportal 9.0.0.160603 - Copyright © 2006–2016 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.