public String getLoggedInEmoloyeeIds() { logger.info("inside ValidationServiceImpl getLoggedInEmoloyeeIds()"); List<Object> loggedInList = validationDAO.getLoggedInEmployeeIds(); logger.info("list size loggedinemp" + loggedInList.size()); return JsonUtility.convertToJson(loggedInList); }
public String getAllEmployeeIds() { logger.info("inside ValidationServiceImpl getAllEmployeeIds()"); List<Object> allEmpData = validationDAO.getAllEmploeeIds(); List<EmployeeData> listOfAllEmpIds = new ArrayList<EmployeeData>(); for (Object data : allEmpData) { Object[] array = (Object[]) data; EmployeeData emp = new EmployeeData(); emp.setEmpId((Integer) array[0]); emp.setEmpName((String) array[1] + " " + (String) array[2]); listOfAllEmpIds.add(emp); } return JsonUtility.convertToJson(listOfAllEmpIds); }