Class UserLogHome


  • public final class UserLogHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for UserLog objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addUserLog​(UserLog userLog)
      Insert a new record in the table of connections
      static int getLoginErrors​(UserLog userLog, int nIntervalMinutes)
      Calculate the number of connections with a given ip_address by a determinate time
      • Methods inherited from class java.lang.Object

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

      • addUserLog

        public static void addUserLog​(UserLog userLog)
        Insert a new record in the table of connections
        Parameters:
        userLog - the UserLog object
      • getLoginErrors

        public static int getLoginErrors​(UserLog userLog,
                                         int nIntervalMinutes)
        Calculate the number of connections with a given ip_address by a determinate time
        Parameters:
        userLog - the UserLog object
        nIntervalMinutes - The number of minutes of properties file
        Returns:
        int the count of errors of login