Class UserAuthEventService


public class UserAuthEventService extends CayenneService
Provides methods related to UserAuthEvent instances.
Since:
4.3.1
See Also:
  • Field Details

    • LOG_NAME_USER_AUTH_EVENT

      protected static final String LOG_NAME_USER_AUTH_EVENT
      The name of the user auth event logger
      See Also:
  • Constructor Details

    • UserAuthEventService

      public UserAuthEventService()
  • Method Details

    • recordUserAuthEvent

      public void recordUserAuthEvent(UserAccount userAccount, Portal portal, String type, Date timestamp, jakarta.servlet.http.HttpServletRequest request, String sessionId)
      Record a user authentication event. This method performs a database commit.
      Parameters:
      userAccount - the user (required)
      portal - the portal that the event relates to (required)
      type - the event type (one of UserAuthEvent.EVENT_TYPES)
      timestamp - the time of the event (required)
      request - the HTTP servlet request (optional)
      sessionId - the HTTP session ID (optional)
      Since:
      4.3.1