private void disabledPersonAccount(long[] ids) {
   for (Long id : ids) {
     Person person = personService.findById(id);
     Account account = person.getAccount();
     account.setApproved(true);
     account.setActive(false);
     accountService.save(account);
   }
 }
 private void approvePersonIds(long[] ids) {
   for (Long id : ids) {
     Person person = personService.findById(id);
     Account account = person.getAccount();
     account.setApproved(true);
     account.setActive(true);
     accountService.save(account);
     emailSender.sendApprovalInformation(person);
   }
 }
  @RequestMapping(value = "/user/edit/{personID}", method = RequestMethod.POST)
  public ModelAndView submitEditUser(
      HttpServletRequest request,
      @PathVariable("personID") Long personID,
      @ModelAttribute("accountStatusForm") AccountStatusForm form,
      Errors errors) {

    Person person = personService.findById(personID);
    Account account = person.getAccount();
    account.setConfirmed(form.getConfirmed());
    account.setApproved(form.getApproved());
    account.setActive(form.getActive());
    account.setRole(form.getRole());

    accountService.save(account);

    return new ModelAndView("redirect:/user/list.html");
  }