public interface SessionI extends SessionReaderI
| Modifier and Type | Method and Description |
|---|---|
SessionReaderI |
getReadOnlyInstance()
Provides a delegated, read-only view of this mutable session instance.
|
java.lang.Object |
set(java.lang.String name,
java.lang.Object value)
Sets or updates the value of a session variable.
|
void |
setUser(Benutzer user)
Sets or updates the value of the current user in this session.
|
get, getLocale, getUser, getVariablesjava.lang.Object set(java.lang.String name,
java.lang.Object value)
name - The name of the variable to set.value - The new value of the variable.null if there was no
value for that name. (A null return can also indicate that the value previously
associated with the name was null.)void setUser(Benutzer user)
This method is typically used to update the authentication state (login/logout).
user - The Benutzer instance to set, or null to signify logout/no authenticated user.SessionReaderI getReadOnlyInstance()
This is often used to expose session data to components that should not have write access.
SessionReaderI instance that delegates all read calls to this object,
but does not expose any write methods.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.