org.apache.wicket.examples.library
Class LibrarySession
java.lang.Object
org.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
org.apache.wicket.examples.library.LibrarySession
- All Implemented Interfaces:
- Serializable, IClusterable
public final class LibrarySession
- extends WebSession
Session class for library example. Holds User object and authenticates users.
- Author:
- Jonathan Locke
- See Also:
- Serialized Form
Methods inherited from class org.apache.wicket.Session |
attach, bind, clear, createAutoPageMap, createAutoPageMapName, currentCreateAutoPageMapCounter, detach, dirty, error, exists, findOrCreate, findOrCreate, get, 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 |
LibrarySession
protected LibrarySession(Request request)
- Constructor
- Parameters:
request
- The current request object
authenticate
public final User authenticate(String username,
String password)
- Checks the given username and password, returning a User object if if the username and
password identify a valid user.
- Parameters:
username
- The usernamepassword
- The password
- Returns:
- The signed in user
isSignedIn
public boolean isSignedIn()
- Returns:
- True if user is signed in
getUser
public User getUser()
- Returns:
- User
setUser
public void setUser(User user)
- Parameters:
user
- New user
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.