|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.task.impl.TaskSearchQuery
public class TaskSearchQuery
TaskSearchQuery is the concrete implementation of ITaskSearchQuery
.
Field Summary |
---|
Fields inherited from interface com.webmethods.caf.faces.data.task.ITaskSearchQuery |
---|
OPERATOR_AND, OPERATOR_BETWEEN, OPERATOR_CONTAINS, OPERATOR_EQUALS, OPERATOR_EQUALS_OR_LESS, OPERATOR_EQUALS_OR_MORE, OPERATOR_IN, OPERATOR_IS_NOT_NULL, OPERATOR_IS_NULL, OPERATOR_LESS, OPERATOR_LIKE, OPERATOR_MORE, OPERATOR_NOT_EQUALS, OPERATOR_NOT_IN, OPERATOR_NOT_LIKE, OPERATOR_OR, SORT_ORDER_ASCENDING, SORT_ORDER_DESCENDING |
Constructor Summary | |
---|---|
TaskSearchQuery()
Default constructor which doesn't do any initialization. |
|
TaskSearchQuery(TaskSearchQuery taskQuery)
Copy constructor |
Method Summary | |
---|---|
TaskSearchQueryTerm |
addQueryTerm(String[] fields,
String operator,
Object value)
Creates new search term using the parameters provided and add the newly created search term to this search query. |
TaskSearchQueryTerm |
findTerm(String fieldName)
Find the search term based on the fieldName specified. |
TaskSearchQueryTerm |
findTerm(String fieldName,
String operator)
Find the search term based on the fieldName and operator specified. |
long |
getInvocationID()
|
int |
getMaxResults()
Returns max results to be returned. |
String |
getPrincipalID()
Returns principalID whose inbox should be searched. |
TaskSearchQueryTerm[] |
getTerms()
Returns search query terms |
boolean |
isCheckPermissions()
Returns flag if current user permission should be checked for the task searches. |
boolean |
isDoNotShowAcceptedByOthers()
Whether query should display tasks accepted by other principals |
boolean |
isShowNonActiveTasks()
Returns flag to show non active tasks in the search result. |
boolean |
matches(FacesContext facesContext)
Evaluates query against task set on facesContext. |
boolean |
removeQueryTerm(TaskSearchQueryTerm term)
Removes a search term from this query |
void |
reset()
Resets a query before search. |
void |
setCheckPermissions(boolean permissions)
Set the flag to indicate if current user permission should be checked for the task search. |
void |
setDoNotShowAcceptedByOthers(boolean doNotShow)
Whether query should display tasks accepted by other principals |
void |
setInvocationID(long m_invocationid)
Set the ID of the search invocation. |
void |
setMaxResults(int maxResults)
Set the max result count |
void |
setPrincipalID(String principalID)
Sets principalID whose inbox should be searched. |
void |
setShowNonActiveTasks(boolean nonActiveTasks)
Set the flag to indicate whether the search result should show non active tasks. |
void |
setTerms(TaskSearchQueryTerm[] terms)
Set search term list for this query |
String |
toString()
|
void |
validate()
Validates this query, throws any error exception if query is not valid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TaskSearchQuery()
public TaskSearchQuery(TaskSearchQuery taskQuery)
taskQuery
- task query to copy fromMethod Detail |
---|
public int getMaxResults()
public void setMaxResults(int maxResults)
maxResults
- max results. Set to -1 to return everythingpublic boolean isShowNonActiveTasks()
ITaskSearchContentProvider.setSearchInbox(boolean)
public void setShowNonActiveTasks(boolean nonActiveTasks)
nonActiveTasks
- flag to show non-active taskspublic boolean isCheckPermissions()
public void setCheckPermissions(boolean permissions)
permissions
- permissions check flagpublic void setTerms(TaskSearchQueryTerm[] terms)
terms
- array of search termspublic TaskSearchQueryTerm[] getTerms()
public TaskSearchQueryTerm findTerm(String fieldName, String operator)
fieldName
- field name to searchoperator
- operator to search
public TaskSearchQueryTerm findTerm(String fieldName)
fieldName
- field name to find term for
public String getPrincipalID()
public void setPrincipalID(String principalID)
public TaskSearchQueryTerm addQueryTerm(String[] fields, String operator, Object value)
fields
- search fields array to be used for this search term.
ITaskSearchQuery
for list of available task info fields
operator
- search operator. See ITaskSearchQuery
for list of available operatorsvalue
- search value
public boolean removeQueryTerm(TaskSearchQueryTerm term)
term
- term to be removed
public boolean matches(FacesContext facesContext) throws Exception
TaskSearchQueryTerm.matches(FacesContext)
for every term defined for this task. Some terms may implement a search in the database (for most TaskInfo fields).
If term implements its search in the database, then this term is ignored as it already been evaluated.
facesContext
- current facesContext. The current task is available on the context by #{currentTask} binding expression
Exception
public void reset()
public String toString()
toString
in class Object
public void validate() throws Exception
Exception
public boolean isDoNotShowAcceptedByOthers()
public void setDoNotShowAcceptedByOthers(boolean doNotShow)
public long getInvocationID()
public void setInvocationID(long m_invocationid)
m_invocationid
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |