SAP NetWeaver '04

com.sapportals.wcm.rendering.property
Class ResourceLinkUtil

[contained in: com.sap.km.cm.ui.flex.par - km.shared.ui.flex.property_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.rendering.property.ResourceLinkUtil

public final class ResourceLinkUtil
extends java.lang.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.

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

Constructor Detail

ResourceLinkUtil

public ResourceLinkUtil()
Method Detail

renderResourceLink

public static com.sapportals.htmlb.Component renderResourceLink(IResource resource,
                                                                com.sapportals.htmlb.Component comp,
                                                                IProxy proxy,
                                                                com.sapportals.wcm.repository.service.layout.customizing.IParameters params)
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
parameters - 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 java.lang.String getResourceLinkUrl(IResource resource,
                                                  IProxy proxy,
                                                  com.sapportals.wcm.repository.service.layout.customizing.IParameters params)
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
parameters - 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 java.lang.String getContentLinkUrl(IResource resource,
                                                 IProxy proxy,
                                                 com.sapportals.wcm.repository.service.layout.customizing.IParameters params)
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
parameters - 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

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.