@PostConstruct public void init() { try { String staffId = sessionManager.getLoginUser().getId(); deals = dealService.getDealsByStaffIdAndStatus(staffId, null); for (DealDto dealDto : deals) { dealDto.setAccountDto(accountService.getAccountById(dealDto.getAccountId())); } } catch (IOException e) { e.printStackTrace(); } }
public String logOff() { conversationEnd(); sessionManager.logoff(); return "/index.jsf?faces-redirect=true"; }