org.keycloak.examples.providers.events

## Class MemEventQuery

- java.lang.Object
- - org.keycloak.examples.providers.events.MemEventQuery

- All Implemented Interfaces:
    EventQuery

      public class MemEventQuery
      extends Object
      implements EventQuery

  Author:
    Stian Thorgersen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MemEventQuery(List<Event> events)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `EventQuery` | `client(String clientId)`
    `EventQuery` | `firstResult(int result)`
    `List<Event>` | `getResultList()`
    `EventQuery` | `ipAddress(String ipAddress)`
    `EventQuery` | `maxResults(int results)`
    `EventQuery` | `realm(String realmId)`
    `EventQuery` | `type(EventType... types)`
    `EventQuery` | `user(String userId)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MemEventQuery

          public MemEventQuery(List<Event> events)

  - ### Method Detail

    - #### type

          public EventQuery type(EventType... types)

      Specified by:
        `type` in interface `EventQuery`

    - #### realm

          public EventQuery realm(String realmId)

      Specified by:
        `realm` in interface `EventQuery`

    - #### client

          public EventQuery client(String clientId)

      Specified by:
        `client` in interface `EventQuery`

    - #### user

          public EventQuery user(String userId)

      Specified by:
        `user` in interface `EventQuery`

    - #### ipAddress

          public EventQuery ipAddress(String ipAddress)

      Specified by:
        `ipAddress` in interface `EventQuery`

    - #### firstResult

          public EventQuery firstResult(int result)

      Specified by:
        `firstResult` in interface `EventQuery`

    - #### maxResults

          public EventQuery maxResults(int results)

      Specified by:
        `maxResults` in interface `EventQuery`

    - #### getResultList

          public List<Event> getResultList()

      Specified by:
        `getResultList` in interface `EventQuery`

Copyright © 2014. All Rights Reserved.