|
||||||||||
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.ConnectionLogHome
public final class ConnectionLogHome
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 |
static 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addUserLog(ConnectionLog connetionLog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
connetionLog
- the ConnectionLog objectplugin
- The pluginpublic static int getLoginErrors(ConnectionLog connetionLog, int nIntervalMinutes, fr.paris.lutece.portal.service.plugin.Plugin plugin)
connetionLog
- the connetionLog objectnIntervalMinutes
- The number of minutes of properties fileplugin
- The plugin
public static void resetConnectionLogs(String strIp, Timestamp dateLogin, int nIntervalMinutes, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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 |