Class CoreQueryUnrestrictedSessionRunner
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.query.nxql.CoreQueryUnrestrictedSessionRunner
-
public class CoreQueryUnrestrictedSessionRunner extends UnrestrictedSessionRunner
Unrestricted session runner providing API for retrieving the result documents list.- Since:
- 6.0
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
countTotal
protected long
countUpTo
protected boolean
detachDocuments
protected DocumentModelList
docs
protected Filter
filter
protected long
limit
protected long
offset
protected String
query
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Constructor Description CoreQueryUnrestrictedSessionRunner(CoreSession session, String query, Filter filter, long limit, long offset, boolean countTotal, long countUpTo, boolean detachDocuments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModelList
getDocs()
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 Detail
-
query
protected final String query
-
filter
protected final Filter 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
protected DocumentModelList docs
-
-
Constructor Detail
-
CoreQueryUnrestrictedSessionRunner
public CoreQueryUnrestrictedSessionRunner(CoreSession session, String query, Filter filter, long limit, long offset, boolean countTotal, long countUpTo, boolean detachDocuments)
-
-
Method Detail
-
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
public DocumentModelList getDocs()
-
-