From 3fabbb3c591ad9c536ecea5e5cc368efc31623d1 Mon Sep 17 00:00:00 2001 From: Alan Davis Date: Thu, 3 Nov 2016 13:10:18 +0000 Subject: [PATCH] Merged 5.2.N (5.2.1) to HEAD (5.2) 130502 gjames: SEARCH-114: Switching to use limit rather then maxItems for searchparameters git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132136 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/rest/api/search/impl/SearchMapper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/java/org/alfresco/rest/api/search/impl/SearchMapper.java b/source/java/org/alfresco/rest/api/search/impl/SearchMapper.java index a2f8de3398..e963b9545d 100644 --- a/source/java/org/alfresco/rest/api/search/impl/SearchMapper.java +++ b/source/java/org/alfresco/rest/api/search/impl/SearchMapper.java @@ -127,7 +127,7 @@ public class SearchMapper //Hardcode workspace store sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); sp.setLimitBy(LimitBy.FINAL_SIZE); - sp.setMaxItems(100); + sp.setLimit(100); } /** @@ -169,7 +169,7 @@ public class SearchMapper if (paging != null) { sp.setLimitBy(LimitBy.FINAL_SIZE); - sp.setMaxItems(paging.getMaxItems()); + sp.setLimit(paging.getMaxItems()); sp.setSkipCount(paging.getSkipCount()); } } @@ -443,14 +443,14 @@ public class SearchMapper { if (limits.getPermissionEvaluationCount() != null) { - sp.setMaxItems(-1); + sp.setLimit(-1); sp.setLimitBy(LimitBy.NUMBER_OF_PERMISSION_EVALUATIONS); sp.setMaxPermissionChecks(limits.getPermissionEvaluationCount()); } if (limits.getPermissionEvaluationTime() != null) { - sp.setMaxItems(-1); + sp.setLimit(-1); sp.setLimitBy(LimitBy.NUMBER_OF_PERMISSION_EVALUATIONS); sp.setMaxPermissionCheckTimeMillis(limits.getPermissionEvaluationTime()); }