com.sapportals.wcm.rendering.resource

Interface IResourceRenderer

All Superinterfaces:
ILayoutObject
All Known Implementing Classes:
AbstractResourceRenderer

Deprecated. As of NetWeaver 7.1

public interface IResourceRenderer
extends ILayoutObject

This interface is used to render a single IResource and its Properties. It is usually instantiated by the ResourceRendererFactory . The interface has two kind of methods: either set/get methods to access the member variables of the classes or methods that return an htmlb Component - the actual rendering. Check also the ILayoutObject that implements the functionality to communicate with the configuration of the rendering framework.


Field Summary
static int LINK_CONTENT
          Deprecated.  
static int LINK_CONTENT_ONLY_FOLDERS
          Deprecated. TODO separate enum-class to ensure supported values?
static int LINK_DETAILS
          Deprecated.  
static int LINK_OFF
          Deprecated.  
 
Fields inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject
DEF_VALUE, KEY, LINE_BREAK
 
Method Summary
 Map getPropertyBag()
          Deprecated. As of NetWeaver 7.1
 ResourceStateType getResourceState()
          Deprecated. As of NetWeaver 7.1
 com.sapportals.htmlb.Component render()
          Deprecated. As of NetWeaver 7.1
 com.sapportals.htmlb.Component render(IProperty property)
          Deprecated. since EP6, SP2_CP
 com.sapportals.htmlb.Component render(IProperty property, int linktype)
          Deprecated. since EP6, SP2_CP
 com.sapportals.htmlb.Component render(IProperty property, String target)
          Deprecated. since EP6, SP2_CP
 com.sapportals.htmlb.Component render(String displayname, int linktype)
          Deprecated. since EP6, SP2_CP. Instead of this method, use
 com.sapportals.htmlb.Component renderAction()
          Deprecated. since EP6, SP2_CP
 com.sapportals.htmlb.Component renderIcon()
          Deprecated. since EP6, SP2_CP
 com.sapportals.htmlb.Component renderIconContentlink()
          Deprecated. since EP6, SP2_CP
 com.sapportals.htmlb.Component renderImage()
          Deprecated. since EP6, SP2_CP
 com.sapportals.htmlb.Component renderImageContentlink()
          Deprecated. since EP6, SP2_CP
 com.sapportals.htmlb.Component renderMetaProperty(IMetaName metaName, boolean hasContentLink)
          Deprecated. As of NetWeaver 7.1
 void setPropertyBag(Map propertyBag)
          Deprecated. As of NetWeaver 7.1
 void setPropertyNameList(IPropertyNameList propnamelist)
          Deprecated. As of NetWeaver 7.1
 void setResource(IResource resource)
          Deprecated. As of NetWeaver 7.1
 void setResourceState(ResourceStateType type)
          Deprecated. As of NetWeaver 7.1
 
Methods inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject
getAlias, getConfiguration, getFlavor, getNewInstance, getParameter, getParameters, getSupportedParameters, is508enabled, setAlias, setFlavor, setParameter, setParameters, setProxy
 

Field Detail

LINK_CONTENT_ONLY_FOLDERS

static final int LINK_CONTENT_ONLY_FOLDERS
Deprecated. 
TODO separate enum-class to ensure supported values?

See Also:
Constant Field Values

LINK_CONTENT

static final int LINK_CONTENT
Deprecated. 
See Also:
Constant Field Values

LINK_DETAILS

static final int LINK_DETAILS
Deprecated. 
See Also:
Constant Field Values

LINK_OFF

static final int LINK_OFF
Deprecated. 
See Also:
Constant Field Values
Method Detail

setPropertyNameList

void setPropertyNameList(IPropertyNameList propnamelist)
Deprecated. As of NetWeaver 7.1

Parameters:
propnamelist - The new propertyNameList value

setResource

void setResource(IResource resource)
Deprecated. As of NetWeaver 7.1

the resource to work with. Must not be null

Parameters:
resource - The new resource value

render

com.sapportals.htmlb.Component render()
                                      throws WcmException
Deprecated. As of NetWeaver 7.1

