fr.paris.lutece.plugins.mylutece.authentication.logs
Interface IConnectionLogDAO

All Known Implementing Classes:
ConnectionLogDAO

public interface IConnectionLogDAO

Author:
lenaini

Method Summary
 void insertLog(ConnectionLog connectionLog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table of connections
 int selectLoginErrors(ConnectionLog connectionLog, int nIntervalMinutes, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Calculate the number of connections with a given ip_address by a determinate time
 

Method Detail

insertLog

void insertLog(ConnectionLog connectionLog,
               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table of connections

Parameters:
connectionLog - the ConnectionLog Object
plugin - The plugin

selectLoginErrors

int selectLoginErrors(ConnectionLog connectionLog,
                      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:
connectionLog - The Log of connection
nIntervalMinutes - The number of minutes since the last connection
plugin - The plugin
Returns:
int The number of loggin error during the last nIntervalMinutes minutes


Copyright © 2012 Mairie de Paris. All Rights Reserved.