public interface UserSession
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLocale() |
String |
getLogin() |
Principal |
getUser() |
boolean |
isFallback()
This method determines if this
UserSession was received or
is currently called outside the scope of a current user session. |
Locale getLocale()
Locale of the current user, or the system default locale
as fallback.boolean isFallback()
UserSession was received or
is currently called outside the scope of a current user session. On the server side a UserSession
typically exists in the context of a servlet container or JEE application server. If the context is not
available this method will return true. This may be because the user is currently not logged in (anonymous access) or the context is not available for technical reasons (e.g. misconfiguration).true if received or called outside the scope
of a current user session, false otherwise.Copyright © 2001–2015 mmm-Team. All rights reserved.