org.apache.wicket.authroles.authentication
Class AbstractAuthenticatedWebSession
java.lang.Object
org.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession
- All Implemented Interfaces:
- Serializable, IEventSink, IClusterable
- Direct Known Subclasses:
- AuthenticatedWebSession
public abstract class AbstractAuthenticatedWebSession
- extends WebSession
Authenticated web session. Subclasses must provide a method that gets User authentication status
and a method that returns the Roles for current User.
- Author:
- Jonathan Locke, Leonid Bogdanov
- See Also:
- Serialized Form
Methods inherited from class org.apache.wicket.Session |
bind, clear, debug, detach, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isCurrentRequestValid, isSessionInvalidated, isTemporary, nextPageId, nextSequenceValue, onEvent, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAuthenticatedWebSession
public AbstractAuthenticatedWebSession(Request request)
- Construct.
- Parameters:
request
- The current request object
get
public static AbstractAuthenticatedWebSession get()
- Returns:
- Current authenticated web session
getRoles
public abstract Roles getRoles()
- Returns:
- Get the roles that this session can play
isSignedIn
public abstract boolean isSignedIn()
- Returns:
- True if the user is signed in to this session
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.