com.webmethods.bpm.process
Class BpmProcessSearchQuery

java.lang.Object
  extended by com.webmethods.bpm.process.BpmProcessSearchQuery
All Implemented Interfaces:
Serializable

public class BpmProcessSearchQuery
extends Object
implements Serializable

Search Query for BPM Processes

See Also:
Serialized Form

Constructor Summary
BpmProcessSearchQuery()
          Default constructor
BpmProcessSearchQuery(BpmProcessSearchQuery query)
          Constructor from search query
 
Method Summary
 BpmProcessSearchQueryTerm addTerm(String field, String operator, Object value)
          Adds a terms to the query
 void clearTerms()
          Remove all terms
 int getMaxResults()
          Returns max results for this query
 BpmProcessSearchQueryTerm[] getTerms()
          Returns all terms in this query
 boolean removeTerm(BpmProcessSearchQueryTerm term)
          Removes given term from the search query
 boolean removeTerm(String fieldName)
          Removes a term for given field name
 void setMaxResults(int maxResults)
          Sets max results for this query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BpmProcessSearchQuery

public BpmProcessSearchQuery(BpmProcessSearchQuery query)
Constructor from search query


BpmProcessSearchQuery

public BpmProcessSearchQuery()
Default constructor

Method Detail

getMaxResults

public int getMaxResults()
Returns max results for this query


setMaxResults

public void setMaxResults(int maxResults)
Sets max results for this query


addTerm

public BpmProcessSearchQueryTerm addTerm(String field,
                                         String operator,
                                         Object value)
Adds a terms to the query

Parameters:
field - what field to search on. See BpmProcessSearchQueryTerm for list of available fields
operator - what search operator to use. See BpmProcessSearchQueryTerm for list of available operators
value - what value to search on
Returns:
search term object

getTerms

public BpmProcessSearchQueryTerm[] getTerms()
Returns all terms in this query


removeTerm

public boolean removeTerm(BpmProcessSearchQueryTerm term)
Removes given term from the search query

Parameters:
term - term to remove
Returns:
true if term was removed

removeTerm

public boolean removeTerm(String fieldName)
Removes a term for given field name

Parameters:
fieldName - field name to remove
Returns:
true if term was removed

clearTerms

public void clearTerms()
Remove all terms