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
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final longprotected final booleanprotected DocumentModelListprotected final Filterprotected final longprotected final longprotected final StringFields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted -
Constructor Summary
ConstructorsConstructorDescriptionCoreQueryUnrestrictedSessionRunner(CoreSession session, String query, Filter filter, long limit, long offset, boolean countTotal, long countUpTo, boolean detachDocuments) -
Method Summary
Modifier and TypeMethodDescriptiongetDocs()voidrun()This method will be called byUnrestrictedSessionRunner.runUnrestricted()withUnrestrictedSessionRunner.sessionavailable 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:UnrestrictedSessionRunnerThis method will be called byUnrestrictedSessionRunner.runUnrestricted()withUnrestrictedSessionRunner.sessionavailable as an unrestricted session.It can also be called directly in which case the
UnrestrictedSessionRunner.sessionavailable will be the one passed to#UnrestrictedSessionRunner(CoreSession).- Specified by:
runin classUnrestrictedSessionRunner
-
getDocs
-