public interface MutableUserSession extends UserSession
UserSession with write operations to modify the user settings. UserSessionAccess.getSession() will provide an instance that can be cast to
MutableUserSession. Further, only central place(s) in the code should modify the UserSession to
ensure consistency.| Modifier and Type | Method and Description |
|---|---|
void |
setLocale(Locale locale) |
void |
setUser(Principal user)
Sets the
current user. |
getLocale, getLogin, getUser, isFallbackvoid setLocale(Locale locale)
locale - is the new value of UserSession.getLocale().void setUser(Principal user) throws UnsupportedOperationException
current user. UserSession will give you abstracted access on it
throughout the application. Setting the user after successful login is to be done in a single place of the
application and should directly happen via the underlying technology.user - is the new value of UserSession.getUser()UnsupportedOperationException - if not supported.Copyright © 2001–2016 mmm-Team. All rights reserved.