mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Allow 'cmis-sql-strict' query language in Node Browser.
- fix up Search Service to CMIS query engine wrappers git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15015 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -34,6 +34,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.alfresco.repo.search.MLAnalysisMode;
|
||||
import org.alfresco.repo.search.impl.querymodel.QueryOptions;
|
||||
import org.alfresco.service.cmr.repository.StoreRef;
|
||||
import org.alfresco.service.namespace.NamespaceService;
|
||||
|
||||
@@ -164,6 +165,30 @@ public class SearchParameters
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct from Query Options
|
||||
*
|
||||
* @param options
|
||||
*/
|
||||
public SearchParameters(QueryOptions options)
|
||||
{
|
||||
setBulkFetch(options.getFetchSize() > 0);
|
||||
setBulkFetchSize(options.getFetchSize());
|
||||
setSkipCount(options.getSkipCount());
|
||||
setMaxPermissionChecks(options.getMaxPermissionChecks());
|
||||
setMaxPermissionCheckTimeMillis(options.getMaxPermissionCheckTimeMillis());
|
||||
if (options.getMaxItems() >= 0)
|
||||
{
|
||||
setLimitBy(LimitBy.FINAL_SIZE);
|
||||
setLimit(options.getMaxItems());
|
||||
setMaxItems(options.getMaxItems());
|
||||
}
|
||||
else
|
||||
{
|
||||
setLimitBy(LimitBy.UNLIMITED);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the search language
|
||||
*
|
||||
|
Reference in New Issue
Block a user