6566676869707172737475
} public String logout(){ setCurrentUser(new User()); setPassword(""); setUsername(""); setLoggedIn(false); return "/views/login.xhtml?faces-redirect=true";
3132333435363738394041
private DAOUser daoUser; private boolean updateItem; @PostConstruct public void init(){ userItem = new User(); daoUser = DAOUser.getInstance(); userList = daoUser.listAllUsers(); roles = daoUser.getRolesAvailable(); }
4546474849505152
} public void add(){ daoUser.save(userItem); userList.add(userItem); userItem = new User(); setUpdateItem(false); }
5152535455565758
setUpdateItem(false); } public void save(){ daoUser.save(userItem); userItem = new User(); setUpdateItem(false); }