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"; }
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"; }
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"); } }