Package org.imixs.workflow.faces.data
Klasse ViewController
java.lang.Object
org.imixs.workflow.faces.data.ViewController
- Alle implementierten Schnittstellen:
Serializable
The ViewController can be used in JSF Applications to manage lists of
ItemCollections.
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.
- Version:
- 0.0.1
- Autor:
- rsoika
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintNavigationintreturns the maximum size of a search resultgetQuery()Returns the search QuerylongReturns the total count of entries for the current search query.longVeraltet.voidinit()booleanbooleanbooleanloadData()Returns the current view result.voidreset()resets the current result and set the page pointer to 0.voidsetEndOfList(boolean endOfList) voidsetLoadStubs(boolean loadStubs) voidsetPageIndex(int pageIndex) voidsetPageSize(int pageSize) set the maximum size of a search resultvoidset the search queryvoidvoidsetSortReverse(boolean sortReverse)
-
Konstruktordetails
-
ViewController
public ViewController()
-
-
Methodendetails
-
init
@PostConstruct public void init() -
getQuery
Returns the search Query- Gibt zurück:
-
setQuery
set the search query- Parameter:
query-
-
getSortBy
-
setSortBy
-
isSortReverse
public boolean isSortReverse() -
setSortReverse
public void setSortReverse(boolean sortReverse) -
getPageSize
public int getPageSize()returns the maximum size of a search result- Gibt zurück:
-
setPageSize
public void setPageSize(int pageSize) set the maximum size of a search result- Parameter:
searchCount-
-
isLoadStubs
public boolean isLoadStubs() -
setLoadStubs
public void setLoadStubs(boolean loadStubs) -
reset
public void reset()resets the current result and set the page pointer to 0. -
getWorkitems
Veraltet.- Löst aus:
QueryException
-
getPageIndex
public int getPageIndex()Navigation -
setPageIndex
public void setPageIndex(int pageIndex) -
isEndOfList
public boolean isEndOfList() -
setEndOfList
public void setEndOfList(boolean endOfList) -
getTotalCount
public long getTotalCount()Returns the total count of entries for the current search query. -
getTotalPages
public long getTotalPages() -
loadData
Returns the current view result. The returned result set is defined by the current query definition.The method implements a lazy loading mechanism and caches the result locally.
- Gibt zurück:
- view result
- Löst aus:
QueryException
-