|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.rendering.collection.AbstractRendererStatus
| Nested Class Summary | |
static class |
AbstractRendererStatus.CompleteResourceComparator
|
| Field Summary | |
protected FieldSet |
actions
|
protected IResourceContext |
context
|
protected ITypedResourceList |
list
|
| Fields inherited from interface com.sapportals.wcm.rendering.base.IRendererStatus |
DESELECT_ALL, ID, NAME, SELECT_ALL |
| Constructor Summary | |
AbstractRendererStatus()
|
|
| Method Summary | |
StatusInformation |
execute(IExecutable execution)
carries out the action described by the given parameter. |
StatusInformation |
execute(String execution)
different signature for this method. |
void |
filter()
filters the current IResourceList attribute of the status
using the set IResourceListFilter and the IParameters.
|
IExecutable |
getAction(FieldIdentifier ident)
returns the IExecutable with the given ident-parameter
or null, if no such instance could be found. |
ResourcePropertyComparator |
getComparator()
|
int |
getCurrentIndex()
|
int |
getEntrySize()
returns the number of entries that are managed within this status |
IField |
getField(FieldIdentifier ident)
returns the field with the given ident-parameter or null, if no
such instance could be found. |
List |
getFields()
returns a list with all fields defined by the implementing class |
FieldSet |
getFieldSet(int index)
returns the fieldset for the given index. |
FieldSet |
getFieldSet(IResource res)
|
protected IResourceListFilter |
getFilter()
|
protected IParameters |
getFilterParameters()
|
String |
getID()
returns the ID under which this status was registered by the Service |
List |
getMassFields()
returns all fields that will be available for the managed types of this class. |
protected Hashtable |
getParameters()
|
ICollection |
getParent()
returns the ICollection, whose children are handled within this
status. |
IPropertyColumn[] |
getPropertyColumns()
|
IResource |
getResource(int index)
|
IResourceList |
getResourceList()
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. |
String |
getResourceTypeMapping()
|
IResourceList |
getSelectedResources()
|
SortDefinition |
getSortDefintion()
|
StatusInformation |
getStatusInformation()
returns the status of the implementing class. |
ITypedResourceList |
getTypedResourceList()
returns the ITypedResourceList, whose elements are handled within this
status. |
boolean |
hasMore()
flag telling, if all resources available for the given parent or the given resourcelist are included in the presently returned resourcelist. |
protected void |
initializeSelectionList()
|
boolean |
isVolatile()
|
void |
refresh()
reloads resources from RF revokes all selections filters and sorts depending on the settings |
void |
setComparator(ResourcePropertyComparator comp)
sets the ResourcePropertyComparator attribute of the status. |
void |
setCurrentIndex(int index)
sets the index-attribute of the status to the given value. |
void |
setFilter(IResourceListFilter filter)
sets the class, that is used to filter out resources from the given parent-collection or the ITypedResourceList. |
void |
setFilterParameters(IParameters filterparameters)
sets the parameters, that are used by the IResourceListFilter
to determine which resources are to be filtered out. |
void |
setID(String ID)
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. |
void |
setParameters(Hashtable parameters)
|
void |
setParent(ICollection collection)
sets the parent collection for the status. |
void |
setPropertyColumns(IPropertyColumn[] columns)
|
void |
setResourceTypeMapping(String mapping)
|
void |
setSortDefinition(SortDefinition sd)
sets the SortDefinition attribute of the status. |
void |
setTypedResourceList(ITypedResourceList resourcelist,
IResourceContext context)
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. |
void |
sort()
sorts the internal list of resources. |
| 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 |
protected ITypedResourceList list
protected IResourceContext context
protected FieldSet actions
| Constructor Detail |
public AbstractRendererStatus()
| Method Detail |
public boolean isVolatile()
isVolatile in interface IVolatileStatustrue, if it might be deleted.public void setParameters(Hashtable parameters)
setParameters in interface IConfigurableRendererStatusprotected Hashtable getParameters()
public String getResourceTypeMapping()
getResourceTypeMapping in interface IConfigurableRendererStatuspublic void setResourceTypeMapping(String mapping)
setResourceTypeMapping in interface IConfigurableRendererStatus
public void setParent(ICollection collection)
throws WcmException
ITypedResourceList to null
to prevent that a resource list and a collection with children are active within the status at the
same time.
setParent in interface IRendererStatusWcmException
public void setTypedResourceList(ITypedResourceList resourcelist,
IResourceContext context)
throws WcmException
ICollection to null
to prevent that a resource list and a collection with children are active within the status at the
same time.
setTypedResourceList in interface IRendererStatusWcmExceptionpublic ICollection getParent()
IRendererStatusICollection, whose children are handled within this
status. Might be null.
getParent in interface IRendererStatuspublic ITypedResourceList getTypedResourceList()
IRendererStatusITypedResourceList, whose elements are handled within this
status. Might be null or might be of size 0.
getTypedResourceList in interface IRendererStatuspublic void setPropertyColumns(IPropertyColumn[] columns)
setPropertyColumns in interface IRendererStatuspublic IPropertyColumn[] getPropertyColumns()
getPropertyColumns in interface IRendererStatusIPropertyColumn[] attribute of the status. Might be null.
public int getCurrentIndex()
throws WcmException
getCurrentIndex in interface IRendererStatusIResource objects.
WcmException
public void setCurrentIndex(int index)
throws WcmException
IRendererStatus
setCurrentIndex in interface IRendererStatusWcmExceptionpublic void setSortDefinition(SortDefinition sd)
IRendererStatusSortDefinition attribute of the status. Might be null.
setSortDefinition in interface IRendererStatuspublic SortDefinition getSortDefintion()
getSortDefintion in interface IRendererStatusSortDefinition attribute of the status. Might be null.public int getEntrySize()
IMassDataControlStatus
getEntrySize in interface IMassDataControlStatuspublic void setComparator(ResourcePropertyComparator comp)
IRendererStatusResourcePropertyComparator attribute of the status. Might be null.
setComparator in interface IRendererStatuspublic ResourcePropertyComparator getComparator()
getComparator in interface IRendererStatusResourcePropertyComparator attribute of the status. Might be null.public List getMassFields()
IMassDataControlStatusFieldIdentifier values.
getMassFields in interface IMassDataControlStatuspublic void sort()
IRendererStatusResourcePropertyComparator
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.
sort in interface IRendererStatus
public void refresh()
throws WcmException
refresh in interface IRendererStatusWcmException
public void filter()
throws WcmException
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 IResourceListFilter IParameters or refresh() method 0, because the index
as it was might exceed the number of elements left over after the filtering.
filter in interface IRendererStatusWcmExceptionpublic void setFilter(IResourceListFilter filter)
IRendererStatusITypedResourceList. 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).
setFilter in interface IRendererStatusfilter - the filter instance to use, can be nullprotected IResourceListFilter getFilter()
public void setFilterParameters(IParameters filterparameters)
IRendererStatusIResourceListFilter
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).
setFilterParameters in interface IRendererStatusfilterparameters - determine which rules apply to filtering, can be
nullprotected IParameters getFilterParameters()
public IResourceList getResourceList()
IRendererStatusIResourceList 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.
getResourceList in interface IRendererStatusIResourceList that might be empty. Must not return null.public FieldSet getFieldSet(int index)
IResource.
getFieldSet in interface IMassDataControlStatusindex - TBD: Description of the incoming method parameter
public FieldSet getFieldSet(IResource res)
getFieldSet in interface IRendererStatusFieldSet defined for this IResource. This
set is needed to e.g. change the selection state of the resource.
protected void initializeSelectionList()
throws WcmException
WcmExceptionpublic IResourceList getSelectedResources()
getSelectedResources in interface IRendererStatuspublic IResource getResource(int index)
getResource in interface IRendererStatusIResource 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.
public StatusInformation execute(IExecutable execution)
throws WcmException
execute in interface IControlStatusexecution - TBD: Description of the incoming method parameter
WcmException - Exception raised in failure situation
public StatusInformation execute(String execution)
throws WcmException
IExecutable objects. If the given parameter
matches the IExecutable's getIdentifier.getID, this
IExecutable must be passed to the other signature of this method.
execute in interface IControlStatusexecution - TBD: Description of the incoming method parameter
WcmException, - if no matching class could be found.
WcmException - Exception raised in failure situationpublic IField getField(FieldIdentifier ident)
null, if no
such instance could be found.
getField in interface IControlStatusident - TBD: Description of the incoming method parameter
public IExecutable getAction(FieldIdentifier ident)
IExecutable with the given ident-parameter
or null, if no such instance could be found.
getAction in interface IControlStatusident - TBD: Description of the incoming method parameter
public List getFields()
getFields in interface IControlStatuspublic StatusInformation getStatusInformation()
null will be used and its status
will be returned. Consequently, this method might return null
getStatusInformation in interface IControlStatuspublic boolean hasMore()
hasMore in interface IRendererStatusfalse, if all resources are includedpublic String getID()
IControlStatus
getID in interface IControlStatuspublic void setID(String ID)
IControlStatus
setID in interface IControlStatusID - iD to be set
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||