Search in sources :

Example 1 with ResultSetSPIWrapper

use of org.alfresco.repo.search.results.ResultSetSPIWrapper in project alfresco-repository by Alfresco.

the class LuceneOpenCMISAlfrescoSqlQueryLanguage method executeQuery.

public ResultSet executeQuery(SearchParameters searchParameters) {
    CMISQueryOptions options = CMISQueryOptions.create(searchParameters);
    options.setQueryMode(CMISQueryMode.CMS_WITH_ALFRESCO_EXTENSIONS);
    return new ResultSetSPIWrapper<CMISResultSetRow, CMISResultSetMetaData>(cmisQueryService.query(options));
}
Also used : CMISQueryOptions(org.alfresco.opencmis.search.CMISQueryOptions) ResultSetSPIWrapper(org.alfresco.repo.search.results.ResultSetSPIWrapper)

Example 2 with ResultSetSPIWrapper

use of org.alfresco.repo.search.results.ResultSetSPIWrapper in project alfresco-repository by Alfresco.

the class LuceneAlfrescoSqlQueryLanguage method executeQuery.

public ResultSet executeQuery(SearchParameters searchParameters) {
    CMISQueryOptions options = CMISQueryOptions.create(searchParameters);
    options.setQueryMode(CMISQueryMode.CMS_WITH_ALFRESCO_EXTENSIONS);
    return new ResultSetSPIWrapper<CMISResultSetRow, CMISResultSetMetaData>(cmisQueryService.query(options));
}
Also used : CMISQueryOptions(org.alfresco.opencmis.search.CMISQueryOptions) ResultSetSPIWrapper(org.alfresco.repo.search.results.ResultSetSPIWrapper)

Example 3 with ResultSetSPIWrapper

use of org.alfresco.repo.search.results.ResultSetSPIWrapper in project alfresco-repository by Alfresco.

the class LuceneCmisStrictSqlQueryLanguage method executeQuery.

public ResultSet executeQuery(SearchParameters searchParameters) {
    CMISQueryOptions options = CMISQueryOptions.create(searchParameters);
    options.setQueryMode(CMISQueryMode.CMS_STRICT);
    return new ResultSetSPIWrapper<CMISResultSetRow, CMISResultSetMetaData>(cmisQueryService.query(options));
}
Also used : CMISQueryOptions(org.alfresco.opencmis.search.CMISQueryOptions) ResultSetSPIWrapper(org.alfresco.repo.search.results.ResultSetSPIWrapper)

Example 4 with ResultSetSPIWrapper

use of org.alfresco.repo.search.results.ResultSetSPIWrapper in project alfresco-repository by Alfresco.

the class LuceneOpenCMISStrictSqlQueryLanguage method executeQuery.

public ResultSet executeQuery(SearchParameters searchParameters) {
    CMISQueryOptions options = CMISQueryOptions.create(searchParameters);
    options.setQueryMode(CMISQueryMode.CMS_STRICT);
    return new ResultSetSPIWrapper<CMISResultSetRow, CMISResultSetMetaData>(cmisQueryService.query(options));
}
Also used : CMISQueryOptions(org.alfresco.opencmis.search.CMISQueryOptions) ResultSetSPIWrapper(org.alfresco.repo.search.results.ResultSetSPIWrapper)

Aggregations

CMISQueryOptions (org.alfresco.opencmis.search.CMISQueryOptions)4 ResultSetSPIWrapper (org.alfresco.repo.search.results.ResultSetSPIWrapper)4