public String deleteRowAction(UserInfoDto u) { try { apbl.deleteUserInfo(u); } catch (EntityNotFoundException e) { System.out.println(e.getMessage()); } return null; }
public String addAction() { UserInfoDto u = new UserInfoDto(); u.setBirthday(ubirthdate); u.setCity_id(ucity); u.setCountry_id(ucountry); u.setFirstName(ufirstname); u.setDomain_id(udomain); u.setEmail(uemail); u.setGroups(ugroup); u.setLastName(ulastname); u.setPassword(upassword); u.setZipcode_id(uzipcode); try { apbl.addUserInfo(u); } catch (EntityNotFoundException e) { System.out.println(e.getMessage()); } clearForm(); return null; }
public String saveAction() { setToEdit(null); apbl.saveUserInfos(users); return null; }
public long getCountUsers() { countUsers = apbl.countUsers(); return countUsers; }
public List<ZipCodeDto> getZipcodes() { zipcodes = apbl.getZipCodes(0, apbl.countZipCodes()); return zipcodes; }
public List<CountryDto> getCountires() { countires = apbl.getCountries(0, apbl.countCountries()); return countires; }
public List<CityDto> getCities() { cities = apbl.getCities(0, apbl.countCities()); return cities; }
public List<VirtualDomainDto> getDomains() { domains = apbl.getDomains(0, apbl.countDomains()); return domains; }
public List<UserInfoDto> getUsers() { users = apbl.getUsers(0, getCountUsers()); return users; }