Class CoreQueryUnrestrictedSessionRunner
java.lang.Object
org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
org.nuxeo.ecm.platform.query.nxql.CoreQueryUnrestrictedSessionRunner
Unrestricted session runner providing API for retrieving the result documents list.
- Since:
- 6.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final long
protected final boolean
protected DocumentModelList
protected final Filter
protected final long
protected final long
protected final String
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
Constructor Summary
ConstructorDescriptionCoreQueryUnrestrictedSessionRunner
(CoreSession session, String query, Filter filter, long limit, long offset, boolean countTotal, long countUpTo, boolean detachDocuments) -
Method Summary
Modifier and TypeMethodDescriptiongetDocs()
void
run()
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
Field Details
-
query
-
filter
-
limit
protected final long limit -
offset
protected final long offset -
countTotal
protected final boolean countTotal -
countUpTo
protected final long countUpTo -
detachDocuments
protected final boolean detachDocuments -
docs
-
-
Constructor Details
-
CoreQueryUnrestrictedSessionRunner
public CoreQueryUnrestrictedSessionRunner(CoreSession session, String query, Filter filter, long limit, long offset, boolean countTotal, long countUpTo, boolean detachDocuments)
-
-
Method Details
-
run
public void run()Description copied from class:UnrestrictedSessionRunner
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.It can also be called directly in which case the
UnrestrictedSessionRunner.session
available will be the one passed to#UnrestrictedSessionRunner(CoreSession)
.- Specified by:
run
in classUnrestrictedSessionRunner
-
getDocs
-