@Override public MyUser getMyUser(String email) { // if (!userService.isUserAdmin()) return null; MyUser user = null; try { user = userDao.get(email); } catch (EntityNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } return user; }
@Override public void deleteUsers(Iterable<MyUser> users) { userDao.deleteAll(users); }
@Override public void deleteemails(Iterable<String> email) { userDao.deleteUsers(email); }
@Override public List<MyUser> getMyUsers() { return userDao.getUsers(); }
@Override public void addUser(String email) { userDao.addUser(email); }
@Override public List<String> getUsersemail() { List<String> list = null; list = userDao.getemails(); return list; }