org.apache.wicket.authroles.authentication
Class AbstractAuthenticatedWebSession

java.lang.Object
  extended by org.apache.wicket.Session
      extended by org.apache.wicket.protocol.http.WebSession
          extended by org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession
All Implemented Interfaces:
java.io.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

Field Summary
 
Fields inherited from class org.apache.wicket.Session
clientInfo, SESSION_ATTRIBUTE_NAME
 
Constructor Summary
AbstractAuthenticatedWebSession(Request request)
          Construct.
 
Method Summary
static AbstractAuthenticatedWebSession get()
           
abstract  Roles getRoles()
           
abstract  boolean isSignedIn()
           
 
Methods inherited from class org.apache.wicket.protocol.http.WebSession
authenticate, cleanupComponentFeedbackMessages, cleanupFeedbackMessages, getClientInfo, invalidate, newBrowserInfoPage
 
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
 

Constructor Detail

AbstractAuthenticatedWebSession

public AbstractAuthenticatedWebSession(Request request)
Construct.

Parameters:
request - The current request object
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


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.