@Named @ViewScoped public class ViewController extends Object implements Serializable
The view property defines the view type returned by a method call of loadData. The ViewController implements a lazy loading mechanism to cache the result.
The property 'loadStubs' can be used to define if only the Document Stubs (default) or the full Document should be loaded.
The ViewController bean should be used in ViewScope.
| Constructor and Description |
|---|
ViewController() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPageIndex()
Navigation
|
int |
getPageSize()
returns the maximum size of a search result
|
String |
getQuery()
Returns the search Query
|
String |
getSortBy() |
List<org.imixs.workflow.ItemCollection> |
getWorkitems()
Deprecated.
|
void |
init() |
boolean |
isEndOfList() |
boolean |
isLoadStubs() |
boolean |
isSortReverse() |
List<org.imixs.workflow.ItemCollection> |
loadData()
Returns the current view result.
|
void |
reset()
resets the current result and set the page pointer to 0.
|
void |
setEndOfList(boolean endOfList) |
void |
setLoadStubs(boolean loadStubs) |
void |
setPageIndex(int pageIndex) |
void |
setPageSize(int pageSize)
set the maximum size of a search result
|
void |
setQuery(String query)
set the search query
|
void |
setSortBy(String sortBy) |
void |
setSortReverse(boolean sortReverse) |
@PostConstruct public void init()
public String getQuery()
public void setQuery(String query)
query - public String getSortBy()
public void setSortBy(String sortBy)
public boolean isSortReverse()
public void setSortReverse(boolean sortReverse)
public int getPageSize()
public void setPageSize(int pageSize)
searchCount - public boolean isLoadStubs()
public void setLoadStubs(boolean loadStubs)
public void reset()
@Deprecated public List<org.imixs.workflow.ItemCollection> getWorkitems() throws org.imixs.workflow.exceptions.QueryException
org.imixs.workflow.exceptions.QueryExceptionpublic int getPageIndex()
public void setPageIndex(int pageIndex)
public boolean isEndOfList()
public void setEndOfList(boolean endOfList)
public List<org.imixs.workflow.ItemCollection> loadData() throws org.imixs.workflow.exceptions.QueryException
The method implements a lazy loading mechanism and caches the result locally.
org.imixs.workflow.exceptions.QueryExceptionCopyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.