/** * Mark that an exception has been caught. */ public static void markExceptionCaught() { ContextUtils.setSessionAttribute(EXCEPTION_MARKER_NAME, Boolean.TRUE); }
/** * Mark that an exception has been caught. * @param exceptionService */ public static void markExceptionCaught( final ExceptionService exceptionService) { ContextUtils.setSessionAttribute(EXCEPTION_MARKER_NAME, exceptionService); }
@Override protected void setContextAttribute( final String name, final Object value) { ContextUtils.setSessionAttribute(name, value); }
/** * Unmark that an exception has been caught. */ public static void unmarkExceptionCaught() { ContextUtils.setSessionAttribute(EXCEPTION_MARKER_NAME, null); }
/** * Store the authentication information to the session. * * @param authInfo * @param user */ protected void storeToSession(final AuthInfo authInfo, final User user) { if (logger.isDebugEnabled()) { logger.debug("storing to session: " + authInfo); } ContextUtils.setSessionAttribute(AUTH_INFO_ATTRIBUTE, authInfo); ContextUtils.setSessionAttribute(USER_ATTRIBUTE, user); }
/** * Store the authentication information to the session. * * @param authInfo * @param user */ protected void storeToSession(final AuthInfo authInfo, final User user) { if (logger.isDebugEnabled()) { logger.debug("storing to session: " + authInfo); } ContextUtils.setSessionAttribute(AUTH_INFO_ATTRIBUTE, authInfo); ContextUtils.setSessionAttribute(USER_ATTRIBUTE, user); }
/** * Store the authentication information to the session. * * @param authInfo * @param user */ protected void storeToSession(final AuthInfo authInfo, final User user) { if (logger.isDebugEnabled()) { logger.debug("storing to session: " + authInfo); } ContextUtils.setSessionAttribute(AUTH_INFO_ATTRIBUTE, authInfo); ContextUtils.setSessionAttribute(USER_ATTRIBUTE, user); }
/** * Set the session locale. * @param locale */ protected void setSessionLocale(final Locale locale) { if (ContextUtils.isWeb()) { ContextUtils.setSessionAttribute(LOCALE_ATTRIBUTE, locale); } else { LocaleContextHolder.setLocale(locale); } }