Package de.xima.fc.session
Class XfcSessionManager
java.lang.Object
de.xima.fc.session.XfcSessionManager
Kontext einer Formcycle-Nutzersession.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XfcSession
createNew
(javax.servlet.http.HttpSession session) Session-Initialisierung (vor allem für Multi-Session-Betrieb), die den Mandanten des übergebenen Benutzers verwendet.static XfcSession
Deprecated.static XfcSession
Deprecated.UsecreateNew(HttpSession)
instead.static XfcSession
Vor allem für Multi-Session-Betrieb.static XfcSession
current
(javax.servlet.http.HttpServletRequest req) Returns the XFC session for the HTTP session associated with the given HTTP request.static XfcSession
current
(javax.servlet.http.HttpSession session) Returns the XFC session for the given HTTP session.static XfcSession
currentOrNull
(javax.servlet.http.HttpSession session) Returns the XFC session for the given HTTP session, if it exists.static void
Löscht die Session (vor allem für Multi-Session-Betrieb).static void
static Map<String,
XfcSession> static Locale
locale
(javax.servlet.http.HttpServletRequest req) static Locale
locale
(javax.servlet.http.HttpSession session) Liefert die 'Locale'-Einstellung der Session zur übergebenen ID oder einen Standardwertstatic void
-
Constructor Details
-
XfcSessionManager
public XfcSessionManager()
-
-
Method Details
-
createNew
Session-Initialisierung (vor allem für Multi-Session-Betrieb), die den Mandanten des übergebenen Benutzers verwendet.- Parameters:
session
- die HttpSession.- Returns:
- Die neu erstellte XFC-Session.
- Throws:
NullPointerException
- wenn ID oder Benutzernull
sind (im Single-Session-Betrieb ist diese Initialisierung nicht notwendig).
-
current
Vor allem für Multi-Session-Betrieb.- Parameters:
id
- Die ID, die für die Session-Initialisierung percreateNew(HttpSession, Benutzer)
verwendet wurde (im Allgemeinen dieHttpSession
-ID).- Returns:
- Die unter der ID registrierte XFC-Session.
- Throws:
NullPointerException
- wenn IDnull
ist (für Single-Session-Betrieb siehecurrent(String)
).
-
currentOrNull
Returns the XFC session for the given HTTP session, if it exists. Returnsnull
otherwise.- Parameters:
session
- The current HTTP session.- Returns:
- The current XFC session, if one exists, or
null
otherwise.
-
current
Returns the XFC session for the given HTTP session. If no XFC session exists yet, creates a new one.- Parameters:
session
- The current HTTP session.- Returns:
- The current XFC session, or
null
if the given HTTP session isnull
.
-
current
Returns the XFC session for the HTTP session associated with the given HTTP request. If no XFC session exists yet, creates a new one.- Parameters:
req
- The current HTTP request.- Returns:
- The current XFC session, or
null
if the given HTTP request isnull
.
-
renewId
-
dispose
Löscht die Session (vor allem für Multi-Session-Betrieb).- Parameters:
id
- Die ID, die für die Session-Initialisierung percreateNew(HttpSession, Benutzer)
verwendet wurde (im Allgemeinen dieHttpSession
-ID).
-
locale
-
locale
Liefert die 'Locale'-Einstellung der Session zur übergebenen ID oder einen Standardwert -
disposeAll
public static void disposeAll() -
getRawSessionMap
- Returns:
- the sessMap
-
getSessionMap
-
createNew
@Deprecated public static XfcSession createNew(javax.servlet.http.HttpSession session, Benutzer user) Deprecated.UsecreateNew(HttpSession)
instead. -
createNew
@Deprecated public static XfcSession createNew(javax.servlet.http.HttpSession session, Benutzer user, String loginName) Deprecated.UsecreateNew(HttpSession)
instead.
-
createNew(HttpSession)
instead.