Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.query.core
Class PageProviderServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.query.core.PageProviderServiceImpl
All Implemented Interfaces:
java.io.Serializable, PageProviderService, Adaptable, Component, Extensible

public class PageProviderServiceImpl
extends DefaultComponent
implements PageProviderService

Since:
5.4
Author:
Anahide Tchertchian
See Also:
Serialized Form

Field Summary
static java.lang.String PROVIDER_EP
           
 
Constructor Summary
PageProviderServiceImpl()
           
 
Method Summary
 PageProvider<?> getPageProvider(java.lang.String name, java.util.List<SortInfo> sortInfos, java.lang.Long pageSize, java.lang.Long currentPage, java.util.Map<java.lang.String,java.io.Serializable> properties, java.lang.Object... parameters)
          Returns the page provider computed from the content view with given name.
 PageProvider<?> getPageProvider(java.lang.String name, PageProviderDefinition desc, java.util.List<SortInfo> sortInfos, java.lang.Long pageSize, java.lang.Long currentPage, java.util.Map<java.lang.String,java.io.Serializable> properties, java.lang.Object... parameters)
           
 PageProviderDefinition getPageProviderDefinition(java.lang.String name)
           
 void registerContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
           
 void unregisterContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, deactivate, getAdapter, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDER_EP

public static final java.lang.String PROVIDER_EP
See Also:
Constant Field Values
Constructor Detail

PageProviderServiceImpl

public PageProviderServiceImpl()
Method Detail

getPageProviderDefinition

public PageProviderDefinition getPageProviderDefinition(java.lang.String name)
Specified by:
getPageProviderDefinition in interface PageProviderService

getPageProvider

public PageProvider<?> getPageProvider(java.lang.String name,
                                       PageProviderDefinition desc,
                                       java.util.List<SortInfo> sortInfos,
                                       java.lang.Long pageSize,
                                       java.lang.Long currentPage,
                                       java.util.Map<java.lang.String,java.io.Serializable> properties,
                                       java.lang.Object... parameters)
                                throws ClientException
Specified by:
getPageProvider in interface PageProviderService
Throws:
ClientException

getPageProvider

public PageProvider<?> getPageProvider(java.lang.String name,
                                       java.util.List<SortInfo> sortInfos,
                                       java.lang.Long pageSize,
                                       java.lang.Long currentPage,
                                       java.util.Map<java.lang.String,java.io.Serializable> properties,
                                       java.lang.Object... parameters)
                                throws ClientException
Description copied from interface: PageProviderService
Returns the page provider computed from the content view with given name. Its properties are resolved using current FacesContext instance if they are EL Expressions.

If not null, parameters sortInfos and pageSize will override information computed in the XML file. If not null, currentPage will override default current page (0).

Specified by:
getPageProvider in interface PageProviderService
Throws:
ClientException

registerContribution

public void registerContribution(java.lang.Object contribution,
                                 java.lang.String extensionPoint,
                                 ComponentInstance contributor)
                          throws java.lang.Exception
Overrides:
registerContribution in class DefaultComponent
Throws:
java.lang.Exception

unregisterContribution

public void unregisterContribution(java.lang.Object contribution,
                                   java.lang.String extensionPoint,
                                   ComponentInstance contributor)
                            throws java.lang.Exception
Overrides:
unregisterContribution in class DefaultComponent
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.