public class WaspSession
extends org.apache.wicket.protocol.http.WebSession
Constructor and Description |
---|
WaspSession(WaspApplication application,
org.apache.wicket.request.Request request) |
Modifier and Type | Method and Description |
---|---|
void |
detach() |
org.apache.wicket.authorization.IAuthorizationStrategy |
getAuthorizationStrategy()
Returns a session scoped WaspAuthorizationStrategy.
|
void |
invalidateNow()
Cleans up the WaspAuthorizationStrategy before killing this session.
|
boolean |
isUserAuthenticated()
Quick check if any user at all is currently authenticated.
|
void |
login(Object context)
Attempts to login with the current login info.
|
boolean |
logoff(Object context)
Attempts to log off the current user.
|
get, getClientInfo, invalidate, newBrowserInfoPage
bind, clear, debug, dirty, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn
public WaspSession(WaspApplication application, org.apache.wicket.request.Request request)
public org.apache.wicket.authorization.IAuthorizationStrategy getAuthorizationStrategy()
getAuthorizationStrategy
in class org.apache.wicket.Session
Session.getAuthorizationStrategy()
public void login(Object context) throws LoginException
context
- any type of information required to loginLoginException
WaspAuthorizationStrategy.login(Object)
public boolean logoff(Object context)
WaspAuthorizationStrategy
should also do the same as it is not guaranteed that every
logoff comes from the session.context
- the context to use for logging offWaspAuthorizationStrategy.logoff(Object)
public boolean isUserAuthenticated()
public void invalidateNow()
invalidateNow
in class org.apache.wicket.Session
Session.invalidateNow()
public void detach()
detach
in class org.apache.wicket.Session
Session.detach()
Copyright © 2015. All rights reserved.