public class PageProviderServiceImpl extends DefaultComponent implements PageProviderService
| Modifier and Type | Field and Description |
|---|---|
static String |
PROVIDER_EP |
| Constructor and Description |
|---|
PageProviderServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
PageProvider<?> |
getPageProvider(String name,
DocumentModel searchDocument,
List<SortInfo> sortInfos,
Long pageSize,
Long currentPage,
Map<String,Serializable> properties,
Object... parameters)
Returns an instance of page provider with given name.
|
PageProvider<?> |
getPageProvider(String name,
List<SortInfo> sortInfos,
Long pageSize,
Long currentPage,
Map<String,Serializable> properties,
Object... parameters)
Returns an instance of page provider with given name.
|
PageProvider<?> |
getPageProvider(String name,
PageProviderDefinition desc,
DocumentModel searchDocument,
List<SortInfo> sortInfos,
Long pageSize,
Long currentPage,
Map<String,Serializable> properties,
Object... parameters)
Returns an instance of page provider with given name and definition.
|
PageProvider<?> |
getPageProvider(String name,
PageProviderDefinition desc,
List<SortInfo> sortInfos,
Long pageSize,
Long currentPage,
Map<String,Serializable> properties,
Object... parameters)
Returns an instance of a page provider with given name and definition.
|
PageProviderDefinition |
getPageProviderDefinition(String name)
Returns a named page provider definition.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtensionpublic static final String PROVIDER_EP
public PageProviderDefinition getPageProviderDefinition(String name)
PageProviderServiceUseful to share the definition between the page provider service, and the content view service (as content views can reference a named page provider that is already registered instead of redefining it).
getPageProviderDefinition in interface PageProviderServicename - the page provider namepublic PageProvider<?> getPageProvider(String name, PageProviderDefinition desc, DocumentModel searchDocument, List<SortInfo> sortInfos, Long pageSize, Long currentPage, Map<String,Serializable> properties, Object... parameters) throws ClientException
PageProviderServiceUseful to share the definition between the page provider service, and the content view service (as content views can reference a named page provider that is already registered instead of redefining it).
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).
getPageProvider in interface PageProviderServicename - the name that will be set on the provider.desc - the definition used to build the provider instance.searchDocument - the search document to be used by the provider.sortInfos - sort information to set on the provider instance.pageSize - the provider page size.currentPage - the provider current page index.properties - the provider propertiesparameters - the provider parameters.ClientException - if the page provider instantiation fails.public PageProvider<?> getPageProvider(String name, PageProviderDefinition desc, List<SortInfo> sortInfos, Long pageSize, Long currentPage, Map<String,Serializable> properties, Object... parameters) throws ClientException
PageProviderServicegetPageProvider in interface PageProviderServiceClientExceptionpublic PageProvider<?> getPageProvider(String name, DocumentModel searchDocument, List<SortInfo> sortInfos, Long pageSize, Long currentPage, Map<String,Serializable> properties, Object... parameters) throws ClientException
PageProviderServicegetPageProvider in interface PageProviderServiceClientException - if the page provider instantiation fails.PageProviderService.getPageProvider(String, PageProviderDefinition, DocumentModel,
List, Long, Long, Map, Object...)public PageProvider<?> getPageProvider(String name, List<SortInfo> sortInfos, Long pageSize, Long currentPage, Map<String,Serializable> properties, Object... parameters) throws ClientException
PageProviderServicegetPageProvider in interface PageProviderServicename - the page provider namesortInfos - sort information to set on the provider instance.pageSize - the provider page size.currentPage - the provider current page index.properties - the provider propertiesparameters - the provider parameters.ClientException - if the page provider instantiation fails.public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionCopyright © 2014 Nuxeo SA. All Rights Reserved.