Fix for ACE-3501 Solr4 indexing on TSTEST: Cannot query for more than 512 ACL ChangeSets.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@90557 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2014-11-17 13:37:10 +00:00
parent 94993466ff
commit 0cac5dac1f

View File

@@ -216,11 +216,6 @@ public class SOLRAPIClient
*/ */
public List<Acl> getAcls(List<AclChangeSet> aclChangeSets, Long minAclId, int maxResults) throws AuthenticationException, IOException, JSONException public List<Acl> getAcls(List<AclChangeSet> aclChangeSets, Long minAclId, int maxResults) throws AuthenticationException, IOException, JSONException
{ {
if (aclChangeSets.size() > 512)
{
throw new IllegalArgumentException("Cannot query for more than 512 ACL ChangeSets.");
}
StringBuilder url = new StringBuilder(GET_ACLS); StringBuilder url = new StringBuilder(GET_ACLS);
StringBuilder args = new StringBuilder(); StringBuilder args = new StringBuilder();
if (minAclId != null) if (minAclId != null)
@@ -296,11 +291,6 @@ public class SOLRAPIClient
*/ */
public List<AclReaders> getAclReaders(List<Acl> acls) throws AuthenticationException, IOException, JSONException public List<AclReaders> getAclReaders(List<Acl> acls) throws AuthenticationException, IOException, JSONException
{ {
if (acls.size() > 512)
{
throw new IllegalArgumentException("Cannot query for more than 512 ACLs.");
}
StringBuilder url = new StringBuilder(GET_ACLS_READERS); StringBuilder url = new StringBuilder(GET_ACLS_READERS);
JSONObject jsonReq = new JSONObject(); JSONObject jsonReq = new JSONObject();