com.sapportals.wcm.rendering.property
Class ResourceLinkUtil
java.lang.Object
com.sapportals.wcm.rendering.property.ResourceLinkUtil
- public final class ResourceLinkUtil
- extends Object
- Since:
- EP6, SP2_CP
renders an htmlb
Link that triggers either a navigation into an
ICollection or displays the content of an IResource
inplace or out-of-place.
.
The class will evauate OTH-settings and the property "rnd:contentlink" to check
if anything but the default target should be used for the link.
If an IResource instance does not support the SupportedOption
SupportedOption.GET_CONTENT, no link will be rendered, except one is
defined in OTH or by the "rnd:contentlink" property.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceLinkUtil
public ResourceLinkUtil()
renderResourceLink
public static Component renderResourceLink(IResource resource,
Component comp,
IProxy proxy,
IParameters params)
- Parameters:
resource - the resource to render the link forcomp - to be added to the created link. In case the link could not be created, this component will be returned
by this class.proxy - is needed as navigation target and for a faster property lookup
getResourceLinkUrl
public static String getResourceLinkUrl(IResource resource,
IProxy proxy,
IParameters params)
- Parameters:
resource - the resource to render the link forproxy - is needed as navigation target and for a faster property lookup
getContentLinkUrl
public static String getContentLinkUrl(IResource resource,
IProxy proxy,
IParameters params)
- Parameters:
resource - the resource to render the link forproxy - is needed as navigation target and for a faster property lookup
Copyright 2006 SAP AG Complete Copyright Notice