|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.mylutece.authentication.logs.ConnectionLogDAO
public final class ConnectionLogDAO
This class provides Data Access methods for AppUser objects
Constructor Summary | |
---|---|
ConnectionLogDAO()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionLogDAO()
Method Detail |
---|
public int selectLoginErrors(ConnectionLog connectionLog, int nIntervalMinutes, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectLoginErrors
in interface IConnectionLogDAO
connectionLog
- The Log of connectionnIntervalMinutes
- The number of minutes since the last connectionplugin
- The plugin
public void insertLog(ConnectionLog connectionLog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertLog
in interface IConnectionLogDAO
connectionLog
- the ConnectionLog Objectplugin
- The pluginpublic void resetConnectionLogs(String strIp, Timestamp dateLogin, int nIntervalMinutes, fr.paris.lutece.portal.service.plugin.Plugin plugin)
resetConnectionLogs
in interface IConnectionLogDAO
strIp
- 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 plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |