Class PageProviderServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.query.core.PageProviderServiceImpl
- All Implemented Interfaces:
Serializable,PageProviderService,Adaptable,Component,Extensible,TimestampedService
- Since:
- 5.4
- Author:
- Anahide Tchertchian
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Map<String, PageProviderDefinition> static final Stringprotected Map<String, Class<? extends PageProvider<?>>> Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, nameFields inherited from interface org.nuxeo.ecm.platform.query.api.PageProviderService
NAMED_PARAMETERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe component notification order forComponent.start(ComponentContext).PageProvider<?> Returns an instance of page provider built from the givenspec.Returns a named page provider definition.Returns all the registered page provider names, or an empty set if no page provider is registered.protected PageProvider<?> protected PageProvider<?> newPageProviderInstance(String name, Class<? extends PageProvider<?>> klass) protected PageProvider<?> newPageProviderInstance(String name, PageProviderDefinition desc) Runs the given check request and returns its result.voidstart(ComponentContext context) Start the component.voidstop(ComponentContext context) Stop the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.platform.query.api.PageProviderService
getPageProvider, getPageProvider, getPageProvider, getPageProvider, getPageProvider, getPageProvider, getPageProvider, getPageProvider, getPageProvider, getPageProvider
-
Field Details
-
PROVIDER_EP
- See Also:
-
REPLACER_EP
- See Also:
-
providers
-
replacers
-
-
Constructor Details
-
PageProviderServiceImpl
public PageProviderServiceImpl()
-
-
Method Details
-
getPageProviderDefinition
Description copied from interface:PageProviderServiceReturns a named page provider definition.Useful 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).
- Specified by:
getPageProviderDefinitionin interfacePageProviderService- Parameters:
name- the page provider name- Returns:
- the page provider definition or null, if no page provider with this name was found.
-
getPageProvider
Description copied from interface:PageProviderServiceReturns an instance of page provider built from the givenspec.When the
definitionis not set on the spec, the definition is resolved from the registered providers using the specname, throwing aNuxeoExceptionwhen no provider is registered under that name.- Specified by:
getPageProviderin interfacePageProviderService
-
newPageProviderInstance
-
newCoreQueryPageProviderInstance
-
newPageProviderInstance
protected PageProvider<?> newPageProviderInstance(String name, Class<? extends PageProvider<?>> klass) -
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:ComponentThe component notification order forComponent.start(ComponentContext).Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
- Specified by:
getApplicationStartedOrderin interfaceComponent- Returns:
- the order, 1000 by default
-
start
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
stop
Description copied from interface:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin classDefaultComponent
-
getPageProviderDefinitionNames
Description copied from interface:PageProviderServiceReturns all the registered page provider names, or an empty set if no page provider is registered.- Specified by:
getPageProviderDefinitionNamesin interfacePageProviderService
-
runPageProviderCheck
Description copied from interface:PageProviderServiceRuns the given check request and returns its result.The page provider will be run with the different given executions.
- Specified by:
runPageProviderCheckin interfacePageProviderService
-