fr.paris.lutece.portal.business.user.log
Class UserLogHome

java.lang.Object
  extended by fr.paris.lutece.portal.business.user.log.UserLogHome

public final class UserLogHome
extends Object

This class provides instances management methods (create, find, ...) for UserLog objects


Method Summary
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
clone, equals, finalize, 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


Copyright © 2014 Mairie de Paris. All Rights Reserved.