|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.rendering.collection.AbstractRendererStatus
| Inner Class Summary | |
class |
AbstractRendererStatus.CompleteResource
|
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(java.lang.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. |
java.util.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 com.sapportals.wcm.service.resourcelistfilter.IResourceListFilter |
getFilter()
|
protected com.sapportals.wcm.repository.service.layout.customizing.IParameters |
getFilterParameters()
|
java.lang.String |
getID()
returns the ID under which this status was registered by the Service |
java.util.List |
getMassFields()
returns all fields that will be available for the managed types of this class. |
protected java.util.Hashtable |
getParameters()
|
ICollection |
getParent()
returns the ICollection, whose children are handled within this
status. |
com.sapportals.wcm.control.util.property.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. |
java.lang.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(com.sapportals.wcm.service.resourcelistfilter.IResourceListFilter filter)
sets the class, that is used to filter out resources from the given parent-collection or the ITypedResourceList. |
void |
setFilterParameters(com.sapportals.wcm.repository.service.layout.customizing.IParameters filterparameters)
sets the parameters, that are used by the IResourceListFilter
to determine which resources are to be filtered out. |
void |
setID(java.lang.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(java.util.Hashtable parameters)
|
void |
setParent(ICollection collection)
sets the parent collection for the status. |
void |
setPropertyColumns(com.sapportals.wcm.control.util.property.IPropertyColumn[] columns)
|
void |
setResourceTypeMapping(java.lang.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 IVolatileStatuscom.sapportals.wcm.rendering.base.IVolatileStatustrue, if it might be deleted.public void setParameters(java.util.Hashtable parameters)
setParameters in interface IConfigurableRendererStatusprotected java.util.Hashtable getParameters()
public java.lang.String getResourceTypeMapping()
getResourceTypeMapping in interface IConfigurableRendererStatuspublic void setResourceTypeMapping(java.lang.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 IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusWcmException, - if the RepositoryFramework does so
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 IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusWcmException, - if the RepositoryFramework does sopublic 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(com.sapportals.wcm.control.util.property.IPropertyColumn[] columns)
setPropertyColumns in interface IRendererStatuspublic com.sapportals.wcm.control.util.property.IPropertyColumn[] getPropertyColumns()
getPropertyColumns in interface IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusIPropertyColumn[] attribute of the status. Might be null.
public int getCurrentIndex()
throws WcmException
getCurrentIndex in interface IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusIResource objects.
public void setCurrentIndex(int index)
throws WcmException
IRendererStatussetCurrentIndex in interface IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusan - IndexOutOfBoundsException, if it is set to a value that
exceeds the number of IResources within this status. If not all elements
of the ITypedResourceList or all children of the ICollection
have been retrieved yet (e.g. because of performance reasons), this method might trigger
a refresh of the list and increase that number.public void setSortDefinition(SortDefinition sd)
IRendererStatusSortDefinition attribute of the status. Might be null.setSortDefinition in interface IRendererStatuspublic SortDefinition getSortDefintion()
getSortDefintion in interface IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusSortDefinition attribute of the status. Might be null.public int getEntrySize()
IMassDataControlStatusgetEntrySize in interface IMassDataControlStatuscom.sapportals.wcm.util.controlstatus.IMassDataControlStatuspublic void setComparator(ResourcePropertyComparator comp)
IRendererStatusResourcePropertyComparator attribute of the status. Might be null.setComparator in interface IRendererStatuspublic ResourcePropertyComparator getComparator()
getComparator in interface IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusResourcePropertyComparator attribute of the status. Might be null.public java.util.List getMassFields()
IMassDataControlStatusFieldIdentifier values.getMassFields in interface IMassDataControlStatuscom.sapportals.wcm.util.controlstatus.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 IRendererStatus
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 IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusWcmException - if the filtering class throws itpublic void setFilter(com.sapportals.wcm.service.resourcelistfilter.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 IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusfilter - the filter instance to use, can be nullprotected com.sapportals.wcm.service.resourcelistfilter.IResourceListFilter getFilter()
public void setFilterParameters(com.sapportals.wcm.repository.service.layout.customizing.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 IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusfilterparameters - determine which rules apply to filtering, can be
nullprotected com.sapportals.wcm.repository.service.layout.customizing.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 IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusIResourceList that might be empty. Must not return null.public FieldSet getFieldSet(int index)
IResource.getFieldSet in interface IMassDataControlStatuscom.sapportals.wcm.util.controlstatus.IMassDataControlStatusindex - TBD: Description of the incoming method parameterpublic FieldSet getFieldSet(IResource res)
getFieldSet in interface IRendererStatuscom.sapportals.wcm.rendering.base.IRendererStatusFieldSet defined for this IResource. This
set is needed to e.g. change the selection state of the resource.
protected void initializeSelectionList()
throws WcmException
public IResourceList getSelectedResources()
getSelectedResources in interface IRendererStatuspublic IResource getResource(int index)
getResource in interface IRendererStatuscom.sapportals.wcm.rendering.base.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 IControlStatus
public StatusInformation execute(java.lang.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 IControlStatusWcmException, - if no matching class could be found.public IField getField(FieldIdentifier ident)
null, if no
such instance could be found.getField in interface IControlStatuscom.sapportals.wcm.util.controlstatus.IControlStatusident - TBD: Description of the incoming method parameterpublic IExecutable getAction(FieldIdentifier ident)
IExecutable with the given ident-parameter
or null, if no such instance could be found.getAction in interface IControlStatuscom.sapportals.wcm.util.controlstatus.IControlStatusident - TBD: Description of the incoming method parameterpublic java.util.List getFields()
getFields in interface IControlStatuscom.sapportals.wcm.util.controlstatus.IControlStatuspublic StatusInformation getStatusInformation()
null will be used and its status
will be returned. Consequently, this method might return nullgetStatusInformation in interface IControlStatuscom.sapportals.wcm.util.controlstatus.IControlStatuspublic boolean hasMore()
hasMore in interface IRendererStatusfalse, if all resources are includedpublic java.lang.String getID()
IControlStatusgetID in interface IControlStatuscom.sapportals.wcm.util.controlstatus.IControlStatuspublic void setID(java.lang.String ID)
IControlStatussetID in interface IControlStatuscom.sapportals.wcm.util.controlstatus.IControlStatusid - iD to be set
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||