com.sapportals.wcm.rendering.collection

Class AbstractRendererStatus

java.lang.Object
  extended by com.sapportals.wcm.rendering.collection.AbstractRendererStatus
All Implemented Interfaces:
IConfigurableRendererStatus, IRendererStatus, IVolatileStatus, IControlStatus, IMassDataControlStatus
Direct Known Subclasses:
CollectionRendererStatus, SearchRendererStatus

Deprecated. As of NetWeaver 7.1

public abstract class AbstractRendererStatus
extends Object
implements IConfigurableRendererStatus, IVolatileStatus

Since:
EP5 SP6 and EP6 SP1

Nested Class Summary
static class AbstractRendererStatus.CompleteResourceComparator
          Deprecated. As of NetWeaver 7.1
 
Field Summary
protected  FieldSet actions
          Deprecated.  
protected  IResourceContext context
          Deprecated.  
protected  ITypedResourceList list
          Deprecated.  
 
Fields inherited from interface com.sapportals.wcm.rendering.base.IRendererStatus
DESELECT_ALL, ID, NAME, SELECT_ALL
 
Constructor Summary
AbstractRendererStatus()
          Deprecated.  
 
Method Summary
 StatusInformation execute(IExecutable execution)
          Deprecated. As of NetWeaver 7.1
 StatusInformation execute(String execution)
          Deprecated. As of NetWeaver 7.1
 void filter()
          Deprecated. As of NetWeaver 7.1
 IExecutable getAction(FieldIdentifier ident)
          Deprecated. As of NetWeaver 7.1
 ResourcePropertyComparator getComparator()
          Deprecated. As of NetWeaver 7.1
 int getCurrentIndex()
          Deprecated. As of NetWeaver 7.1
 int getEntrySize()
          Deprecated. As of NetWeaver 7.1
 IField getField(FieldIdentifier ident)
          Deprecated. As of NetWeaver 7.1
 List getFields()
          Deprecated. As of NetWeaver 7.1
 FieldSet getFieldSet(int index)
          Deprecated. As of NetWeaver 7.1
 FieldSet getFieldSet(IResource res)
          Deprecated. As of NetWeaver 7.1
protected  IResourceListFilter getFilter()
          Deprecated. As of NetWeaver 7.1
protected  IParameters getFilterParameters()
          Deprecated. As of NetWeaver 7.1
 String getID()
          Deprecated. As of NetWeaver 7.1
 List getMassFields()
          Deprecated. As of NetWeaver 7.1
protected  Hashtable getParameters()
          Deprecated. As of NetWeaver 7.1
 ICollection getParent()
          Deprecated. As of NetWeaver 7.1
 IPropertyColumn[] getPropertyColumns()
          Deprecated. As of NetWeaver 7.1
 IResource getResource(int index)
          Deprecated. As of NetWeaver 7.1
 IResourceList getResourceList()
          Deprecated. As of NetWeaver 7.1
 String getResourceTypeMapping()
          Deprecated. As of NetWeaver 7.1
 IResourceList getSelectedResources()
          Deprecated. As of NetWeaver 7.1
 SortDefinition getSortDefintion()
          Deprecated. As of NetWeaver 7.1
 StatusInformation getStatusInformation()
          Deprecated. As of NetWeaver 7.1
 ITypedResourceList getTypedResourceList()
          Deprecated. As of NetWeaver 7.1
 boolean hasMore()
          Deprecated. As of NetWeaver 7.1
