fr.paris.lutece.plugins.mylutece.authentication.logs
Class ConnectionLogHome

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.authentication.logs.ConnectionLogHome

public final class ConnectionLogHome
extends java.lang.Object

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


Method Summary
static void addUserLog(ConnectionLog connetionLog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table of connections
static int getLoginErrors(ConnectionLog connetionLog, int nIntervalMinutes, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          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(ConnectionLog connetionLog,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table of connections

Parameters:
connetionLog - the ConnectionLog object
plugin - The plugin

getLoginErrors

public static int getLoginErrors(ConnectionLog connetionLog,
                                 int nIntervalMinutes,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate the number of connections with a given ip_address by a determinate time

Parameters:
connetionLog - the connetionLog object
nIntervalMinutes - The number of minutes of properties file
plugin - The plugin
Returns:
int the count of errors of login


Copyright © 2012 Mairie de Paris. All Rights Reserved.