Package org.opencms.relations
Interface I_CmsCustomLinkRenderer
-
- All Known Implementing Classes:
CmsProtectedStaticFileHandler
public interface I_CmsCustomLinkRenderer
Interface used to inject custom link handling behavior into HTML/link content fields.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getLink(CmsObject cms, CmsResource resource)
Returns the link for the given link resource.java.lang.String
getLink(CmsObject cms, CmsLink link)
Returns the link for the given link object.
-
-
-
Method Detail
-
getLink
java.lang.String getLink(CmsObject cms, CmsLink link)
Returns the link for the given link object.If null is returned, this means the normal link handling behavior should be used instead.
- Parameters:
cms
- the CMS contextlink
- the link object- Returns:
- the link for the link object
-
getLink
java.lang.String getLink(CmsObject cms, CmsResource resource)
Returns the link for the given link resource.If null is returned, this means the normal link handling behavior should be used instead.
- Parameters:
cms
- the CMS contextresource
- the resource linked to- Returns:
- the link for the link object
-
-