com.sapportals.wcm.rendering.property

Class ResourceLinkUtil

java.lang.Object
  extended by com.sapportals.wcm.rendering.property.ResourceLinkUtil

Deprecated. As of NetWeaver 7.1

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 evaluate 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.

Constructor Summary
ResourceLinkUtil()
          Deprecated.  
 
Method Summary
static String getContentLinkUrl(IResource resource, IProxy proxy, IParameters params)
          Deprecated. As of NetWeaver 7.1
static String getResourceLinkUrl(IResource resource, IProxy proxy, IParameters params)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderResourceLink(IResource resource, com.sapportals.htmlb.Component comp, IProxy proxy, IParameters params)
          Deprecated. As of NetWeaver 7.1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLinkUtil

public ResourceLinkUtil()
Deprecated. 
Method Detail

renderResourceLink

public static com.sapportals.htmlb.Component renderResourceLink(IResource resource,
                                                                com.sapportals.htmlb.Component comp,
                                                                IProxy proxy,
                                                                IParameters params)
Deprecated. As of NetWeaver 7.1

Parameters:
resource - the resource to render the link for
comp - 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
params - the parameters defining, what target the link will call. This class reads out IResourceRendererParameterNameConst.OPENTARGETTYPE and either opens a new window, if the value is IResourceRendererParameterNameConst.OPENTARGETTYPE_NEW or displays the navigation target in the same window.
If the value is IResourceRendererParameterNameConst.OPENTARGETTYPE_LINK_LIST and the resource is an internal link, a new window will open as well.
Depending if preview is enabled and supported for the mime-type of the resource, an IResource will be rendered in place or in a new window. All parameters must not be null

getResourceLinkUrl

public static String getResourceLinkUrl(IResource resource,
                                        IProxy proxy,
                                        IParameters params)
Deprecated. As of NetWeaver 7.1

Parameters:
resource - the resource to render the link for
proxy - is needed as navigation target and for a faster property lookup
params - the parameters defining, what target the link will call. This class reads out IResourceRendererParameterNameConst.OPENTARGETTYPE and either opens a new window, if the value is IResourceRendererParameterNameConst.OPENTARGETTYPE_NEW or displays the navigation target in the same window.
If the value is IResourceRendererParameterNameConst.OPENTARGETTYPE_LINK_LIST and the resource is an internal link, a new window will open as well.
Depending if preview is enabled and supported for the mime-type of the resource, an IResource will be rendered in place or in a new window. All parameters must not be null

getContentLinkUrl

public static String getContentLinkUrl(IResource resource,
                                       IProxy proxy,
                                       IParameters params)
Deprecated. As of NetWeaver 7.1

Parameters:
resource - the resource to render the link for
proxy - is needed as navigation target and for a faster property lookup
params - the parameters defining, what target the link will call. This class reads out IResourceRendererParameterNameConst.OPENTARGETTYPE and either opens a new window, if the value is IResourceRendererParameterNameConst.OPENTARGETTYPE_NEW or displays the navigation target in the same window.
If the value is IResourceRendererParameterNameConst.OPENTARGETTYPE_LINK_LIST and the resource is an internal link, a new window will open as well.
Depending if preview is enabled and supported for the mime-type of the resource, an IResource will be rendered in place or in a new window. All parameters must not be null
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/nonwduideprecated api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice