public class CmsBrokenLinkRenderer
extends java.lang.Object
构造器和说明 |
---|
CmsBrokenLinkRenderer(CmsObject cms)
Creates a new broken link renderer instance.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
addPageInfo(CmsBrokenLinkBean bean,
java.lang.String extraTitle,
java.lang.String extraPath)
Adds optional page information to the broken link bean.
|
protected CmsBrokenLinkBean |
createBrokenLinkBean(java.lang.String type,
java.lang.String title,
java.lang.String path,
java.lang.String extraTitle,
java.lang.String extraPath)
Creates a broken link bean from the necessary values.
|
protected CmsBrokenLinkBean |
createSitemapBrokenLinkBean(CmsResource resource)
Creates a "broken link" bean based on a resource.
|
java.util.List<CmsBrokenLinkBean> |
renderBrokenLink(CmsResource target,
CmsResource source)
Renders the source of a broken link as a list of CmsBrokenLinkBean instances.
|
java.util.List<CmsBrokenLinkBean> |
renderBrokenLinkDefault(CmsResource target,
CmsResource source)
The default method for rendering broken link sources.
|
java.util.List<CmsBrokenLinkBean> |
renderBrokenLinkGroupContainer(CmsResource target,
CmsResource source)
Renders the broken links for a group container.
|
java.util.List<CmsBrokenLinkBean> |
renderBrokenLinkInheritanceGroup(CmsResource target,
CmsResource source)
Renders broken links from an inheritance group.
|
public CmsBrokenLinkRenderer(CmsObject cms)
cms
- the current CMS contextpublic java.util.List<CmsBrokenLinkBean> renderBrokenLink(CmsResource target, CmsResource source) throws CmsException
target
- the broken link targetsource
- the broken link sourceCmsException
- if something goes wrongpublic java.util.List<CmsBrokenLinkBean> renderBrokenLinkDefault(CmsResource target, CmsResource source) throws CmsException
target
- source
- CmsException
- if something goes wrongpublic java.util.List<CmsBrokenLinkBean> renderBrokenLinkGroupContainer(CmsResource target, CmsResource source) throws CmsException
target
- the broken link targetsource
- the broken link sourceCmsException
- if something goes wrongpublic java.util.List<CmsBrokenLinkBean> renderBrokenLinkInheritanceGroup(CmsResource target, CmsResource source) throws CmsException
target
- the link targetsource
- the link sourceCmsException
- if something goes wrongprotected void addPageInfo(CmsBrokenLinkBean bean, java.lang.String extraTitle, java.lang.String extraPath)
bean
- the broken link beanextraTitle
- the optional page titleextraPath
- the optional page pathprotected CmsBrokenLinkBean createBrokenLinkBean(java.lang.String type, java.lang.String title, java.lang.String path, java.lang.String extraTitle, java.lang.String extraPath)
type
- the resource typetitle
- the titlepath
- the pathextraTitle
- an optional additional page titleextraPath
- an optional additional page pathprotected CmsBrokenLinkBean createSitemapBrokenLinkBean(CmsResource resource) throws CmsException
resource
- the resourceCmsException
- if something goes wrong