protected  void initializeSelectionList()
          Deprecated. As of NetWeaver 7.1
 boolean isVolatile()
          Deprecated. As of NetWeaver 7.1
 void refresh()
          Deprecated. As of NetWeaver 7.1
 void setComparator(ResourcePropertyComparator comp)
          Deprecated. As of NetWeaver 7.1
 void setCurrentIndex(int index)
          Deprecated. As of NetWeaver 7.1
 void setFilter(IResourceListFilter filter)
          Deprecated. As of NetWeaver 7.1
 void setFilterParameters(IParameters filterparameters)
          Deprecated. As of NetWeaver 7.1
 void setID(String ID)
          Deprecated. As of NetWeaver 7.1
 void setParameters(Hashtable parameters)
          Deprecated. As of NetWeaver 7.1
 void setParent(ICollection collection)
          Deprecated. As of NetWeaver 7.1
 void setPropertyColumns(IPropertyColumn[] columns)
          Deprecated. As of NetWeaver 7.1
 void setResourceTypeMapping(String mapping)
          Deprecated. As of NetWeaver 7.1
 void setSortDefinition(SortDefinition sd)
          Deprecated. As of NetWeaver 7.1
 void setTypedResourceList(ITypedResourceList resourcelist, IResourceContext context)
          Deprecated. As of NetWeaver 7.1
 void sort()
          Deprecated. As of NetWeaver 7.1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sapportals.wcm.rendering.base.IConfigurableRendererStatus
getNewInstance
 
Methods inherited from interface com.sapportals.wcm.util.controlstatus.IControlStatus
getActions
 

Field Detail

list

protected ITypedResourceList list
Deprecated. 

context

protected IResourceContext context
Deprecated. 

actions

protected FieldSet actions
Deprecated. 
Constructor Detail

AbstractRendererStatus

public AbstractRendererStatus()
Deprecated. 
Method Detail

isVolatile

public boolean isVolatile()
Deprecated. As of NetWeaver 7.1

Specified by:
isVolatile in interface IVolatileStatus
Returns:
flag stating if the status might be deleted after the first click or not. return true, if it might be deleted.

setParameters

public void setParameters(Hashtable parameters)
Deprecated. As of NetWeaver 7.1

Specified by:
setParameters in interface IConfigurableRendererStatus

getParameters

protected Hashtable getParameters()
Deprecated. As of NetWeaver 7.1


getResourceTypeMapping

public String getResourceTypeMapping()
Deprecated. As of NetWeaver 7.1

Specified by:
getResourceTypeMapping in interface IConfigurableRendererStatus

setResourceTypeMapping

public void setResourceTypeMapping(String mapping)
Deprecated. As of NetWeaver 7.1

Specified by:
setResourceTypeMapping in interface IConfigurableRendererStatus

setParent

public void setParent(ICollection collection)
               throws WcmException
Deprecated. As of NetWeaver 7.1

sets the parent collection for the status. At the same time, it sets the internal attribute for a ITypedResourceList to null to prevent that a resource list and a collection with children are active within the status at the same time.

Specified by:
setParent in interface IRendererStatus
Throws:
WcmException

setTypedResourceList

public void setTypedResourceList(ITypedResourceList resourcelist,
                                 IResourceContext context)
                          throws WcmException
Deprecated. As of NetWeaver 7.1

sets the typed resource list attribute for this status At the same time, it sets the internal attribute for an ICollection to null to prevent that a resource list and a collection with children are active within the status at the same time.

Specified by:
setTypedResourceList in interface IRendererStatus
Throws:
WcmException

getParent

public ICollection getParent()
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
returns the ICollection, whose children are handled within this status. Might be null.

Specified by:
getParent in interface IRendererStatus

getTypedResourceList

public ITypedResourceList getTypedResourceList()
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
returns the ITypedResourceList, whose elements are handled within this status. Might be null or might be of size 0.

Specified by:
getTypedResourceList in interface IRendererStatus

setPropertyColumns

public void setPropertyColumns(IPropertyColumn[] columns)
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
TODO what about null? sets the IPropertyColumn[] attribute of the status. Might be null.

Specified by:
setPropertyColumns in interface IRendererStatus

getPropertyColumns

public IPropertyColumn[] getPropertyColumns()
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
TODO what about null?

Specified by:
getPropertyColumns in interface IRendererStatus
Returns:
the IPropertyColumn[] attribute of the status. Might be null.

getCurrentIndex

public int getCurrentIndex()
                    throws WcmException
Deprecated. As of NetWeaver 7.1

Specified by:
getCurrentIndex in interface IRendererStatus
Returns:
the current position within the internal list of IResource objects.
Throws:
WcmException

setCurrentIndex

public void setCurrentIndex(int index)
                     throws WcmException
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
sets the index-attribute of the status to the given value. This is needed e.g. to store the part of the resourcelist that is currently displayed within an iView.

