Class MapAuthEventQuery

java.lang.Object
org.keycloak.models.map.events.MapAuthEventQuery
All Implemented Interfaces:
EventQuery

public abstract class MapAuthEventQuery extends Object implements EventQuery
  • Field Details

    • realmId

      protected String realmId
  • Constructor Details

    • MapAuthEventQuery

      public MapAuthEventQuery()
  • Method Details

    • type

      public EventQuery type(EventType... types)
      Description copied from interface: EventQuery
      Search events with given types
      Specified by:
      type in interface EventQuery
      Parameters:
      types - requested types
      Returns:
      this object for method chaining
    • realm

      public EventQuery realm(String realmId)
      Description copied from interface: EventQuery
      Search events within realm
      Specified by:
      realm in interface EventQuery
      Parameters:
      realmId - id of realm
      Returns:
      this object for method chaining
    • client

      public EventQuery client(String clientId)
      Description copied from interface: EventQuery
      Search events for only one client
      Specified by:
      client in interface EventQuery
      Parameters:
      clientId - id of client
      Returns:
      this object for method chaining
    • user

      public EventQuery user(String userId)
      Description copied from interface: EventQuery
      Search events for only one user
      Specified by:
      user in interface EventQuery
      Parameters:
      userId - id of user
      Returns:
      this object for method chaining
    • fromDate

      public EventQuery fromDate(Date fromDate)
      Description copied from interface: EventQuery
      Search events that are newer than fromDate
      Specified by:
      fromDate in interface EventQuery
      Parameters:
      fromDate - date
      Returns:
      this object for method chaining
    • toDate

      public EventQuery toDate(Date toDate)
      Description copied from interface: EventQuery
      Search events that are older than toDate
      Specified by:
      toDate in interface EventQuery
      Parameters:
      toDate - date
      Returns:
      this object for method chaining
    • ipAddress

      public EventQuery ipAddress(String ipAddress)
      Description copied from interface: EventQuery
      Search events from ipAddress
      Specified by:
      ipAddress in interface EventQuery
      Parameters:
      ipAddress - ip
      Returns:
      this object for method chaining
    • firstResult

      public EventQuery firstResult(int firstResult)
      Description copied from interface: EventQuery
      Index of the first result to return.
      Specified by:
      firstResult in interface EventQuery
      Parameters:
      firstResult - the index. Ignored if negative.
      Returns:
      this object for method chaining
    • maxResults

      public EventQuery maxResults(int max)
      Description copied from interface: EventQuery
      Maximum number of results to return.
      Specified by:
      maxResults in interface EventQuery
      Parameters:
      max - a number. Ignored if negative.
      Returns:
      this object for method chaining
    • orderByDescTime

      public EventQuery orderByDescTime()
      Description copied from interface: EventQuery
      Order the result by descending time
      Specified by:
      orderByDescTime in interface EventQuery
      Returns:
      this for method chaining
    • orderByAscTime

      public EventQuery orderByAscTime()
      Description copied from interface: EventQuery
      Order the result by ascending time
      Specified by:
      orderByAscTime in interface EventQuery
      Returns:
      this for method chaining
    • getResultStream

      public Stream<Event> getResultStream()
      Description copied from interface: EventQuery
      Returns requested results that match given criteria as a stream.
      Specified by:
      getResultStream in interface EventQuery
      Returns:
      Stream of events. Never returns null.
    • read

      protected abstract Stream<Event> read(QueryParameters<Event> queryParameters)