Class CoreQueryAndFetchPageProvider

java.lang.Object
org.nuxeo.ecm.platform.query.api.AbstractPageProvider<Map<String,Serializable>>
org.nuxeo.ecm.platform.query.nxql.CoreQueryAndFetchPageProvider
All Implemented Interfaces:
Serializable, PageProvider<Map<String,Serializable>>

public class CoreQueryAndFetchPageProvider extends AbstractPageProvider<Map<String,Serializable>>
Page provider performing a queryAndFetch 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 LANGUAGE_PROPERTY allows specifying the query language (NXQL, NXTAG,...).

Also since 6.0, the page provider property named USE_UNRESTRICTED_SESSION_PROPERTY allows specifying whether the query should be run as unrestricted.

Since:
5.4
Author:
Anahide Tchertchian
See Also: