@StableMinor(version="9.0", sinceVersion="5.0") public abstract class AbstractPageWebResourceDataProvider extends Object implements IPageWebResourceDataProvider
IPageWebResourceDataProvider
.Modifier and Type | Field and Description |
---|---|
protected PageWebResource |
pageWebResource
The page web resource this provider is generating data for.
|
Constructor and Description |
---|
AbstractPageWebResourceDataProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getDescription()
Returns the description for the page web resource.
|
protected abstract List<String> |
getKeywords()
Returns the keywords for the page web resource.
|
protected Map<String,String> |
getMetaTags()
Returns the meta tags map for the page web resource.
|
PageWebResourceData |
getPageWebResourceData()
Template method for filling up a page web resource data properties.
|
protected abstract String |
getTitle()
Returns the title for the page web resource.
|
void |
init(PageWebResource pageWebResource)
Sets
pageWebResource attribute with the given pageWebResource object. |
protected PageWebResource pageWebResource
public void init(PageWebResource pageWebResource) throws PortalException
pageWebResource
attribute with the given pageWebResource object.init
in interface IPageWebResourceDataProvider
pageWebResource
- the page web resource this provider will
provide data for.PortalException
public PageWebResourceData getPageWebResourceData() throws PortalException
getTitle()
, getDescription()
and
getKeywords()
.getPageWebResourceData
in interface IPageWebResourceDataProvider
PortalException
protected abstract String getTitle() throws PortalException
null
.PortalException
protected abstract String getDescription() throws PortalException
PortalException
protected abstract List<String> getKeywords() throws PortalException
null
, but may be an
empty list to indicate there are no keywords.PortalException
protected Map<String,String> getMetaTags() throws PortalException
PortalException
Lumisportal 9.0.0.160603 - Copyright © 2006–2016 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.