@Named @SessionScoped public class SearchController extends org.imixs.workflow.faces.data.ViewController implements Serializable
The controller extends the Imixs ViewController and provides custom filter and search queries to request a individual WorkList result. The ItemCollection search filter holds filter criteria for a customized search query.
The bean is session scoped to hold the search filter over a page journey.
The SearchController defines also a set of predefined filter properties:
| Constructor and Description |
|---|
SearchController() |
| Modifier and Type | Method and Description |
|---|---|
String |
doSearch()
Creates a bookmarkable search link to the worklist including the current
search phrase.
|
org.imixs.workflow.ItemCollection |
getProcess() |
String |
getQuery()
Returns a Lucene search query based on the define searchFilter parameter set
If a search phrase is given, sortBy and sortReverse are reset.
|
org.imixs.workflow.ItemCollection |
getSearchFilter() |
String |
getSortBy() |
org.imixs.workflow.ItemCollection |
getSpace() |
void |
init()
This method set the sort order and sort criteria
|
boolean |
isSortReverse() |
void |
reset()
Resets the search filter and the current result.
|
void |
resetFilter()
Resets the search filter but not the search phrase (txtSearch) The method
reset the current result.
|
void |
setDMSMode(boolean dms)
Can be set to true to restrict the result to workitems containing
attachments.
|
void |
setSearchFilter(org.imixs.workflow.ItemCollection searchFilter) |
public String getSortBy()
getSortBy in class org.imixs.workflow.faces.data.ViewControllerpublic boolean isSortReverse()
isSortReverse in class org.imixs.workflow.faces.data.ViewControllerpublic void init()
init in class org.imixs.workflow.faces.data.ViewControllerpublic org.imixs.workflow.ItemCollection getProcess()
public org.imixs.workflow.ItemCollection getSpace()
public void reset()
reset in class org.imixs.workflow.faces.data.ViewControllerevent - public void resetFilter()
event - public String doSearch()
action - - post-redirect link to worklistpublic org.imixs.workflow.ItemCollection getSearchFilter()
public void setSearchFilter(org.imixs.workflow.ItemCollection searchFilter)
public void setDMSMode(boolean dms)
dms - public String getQuery()
If a search phrase is given, sortBy and sortReverse are reset. In case of a general search in a specific contest the sortBy and sortReverse are set the settings provided by the setupController
getQuery in class org.imixs.workflow.faces.data.ViewControllersearchFilter - - ItemCollection with filter criteriaview - - WorkList View type - @see WorklistControllerCopyright © 2016–2020 Imixs Software Solutions GmbH. All rights reserved.