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