Class CoreQueryAndFetchUnrestrictedSessionRunner
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.query.nxql.CoreQueryAndFetchUnrestrictedSessionRunner
-
public class CoreQueryAndFetchUnrestrictedSessionRunner extends UnrestrictedSessionRunner
Unrestricted session runner providing API for retrieving the result list.- Since:
- 6.0
-
-
Field Summary
Fields Modifier and Type Field Description protected String
language
protected String
query
protected IterableQueryResult
result
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Constructor Description CoreQueryAndFetchUnrestrictedSessionRunner(CoreSession session, String query, String language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IterableQueryResult
getResult()
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
-
language
protected final String language
-
result
protected IterableQueryResult result
-
-
Constructor Detail
-
CoreQueryAndFetchUnrestrictedSessionRunner
public CoreQueryAndFetchUnrestrictedSessionRunner(CoreSession session, String query, String language)
-
-
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
-
getResult
public IterableQueryResult getResult()
-
-