Class UserAuthEventDao


public class UserAuthEventDao extends AbstractDao
Provides a UserAuthEvent Data Access Object (DAO).
Since:
4.1.3
  • Constructor Details

    • UserAuthEventDao

      public UserAuthEventDao()
  • Method Details

    • getUserAuthEventsForUser

      public List<UserAuthEvent> getUserAuthEventsForUser(UserAccount userAccount, int fetchLimit)
      Return the user authentication events for the given user, ordered by event time descending.
      Parameters:
      userAccount - the user to return (required)
      fetchLimit - the maximum number of rows to return
      Returns:
      the user authentication events for the given user, ordered by event time descending.
    • getLastUserAuthEvent

      public UserAuthEvent getLastUserAuthEvent(UserAccount userAccount, Portal portal)
      Return the last user auth event for the given user and portal.
      Parameters:
      userAccount - the user to return (required)
      portal - the the portal (required)
      Returns:
      the last user auth event for the given user and portal
      Since:
      17.10.0
    • getUserAuthEventList

      public List<UserAuthEvent> getUserAuthEventList(String clientId, String loginName, String eventType, Portal portal, String ipAddress, Date startDate, Date endDate)
      Return the user authentication event list for the given search criteria.
      Parameters:
      clientId - the selected client id
      loginName - the user login name
      eventType - the event type
      portal - the selected portal
      ipAddress - the user IP address
      startDate - the search start date
      endDate - the search end date
      Returns:
      the user authentication event list for the given search criteria
    • getUserAuthEventList

      public List<UserAuthEvent> getUserAuthEventList(String clientId, String loginName, String eventType, Portal portal, String ipAddress, Date startDate, Date endDate, int pageSize, int fetchLimit)
      Return the user authentication event list for the given search criteria.
      Parameters:
      clientId - the selected client id
      loginName - the user login name
      eventType - the event type
      portal - the selected portal
      ipAddress - the user IP address
      startDate - the search start date
      endDate - the search end date
      pageSize - the query page size
      fetchLimit - the query fetch limit
      Returns:
      the user authentication event list for the given search criteria
      Since:
      4.3.0
    • purgeUserAuthEvents

      public int purgeUserAuthEvents(int maxAgeDays, int fetchLimit, long maxTimeMs)
      Purge user auth event log records older than a specified number of days
      Parameters:
      maxAgeDays - The age in days above which records will be deleted. If this value is negative or equal to 0, no records will be purged.
      fetchLimit - the maximum number of records to delete (only used if > 0)
      maxTimeMs - the maximum time that can be used to purge records
      Returns:
      the number of records that were deleted
    • getUserAuthEvent

      public UserAuthEvent getUserAuthEvent(String sessionId, Portal portal, String ipAddress)
      Returns the last UserAuthEvent for a given sessionID, and ipAddress made within the session timeout for the portal. The security manager for the portal provides the session timeout.
      Parameters:
      sessionId - the sessionId for the module portal
      portal - the module portal
      ipAddress - the request ip address
      Returns:
      the last UserAuthEvent for the query.
      Since:
      5.1.0