Class UserLoginInfo

    • Constructor Detail

      • UserLoginInfo

        public UserLoginInfo()
      • UserLoginInfo

        public UserLoginInfo​(ConfluenceUser user)
        Since:
        5.2
    • Method Detail

      • 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 (not including the login that started the current session) or null if its not been recorded
      • getId

        public long getId()
      • 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 (including the login that started to the current session) or null if its not been recorded
      • 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)