public final class Session extends java.lang.Object implements SessionI
SessionI contract for client runtime sessions.
Manages authenticated user context, global session variables and in-memory UI state
(layout geometry and LRU navigation history via SessionStateXml), bridging runtime state
changes to BOs (Sitzung).
SessionI,
SessionStateXml,
Sitzung| Constructor and Description |
|---|
Session()
Constructs a new uninitialized client session.
|
| Modifier and Type | Method and Description |
|---|---|
de.ipcon.db.core.Sitzung |
flushPersistentSession(Transaction tx,
de.ipcon.swing.WindowState windowState,
ClientStateSaveReason reason)
Updates window geometry applying reason-based overrides, enforces maximum LRU capacity,
and writes the active in-memory
SessionStateXml payload into the persistent Sitzung BO
within the given transaction. |
java.lang.Object |
get(java.lang.String name)
Retrieves a session-scoped variable by key.
|
java.util.Locale |
getLocale()
Retrieves the current
Locale set for the user's session. |
SessionReaderI |
getReadOnlyInstance()
Returns a read-only view of this session instance that delegates query calls to this instance
while hiding state-mutating operations.
|
SessionStateXml |
getStateXml()
Returns the active in-memory UI state helper managing window layout geometry and LRU history.
|
Benutzer |
getUser()
Returns the currently authenticated user.
|
java.util.Map<java.lang.String,java.lang.Object> |
getVariables()
Returns an unmodifiable view of all currently registered session variables.
|
java.lang.Object |
set(java.lang.String name,
java.lang.Object value)
Sets or updates a session-scoped variable in the synchronized variable map.
|
void |
setPersistentSession(de.ipcon.db.core.Sitzung persistentSession)
Binds a persistent session BO (
Sitzung) to this runtime session. |
void |
setStateXml(SessionStateXml stateXml)
Sets the active in-memory UI state helper managing window layout geometry and LRU history to the passed one.
|
void |
setUser(Benutzer user)
Sets or clears the authenticated user BO for this session.
|
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 void setUser(Benutzer user)
SessionIpublic Benutzer getUser()
SessionReaderIgetUser in interface SessionReaderIBenutzer instance, or nullpublic void setPersistentSession(de.ipcon.db.core.Sitzung persistentSession)
SessionISitzung) to this runtime session.setPersistentSession in interface SessionIpersistentSession - persistent session BO, or nullpublic SessionStateXml getStateXml()
getStateXml in interface SessionISessionStateXml instancepublic void setStateXml(SessionStateXml stateXml)
setStateXml in interface SessionIstateXml - the SessionStateXml instance to setpublic de.ipcon.db.core.Sitzung flushPersistentSession(Transaction tx, de.ipcon.swing.WindowState windowState, ClientStateSaveReason reason)
SessionISessionStateXml payload into the persistent Sitzung BO
within the given transaction.flushPersistentSession in interface SessionItx - transaction used for persisting session changes (mandatory)windowState - current mainframe window geometry and scale state, or null to use fallback defaultsreason - the trigger context defining potential window dimension and state overrides (mandatory)Sitzung instance included in tx, or null if an existing
persistent session record was updatedpublic java.lang.Object set(java.lang.String name,
java.lang.Object value)
SessionIpublic java.lang.Object get(java.lang.String name)
SessionReaderIget in interface SessionReaderIname - variable key identifiernull if not foundpublic java.util.Map<java.lang.String,java.lang.Object> getVariables()
SessionReaderIThese variables represent typically machine- or user-profile-specific, application settings.
getVariables in interface SessionReaderIpublic SessionReaderI getReadOnlyInstance()
SessionIgetReadOnlyInstance in interface SessionISessionReaderI delegate viewCopyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.