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 booleancountTotalprotected longcountUpToprotected booleandetachDocumentsprotected DocumentModelListdocsprotected Filterfilterprotected longlimitprotected longoffsetprotected Stringquery-
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 DocumentModelListgetDocs()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 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: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
public DocumentModelList getDocs()
-
-