Class CoreQueryDocumentPageProvider

java.lang.Object
org.nuxeo.ecm.platform.query.api.AbstractPageProvider<DocumentModel>
org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider
All Implemented Interfaces:
Serializable, PageProvider<DocumentModel>
Direct Known Subclasses:
ElasticSearchNxqlPageProvider

public class CoreQueryDocumentPageProvider extends AbstractPageProvider<DocumentModel>
Page provider performing a query on a core session.

It builds the query at each call so that it can refresh itself when the query changes.

The page provider property named CORE_SESSION_PROPERTY is used to pass the CoreSession instance that will perform the query. The optional property CHECK_QUERY_CACHE_PROPERTY can be set to "true" to avoid performing the query again if it did not change.

Since 6.0, the page provider property named USE_UNRESTRICTED_SESSION_PROPERTY allows specifying whether the query should be run as unrestricted. When such a property is set to "true", the additional property DETACH_DOCUMENTS_PROPERTY is used to detach documents (defaults to true when session is unrestricted).

Since:
5.4
Author:
Anahide Tchertchian
See Also: