public class CmsSitemapDetailPageFinder extends java.lang.Object implements I_CmsDetailPageFinder
| Constructor and Description |
|---|
CmsSitemapDetailPageFinder() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
getAllDetailPages(CmsObject cms,
int resType)
Finds all detail pages for a given resource.
|
java.lang.String |
getDetailPage(CmsObject cms,
java.lang.String rootPath,
java.lang.String linkSource,
java.lang.String targetDetailPage)
Returns the detail page link for the given resource, or null if there is no detail page for the resource.
|
public CmsSitemapDetailPageFinder()
public java.util.Collection<java.lang.String> getAllDetailPages(CmsObject cms, int resType) throws CmsException
I_CmsDetailPageFindergetAllDetailPages in interface I_CmsDetailPageFindercms - the current CMS contextresType - the resource type for which the detail pages should be foundCmsException - in case reading the resource type failsI_CmsDetailPageFinder.getAllDetailPages(org.opencms.file.CmsObject, int)public java.lang.String getDetailPage(CmsObject cms, java.lang.String rootPath, java.lang.String linkSource, java.lang.String targetDetailPage)
I_CmsDetailPageFindergetDetailPage in interface I_CmsDetailPageFindercms - the CMS contextrootPath - the root path of the resource for which the detail page should be looked uplinkSource - the uri in the context of which the detail page link is being generated (relative to the site)targetDetailPage - the target detail page to useI_CmsDetailPageFinder.getDetailPage(org.opencms.file.CmsObject, java.lang.String, java.lang.String, java.lang.String)