Esempio n. 1
0
 public String removeManager() {
   try {
     UserDto dto = userService.getUserById(managerId);
     userService.removeUser(dto);
   } catch (IOException e) {
     logger.warn("ERROR: removeManager " + e.getMessage());
   }
   conversationEnd();
   return "/admin/list/managers.jsf?faces-redirect=true";
 }
Esempio n. 2
0
 public void init() {
   conversationBegin();
   if (managerId != null) {
     try {
       managerDto = userService.getUserById(managerId);
     } catch (Exception e) {
       logger.warn("ERROR: getting manager: " + e.getMessage());
     }
     if (managerDto == null) {
       logger.warn("ERROR: No manager with id " + managerId);
     }
   } else {
     logger.warn("ERROR: null managerId");
   }
 }