public class CmsDetailPageDuplicateEliminatingSitemapGenerator extends CmsXmlSitemapGenerator
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.
CmsXmlSitemapGenerator.ResultEntry| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<CmsADEConfigData.DetailInfo> |
m_detailInfos
The detail page information.
|
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 and Description |
|---|
CmsDetailPageDuplicateEliminatingSitemapGenerator(java.lang.String sitemapPath)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDetailLinks(CmsResource containerPage,
java.util.Locale locale)
Adds the detail page links for a given page to the results.
|
java.util.List<CmsXmlSitemapUrlBean> |
generateSitemapBeans()
Generates a list of XML sitemap entry beans for the root folder which has been set in the constructor.
|
addResult, computeContainerPageModificationDate, getChangeFrequency, getDetailLink, getDetailTypesForPage, getDirectPages, getIncludeExcludeSet, getInnerXmlForEntry, getNavigationPages, getPriority, getUrlSetOpenTag, getXmlForEntry, isAliasBelowBaseFolder, isValidDetailPageCombination, removeInternalFiles, renderSitemap, replaceServerUri, replaceServerUri, setComputeContainerPageDates, setServerUrlprotected java.util.List<CmsADEConfigData.DetailInfo> m_detailInfos
public CmsDetailPageDuplicateEliminatingSitemapGenerator(java.lang.String sitemapPath) throws CmsException
sitemapPath - the sitemap pathCmsException - if something goes wrongpublic java.util.List<CmsXmlSitemapUrlBean> generateSitemapBeans() throws CmsException
CmsXmlSitemapGeneratorgenerateSitemapBeans in class CmsXmlSitemapGeneratorCmsException - if something goes wrongCmsXmlSitemapGenerator.generateSitemapBeans()protected void addDetailLinks(CmsResource containerPage, java.util.Locale locale) throws CmsException
CmsXmlSitemapGeneratoraddDetailLinks in class CmsXmlSitemapGeneratorcontainerPage - the container page resourcelocale - the locale of the container pageCmsException - if something goes wrongCmsXmlSitemapGenerator.addDetailLinks(org.opencms.file.CmsResource, java.util.Locale)