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 LocalegetUserLocale()static StringgetUserLogin()
-
-
-
Method Detail
-
getUserLogin
public static String getUserLogin()
- Returns:
- the login of the current user (e.g. "john.doe"). Will be
nullif called outside the scope of a current user session or before successful authentication.
-
getUserLocale
public static Locale getUserLocale()
- Returns:
- the
Localeof the current user, or thesystem default localeas fallback.
-
-