private SearchParameters getSearchParameters(final NodeRef nodeRef) {
final SearchParameters params = new SearchParameters();
params.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
params.setLanguage(SearchService.LANGUAGE_LUCENE);
params.setQuery(format(QUERY_PATTERN, ContentModel.TYPE_CONTENT, nodeRef));
params.setLimitBy(LimitBy.UNLIMITED);
params.setLimit(0);
params.setMaxPermissionChecks(100000);
params.setMaxPermissionCheckTimeMillis(100000);
params.setMaxItems(-1);
return params;
}
In addition in the alfresco-global.properties we can changed below values
system.acl.maxPermissionCheckTimeMillis
system.acl.maxPermissionCheck
to get it reflcected across the system.
No comments:
Post a Comment