Class UserLoginInfo
java.lang.Object
com.atlassian.confluence.security.persistence.dao.hibernate.UserLoginInfo
- All Implemented Interfaces:
HistoricalLoginInfo,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfailedLogin(Date date) Record a failed login attempt ondate.intReturn the number of failed login attempts for the user.longgetId()intgetUser()voidvoidsetCurrentFailedLoginCount(int currentFailedLoginCount) voidsetLastFailedLoginDate(Date lastFailedLoginDate) voidsetLastSuccessfulLoginDate(Date lastSuccessfulLoginDate) voidsetPreviousSuccessfulLoginDate(Date previousSuccessfulLoginDate) voidsetTotalFailedLoginCount(int totalFailedLoginCount) voidsuccessfulLogin(Date date) Record a successful login that occurred ondate.voidsuccessfulLogin(Date date, boolean resetFailedLoginCount) 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- date of the eventresetFailedLoginCount- flag that indicates if the failed login count should be re-set back to zero
-
successfulLogin
Record a successful login that occurred ondate.- Parameters:
date- date of the event
-
failedLogin
Record a failed login attempt ondate.- Parameters:
date-
-
resetFailedLoginCount
public void resetFailedLoginCount() -
getPreviousSuccessfulLoginDate
- Specified by:
getPreviousSuccessfulLoginDatein 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:HistoricalLoginInfoReturn the number of failed login attempts for the user.- Specified by:
getCurrentFailedLoginCountin interfaceHistoricalLoginInfo- Returns:
- number of failed login attempts
-
getTotalFailedLoginCount
public int getTotalFailedLoginCount()- Specified by:
getTotalFailedLoginCountin 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:
getLastSuccessfulLoginDatein 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:
getLastFailedLoginDatein 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
-