Package lumis.portal.page.webresource
Class AbstractPageWebResourceDataProvider
- java.lang.Object
-
- lumis.portal.page.webresource.AbstractPageWebResourceDataProvider
-
- All Implemented Interfaces:
IPageWebResourceDataProvider
- Direct Known Subclasses:
DefaultPageWebResourceDataProvider
@StableMinor(version="14.2", sinceVersion="5.0") public abstract class AbstractPageWebResourceDataProvider extends Object implements IPageWebResourceDataProvider
An abstract implementation ofIPageWebResourceDataProvider
.- Since:
- 5.0.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Field Summary
Fields Modifier and Type Field Description protected PageWebResource
pageWebResource
The page web resource this provider is generating data for.
-
Constructor Summary
Constructors Constructor Description AbstractPageWebResourceDataProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected URL
getCanonicalUrl()
Returns the URL used for the canonical URL link element for thepageWebResource
.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
getUrlPath()
Returns the URL path.protected String
getUrlTitle()
Returns the title to be used when generating the URL of the page web resource.void
init(PageWebResource pageWebResource)
SetspageWebResource
attribute with the given pageWebResource object.
-
-
-
Field Detail
-
pageWebResource
protected PageWebResource pageWebResource
The page web resource this provider is generating data for.- Since:
- 5.0.0
-
-
Method Detail
-
init
public void init(PageWebResource pageWebResource) throws PortalException
SetspageWebResource
attribute with the given pageWebResource object.- Specified by:
init
in interfaceIPageWebResourceDataProvider
- Parameters:
pageWebResource
- the page web resource this provider will provide data for.- Throws:
PortalException
- Since:
- 5.0.0
-
getPageWebResourceData
public PageWebResourceData getPageWebResourceData() throws PortalException
Template method for filling up a page web resource data properties. CallsgetTitle()
,getDescription()
andgetKeywords()
.- Specified by:
getPageWebResourceData
in interfaceIPageWebResourceDataProvider
- Returns:
- the page web resource data.
- Throws:
PortalException
- Since:
- 5.0.0
-
getTitle
protected abstract String getTitle() throws PortalException
Returns the title for the page web resource.- Returns:
- the title. Must not be
null
. - Throws:
PortalException
- Since:
- 5.0.0
-
getSimpleTitle
protected abstract String getSimpleTitle() throws PortalException
Returns the simple title for the page web resource.- Returns:
- the simple title. Must not be
null
. - Throws:
PortalException
- Since:
- 10.2.0
-
getUrlTitle
protected String getUrlTitle() throws PortalException
Returns the title to be used when generating the URL of the page web resource.- Returns:
- the title, or
null
if there is no specific title for URL generation. - Throws:
PortalException
- Since:
- 10.0.0
-
getDescription
protected abstract String getDescription() throws PortalException
Returns the description for the page web resource.- Returns:
- the description.
- Throws:
PortalException
- Since:
- 5.0.0
-
getCanonicalUrl
protected URL getCanonicalUrl() throws PortalException
Returns the URL used for the canonical URL link element for thepageWebResource
.- Returns:
- the canonical URL, or
null
if the web resource does not have a canonical URL. - Throws:
PortalException
- Since:
- 10.1.0
-
getKeywords
protected abstract List<String> getKeywords() throws PortalException
Returns the keywords for the page web resource.- Returns:
- the keywords. Must not be
null
, but may be an empty list to indicate there are no keywords. - Throws:
PortalException
- Since:
- 5.0.0
-
getMetaTags
protected Map<String,String> getMetaTags() throws PortalException
Returns the meta tags map for the page web resource.- Returns:
- the meta tags map.
- Throws:
PortalException
- Since:
- 6.0.0
-
getUrlPath
protected String getUrlPath()
Returns the URL path.- Returns:
- the URL path.
- Since:
- 12.5.0
-
-