package pt.ist.fenixWebFramework.security; public class UserView { private static InheritableThreadLocal user = new InheritableThreadLocal(); public static T getUser() { return (T) user.get(); } public static void setUser(T t) { user.set(t); } public static boolean hasUser() { return user.get() != null; } }