public final class AuthSession extends org.apache.wicket.protocol.http.WebSession implements Serializable
| Constructor and Description |
|---|
AuthSession(org.apache.wicket.request.Request request)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
String password)
Check user authenticate.
|
protected void |
checkLocale()
Check that current locale is a locale managed by cantharella.
|
void |
connectUser(Utilisateur utilisateur,
boolean rememberMe)
Connect the user (to do after authenticating)
|
Boolean |
getRememberMe()
rememberMe getter
|
AuthRole |
getRole()
role getter
|
Utilisateur |
getUtilisateur()
utilisateur getter
|
void |
logout()
Logout action
|
void |
update(Utilisateur utilisateur)
Login action
|
get, getClientInfo, invalidate, newBrowserInfoPagebind, cleanupFeedbackMessages, 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, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warnpublic AuthSession(org.apache.wicket.request.Request request)
request - Requestprotected void checkLocale()
public boolean authenticate(String username, String password)
username - usernamepassword - passwordtrue if username and password matchpublic Boolean getRememberMe()
public AuthRole getRole()
public Utilisateur getUtilisateur()
public void connectUser(Utilisateur utilisateur, boolean rememberMe)
utilisateur - UtilisateurrememberMe - True if the authentication is saved in a cookiepublic void logout()
public void update(Utilisateur utilisateur)
utilisateur - UtilisateurCopyright © 2009-2013 IRD. All Rights Reserved.