renders the current IResource depending on the configuration available for this resource and on the implementation of the rendering class. This might lead to very different layouts and available functionality. If a calling class (e.g. an ICollectionRenderer requires a more uniform rendering, it can call the different render-methods that allow the rendering of single attributes of the current IResource .

Returns:
a renderable htmlb-Component. Must not return null
Throws:
WcmException - Description of the Exception

render

com.sapportals.htmlb.Component render(IProperty property)
                                      throws WcmException
Deprecated. since EP6, SP2_CP

Parameters:
property - Description of the Parameter
Returns:
a single property of the resource
Throws:
WcmException - Description of the Exception

render

com.sapportals.htmlb.Component render(IProperty property,
                                      int linktype)
                                      throws WcmException
Deprecated. since EP6, SP2_CP

renders the specified property of the current IResource.

Parameters:
property - the property to render
linktype - Description of the Parameter
Returns:
a single property of the IResource as clickable link. Must not return null.
Throws:
WcmException - Description of the Exception

render

com.sapportals.htmlb.Component render(String displayname,
                                      int linktype)
                                      throws WcmException
Deprecated. since EP6, SP2_CP. Instead of this method, use

renders the given displayname with the given linktype-attribute.

Parameters:
displayname - the name to render. If the value is null or "".equals(displayname) or " ".equals(displayname , the link will be rendered, but is not accessible, as html cannot render empty Strings or Strings containing only " ".
linktype - Description of the Parameter
Returns:
a single htmlb Component. Must not return null
Throws:
WcmException - Description of the Exception

render

com.sapportals.htmlb.Component render(IProperty property,
                                      String target)
                                      throws WcmException
Deprecated. since EP6, SP2_CP

renders the given property of the current IResource as a link to the given target.

Parameters:
property - the property to render
target - Description of the Parameter
Returns:
a single property of the resource as clickable link
Throws:
WcmException - Description of the Exception

renderMetaProperty

com.sapportals.htmlb.Component renderMetaProperty(IMetaName metaName,
                                                  boolean hasContentLink)
                                                  throws WcmException
Deprecated. As of NetWeaver 7.1

renders the given metaName of the current IResource

Parameters:
metaName - Description of the Parameter
hasContentLink - Description of the Parameter
Returns:
a single htmlb Component. Must not return null
Throws:
WcmException - Description of the Exception

renderIcon

com.sapportals.htmlb.Component renderIcon()
                                          throws WcmException
Deprecated. since EP6, SP2_CP

Returns:
an htmlb Component that shows the icon for the resource
Throws:
WcmException - Description of the Exception

renderAction

com.sapportals.htmlb.Component renderAction()
                                            throws WcmException
Deprecated. since EP6, SP2_CP

Returns:
an htmlb Component that shows all the actions defined for the current IResource
Throws:
WcmException - Description of the Exception

renderIconContentlink

com.sapportals.htmlb.Component renderIconContentlink()
                                                     throws WcmException
Deprecated. since EP6, SP2_CP

Returns:
an htmlb Component that shows the Icon for the resource. The icon is a link to the content of the IResource . Link behaviour can vary for resources, links and folders
Throws:
WcmException - Description of the Exception

renderImage

com.sapportals.htmlb.Component renderImage()
                                           throws WcmException
Deprecated. since EP6, SP2_CP

Returns:
an htmlb Component that shows the image for the resource
Throws:
WcmException - Description of the Exception

renderImageContentlink

com.sapportals.htmlb.Component renderImageContentlink()
                                                      throws WcmException
Deprecated. since EP6, SP2_CP

Returns:
an htmlb Component that shows the image for the resource The icon is a link to the content of the IResource . Link behaviour can vary for resources, links and folders
Throws:
WcmException - Description of the Exception

setResourceState

void setResourceState(ResourceStateType type)
Deprecated. As of NetWeaver 7.1

flag to tell the resource renderer that its IResource is in a certain state. The renderer can decide, if the resource is displayed differently, depending on parameters given and the paramters that are supported by this renderer

Parameters:
type - The new resourceState value

getResourceState

ResourceStateType getResourceState()
Deprecated. As of NetWeaver 7.1

Returns:
the state of the IResource member variable of the renderer.

getPropertyBag

Map getPropertyBag()
Deprecated. As of NetWeaver 7.1

Returns:
Returns a property bag for a resource contained in the list. Returns null if the specified resource is not contained in the list or no property bag is associated with the resource.

setPropertyBag

void setPropertyBag(Map propertyBag)
                    throws WcmException
Deprecated. As of NetWeaver 7.1

Set a property bag for the resource.

Parameters:
propertyBag - Properties to store.
Throws:
WcmException - If the specified resource is not contained in the list.
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