public class CLPRendererStatus extends Object implements IConfigurableRendererStatus, IVolatileStatus
| Modifier and Type | Field and Description |
|---|---|
protected FieldSet |
actions |
static FieldIdentifier[] |
ACTIONS |
protected IPropertyColumn[] |
columns |
protected ResourcePropertyComparator |
comparator |
protected IResourceContext |
context |
protected int |
currentIndex |
protected Map |
fieldSetCache |
protected IResourceList |
internalList |
protected Locale |
locale |
protected ICollection |
parent |
protected String |
resourceTypeMapping |
protected SortDefinition |
sortDefinition |
protected String |
statusId |
protected ITypedResourceList |
trl |
protected Hashtable |
urlParameters |
DESELECT_ALL, ID, NAME, SELECT_ALL| Constructor and Description |
|---|
CLPRendererStatus() |
| Modifier and Type | Method and Description |
|---|---|
StatusInformation |
execute(IExecutable executable)
carries out the action described by the given parameter.
|
StatusInformation |
execute(String execution)
different signature for this method.
|
void |
filter()
filters the internal list of resources.
|
IExecutable |
getAction(FieldIdentifier ident)
returns the
IExecutable with the given ident-parameter or
null , if no such instance could be found. |
List |
getActions()
returns a list with all
IExecutable s defined by the
implementing class |
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 all fields available for the instance of the managed type at this
index of the internal list.
|
FieldSet |
getFieldSet(IResource res) |
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.
|
IConfigurableRendererStatus |
getNewInstance() |
ICollection |
getParent()
returns the
ICollection, whose children are handled within this
status. |
IPropertyColumn[] |
getPropertyColumns()
TODO what about
null? |
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
IResource objects that belong to the
ICollection or the TypedResourceList attribute have
already been instantiated (and added to the internal resourcelist) or not. |
protected void |
initialize() |
boolean |
isVolatile() |
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(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 parent)
sets the collection whose children are to be handled within this status.
|
void |
setPropertyColumns(IPropertyColumn[] columns)
TODO what about
null? |
void |
setResourceTypeMapping(String mapping) |
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.
|
public static final FieldIdentifier[] ACTIONS
protected ICollection parent
protected Hashtable urlParameters
protected ITypedResourceList trl
protected String resourceTypeMapping
protected String statusId
protected IResourceContext context
protected Locale locale
protected int currentIndex
protected SortDefinition sortDefinition
protected ResourcePropertyComparator comparator
protected IPropertyColumn[] columns
protected FieldSet actions
protected IResourceList internalList
protected Map fieldSetCache
public IConfigurableRendererStatus getNewInstance()
getNewInstance in interface IConfigurableRendererStatusprotected void initialize()
throws WcmException
WcmExceptionpublic String getResourceTypeMapping()
getResourceTypeMapping in interface IConfigurableRendererStatuspublic void setParameters(Hashtable parameters)
setParameters in interface IConfigurableRendererStatuspublic void setResourceTypeMapping(String mapping)
setResourceTypeMapping in interface IConfigurableRendererStatuspublic void filter()
throws WcmException
IRendererStatusIResource
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.filter in interface IRendererStatusWcmException - if the filtering class throws itpublic ResourcePropertyComparator getComparator()
getComparator in interface IRendererStatusResourcePropertyComparator attribute of the status. Might be null.public int getCurrentIndex()
throws WcmException
getCurrentIndex in interface IRendererStatusIResource objects.WcmException - if it is set to a value thatpublic FieldSet getFieldSet(IResource res)
getFieldSet in interface IRendererStatusres - resourceFieldSet defined for this IResource. This
set is needed to e.g. change the selection state of the resource.public FieldSet getFieldSet(int index)
IMassDataControlStatusIndexOutOfBoundsException
if no field set exists for the given index.getFieldSet in interface IMassDataControlStatusindex - TBD: Description of the incoming method parameterpublic ICollection getParent()
IRendererStatusICollection, whose children are handled within this
status. Might be null.getParent in interface IRendererStatuspublic IPropertyColumn[] getPropertyColumns()
IRendererStatusnull?getPropertyColumns in interface IRendererStatusIPropertyColumn[] attribute of the status. Might be null.public IResource getResource(int index)
getResource in interface IRendererStatusindex - indexIResource 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 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 IResourceList getSelectedResources()
getSelectedResources in interface IRendererStatuspublic SortDefinition getSortDefintion()
getSortDefintion in interface IRendererStatusSortDefinition attribute of the status. Might be null.public ITypedResourceList getTypedResourceList()
IRendererStatusITypedResourceList, whose elements are handled within this
status. Might be null or might be of size 0.getTypedResourceList in interface IRendererStatuspublic boolean hasMore()
IRendererStatusIResource objects that belong to the
ICollection or the TypedResourceList attribute have
already been instantiated (and added to the internal resourcelist) or not.hasMore in interface IRendererStatuspublic void refresh()
throws WcmException
IRendererStatusrefresh in interface IRendererStatusWcmException - WcmExceptionpublic void setComparator(ResourcePropertyComparator comp)
IRendererStatusResourcePropertyComparator attribute of the status. Might be null.setComparator in interface IRendererStatuscomp - Comparatorpublic void setCurrentIndex(int index)
throws WcmException
IRendererStatussetCurrentIndex in interface IRendererStatusindex - indexWcmException - 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 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 nullpublic 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
nullpublic void setParent(ICollection parent) throws WcmException
IRendererStatusfilter
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.setParent in interface IRendererStatusparent - parentWcmException - if the RepositoryFramework does sopublic void setTypedResourceList(ITypedResourceList list, IResourceContext context) throws WcmException
IRendererStatusITypedResourceList, 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.setTypedResourceList in interface IRendererStatuslist - listcontext - contextWcmException - if the RepositoryFramework does sopublic void setPropertyColumns(IPropertyColumn[] columns)
IRendererStatusnull?
sets the IPropertyColumn[] attribute of the status. Might be null.setPropertyColumns in interface IRendererStatuscolumns - PropertyColumnspublic void setSortDefinition(SortDefinition sd)
IRendererStatusSortDefinition attribute of the status. Might be null.setSortDefinition in interface IRendererStatussd - SortDefinitionpublic 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 IRendererStatuspublic StatusInformation execute(IExecutable executable) throws WcmException
IControlStatusexecute in interface IControlStatusexecutable - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situationpublic StatusInformation execute(String execution) throws WcmException
IControlStatusIExecutable 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 parameterWcmException - Exception raised in failure situationpublic IExecutable getAction(FieldIdentifier ident)
IControlStatusIExecutable with the given ident-parameter or
null , if no such instance could be found.getAction in interface IControlStatusident - TBD: Description of the incoming method parameterpublic List getActions()
IControlStatusIExecutable s defined by the
implementing classgetActions in interface IControlStatuspublic IField getField(FieldIdentifier ident)
IControlStatusnull , if
no such instance could be found.getField in interface IControlStatusident - TBD: Description of the incoming method parameterpublic List getFields()
IControlStatusgetFields in interface IControlStatuspublic String getID()
IControlStatusgetID in interface IControlStatuspublic StatusInformation getStatusInformation()
IControlStatusnull will be used and
its status will be returned. Consequently, this method might return
nullgetStatusInformation in interface IControlStatuspublic void setID(String id)
IControlStatussetID in interface IControlStatusid - iD to be setpublic int getEntrySize()
IMassDataControlStatusgetEntrySize in interface IMassDataControlStatuspublic List getMassFields()
IMassDataControlStatusFieldIdentifier values.getMassFields in interface IMassDataControlStatuspublic boolean isVolatile()
isVolatile in interface IVolatileStatustrue, if it might be deleted.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice