private List<ShortUser> convertToShortList(List<GSUser> list) { List<ShortUser> swList = new ArrayList<>(list.size()); for (GSUser user : list) { swList.add(new ShortUser(user)); } return swList; }
public void removeAllGFUsers() throws NotFoundServiceEx { List<ShortUser> list = gfUserAdminService.getList(null, null, null); for (ShortUser item : list) { LOGGER.warn("Removing " + item); boolean ret = gfUserAdminService.delete(item.getId()); if ( !ret ) { LOGGER.error("Could not remove " + item); } } long count = gfUserAdminService.getCount(null); if ( count > 0 ) { LOGGER.error("Items not removed"); } }
sortedNames.add(user.getName());
public void removeAllUsers() throws NotFoundServiceEx { List<ShortUser> list = userAdminService.getList(null, null, null); for (ShortUser item : list) { LOGGER.warn("Removing " + item); boolean ret = userAdminService.delete(item.getId()); if ( !ret ) { LOGGER.error("Could not remove " + item); } } long count = userAdminService.getCount(null); if ( count > 0 ) { LOGGER.error("Items not removed"); } }
private List<ShortUser> convertToShortList(List<GFUser> list) { List<ShortUser> swList = new ArrayList<ShortUser>(list.size()); for (GFUser user : list) { swList.add(new ShortUser(user)); } return swList; }