public final class ConnectionLogDAO extends Object implements IConnectionLogDAO
| Constructor and Description |
|---|
ConnectionLogDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
insertLog(ConnectionLog connectionLog,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table of connections
|
void |
resetConnectionLogs(String strIp,
Timestamp dateLogin,
int nIntervalMinutes,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update connection logs of an IP to allow the user to login.
|
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
|
public int selectLoginErrors(ConnectionLog connectionLog, int nIntervalMinutes, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectLoginErrors in interface IConnectionLogDAOconnectionLog - The Log of connectionnIntervalMinutes - The number of minutes since the last connectionplugin - The pluginpublic void insertLog(ConnectionLog connectionLog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertLog in interface IConnectionLogDAOconnectionLog - the ConnectionLog Objectplugin - The pluginpublic void resetConnectionLogs(String strIp, Timestamp dateLogin, int nIntervalMinutes, fr.paris.lutece.portal.service.plugin.Plugin plugin)
resetConnectionLogs in interface IConnectionLogDAOstrIp - Ip to cleandateLogin - Date of the last login. Anly logs between this date plus or minus the minute interval will be cleared.nIntervalMinutes - Minutes intervalplugin - The pluginCopyright © 2022 City of Paris. All rights reserved.