예제 #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;
 }