|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession
org.apache.wicket.authroles.authentication.AuthenticatedWebSession
org.apache.wicket.examples.library.LibrarySession
public final class LibrarySession
Session class for library example. Holds User object and authenticates users.
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Session |
|---|
clientInfo, SESSION_ATTRIBUTE_NAME |
| Constructor Summary | |
|---|---|
protected |
LibrarySession(Request request)
Constructor |
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password)
Checks the given username and password, returning a User object if if the username and password identify a valid user. |
Roles |
getRoles()
|
User |
getUser()
|
void |
setUser(User user)
|
void |
signOut()
Sign the user out. |
| Methods inherited from class org.apache.wicket.authroles.authentication.AuthenticatedWebSession |
|---|
get, invalidate, isSignedIn, signIn, signIn |
| Methods inherited from class org.apache.wicket.protocol.http.WebSession |
|---|
cleanupComponentFeedbackMessages, cleanupFeedbackMessages, getClientInfo, 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 |
|---|
protected LibrarySession(Request request)
request - The current request object| Method Detail |
|---|
public final boolean authenticate(java.lang.String username,
java.lang.String password)
authenticate in class WebSessionusername - The usernamepassword - The password
public User getUser()
public void setUser(User user)
user - New userpublic void signOut()
AuthenticatedWebSession
signOut in class AuthenticatedWebSessionorg.apache.wicket.authentication.AuthenticatedWebSession#signOut()public Roles getRoles()
getRoles in class AbstractAuthenticatedWebSessionorg.apache.wicket.authentication.AuthenticatedWebSession#getRoles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||