@StableMinor(version="12.3", 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 URL |
getCanonicalUrl()
Returns the URL used for the canonical URL link element for the
pageWebResource . |
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 |
getSimpleTitle()
Returns the simple title for the page web resource.
|
protected abstract String |
getTitle()
Returns the title for the page web resource.
|
protected String |
getUrlTitle()
Returns the title to be used when generating the URL of 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 getSimpleTitle() throws PortalException
null
.PortalException
protected String getUrlTitle() throws PortalException
null
if there is no specific title for URL generation.PortalException
protected abstract String getDescription() throws PortalException
PortalException
protected URL getCanonicalUrl() throws PortalException
pageWebResource
.null
if the web resource does not have a canonical URL.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
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.