public void setSessionManager(User user) { SessionManager.set(MANAGER_KEY, user); }
public void setSessionAdmin(User user) { SessionManager.set(ADMIN_KEY, user); }
public void setSessionUser(User user) { SessionManager.set(USER_KEY, user); }
public User getSessionManager() { return (User) SessionManager.get(MANAGER_KEY); }
public User getSessionAdmin() { return (User) SessionManager.get(ADMIN_KEY); }
public User getSessionUser() { User user = (User) SessionManager.get(USER_KEY); return user == null ? new AnonymousUser() : user; }