fixing a users listing issue

This commit is contained in:
abhishek 2011-01-21 17:44:52 -08:00
parent 8c77158bb9
commit 3ecbc93643
1 changed files with 2 additions and 2 deletions

View File

@ -977,7 +977,7 @@ public class ManagementServerImpl implements ManagementServer {
sb.and("type", sb.entity().getType(), SearchCriteria.Op.EQ);
sb.and("domainId", sb.entity().getDomainId(), SearchCriteria.Op.EQ);
sb.and("accountName", sb.entity().getAccountName(), SearchCriteria.Op.LIKE);
sb.and("accountName", sb.entity().getAccountName(), SearchCriteria.Op.EQ);
sb.and("state", sb.entity().getState(), SearchCriteria.Op.EQ);
if ((accountName == null) && (domainId != null)) {
@ -1017,7 +1017,7 @@ public class ManagementServerImpl implements ManagementServer {
}
if (accountName != null) {
sc.setParameters("accountName", "%" + accountName + "%");
sc.setParameters("accountName", accountName);
if (domainId != null) {
sc.setParameters("domainId", domainId);
}