Class UserSession

  • All Implemented Interfaces:
    java.io.Serializable

    public class UserSession
    extends java.lang.Object
    implements java.io.Serializable
    User session tools
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UserSession()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String logon​(Grant g, java.lang.String date)
      Insert a new session in m_session and/or trace the logon in log4j
      static void logout​(Grant g, java.lang.String date, long dt)
      Set the logout date and/or trace the logout in log4j
      static java.lang.String prune()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserSession

        public UserSession()
    • Method Detail

      • logon

        public static java.lang.String logon​(Grant g,
                                             java.lang.String date)
        Insert a new session in m_session and/or trace the logon in log4j
        Parameters:
        g - User rights
        date - Logon date
        Returns:
        session row ID if created
      • logout

        public static void logout​(Grant g,
                                  java.lang.String date,
                                  long dt)
        Set the logout date and/or trace the logout in log4j
        Parameters:
        g - User rights
        date - Logout date
        dt - Session duration (sec)
      • prune

        public static java.lang.String prune()