ContentView
instances in conjunction with
PageProvider
instead.@Deprecated @Name(value="resultsProvidersCache") @Scope(value=CONVERSATION) public class ResultsProvidersCacheBean extends Object implements ResultsProvidersCache, Serializable
This compononent maintains a cache of PagedDocumentsProvider
instances.
It's also capable of instantiating the cache by calling provider farms: other Seam components that also implement the ResultsProviderFarm interface.
Constructor and Description |
---|
ResultsProvidersCacheBean()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Deprecated.
Declaration for [Seam]Destroy method.
|
PagedDocumentsProvider |
get(String name)
Deprecated.
Get a named results provider.
|
PagedDocumentsProvider |
get(String name,
SortInfo sortInfo)
Deprecated.
Gets a named results provider.
|
DocumentModelList |
getCurrentPageOf(String name)
Deprecated.
|
int |
getNumberOfPages()
Deprecated.
|
int |
getPageIndex()
Deprecated.
|
String |
getRecordStatus()
Deprecated.
use normal messaging in JSF with pageIndex and numberOfPages
as params
|
void |
init()
Deprecated.
Init method needed in Seam managed lifecycle.
|
void |
invalidate(String name)
Deprecated.
Invalidates a results provider.
|
void |
invalidateChildrenProvider()
Deprecated.
|
@Create public void init()
init
in interface ResultsProvidersCache
public void destroy()
ResultsProvidersCache
destroy
in interface ResultsProvidersCache
public PagedDocumentsProvider get(String name) throws ClientException
ResultsProvidersCache
This handles caching and first instantiation.
get
in interface ResultsProvidersCache
ClientException
public PagedDocumentsProvider get(String name, SortInfo sortInfo) throws ClientException, SortNotSupportedException
ResultsProvidersCache
This handles caching and first instantiation.
get
in interface ResultsProvidersCache
ClientException
SortNotSupportedException
public void invalidate(String name)
ResultsProvidersCache
A new provider will be computed next time get() is called.
invalidate
in interface ResultsProvidersCache
@Observer(value={"documentChildrenChanged","locationSelectionChanged"}, create=false) @BypassInterceptors public void invalidateChildrenProvider()
public DocumentModelList getCurrentPageOf(String name) throws ClientException
ClientException
@Deprecated public String getRecordStatus()
public int getNumberOfPages()
getNumberOfPages
in interface ResultsProvidersCache
public int getPageIndex()
getPageIndex
in interface ResultsProvidersCache
Copyright © 2011 Nuxeo SA. All Rights Reserved.