Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ui.web.auth.plugins
Class DefaultSessionManager

java.lang.Object
  extended by org.nuxeo.ecm.platform.ui.web.auth.plugins.DefaultSessionManager
All Implemented Interfaces:
NuxeoAuthenticationSessionManager
Direct Known Subclasses:
SeamJsfSessionManager, WebEngineSessionManager

public class DefaultSessionManager
extends java.lang.Object
implements NuxeoAuthenticationSessionManager


Constructor Summary
DefaultSessionManager()
           
 
Method Summary
 boolean canBypassRequest(javax.servlet.ServletRequest request)
          Returns true if request does not require to be authenticated
 boolean needResetLogin(javax.servlet.ServletRequest req)
          Checks whether or not this request was made to perform login.
 void onAfterSessionReinit(javax.servlet.ServletRequest request)
          CallBack after SessionReinit.
 void onAuthenticatedSessionCreated(javax.servlet.ServletRequest request, javax.servlet.http.HttpSession session, CachableUserIdentificationInfo cachableUserInfo)
          CallBack for session creation
 void onBeforeSessionInvalidate(javax.servlet.ServletRequest request)
          CallBack to clean up web session associated resources.
 void onBeforeSessionReinit(javax.servlet.ServletRequest request)
          CallBack before SessionReinit.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSessionManager

public DefaultSessionManager()
Method Detail

canBypassRequest

public boolean canBypassRequest(javax.servlet.ServletRequest request)
Description copied from interface: NuxeoAuthenticationSessionManager
Returns true if request does not require to be authenticated

Specified by:
canBypassRequest in interface NuxeoAuthenticationSessionManager
Returns:
true if request does not require to be authenticated

onBeforeSessionInvalidate

public void onBeforeSessionInvalidate(javax.servlet.ServletRequest request)
Description copied from interface: NuxeoAuthenticationSessionManager
CallBack to clean up web session associated resources.

Specified by:
onBeforeSessionInvalidate in interface NuxeoAuthenticationSessionManager

onAfterSessionReinit

public void onAfterSessionReinit(javax.servlet.ServletRequest request)
Description copied from interface: NuxeoAuthenticationSessionManager
CallBack after SessionReinit.

Specified by:
onAfterSessionReinit in interface NuxeoAuthenticationSessionManager

onAuthenticatedSessionCreated

public void onAuthenticatedSessionCreated(javax.servlet.ServletRequest request,
                                          javax.servlet.http.HttpSession session,
                                          CachableUserIdentificationInfo cachableUserInfo)
Description copied from interface: NuxeoAuthenticationSessionManager
CallBack for session creation

Specified by:
onAuthenticatedSessionCreated in interface NuxeoAuthenticationSessionManager

onBeforeSessionReinit

public void onBeforeSessionReinit(javax.servlet.ServletRequest request)
Description copied from interface: NuxeoAuthenticationSessionManager
CallBack before SessionReinit.

Specified by:
onBeforeSessionReinit in interface NuxeoAuthenticationSessionManager

needResetLogin

public boolean needResetLogin(javax.servlet.ServletRequest req)
Description copied from interface: NuxeoAuthenticationSessionManager
Checks whether or not this request was made to perform login. This is tested by the authentication filter to decide if a switch user is needed.

Specified by:
needResetLogin in interface NuxeoAuthenticationSessionManager
Returns:

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.