public interface ISessionManager extends IComponentProvider
IPortalServlet
Modifier and Type | Field and Description |
---|---|
static int |
GUEST_SESSION
This session is a brand new session
|
static int |
INVALID_SESSION
This session is an invalid session and should be treated as such
|
static String |
INVALIDATE_KEY
Setting this attribute tells the SessionManager to invalidate the session in
it's removeLocalSession method.
|
static String |
LOGIN_ERROR_KEY
the flag indicating the error on the login request
|
static String |
LOGIN_KEY
the login key
|
static String |
LOGOUT_KEY
the logout key
|
static int |
NORMAL_SESSION
This session was determined to be a normal session, not requiring special processing
|
static String |
ORIGINAL_REQUEST_KEY
the original request key
|
static String |
SESSION_LISTENER
This is used to register with the HttpSession as a listener
|
static String |
VOLATILE
This is an attribute placed on the session that marks it as 'volatile'
|
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
Modifier and Type | Method and Description |
---|---|
void |
addMorphedSessionPersistentKey(String key)
Adds the given key to the set of keys that will be persisted when a session is
morphed from an anonymous session to an non-anonymous session.
|
int |
handleSession(HttpServletRequest request,
HttpServletResponse response)
This is the main entry for the ISessionManager.
|
boolean |
hasLoginError(HttpServletRequest request)
Determine if this request has a login error
|
boolean |
isLoginRequest(HttpServletRequest request)
Determine if the user has logged into the system
|
void |
removeLoginError(HttpServletRequest request)
Remove the login error key
|
void |
removeLoginKey(HttpServletRequest request)
This removes the login attribute (@link #LOGIN_KEY} from the request
|
void |
setLoginError(HttpServletRequest request)
Set this request with a login error flag
|
void |
setLoginKey(HttpServletRequest request) |
boolean |
shouldKeyPersistInMorphedSession(String key)
checks if the given key should be persisted in a session that is changing from
an anonymous user to a non-anonymous user.
|
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
acquireURI, acquireURI
static final String VOLATILE
static final String LOGIN_KEY
static final String LOGOUT_KEY
static final String INVALIDATE_KEY
static final String ORIGINAL_REQUEST_KEY
static final String LOGIN_ERROR_KEY
static final String SESSION_LISTENER
static final int NORMAL_SESSION
static final int GUEST_SESSION
static final int INVALID_SESSION
int handleSession(HttpServletRequest request, HttpServletResponse response) throws PortalException
request
- response
- PortalException
void removeLoginKey(HttpServletRequest request)
void setLoginKey(HttpServletRequest request)
void setLoginError(HttpServletRequest request)
LOGIN_ERROR_KEY
boolean hasLoginError(HttpServletRequest request)
LOGIN_ERROR_KEY
void removeLoginError(HttpServletRequest request)
LOGIN_ERROR_KEY
boolean isLoginRequest(HttpServletRequest request)
request
- the HttpRequest containing the session to validatevoid addMorphedSessionPersistentKey(String key)
key
- the key to add to the list of persisted keys.boolean shouldKeyPersistInMorphedSession(String key)
key
- the key to check for