Specified by:
setCurrentIndex in interface IRendererStatus
Throws:
WcmException

setSortDefinition

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

Description copied from interface: IRendererStatus
sets the SortDefinition attribute of the status. Might be null.

Specified by:
setSortDefinition in interface IRendererStatus

getSortDefintion

public SortDefinition getSortDefintion()
Deprecated. As of NetWeaver 7.1

Specified by:
getSortDefintion in interface IRendererStatus
Returns:
the SortDefinition attribute of the status. Might be null.

getEntrySize

public int getEntrySize()
Deprecated. As of NetWeaver 7.1

Description copied from interface: IMassDataControlStatus
returns the number of entries that are managed within this status

Specified by:
getEntrySize in interface IMassDataControlStatus
Returns:
entrySize

setComparator

public void setComparator(ResourcePropertyComparator comp)
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
sets the ResourcePropertyComparator attribute of the status. Might be null.

Specified by:
setComparator in interface IRendererStatus

getComparator

public ResourcePropertyComparator getComparator()
Deprecated. As of NetWeaver 7.1

Specified by:
getComparator in interface IRendererStatus
Returns:
the ResourcePropertyComparator attribute of the status. Might be null.

getMassFields

public List getMassFields()
Deprecated. As of NetWeaver 7.1

Description copied from interface: IMassDataControlStatus
returns all fields that will be available for the managed types of this class. The returned fields could not hold any values, but will provide meta-information and the according FieldIdentifier values.

Specified by:
getMassFields in interface IMassDataControlStatus
Returns:
massFields

sort

public void sort()
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
sorts the internal list of resources. It uses the ResourcePropertyComparator attribute to do this sorting. If that attribute is null, no sorting will be done and the list will be sorted as it was before this method was called.

Specified by:
sort in interface IRendererStatus

refresh

public void refresh()
             throws WcmException
Deprecated. As of NetWeaver 7.1

reloads resources from RF revokes all selections filters and sorts depending on the settings

Specified by:
refresh in interface IRendererStatus
Throws:
WcmException

filter

public void filter()
            throws WcmException
Deprecated. As of NetWeaver 7.1

filters the current IResourceList attribute of the status using the set IResourceListFilter and the IParameters. If one of these is null, no filtering will be done, but a logging entry is written. Also, if the list has been filtered before and no new information has been provided by either
setting a new IResourceListFilter
setting new IParameters or
calling the refresh() method
the method will not call the filter algorithm again due to performance reasons.
Also, this method will set the current index back to 0, because the index as it was might exceed the number of elements left over after the filtering.
The list of selected resources will be reseted as well, so no elements will be selected.

Specified by:
filter in interface IRendererStatus
Throws:
WcmException

setFilter

public void setFilter(IResourceListFilter filter)
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
sets the class, that is used to filter out resources from the given parent-collection or the ITypedResourceList. A change of this parameter will result in a new filtering, if the filter method is called afterwards. The call of this method alone does not lead to a new filtering (and a reset of selected resources).

Specified by:
setFilter in interface IRendererStatus
Parameters:
filter - the filter instance to use, can be null

getFilter

protected IResourceListFilter getFilter()
Deprecated. As of NetWeaver 7.1


setFilterParameters

public void setFilterParameters(IParameters filterparameters)
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
sets the parameters, that are used by the IResourceListFilter to determine which resources are to be filtered out. A change of this parameter will result in a new filtering, if the filter method is called afterwards. The call of this method alone does not lead to a new filtering (and a reset of selected resources).

Specified by:
setFilterParameters in interface IRendererStatus
Parameters:
filterparameters - determine which rules apply to filtering, can be null

getFilterParameters

protected IParameters getFilterParameters()
Deprecated. As of NetWeaver 7.1


getResourceList

public IResourceList getResourceList()
Deprecated. As of NetWeaver 7.1

Description copied from interface: IRendererStatus
returns an IResourceList that does not have to be equal to either the ITypedResourceList or the result of the getChildren method on the ICollection attribute. It may be different because of the sort and filter methods or any other operation the implementing class decides to perform. As an implementation rule, a new creation of IResource elements to fill this list should be avoided due to the performance overhead associated with that operation.

