Commit 794fc5e7 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[JM-1117] Paged result work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10039 b35dd754-fafc-0310-a699-88a17e54d16e
parent 60b725d5
......@@ -135,14 +135,10 @@ public class LdapGroupProvider implements GroupProvider {
if (groupCount != -1 && System.currentTimeMillis() < expiresStamp) {
return groupCount;
}
List<String> groups = manager.retrieveList(
this.groupCount = manager.retrieveListCount(
manager.getGroupNameField(),
MessageFormat.format(manager.getGroupSearchFilter(), "*"),
-1,
-1,
null
MessageFormat.format(manager.getGroupSearchFilter(), "*")
);
this.groupCount = groups.size();
this.expiresStamp = System.currentTimeMillis() + JiveConstants.MINUTE *5;
return this.groupCount;
}
......
......@@ -135,14 +135,10 @@ public class LdapUserProvider implements UserProvider {
if (userCount != -1 && System.currentTimeMillis() < expiresStamp) {
return userCount;
}
List<String> users = manager.retrieveList(
this.userCount = manager.retrieveListCount(
manager.getUsernameField(),
MessageFormat.format(manager.getSearchFilter(), "*"),
-1,
-1,
null
MessageFormat.format(manager.getSearchFilter(), "*")
);
this.userCount = users.size();
this.expiresStamp = System.currentTimeMillis() + JiveConstants.MINUTE *5;
return this.userCount;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment