Package org.opencms.site.xmlsitemap
Class CmsDetailPageDuplicateEliminatingSitemapGenerator
java.lang.Object
org.opencms.site.xmlsitemap.CmsXmlSitemapGenerator
org.opencms.site.xmlsitemap.CmsDetailPageDuplicateEliminatingSitemapGenerator
Sitemap generator class which tries to eliminate duplicate detail pages for the same content and locale.
In principle, any detail page for a type somewhere in the system could be used to display contents anywhere else in the system. This sitemap generator, instead of generating all detail page URLs that could possibly be generated, instead tries to find only the best candidate URL for each content / locale combination.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.site.xmlsitemap.CmsXmlSitemapGenerator
CmsXmlSitemapGenerator.ResultEntry
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<CmsADEConfigData.DetailInfo>
The detail page information.Fields inherited from class org.opencms.site.xmlsitemap.CmsXmlSitemapGenerator
DEFAULT_CHANGE_FREQUENCY, DEFAULT_PRIORITY, m_baseFolderRootPath, m_baseFolderSitePath, m_computeContainerPageDates, m_detailPageInfos, m_detailResources, m_detailTypesByPage, m_guestCms, m_includeExcludeSet, m_pageAliasesBelowBaseFolderByStructureId, m_resultMap, m_siteGuestCms, m_siteRoot, m_siteRootLink
-
Constructor Summary
ConstructorDescriptionCmsDetailPageDuplicateEliminatingSitemapGenerator
(String sitemapPath) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDetailLinks
(CmsResource containerPage, Locale locale) Adds the detail page links for a given page to the results.Generates a list of XML sitemap entry beans for the root folder which has been set in the constructor.Methods inherited from class org.opencms.site.xmlsitemap.CmsXmlSitemapGenerator
addResult, computeContainerPageModificationDate, getChangeFrequency, getDetailLink, getDetailTypesForPage, getDirectPages, getIncludeExcludeSet, getInnerXmlForEntry, getNavigationPages, getPriority, getUrlSetOpenTag, getXmlForEntry, isAliasBelowBaseFolder, isValidDetailPageCombination, removeInternalFiles, renderSitemap, replaceServerUri, replaceServerUri, setComputeContainerPageDates, setServerUrl
-
Field Details
-
m_detailInfos
The detail page information.
-
-
Constructor Details
-
CmsDetailPageDuplicateEliminatingSitemapGenerator
Constructor.- Parameters:
sitemapPath
- the sitemap path- Throws:
CmsException
- if something goes wrong
-
-
Method Details
-
generateSitemapBeans
Description copied from class:CmsXmlSitemapGenerator
Generates a list of XML sitemap entry beans for the root folder which has been set in the constructor.- Overrides:
generateSitemapBeans
in classCmsXmlSitemapGenerator
- Returns:
- the list of XML sitemap entries
- Throws:
CmsException
- if something goes wrong- See Also:
-
addDetailLinks
Description copied from class:CmsXmlSitemapGenerator
Adds the detail page links for a given page to the results.- Overrides:
addDetailLinks
in classCmsXmlSitemapGenerator
- Parameters:
containerPage
- the container page resourcelocale
- the locale of the container page- Throws:
CmsException
- if something goes wrong- See Also:
-