Specified by:
getResourceList in interface IRendererStatus
Returns:
an IResourceList that might be empty. Must not return null.

getFieldSet

public FieldSet getFieldSet(int index)
Deprecated. As of NetWeaver 7.1

returns the fieldset for the given index. A FieldSet is always associated with an IResource.

Specified by:
getFieldSet in interface IMassDataControlStatus
Parameters:
index - TBD: Description of the incoming method parameter
Returns:
fieldSet

getFieldSet

public FieldSet getFieldSet(IResource res)
Deprecated. As of NetWeaver 7.1

Specified by:
getFieldSet in interface IRendererStatus
Returns:
the FieldSet defined for this IResource. This set is needed to e.g. change the selection state of the resource.

initializeSelectionList

protected void initializeSelectionList()
                                throws WcmException
Deprecated. As of NetWeaver 7.1

Throws:
WcmException

getSelectedResources

public IResourceList getSelectedResources()
Deprecated. As of NetWeaver 7.1

Specified by:
getSelectedResources in interface IRendererStatus
Returns:
a list of all resources that have been set to selected.

getResource

public IResource getResource(int index)
Deprecated. As of NetWeaver 7.1

Specified by:
getResource in interface IRendererStatus
Returns:
the IResource that is situated at this position of the internal list of IResource objects. Note that this position might change due to sort and filter methods. Returns null, if the parameter exceeds the size of the internal list.

execute

public StatusInformation execute(IExecutable execution)
                          throws WcmException
Deprecated. As of NetWeaver 7.1

carries out the action described by the given parameter.

Specified by:
execute in interface IControlStatus
Parameters:
execution - TBD: Description of the incoming method parameter
Returns:
the status of the execution - can be null.
Throws:
WcmException - Exception raised in failure situation

execute

public StatusInformation execute(String execution)
                          throws WcmException
Deprecated. As of NetWeaver 7.1

different signature for this method. The implementation must iterate through its defined list of IExecutable objects. If the given parameter matches the IExecutable's getIdentifier.getID, this IExecutable must be passed to the other signature of this method.

Specified by:
execute in interface IControlStatus
Parameters:
execution - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value
Throws:
WcmException, - if no matching class could be found.
WcmException - Exception raised in failure situation

getField

public IField getField(FieldIdentifier ident)
Deprecated. As of NetWeaver 7.1

returns the field with the given ident-parameter or null, if no such instance could be found.

Specified by:
getField in interface IControlStatus
Parameters:
ident - TBD: Description of the incoming method parameter
Returns:
field

getAction

public IExecutable getAction(FieldIdentifier ident)
Deprecated. As of NetWeaver 7.1

returns the IExecutable with the given ident-parameter or null, if no such instance could be found.

Specified by:
getAction in interface IControlStatus
Parameters:
ident - TBD: Description of the incoming method parameter
Returns:
action

getFields

public List getFields()
Deprecated. As of NetWeaver 7.1

returns a list with all fields defined by the implementing class

Specified by:
getFields in interface IControlStatus
Returns:
fields

getStatusInformation

public StatusInformation getStatusInformation()
Deprecated. As of NetWeaver 7.1

returns the status of the implementing class. This status is obtained by asking all of the fields of the implementing class for their status. The first class, that returns a status != null will be used and its status will be returned. Consequently, this method might return null

Specified by:
getStatusInformation in interface IControlStatus
Returns:
statusInformation

hasMore

public boolean hasMore()
Deprecated. As of NetWeaver 7.1

flag telling, if all resources available for the given parent or the given resourcelist are included in the presently returned resourcelist.

Specified by:
hasMore in interface IRendererStatus
Returns:
false, if all resources are included

getID

public String getID()
Deprecated. As of NetWeaver 7.1

Description copied from interface: IControlStatus
returns the ID under which this status was registered by the Service

Specified by:
getID in interface IControlStatus
Returns:
iD

setID

public void setID(String ID)
Deprecated. As of NetWeaver 7.1

Description copied from interface: IControlStatus
sets the ID under which this status was registered by the service this field is set by the service and must not be altered afterwards.

Specified by:
setID in interface IControlStatus
Parameters:
ID - iD to be set
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