|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.Session org.apache.wicket.protocol.http.WebSession org.apache.wicket.examples.library.LibrarySession
public final class LibrarySession
Session class for library example. Holds User object and authenticates users.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.Session |
---|
Session.IPageMapVisitor, Session.PageMapAccessMetaData |
Field Summary |
---|
Fields inherited from class org.apache.wicket.Session |
---|
PAGEMAP_ACCESS_MDK, SESSION_ATTRIBUTE_NAME |
Constructor Summary | |
---|---|
protected |
LibrarySession(WebApplication application,
Request request)
Constructor |
Method Summary | |
---|---|
User |
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. |
User |
getUser()
|
boolean |
isSignedIn()
|
void |
setUser(User user)
|
Methods inherited from class org.apache.wicket.protocol.http.WebSession |
---|
cleanupFeedbackMessages, isCurrentRequestValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LibrarySession(WebApplication application, Request request)
application
- The applicationrequest
- The current request objectMethod Detail |
---|
public final User authenticate(java.lang.String username, java.lang.String password)
username
- The usernamepassword
- The password
public boolean isSignedIn()
public User getUser()
public void setUser(User user)
user
- New user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |