Class UserLoginInfo
java.lang.Object
com.atlassian.confluence.security.persistence.dao.hibernate.UserLoginInfo
- All Implemented Interfaces:
- HistoricalLoginInfo,- Serializable
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
UserLoginInfopublic UserLoginInfo()
- 
UserLoginInfo- Since:
- 5.2
 
 
- 
- 
Method Details- 
successfulLoginRecord a successful login that occurred ondate.- Parameters:
- date- date of the event
- resetFailedLoginCount- flag that indicates if the failed login count should be re-set back to zero
 
- 
successfulLoginRecord a successful login that occurred ondate.- Parameters:
- date- date of the event
 
- 
failedLoginRecord a failed login attempt ondate.- Parameters:
- date-
 
- 
resetFailedLoginCountpublic void resetFailedLoginCount()
- 
getPreviousSuccessfulLoginDate- Specified by:
- getPreviousSuccessfulLoginDatein interface- HistoricalLoginInfo
- Returns:
- the date of the previous successful login (not including the login that started the current session) or null if its not been recorded
 
- 
getIdpublic long getId()
- 
getUser- Since:
- 5.2
 
- 
getCurrentFailedLoginCountpublic int getCurrentFailedLoginCount()Description copied from interface:HistoricalLoginInfoReturn the number of failed login attempts for the user.- Specified by:
- getCurrentFailedLoginCountin interface- HistoricalLoginInfo
- Returns:
- number of failed login attempts
 
- 
getTotalFailedLoginCountpublic int getTotalFailedLoginCount()- Specified by:
- getTotalFailedLoginCountin interface- HistoricalLoginInfo
- 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 interface- HistoricalLoginInfo
- 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 interface- HistoricalLoginInfo
- Returns:
- the date of the last failed login or null if its not known
 
- 
setCurrentFailedLoginCountpublic void setCurrentFailedLoginCount(int currentFailedLoginCount) 
- 
setTotalFailedLoginCountpublic void setTotalFailedLoginCount(int totalFailedLoginCount) 
- 
setLastSuccessfulLoginDate
- 
setPreviousSuccessfulLoginDate
- 
setLastFailedLoginDate
 
-