org.keycloak.events

## Interface EventQuery

- All Known Implementing Classes:
    JpaEventQuery

      public interface EventQuery

  Author:
    Stian Thorgersen

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `EventQuery` | `client(String clientId)`
    `EventQuery` | `firstResult(int result)`
    `EventQuery` | `fromDate(Date fromDate)`
    `default List<Event>` | `getResultList()` Deprecated. Use `getResultStream` instead.
    `Stream<Event>` | `getResultStream()` Returns requested results that match given criteria as a stream.
    `EventQuery` | `ipAddress(String ipAddress)`
    `EventQuery` | `maxResults(int results)`
    `EventQuery` | `realm(String realmId)`
    `EventQuery` | `toDate(Date toDate)`
    `EventQuery` | `type(EventType... types)`
    `EventQuery` | `user(String userId)`

- - ### Method Detail

    - #### type

          EventQuery type(EventType... types)

    - #### realm

          EventQuery realm(String realmId)

    - #### client

          EventQuery client(String clientId)

    - #### user

          EventQuery user(String userId)

    - #### fromDate

          EventQuery fromDate(Date fromDate)

    - #### toDate

          EventQuery toDate(Date toDate)

    - #### ipAddress

          EventQuery ipAddress(String ipAddress)

    - #### firstResult

          EventQuery firstResult(int result)

    - #### maxResults

          EventQuery maxResults(int results)

    - #### getResultList

          @Deprecated
          default List<Event> getResultList()

      Deprecated. Use `getResultStream` instead.

    - #### getResultStream

          Stream<Event> getResultStream()

      Returns requested results that match given criteria as a stream.
      Returns:
        Stream of events

Copyright © 2021 JBoss by Red Hat. All rights reserved.