コード例 #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";
 }
コード例 #2
0
 public String updateManagerDetails() {
   try {
     userService.updateUserDetails(managerDto);
   } catch (IOException e) {
     logger.warn("ERROR: updateManagerDetails " + e.getMessage());
   }
   conversationEnd();
   return "/admin/list/managers.jsf?faces-redirect=true";
 }
コード例 #3
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");
   }
 }