/** * Refresh the authenticated user object in the current UserContext. This should be used when * updating information in the database about the current user and it needs to be reflecting in * the (cached) {@link #getAuthenticatedUser()} User object. * * @since 1.5 * @should get fresh values from the database */ public static void refreshAuthenticatedUser() { if (Daemon.isDaemonThread()) { return; } log.debug("Refreshing authenticated user"); getUserContext().refreshAuthenticatedUser(); }