Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.pagination
Class ResultsProvidersCacheBean

java.lang.Object
  extended by org.nuxeo.ecm.webapp.pagination.ResultsProvidersCacheBean
All Implemented Interfaces:
Serializable, ResultsProvidersCache

Deprecated. use ContentView instances in conjunction with PageProvider instead.

@Deprecated
@Name(value="resultsProvidersCache")
@Scope(value=CONVERSATION)
public class ResultsProvidersCacheBean
extends Object
implements ResultsProvidersCache, Serializable

Seam component named 'resultsProvidersCache'. Implements actions available in UI for navigating forward and backward through the pages of a result containing Document(models).

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.

Author:
Dragos Mihalache, Georges Racinet
See Also:
Serialized Form

Constructor Summary
ResultsProvidersCacheBean()
          Deprecated.  
 
Method Summary
 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.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultsProvidersCacheBean

public ResultsProvidersCacheBean()
Deprecated. 
Method Detail

init

@Create
public void init()
Deprecated. 
Init method needed in Seam managed lifecycle.

Specified by:
init in interface ResultsProvidersCache

destroy

public void destroy()
Deprecated. 
Description copied from interface: ResultsProvidersCache
Declaration for [Seam]Destroy method.

Specified by:
destroy in interface ResultsProvidersCache

get

public PagedDocumentsProvider get(String name)
                           throws ClientException
Deprecated. 
Description copied from interface: ResultsProvidersCache
Get a named results provider.

This handles caching and first instantiation.

Specified by:
get in interface ResultsProvidersCache
Throws:
ClientException

get

public PagedDocumentsProvider get(String name,
                                  SortInfo sortInfo)
                           throws ClientException,
                                  SortNotSupportedException
Deprecated. 
Description copied from interface: ResultsProvidersCache
Gets a named results provider.

This handles caching and first instantiation.

Specified by:
get in interface ResultsProvidersCache
Throws:
ClientException
SortNotSupportedException

invalidate

public void invalidate(String name)
Deprecated. 
Description copied from interface: ResultsProvidersCache
Invalidates a results provider.

A new provider will be computed next time get() is called.

Specified by:
invalidate in interface ResultsProvidersCache

invalidateChildrenProvider

@Observer(value={"documentChildrenChanged","locationSelectionChanged"},
          create=false)
@BypassInterceptors
public void invalidateChildrenProvider()
Deprecated. 

getCurrentPageOf

public DocumentModelList getCurrentPageOf(String name)
                                   throws ClientException
Deprecated. 
Throws:
ClientException

getRecordStatus

@Deprecated
public String getRecordStatus()
Deprecated. use normal messaging in JSF with pageIndex and numberOfPages as params


getNumberOfPages

public int getNumberOfPages()
Deprecated. 
Specified by:
getNumberOfPages in interface ResultsProvidersCache

getPageIndex

public int getPageIndex()
Deprecated. 
Specified by:
getPageIndex in interface ResultsProvidersCache

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.