Package de.xima.fc.session
Class XfcSessionManager
- java.lang.Object
 - 
- de.xima.fc.session.XfcSessionManager
 
 
- 
public final class XfcSessionManager extends Object
Kontext einer Formcycle-Nutzersession. 
- 
- 
Constructor Summary
Constructors Constructor Description XfcSessionManager() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XfcSessioncreateNew(javax.servlet.http.HttpSession session)Session-Initialisierung (vor allem für Multi-Session-Betrieb), die den Mandanten des übergebenen Benutzers verwendet.static XfcSessioncreateNew(javax.servlet.http.HttpSession session, Benutzer user)static XfcSessioncreateNew(javax.servlet.http.HttpSession session, Benutzer user, String loginName)static XfcSessioncurrent(String id)Vor 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 voiddispose(String id)Löscht die Session (vor allem für Multi-Session-Betrieb).static voiddisposeAll()static Map<String,javax.servlet.http.HttpSession>getRawSessionMap()static Map<String,XfcSession>getSessionMap()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 voidrenewId(String oldId, String newId) 
 - 
 
- 
- 
Method Detail
- 
createNew
public static XfcSession createNew(javax.servlet.http.HttpSession session)
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).
 
- 
createNew
public static XfcSession createNew(javax.servlet.http.HttpSession session, Benutzer user)
 
- 
createNew
public static XfcSession createNew(javax.servlet.http.HttpSession session, Benutzer user, String loginName)
 
- 
current
public static XfcSession current(String id)
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
public static XfcSession currentOrNull(javax.servlet.http.HttpSession session)
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
public static XfcSession current(javax.servlet.http.HttpSession session)
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
public static XfcSession current(javax.servlet.http.HttpServletRequest req)
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. 
 
- 
dispose
public static void dispose(String id)
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
public static Locale locale(javax.servlet.http.HttpServletRequest req)
 
- 
locale
public static Locale locale(javax.servlet.http.HttpSession session)
Liefert die 'Locale'-Einstellung der Session zur übergebenen ID oder einen Standardwert 
- 
disposeAll
public static void disposeAll()
 
- 
getRawSessionMap
public static Map<String,javax.servlet.http.HttpSession> getRawSessionMap()
- Returns:
 - the sessMap
 
 
- 
getSessionMap
public static Map<String,XfcSession> getSessionMap()
 
 - 
 
 -