|
|
|
@ -697,7 +697,9 @@ public class UserManagementServiceImpl implements UserManagementService {
|
|
|
|
|
user.setLastname(getClaimValue(username, Constants.USER_CLAIM_LAST_NAME));
|
|
|
|
|
userList.add(user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (offset==0) {
|
|
|
|
|
return Response.status(Response.Status.OK).entity(userList).build();
|
|
|
|
|
} else {
|
|
|
|
|
int toIndex = offset + limit;
|
|
|
|
|
int listSize = userList.size();
|
|
|
|
|
int lastIndex = listSize - 1;
|
|
|
|
@ -717,6 +719,7 @@ public class UserManagementServiceImpl implements UserManagementService {
|
|
|
|
|
result.setCount(userList.size());
|
|
|
|
|
|
|
|
|
|
return Response.status(Response.Status.OK).entity(result).build();
|
|
|
|
|
}
|
|
|
|
|
} catch (UserStoreException e) {
|
|
|
|
|
String msg = "Error occurred while retrieving the list of users using the filter : " + filter;
|
|
|
|
|
log.error(msg, e);
|
|
|
|
|