Module org.apache.wicket.auth.roles
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,org.apache.wicket.event.IEventSink,org.apache.wicket.feedback.IFeedbackContributor,org.apache.wicket.IMetadataContext<Serializable,org.apache.wicket.Session>,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AuthenticatedWebSession
public abstract class AbstractAuthenticatedWebSession extends org.apache.wicket.protocol.http.WebSessionAuthenticated 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
-
-
Constructor Summary
Constructors Constructor Description AbstractAuthenticatedWebSession(org.apache.wicket.request.Request request)Construct.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AbstractAuthenticatedWebSessionget()abstract RolesgetRoles()abstract booleanisSignedIn()-
Methods inherited from class org.apache.wicket.protocol.http.WebSession
generateNewSessionId, getClientInfo, invalidate, newBrowserInfoPage
-
Methods inherited from class org.apache.wicket.Session
bind, changeSessionId, clear, debug, detach, dirty, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn
-
-
-
-
Method Detail
-
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
-
-