org.openengsb.ui.common
Class OpenEngSBWebSession

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.openengsb.ui.common.OpenEngSBWebSession
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable

public class OpenEngSBWebSession
extends org.apache.wicket.authentication.AuthenticatedWebSession

Common class of sessions for use in OpenEngSB and client applications. It enforces authentication and builds the bridge to spring-security. Note: You must have an authenticationManager configured to start new sessions

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
OpenEngSBWebSession(org.apache.wicket.Request request)
           
 
Method Summary
 boolean authenticate(java.lang.String username, java.lang.String password)
           
static OpenEngSBWebSession get()
           
 org.apache.wicket.authorization.strategies.role.Roles getRoles()
           
 
Methods inherited from class org.apache.wicket.authentication.AuthenticatedWebSession
isSignedIn, signIn, signIn, signOut
 
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

OpenEngSBWebSession

public OpenEngSBWebSession(org.apache.wicket.Request request)
Method Detail

get

public static OpenEngSBWebSession get()

authenticate

public boolean authenticate(java.lang.String username,
                            java.lang.String password)
Specified by:
authenticate in class org.apache.wicket.authentication.AuthenticatedWebSession

getRoles

public org.apache.wicket.authorization.strategies.role.Roles getRoles()
Specified by:
getRoles in class org.apache.wicket.authentication.AuthenticatedWebSession


Copyright © 2009-2011. All Rights Reserved.