@StableMinor(version="12.3", sinceVersion="5.0") public class DefaultPageWebResourceDataProvider extends AbstractPageWebResourceDataProvider
pageWebResource
Constructor and Description |
---|
DefaultPageWebResourceDataProvider() |
Modifier and Type | Method and Description |
---|---|
protected URL |
getCanonicalUrl()
Returns the URL used for the canonical URL link element for the
AbstractPageWebResourceDataProvider.pageWebResource . |
protected String |
getDescription()
Returns the description for the page web resource.
|
protected 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.
|
protected String |
getSimpleTitle()
Returns the simple title for the page web resource.
|
protected String |
getTitle()
Returns the title for the page web resource.
|
protected String |
getTitlePattern()
Returns the pattern to be used when resolving the title or
null if there's no specific title pattern. |
protected VariableResolver |
getVariableResolver()
Returns the variable resolver used to resolve title against the title pattern.
|
void |
init(PageWebResource pageWebResource)
Sets
AbstractPageWebResourceDataProvider.pageWebResource attribute with the given pageWebResource object. |
getPageWebResourceData, getUrlTitle
public void init(PageWebResource pageWebResource) throws PortalException
AbstractPageWebResourceDataProvider
AbstractPageWebResourceDataProvider.pageWebResource
attribute with the given pageWebResource object.init
in interface IPageWebResourceDataProvider
init
in class AbstractPageWebResourceDataProvider
pageWebResource
- the page web resource this provider will
provide data for.PortalException
protected String getTitle() throws PortalException
AbstractPageWebResourceDataProvider
getTitle
in class AbstractPageWebResourceDataProvider
null
.PortalException
protected VariableResolver getVariableResolver() throws PortalException
PortalException
protected String getTitlePattern() throws PortalException
null
if there's no specific title pattern.null
if there's no specific title pattern.PortalException
protected String getDescription() throws PortalException
AbstractPageWebResourceDataProvider
getDescription
in class AbstractPageWebResourceDataProvider
PortalException
protected URL getCanonicalUrl() throws PortalException
AbstractPageWebResourceDataProvider.pageWebResource
.
In this default implementation, the website base URL used for the canonical URL depends on the web resource's
page configuration. If the page is configured to accept only HTTP, the non-secure main base URL
is used. Otherwise, the secure main base URL
is
used. The canonical URL is then generated by appending the web resource's path to that website base URL.
getCanonicalUrl
in class AbstractPageWebResourceDataProvider
null
if the web resource does not have a canonical URL.PortalException
protected List<String> getKeywords() throws PortalException
AbstractPageWebResourceDataProvider
getKeywords
in class AbstractPageWebResourceDataProvider
null
, but may be an
empty list to indicate there are no keywords.PortalException
protected Map<String,String> getMetaTags() throws PortalException
AbstractPageWebResourceDataProvider
getMetaTags
in class AbstractPageWebResourceDataProvider
PortalException
protected String getSimpleTitle() throws PortalException
AbstractPageWebResourceDataProvider
getSimpleTitle
in class AbstractPageWebResourceDataProvider
null
.PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.