|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ode.bpel.common.Filter<org.apache.ode.bpel.common.InstanceFilter.Criteria>
org.apache.ode.bpel.common.InstanceFilter
public class InstanceFilter
Holds a filter that will get interpreted when listing processe instances. The semantic of the filtering is somewhat different than the one used in the ProcessQuery class. Here we're introducing a pseudo process querying language.
Nested Class Summary | |
---|---|
static class |
InstanceFilter.StatusKeys
|
Nested classes/interfaces inherited from class org.apache.ode.bpel.common.Filter |
---|
Filter.Restriction<V> |
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
LOG
|
java.util.List<java.lang.String> |
orders
Orders to use when sorting the result (no particular order if not set). |
Fields inherited from class org.apache.ode.bpel.common.Filter |
---|
__msgs, _criteria |
Constructor Summary | |
---|---|
InstanceFilter(java.lang.String filter)
|
|
InstanceFilter(java.lang.String filter,
java.lang.String orderKeys,
int limit)
Initializes properly the InstanceFilter attributes by pre-parsing the filter and orderKeys strings and setting the limit. |
Method Summary | |
---|---|
boolean |
arePidsNegative()
|
java.util.List<java.lang.Short> |
convertFilterState()
Converts the status filter value as given by a filter ('active', 'suspended', ...) to an instance state as defined in the ProcessState class. |
protected org.apache.ode.bpel.common.InstanceFilter.Criteria[] |
getFilterKeys()
Get the list of known (recognized) filter keys. |
java.util.List<java.lang.String> |
getIidFilter()
|
java.util.List<java.lang.String> |
getLastActiveDateFilter()
|
int |
getLimit()
|
java.lang.String |
getNameFilter()
|
java.lang.String |
getNamespaceFilter()
|
java.util.List<java.lang.String> |
getOrders()
|
java.util.List<java.lang.String> |
getPidFilter()
|
java.util.Map<java.lang.String,java.lang.String> |
getPropertyValuesFilter()
|
java.util.List<java.lang.String> |
getStartedDateFilter()
|
java.util.List<java.lang.String> |
getStatusFilter()
|
static void |
main(java.lang.String[] args)
|
protected org.apache.ode.bpel.common.InstanceFilter.Criteria |
parseKey(java.lang.String keyVal)
Parse the string representation of a key into an enumeration value. |
protected void |
process(org.apache.ode.bpel.common.InstanceFilter.Criteria key,
Filter.Restriction<java.lang.String> rest)
Perform additional parsing/processing. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.ode.bpel.common.Filter |
---|
getDateWithoutOp, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log LOG
public java.util.List<java.lang.String> orders
Constructor Detail |
---|
public InstanceFilter(java.lang.String filter, java.lang.String orderKeys, int limit)
filter
- orderKeys
- public InstanceFilter(java.lang.String filter)
Method Detail |
---|
public java.util.List<java.lang.Short> convertFilterState()
public java.lang.String getNameFilter()
public java.lang.String getNamespaceFilter()
public java.util.List<java.lang.String> getStatusFilter()
public java.util.List<java.lang.String> getStartedDateFilter()
public java.util.List<java.lang.String> getLastActiveDateFilter()
public java.util.Map<java.lang.String,java.lang.String> getPropertyValuesFilter()
public java.util.List<java.lang.String> getOrders()
public java.util.List<java.lang.String> getPidFilter()
public boolean arePidsNegative()
public java.util.List<java.lang.String> getIidFilter()
public static void main(java.lang.String[] args)
protected org.apache.ode.bpel.common.InstanceFilter.Criteria parseKey(java.lang.String keyVal)
Filter
parseKey
in class Filter<org.apache.ode.bpel.common.InstanceFilter.Criteria>
keyVal
- string representation
protected org.apache.ode.bpel.common.InstanceFilter.Criteria[] getFilterKeys()
Filter
getFilterKeys
in class Filter<org.apache.ode.bpel.common.InstanceFilter.Criteria>
protected void process(org.apache.ode.bpel.common.InstanceFilter.Criteria key, Filter.Restriction<java.lang.String> rest)
Filter
process
in class Filter<org.apache.ode.bpel.common.InstanceFilter.Criteria>
key
- filter keyrest
- restrictionpublic int getLimit()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |