com.sapportals.wcm.rendering.collection

Interface ICollectionRenderer

All Superinterfaces:
IDelegatedReceiver, ILayoutObject
All Known Implementing Classes:
AbstractCollectionRenderer, LightCollectionRenderer, SlimCollectionRenderer

Deprecated. As of NetWeaver 7.1

public interface ICollectionRenderer
extends ILayoutObject, IDelegatedReceiver

The implementing class renders the given ICollection or TypedResourceList. Classes should not be directly accessible but only through the CollectionRendererFactory. Implementing classes can - but do not have to - react on the parameters that are available for the given resource.


Field Summary
static String ORDERED_COLLECTION
          Deprecated. ordered list behavior - entries and keys for Cache
static String SORTED
          Deprecated.  
static String UNSORTED
          Deprecated.  
 
Fields inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject
DEF_VALUE, KEY, LINE_BREAK
 
Method Summary
 String getID()
          Deprecated. As of NetWeaver 7.1
 IResourceContext getResourceContext()
          Deprecated. As of NetWeaver 7.1
 void readInputData(com.sapportals.htmlb.page.DynPage page)
          Deprecated. As of NetWeaver 7.1
 void refresh()
          Deprecated. As of NetWeaver 7.1
 com.sapportals.htmlb.Component renderAll()
          Deprecated. As of NetWeaver 7.1
 void setParentCollection(ICollection collection)
          Deprecated. As of NetWeaver 7.1
 void setResourceContext(IResourceContext context)
          Deprecated. As of NetWeaver 7.1
 void setSortDefinition(SortDefinition sd)
          Deprecated. As of NetWeaver 7.1
 void setTypedResourceList(ITypedResourceList resourcelist)
          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
 
Methods inherited from interface com.sapportals.wcm.rendering.base.IDelegatedReceiver
onEvent
 

Field Detail

ORDERED_COLLECTION

static final String ORDERED_COLLECTION
Deprecated. 
ordered list behavior - entries and keys for Cache

See Also:
Constant Field Values

UNSORTED

static final String UNSORTED
Deprecated. 
See Also:
Constant Field Values

SORTED

static final String SORTED
Deprecated. 
See Also:
Constant Field Values
Method Detail

renderAll

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

Returns:
Component an htmlb-Component that will be displayed. The calling class can include this component in another htmlb-Component.
Throws:
WcmException

setParentCollection

void setParentCollection(ICollection collection)
Deprecated. As of NetWeaver 7.1

is called from the factory after instantiating a new collection renderer to set the collection which has to be rendered. Instead of this method, the setTypedResourceList(ITypedResourceList resourcelist) method is called, i.e. when a search result has to be rendered.

Parameters:
collection - the collection to render (and whose chidren to render)

setTypedResourceList

void setTypedResourceList(ITypedResourceList resourcelist)
Deprecated. As of NetWeaver 7.1

is called from the factory after instantiating a new collection renderer to set the resourceList which has to be rendered. Instead of this method, the setParentCollection(ICollection collection) method is called, i.e. when a folder has to be rendered

Parameters:
resourcelist - the resourcelist to render (and whose members to render)

setResourceContext

void setResourceContext(IResourceContext context)
Deprecated. As of NetWeaver 7.1

sets the context-attribute for the renderer. Must not be null


getResourceContext

IResourceContext getResourceContext()
Deprecated. As of NetWeaver 7.1

Returns:
the context-attribute of the renderer. Does not return null

getID

String getID()
Deprecated. As of NetWeaver 7.1

Returns:
the ID of the renderer. The renderer can obtain an ID that will be unique within one browser window by using the return value of IProxy's method register. This ID will be stable over http-requests.

readInputData

void readInputData(com.sapportals.htmlb.page.DynPage page)
                   throws WcmException
Deprecated. As of NetWeaver 7.1

reads out the input of the modifiable Components rendered by the implementing class.

Throws:
WcmException

setSortDefinition

void setSortDefinition(SortDefinition sd)
Deprecated. As of NetWeaver 7.1

sets the sort-definition attribute for the implementing class. This definition is used to specify the property the list is sorted by as well as the direction (top-down vs. bottom-up) of the sorting.


refresh

void refresh()
Deprecated. As of NetWeaver 7.1

asks the implementing class to refresh its list of IResource objects. This is needed, if a list that is displayed by this is modified after this has created its internal representation of these resources. This call is only useful, if the setParentCollection or setTypedResourceList method has been invoked in advance. This method can be very expensive, depending on the size of the resource list and the ordering and filtering calls that have to be carried out. In a standard scenario, this call is not needed, as the IProxyControl will refresh automatically all resource-list representations that use the proxy as persistence-layer. Implementations such as the AbstractCollectionRenderer may not react on this method at all, as they do not persist their resource list representations and therefore always have an up-to-date representation.

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