|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
allows to keep data regarding a list of IResource and metadata
about that list across http-request-cycles, so that rendering classes such
as an ICollectionRenderer can use this as persistence mechanism.
The status supports some basic user-resourcelist-interactions such as sorting,
filtering and selection. The status only creates new IResource
elements (which is an expensive operation) in the methods
refresh
setTypedResourceList
setParent
For the sort method, only the ResourcePropertyComparator
attribute is used, not the SortDefinition attribute. This attribute is
only needed by the classes which use this status as a model to persist their
data across http-requests.
| Field Summary | |
static FieldIdentifier |
DESELECT_ALL
|
static FieldIdentifier |
ID
|
static FieldIdentifier |
NAME
|
static FieldIdentifier |
SELECT_ALL
|
| Method Summary | |
void |
filter()
filters the internal list of resources. |
ResourcePropertyComparator |
getComparator()
|
int |
getCurrentIndex()
|
FieldSet |
getFieldSet(IResource res)
|
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. |
IResourceList |
getSelectedResources()
|
SortDefinition |
getSortDefintion()
|
ITypedResourceList |
getTypedResourceList()
returns the ITypedResourceList, whose elements are handled within this
status. |
boolean |
hasMore()
flag telling if all IResource objects that belong to the
ICollection or the TypedResourceList attribute have
already been instantiated (and added to the internal resourcelist) or not. |
void |
refresh()
reloads resources from RF revokes all selections |
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 |
setParent(ICollection parent)
sets the collection whose children are to be handled within this status. |
void |
setPropertyColumns(com.sapportals.wcm.control.util.property.IPropertyColumn[] columns)
|
void |
setSortDefinition(SortDefinition sd)
sets the SortDefinition attribute of the status. |
void |
setTypedResourceList(ITypedResourceList list,
IResourceContext context)
sets the ITypedResourceList, whose elements are handled within this
status. |
void |
sort()
sorts the internal list of resources. |
| Methods inherited from interface com.sapportals.wcm.util.controlstatus.IControlStatus |
execute, execute, getAction, getActions, getField, getFields, getID, getStatusInformation, setID |
| Methods inherited from interface com.sapportals.wcm.util.controlstatus.IMassDataControlStatus |
getEntrySize, getFieldSet, getMassFields |
| Field Detail |
public static final FieldIdentifier ID
public static final FieldIdentifier NAME
public static final FieldIdentifier SELECT_ALL
public static final FieldIdentifier DESELECT_ALL
| Method Detail |
public IResourceList getResourceList()
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.IResourceList that might be empty. Must not return null.
public void setParent(ICollection parent)
throws WcmException
filter
method of this status. If this method is called, the status will throw away
all selection information and recreate its internal list of resources. The
setTypedResourceList shows a similar behavior. Must not be
null.WcmException, - if the RepositoryFramework does sopublic ICollection getParent()
ICollection, whose children are handled within this
status. Might be null.public ITypedResourceList getTypedResourceList()
ITypedResourceList, whose elements are handled within this
status. Might be null or might be of size 0.
public void setTypedResourceList(ITypedResourceList list,
IResourceContext context)
throws WcmException
ITypedResourceList, whose elements are handled within this
status. Must not be null but might be of size 0. The second parameter,
the context, is needed to set the IResourceContext attribute of the
status. This is normally retrieved from an IResource within the list,
but the list might be empty.WcmException, - if the RepositoryFramework does so
public void setCurrentIndex(int index)
throws WcmException
an - 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 int getCurrentIndex()
throws WcmException
IResource objects.public IResource getResource(int index)
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.public FieldSet getFieldSet(IResource res)
FieldSet defined for this IResource. This
set is needed to e.g. change the selection state of the resource.public IResourceList getSelectedResources()
public void setSortDefinition(SortDefinition sd)
SortDefinition attribute of the status. Might be null.public SortDefinition getSortDefintion()
SortDefinition attribute of the status. Might be null.public void setComparator(ResourcePropertyComparator comp)
ResourcePropertyComparator attribute of the status. Might be null.public ResourcePropertyComparator getComparator()
ResourcePropertyComparator attribute of the status. Might be null.public void setPropertyColumns(com.sapportals.wcm.control.util.property.IPropertyColumn[] columns)
public com.sapportals.wcm.control.util.property.IPropertyColumn[] getPropertyColumns()
IPropertyColumn[] attribute of the status. Might be null.public void sort()
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.
public void filter()
throws WcmException
IResource
objects will be set to false, if and only if at least one of the two
attributes IResourceListFilter or (IParameters has changed since
the last call of this method.WcmException - if the filtering class throws itpublic void setFilter(com.sapportals.wcm.service.resourcelistfilter.IResourceListFilter filter)
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).filter - the filter instance to use, can be nullpublic void setFilterParameters(com.sapportals.wcm.repository.service.layout.customizing.IParameters filterparameters)
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).filterparameters - determine which rules apply to filtering, can be
null
public void refresh()
throws WcmException
public boolean hasMore()
IResource objects that belong to the
ICollection or the TypedResourceList attribute have
already been instantiated (and added to the internal resourcelist) or not.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||