public final class SessionReader extends java.lang.Object implements SessionReaderI
SessionReaderI contract.
It is instantiated by the Session.getReadOnlyInstance() factory method.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.String name)
Retrieves the value of a single global variable by its name.
|
java.util.Locale |
getLocale()
Retrieves the current
Locale set for the user's session. |
Benutzer |
getUser()
Retrieves the instance representing the currently logged-in user for this session.
|
java.util.Map<java.lang.String,java.lang.Object> |
getVariables()
Retrieves all currently stored global variables.
|
public Benutzer getUser()
SessionReaderIgetUser in interface SessionReaderIBenutzer instance representing the current user, or null
if the session is not currently authenticated.public java.util.Locale getLocale()
SessionReaderILocale set for the user's session.
This locale is critical for correctly formatting numbers, dates, currency, and handling localized text.
getLocale in interface SessionReaderILocale.public java.util.Map<java.lang.String,java.lang.Object> getVariables()
SessionReaderIThese variables represent typically machine- or user-profile-specific, application settings.
getVariables in interface SessionReaderIMap<String, Object> containing all variable names (String) and
their values (Object). The map returned is typically unmodifiable.public java.lang.Object get(java.lang.String name)
SessionReaderIget in interface SessionReaderIname - The name of the global variable to retrieve.Object, or null if the variable does not exist.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.