com.atlassian.confluence.security.persistence.dao.hibernate
Class UserLoginInfo
java.lang.Object
com.atlassian.confluence.security.persistence.dao.hibernate.UserLoginInfo
- All Implemented Interfaces:
- HistoricalLoginInfo, Serializable
public class UserLoginInfo
- extends Object
- implements Serializable, HistoricalLoginInfo
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserLoginInfo
public UserLoginInfo()
UserLoginInfo
public UserLoginInfo(String userName)
successfulLogin
public void successfulLogin(Date date)
- Record a successful login that occurred on
date
.
- Parameters:
date
-
failedLogin
public void failedLogin(Date date)
- Record a failed login attempt on
date
.
- Parameters:
date
-
resetFailedLoginCount
public void resetFailedLoginCount()
getPreviousSuccessfulLoginDate
public Date getPreviousSuccessfulLoginDate()
- Specified by:
getPreviousSuccessfulLoginDate
in interface HistoricalLoginInfo
- Returns:
- the date of the previous successful login or null if its not been recorded
getId
public long getId()
getUserName
public String getUserName()
getCurrentFailedLoginCount
public int getCurrentFailedLoginCount()
- Description copied from interface:
HistoricalLoginInfo
- Return the number of failed login attempts for the user.
- Specified by:
getCurrentFailedLoginCount
in interface HistoricalLoginInfo
- Returns:
- number of failed login attempts
getTotalFailedLoginCount
public int getTotalFailedLoginCount()
- Specified by:
getTotalFailedLoginCount
in interface HistoricalLoginInfo
- Returns:
- the number of total number of times the user has failed to login ever or -1 if its not recorded
getLastSuccessfulLoginDate
public Date getLastSuccessfulLoginDate()
- Specified by:
getLastSuccessfulLoginDate
in interface HistoricalLoginInfo
- Returns:
- the date of the last successful login or null if its not been recorded
getLastFailedLoginDate
public Date getLastFailedLoginDate()
- Specified by:
getLastFailedLoginDate
in interface HistoricalLoginInfo
- 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
public void setLastSuccessfulLoginDate(Date lastSuccessfulLoginDate)
setPreviousSuccessfulLoginDate
public void setPreviousSuccessfulLoginDate(Date previousSuccessfulLoginDate)
setLastFailedLoginDate
public void setLastFailedLoginDate(Date lastFailedLoginDate)
Copyright © 2003-2013 Atlassian. All Rights Reserved.