public class UserLoginInfo extends Object implements Serializable, HistoricalLoginInfo
Constructor and Description |
---|
UserLoginInfo() |
UserLoginInfo(ConfluenceUser user) |
Modifier and Type | Method and Description |
---|---|
void |
failedLogin(Date date)
Record a failed login attempt on
date . |
int |
getCurrentFailedLoginCount()
Return the number of failed login attempts for the user.
|
long |
getId() |
Date |
getLastFailedLoginDate() |
Date |
getLastSuccessfulLoginDate() |
Date |
getPreviousSuccessfulLoginDate() |
int |
getTotalFailedLoginCount() |
ConfluenceUser |
getUser() |
void |
resetFailedLoginCount() |
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 on
date . |
public UserLoginInfo()
public UserLoginInfo(ConfluenceUser user)
public void successfulLogin(Date date)
date
.date
- public void failedLogin(Date date)
date
.date
- public void resetFailedLoginCount()
public Date getPreviousSuccessfulLoginDate()
getPreviousSuccessfulLoginDate
in interface HistoricalLoginInfo
public long getId()
public ConfluenceUser getUser()
public int getCurrentFailedLoginCount()
HistoricalLoginInfo
getCurrentFailedLoginCount
in interface HistoricalLoginInfo
public int getTotalFailedLoginCount()
getTotalFailedLoginCount
in interface HistoricalLoginInfo
public Date getLastSuccessfulLoginDate()
getLastSuccessfulLoginDate
in interface HistoricalLoginInfo
public Date getLastFailedLoginDate()
getLastFailedLoginDate
in interface HistoricalLoginInfo
public void setCurrentFailedLoginCount(int currentFailedLoginCount)
public void setTotalFailedLoginCount(int totalFailedLoginCount)
public void setLastSuccessfulLoginDate(Date lastSuccessfulLoginDate)
public void setPreviousSuccessfulLoginDate(Date previousSuccessfulLoginDate)
public void setLastFailedLoginDate(Date lastFailedLoginDate)
Copyright © 2003–2019 Atlassian. All rights reserved.