Пример #1
0
 public String deleteRowAction(UserInfoDto u) {
   try {
     apbl.deleteUserInfo(u);
   } catch (EntityNotFoundException e) {
     System.out.println(e.getMessage());
   }
   return null;
 }
Пример #2
0
 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;
 }
Пример #3
0
 public String saveAction() {
   setToEdit(null);
   apbl.saveUserInfos(users);
   return null;
 }
Пример #4
0
 public long getCountUsers() {
   countUsers = apbl.countUsers();
   return countUsers;
 }
Пример #5
0
 public List<ZipCodeDto> getZipcodes() {
   zipcodes = apbl.getZipCodes(0, apbl.countZipCodes());
   return zipcodes;
 }
Пример #6
0
 public List<CountryDto> getCountires() {
   countires = apbl.getCountries(0, apbl.countCountries());
   return countires;
 }
Пример #7
0
 public List<CityDto> getCities() {
   cities = apbl.getCities(0, apbl.countCities());
   return cities;
 }
Пример #8
0
 public List<VirtualDomainDto> getDomains() {
   domains = apbl.getDomains(0, apbl.countDomains());
   return domains;
 }
Пример #9
0
 public List<UserInfoDto> getUsers() {
   users = apbl.getUsers(0, getCountUsers());
   return users;
 }