Class XfcSessionManager


  • public final class XfcSessionManager
    extends Object
    Kontext einer Formcycle-Nutzersession.
    • Constructor Detail

      • XfcSessionManager

        public XfcSessionManager()
    • 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 Benutzer null sind (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)
      • currentOrNull

        public static XfcSession currentOrNull​(javax.servlet.http.HttpSession session)
        Returns the XFC session for the given HTTP session, if it exists. Returns null otherwise.
        Parameters:
        session - The current HTTP session.
        Returns:
        The current XFC session, if one exists, or null otherwise.
      • 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 null if the given HTTP session is null.
      • 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 null if the given HTTP request is null.
      • renewId

        public static void renewId​(String oldId,
                                   String newId)
      • 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 per createNew(HttpSession, Benutzer) verwendet wurde (im Allgemeinen die HttpSession-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