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 XfcSessioncreateNew(javax.servlet.http.HttpSession session) Session-Initialisierung (vor allem für Multi-Session-Betrieb), die den Mandanten des übergebenen Benutzers verwendet.static XfcSessionDeprecated.static XfcSessionDeprecated.UsecreateNew(HttpSession)instead.static XfcSessionVor allem für Multi-Session-Betrieb.static XfcSessioncurrent(javax.servlet.http.HttpServletRequest req) Returns the XFC session for the HTTP session associated with the given HTTP request.static XfcSessioncurrent(javax.servlet.http.HttpSession session) Returns the XFC session for the given HTTP session.static XfcSessioncurrentOrNull(javax.servlet.http.HttpSession session) Returns the XFC session for the given HTTP session, if it exists.static voidLöscht die Session (vor allem für Multi-Session-Betrieb).static voidstatic Map<String,XfcSession> static Localelocale(javax.servlet.http.HttpServletRequest req) static Localelocale(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 Benutzernullsind (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 IDnullist (für Single-Session-Betrieb siehecurrent(String)).
-
currentOrNull
Returns the XFC session for the given HTTP session, if it exists. Returnsnullotherwise.- Parameters:
session- The current HTTP session.- Returns:
- The current XFC session, if one exists, or
nullotherwise.
-
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
nullif 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
nullif 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.