public static void clear() { if (Session.exists()) { Session.get().setMetaData(key, null); } }
private Locale getCurrentLocale() { if (locale == null && Session.exists()) { return Session.get().getLocale(); } return locale; }
private String getCurrentStyle() { if (style == null && Session.exists()) { return Session.get().getStyle(); } return style; }
public static void clear() { if (Session.exists()) { Session.get().setMetaData(key, null); } }
/** * @return the current session id for stateful pages and <code>null</code> for stateless pages */ protected String getSessionId() { return Session.exists() ? Session.get().getId() : null; }
/** * @return the current session id for stateful pages and <code>null</code> for stateless pages */ protected String getSessionId() { return Session.exists() ? Session.get().getId() : null; }
public static InterceptData get() { if (Session.exists()) { return Session.get().getMetaData(key); } return null; }
private Locale getCurrentLocale() { if (locale == null && Session.exists()) { return Session.get().getLocale(); } return locale; }
public static InterceptData get() { if (Session.exists()) { return Session.get().getMetaData(key); } return null; }
private String getCurrentStyle() { if (style == null && Session.exists()) { return Session.get().getStyle(); } return style; }
private Locale getLocale() { return Session.exists() ? Session.get().getLocale() : null; } }
/** * @return whether the current session is temporary */ protected boolean isSessionTemporary() { return Session.exists() ? Session.get().isTemporary() : true; }
/** * @return whether the current session is temporary */ protected boolean isSessionTemporary() { return Session.exists() ? Session.get().isTemporary() : true; }
public void onApplicationEvent(ApplicationEvent event) { if (event instanceof AuthenticationSuccessEvent || event instanceof InteractiveAuthenticationSuccessEvent) { if (Session.exists()) { WebSession.get().replaceSession(); } } } }
@Override public void onDetach(final RequestCycle requestCycle) { if (Session.exists()) { Session.get().getPageManager().commitRequest(); } } });
@Override public Class resolveClass(String name) throws ClassNotFoundException { if (Session.exists()) { UserSession session = UserSession.get(); ClassLoader loader = session.getClassLoader(); if (loader != null) { return session.getClassLoader().loadClass(name); } } return originalResolver.resolveClass(name); }
@Override public void onDetach(final RequestCycle requestCycle) { if (Session.exists()) { Session.get().getPageManager().commitRequest(); } } });
private Locale getCurrentLocale() { final Locale locale = getLocale(); if (locale != null) { return locale; } if (Session.exists()) { return Session.get().getLocale(); } return locale; }
private Locale getCurrentLocale() { final Locale locale = getLocale(); if (locale != null) { return locale; } if (Session.exists()) { return Session.get().getLocale(); } return locale; }
private void onInternalDetach() { if (Session.exists()) { Session.get().internalDetach(); } if (Application.exists()) { IRequestLogger requestLogger = Application.get().getRequestLogger(); if (requestLogger != null) requestLogger.performLogging(); } }