Class UserSessionAccess
- java.lang.Object
-
- com.devonfw.module.basic.common.api.user.UserSessionAccess
-
public class UserSessionAccess extends Object
Access to properties of the user from the current session.- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description UserSessionAccess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Locale
getUserLocale()
static String
getUserLogin()
-
-
-
Method Detail
-
getUserLogin
public static String getUserLogin()
- Returns:
- the login of the current user (e.g. "john.doe"). Will be
null
if called outside the scope of a current user session or before successful authentication.
-
getUserLocale
public static Locale getUserLocale()
- Returns:
- the
Locale
of the current user, or thesystem default locale
as fallback.
-
-