Class UserLoginInfo
java.lang.Object
com.atlassian.confluence.security.persistence.dao.hibernate.UserLoginInfo
- All Implemented Interfaces:
HistoricalLoginInfo
,Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
failedLogin
(Date date) Record a failed login attempt ondate
.int
Return the number of failed login attempts for the user.long
getId()
int
getUser()
void
void
setCurrentFailedLoginCount
(int currentFailedLoginCount) void
setLastFailedLoginDate
(Date lastFailedLoginDate) void
setLastSuccessfulLoginDate
(Date lastSuccessfulLoginDate) void
setPreviousSuccessfulLoginDate
(Date previousSuccessfulLoginDate) void
setTotalFailedLoginCount
(int totalFailedLoginCount) void
successfulLogin
(Date date) Record a successful login that occurred ondate
.
-
Constructor Details
-
UserLoginInfo
public UserLoginInfo() -
UserLoginInfo
- Since:
- 5.2
-
-
Method Details
-
successfulLogin
Record a successful login that occurred ondate
.- Parameters:
date
-
-
failedLogin
Record a failed login attempt ondate
.- Parameters:
date
-
-
resetFailedLoginCount
public void resetFailedLoginCount() -
getPreviousSuccessfulLoginDate
- Specified by:
getPreviousSuccessfulLoginDate
in interfaceHistoricalLoginInfo
- Returns:
- the date of the previous successful login (not including the login that started the current session) or null if its not been recorded
-
getId
public long getId() -
getUser
- Since:
- 5.2
-
getCurrentFailedLoginCount
public int getCurrentFailedLoginCount()Description copied from interface:HistoricalLoginInfo
Return the number of failed login attempts for the user.- Specified by:
getCurrentFailedLoginCount
in interfaceHistoricalLoginInfo
- Returns:
- number of failed login attempts
-
getTotalFailedLoginCount
public int getTotalFailedLoginCount()- Specified by:
getTotalFailedLoginCount
in interfaceHistoricalLoginInfo
- Returns:
- the number of total number of times the user has failed to login ever or -1 if its not recorded
-
getLastSuccessfulLoginDate
- Specified by:
getLastSuccessfulLoginDate
in interfaceHistoricalLoginInfo
- Returns:
- the date of the last successful login (including the login that started to the current session) or null if its not been recorded
-
getLastFailedLoginDate
- Specified by:
getLastFailedLoginDate
in interfaceHistoricalLoginInfo
- Returns:
- the date of the last failed login or null if its not known
-
setCurrentFailedLoginCount
public void setCurrentFailedLoginCount(int currentFailedLoginCount) -
setTotalFailedLoginCount
public void setTotalFailedLoginCount(int totalFailedLoginCount) -
setLastSuccessfulLoginDate
-
setPreviousSuccessfulLoginDate
-
setLastFailedLoginDate
-