Interface UserStatisticsAgent


public interface UserStatisticsAgent
Definition for an agent providing access to user statistics.
Since:
5.2.1607
See Also:
  • Field Details

  • Method Details

    • getLastLoginAsDate

      @Deprecated @Nullable @Nullable Date getLastLoginAsDate(long userId)
      Deprecated.
      since 5.2.180703 - use getLastLogin(long) instead
      Returns the date of the last login to the FirstSpirit server performed by this user. The time of the returned object will always be set to midnight.
      Parameters:
      userId - the id of the user to retrieve the login date for.
      Returns:
      the date of the last login or null if unknown.
      Since:
      5.2.1607
    • getLastLogin

      Optional<LocalDate> getLastLogin(long userId)
      Returns the date of the last login to the FirstSpirit server performed by this user.
      Parameters:
      userId - the id of the user to retrieve the login date for.
      Returns:
      the date of the last login or an empty Optional if unknown.
      Since:
      5.2.180703