public class CmsSitemapDetailPageFinder extends java.lang.Object implements I_CmsDetailPageFinder
构造器和说明 |
---|
CmsSitemapDetailPageFinder() |
限定符和类型 | 方法和说明 |
---|---|
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)
Returns the detail page link for the given resource, or null if there is no detail page for the resource.
|
public java.util.Collection<java.lang.String> getAllDetailPages(CmsObject cms, int resType) throws CmsException
I_CmsDetailPageFinder
getAllDetailPages
在接口中 I_CmsDetailPageFinder
cms
- the current CMS contextresType
- the resource type for which the detail pages should be foundCmsException
I_CmsDetailPageFinder.getAllDetailPages(org.opencms.file.CmsObject, int)
public java.lang.String getDetailPage(CmsObject cms, java.lang.String rootPath, java.lang.String linkSource)
I_CmsDetailPageFinder
getDetailPage
在接口中 I_CmsDetailPageFinder
cms
- 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)I_CmsDetailPageFinder.getDetailPage(org.opencms.file.CmsObject, java.lang.String, java.lang.String)