org.ops4j.pax.wicket.internal
Class PaxWicketSession

java.lang.Object
  extended by org.apache.wicket.Session
      extended by org.apache.wicket.protocol.http.WebSession
          extended by org.apache.wicket.authentication.AuthenticatedWebSession
              extended by org.ops4j.pax.wicket.internal.PaxWicketSession
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, PaxWicketAuthentication

public final class PaxWicketSession
extends org.apache.wicket.authentication.AuthenticatedWebSession
implements java.io.Serializable, PaxWicketAuthentication

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.Session
org.apache.wicket.Session.IPageMapVisitor, org.apache.wicket.Session.PageMapAccessMetaData
 
Field Summary
 
Fields inherited from class org.apache.wicket.Session
PAGEMAP_ACCESS_MDK, SESSION_ATTRIBUTE_NAME
 
Constructor Summary
PaxWicketSession(org.apache.wicket.Request request)
          Construct the instance of pax wicket session.
 
Method Summary
 boolean authenticate(java.lang.String username, java.lang.String password)
          Authenticates this session using the given username and password
 java.lang.String getLoggedInUser()
           
 org.apache.wicket.authorization.strategies.role.Roles getRoles()
           
 void invalidateNow()
           
 
Methods inherited from class org.apache.wicket.authentication.AuthenticatedWebSession
get, isSignedIn, signIn, signOut
 
Methods inherited from class org.apache.wicket.protocol.http.WebSession
cleanupFeedbackMessages, isCurrentRequestValid
 
Methods inherited from class org.apache.wicket.Session
attach, bind, clear, createAutoPageMap, createAutoPageMapName, currentCreateAutoPageMapCounter, detach, dirty, error, exists, findOrCreate, findOrCreate, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getAutoPageMapNamePrefix, getAutoPageMapNameSuffix, getClassResolver, getClientInfo, getDefaultPageMap, getFeedbackMessages, getId, getLocale, getMetaData, getPage, getPage, getPageFactory, getPageFactory, getPageMaps, getSessionStore, getSizeInBytes, getStyle, incrementCreateAutoPageMapCounter, info, invalidate, isSessionInvalidated, isTemporary, newPageMap, nextPageId, nextSequenceValue, pageMapForName, removeAttribute, removePageMap, set, setApplication, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, touch, unset, untouch, update, visitPageMaps, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaxWicketSession

public PaxWicketSession(org.apache.wicket.Request request)
Construct the instance of pax wicket session.

Parameters:
request - The incoming request.
Method Detail

authenticate

public final boolean authenticate(java.lang.String username,
                                  java.lang.String password)
Authenticates this session using the given username and password

Specified by:
authenticate in class org.apache.wicket.authentication.AuthenticatedWebSession
Parameters:
username - The username
password - The password
Returns:
True if the user was authenticated successfully

getLoggedInUser

public final java.lang.String getLoggedInUser()
Specified by:
getLoggedInUser in interface PaxWicketAuthentication
Returns:
The user that is logged in, in the request that this PaxWicketAuthentication is part of.

invalidateNow

public final void invalidateNow()
Overrides:
invalidateNow in class org.apache.wicket.Session

getRoles

public final org.apache.wicket.authorization.strategies.role.Roles getRoles()
Specified by:
getRoles in interface PaxWicketAuthentication
Specified by:
getRoles in class org.apache.wicket.authentication.AuthenticatedWebSession
Returns:
Get the roles that this session can play


Copyright © 2008. All Rights Reserved.