com.alogient.cameleon.extension.wicket
Class CameleonSession

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 com.alogient.cameleon.extension.wicket.AbstractCameleonSession
                  extended by com.alogient.cameleon.extension.wicket.CameleonSession
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable

public class CameleonSession
extends AbstractCameleonSession

Defines the default cameleon session. This default implementation use a UserPasswordAuthenticationToken for the authentication Date: 16-Feb-2010 Time: 11:26:10 AM

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
CameleonSession(org.apache.wicket.Request request)
          Constructor.
 
Method Summary
 org.springframework.security.core.Authentication getCustomAuthentication(String username, String password)
          Called when you want to use a custom authentication.
 
Methods inherited from class com.alogient.cameleon.extension.wicket.AbstractCameleonSession
authenticate, get, getAuthenticationVo, getCultureVo, getCurrentMenu, getModeType, getRoles, init, signOut
 
Methods inherited from class org.apache.wicket.authentication.AuthenticatedWebSession
isSignedIn, signIn, signIn
 
Methods inherited from class org.apache.wicket.protocol.http.WebSession
cleanupComponentFeedbackMessages, 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, getPageMaps, getSessionStore, getSizeInBytes, getStyle, incrementCreateAutoPageMapCounter, info, invalidate, invalidateNow, isSessionInvalidated, isTemporary, newPageMap, nextPageId, nextSequenceValue, pageMapForName, removeAttribute, removePageMap, replaceSession, 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

CameleonSession

public CameleonSession(org.apache.wicket.Request request)
Constructor. Note that RequestCycle is not available until this constructor returns.

Parameters:
request - The current request
Method Detail

getCustomAuthentication

public org.springframework.security.core.Authentication getCustomAuthentication(String username,
                                                                                String password)
Called when you want to use a custom authentication. The default one uses the UsernamePasswordAuthenticationToken

Specified by:
getCustomAuthentication in class AbstractCameleonSession
Parameters:
username - the username
password - the password
Returns:
the authentication instance.


Copyright © 2011 Alogient. All Rights Reserved.