T - The type of the worklist items which are managed in the worklist.@ServerSideProxyAllow public interface IncrementalWorklist<T extends WorklistItem> extends Worklist<T>
dropped and retrieved again. It is crucial to really drop
an incremental worklist since the occupy memory and resources, especially a
client/server-connection.
An incremental worklist will not be dropped automatically; it has to be dropped explicitly be the
requesting component. After an incremental worklist has been dropped, all data
retrieving methods including the ones from the super-interface will throw an
IllegalArgumentException on server side and a all methods will throw a
ServiceConnectionException on client side.
Aggregating affects the worklist items and can therefore not change while iterating. It can
change before an iteration takes place or as soon as the iteration reaches the first item in the
list (again). However, an incremental worklist can ignore aggregation completely and return
grouping items as well as group items (items being member of a group) at the same time. This is
determined by Worklist.getAggregateGroups().
RemoteIterator| Modifier and Type | Method and Description |
|---|---|
void |
drop()
Explicitly drops this incremental worklist which allows to release occupied
memory and resources.
|
static boolean |
equals(Worklist<?> me,
java.lang.Object obj)
Implements equality on
IncrementalWorklists which corresponds to the equality on
Worklists except for implementing IncrementalWorklist. |
java.util.UUID |
getID()
The system-wide unique ID of this worklist.
|
java.util.List<T> |
getNext(int count)
Gets the next specified amount of worklist items of this incremental
worklist.
|
java.util.List<T> |
getNext(int count,
int start)
Gets the next specified amount of worklist items of this incremental
worklist starting at the designated index (0-based).
|
java.util.List<T> |
getPrevious(int count)
Gets the previous specified amount of worklist items of this incremental
worklist.
|
boolean |
getRespectAggregation()
Gets whether this incremental worklist respects aggregation, that is, depending on whether this
worklist aggregates or not, either grouping items or group
items will be returned but not both.
|
int |
hashCode()
When overriding
Object.equals(Object) one also needs to override
Object.hashCode(). |
equals, getAgent, getAggregateGroups, getGroupingWorklistItem, getRevision, getWorklistItem, getWorklistItemGroup, getWorklistItems, getWorklistItemsFlat, setAggregateGroupsgetUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValuejava.util.UUID getID()
Immutable.getID in interface Worklist<T extends WorklistItem>boolean getRespectAggregation()
java.util.List<T> getNext(int count)
count - The amount of worklist items to retrieve in forward direction.
This has to be > 0.null will be returned.java.lang.IllegalArgumentException - If count is non-positive (<= 0), an
IllegalArgumentException will be thrown.java.lang.IllegalStateException - If this incremental worklist has been
dropped (explicitly or implicitly), an
IllegalStateException will be thrown on server side.ServiceConnectionException - If this incremental worklist has been dropped
(explicitly or implicitly), a
ServiceConnectionException will be thrown on client
side.java.util.List<T> getNext(int count, int start)
getNext(n) will be the same as
calling getNext(n, start + count).count - The amount of worklist items to retrieve in forward direction.
This has to be > 0.start - The index of the worklist item from which to retrieve the next
count elements. 0 is the index of the first element. This has to
be >= 0 and it must not be bigger than the amounts of items in
this incremental worklist.null will be returned.java.lang.IllegalArgumentException - If count is non-positive (<= 0) or start
is negative (< 0) or it refers to an index that is bigger than
the amount of items of this incremental worklist, an
IllegalArgumentException will be thrown.java.lang.IllegalStateException - If this incremental worklist has been
dropped (explicitly or implicitly), an
IllegalStateException will be thrown on server side.ServiceConnectionException - If this incremental worklist has been dropped
(explicitly or implicitly), a
ServiceConnectionException will be thrown on client
side.java.util.List<T> getPrevious(int count)
count - The amount of worklist items to retrieve in backward
direction. This has to be > 0.null will be returned.java.lang.IllegalArgumentException - If count is non-positive (<= 0), an
IllegalArgumentException will be thrown.java.lang.IllegalStateException - If this incremental worklist has been
dropped (explicitly or implicitly), an
IllegalStateException will be thrown on server side.ServiceConnectionException - If this incremental worklist has been dropped
(explicitly or implicitly), a
ServiceConnectionException will be thrown on client
side.@ServerSideProxyRemove void drop()
ServiceConnectionException - If this incremental worklist has been dropped
(explicitly or implicitly), a
ServiceConnectionException will be thrown on client
side.int hashCode()
Object.equals(Object) one also needs to override
Object.hashCode().
Additionally marked as Immutable and as replacement for Object.hashCode(). Object.hashCode()
instead of this method even if the proxy is defined on IncrementalWorklist.hashCode in interface Worklist<T extends WorklistItem>hashCode in class java.lang.Objectstatic boolean equals(Worklist<?> me, java.lang.Object obj)
IncrementalWorklists which corresponds to the equality on
Worklists except for implementing IncrementalWorklist.
This method replaces Object.equals(Object) in a remote method call locally. Thus
equality will be evaluated by the local proxy object using only properties which are immutable.
So if the cached immutable values are present locally (in most cases), the equality will be
evaluated without a remote call.
equals in interface Worklist<T extends WorklistItem>me - The object on which to call Worklist.equals(Object). In case of a remote invocation,
this will be the proxy object.obj - The object with which to compare the current/other object.IncrementalWorklist and have the same ID.