Package org.keycloak.events
Interface EventQuery
- All Known Implementing Classes:
JpaEventQuery
,MapAuthEventQuery
public interface EventQuery
- Author:
- Stian Thorgersen
-
Method Summary
Modifier and TypeMethodDescriptionSearch events for only one clientfirstResult
(int firstResult) Index of the first result to return.Search events that are newer thanfromDate
Returns requested results that match given criteria as a stream.Search events from ipAddressmaxResults
(int max) Maximum number of results to return.Order the result by ascending timeOrder the result by descending timeSearch events within realmSearch events that are older thantoDate
Search events with given typesSearch events for only one user
-
Method Details
-
type
Search events with given types- Parameters:
types
- requested types- Returns:
- this object for method chaining
-
realm
Search events within realm- Parameters:
realmId
- id of realm- Returns:
- this object for method chaining
-
client
Search events for only one client- Parameters:
clientId
- id of client- Returns:
- this object for method chaining
-
user
Search events for only one user- Parameters:
userId
- id of user- Returns:
- this object for method chaining
-
fromDate
Search events that are newer thanfromDate
- Parameters:
fromDate
- date- Returns:
- this object for method chaining
-
toDate
Search events that are older thantoDate
- Parameters:
toDate
- date- Returns:
- this object for method chaining
-
ipAddress
Search events from ipAddress- Parameters:
ipAddress
- ip- Returns:
- this object for method chaining
-
firstResult
Index of the first result to return.- Parameters:
firstResult
- the index. Ignored if negative.- Returns:
- this object for method chaining
-
maxResults
Maximum number of results to return.- Parameters:
max
- a number. Ignored if negative.- Returns:
- this object for method chaining
-
orderByDescTime
EventQuery orderByDescTime()Order the result by descending time- Returns:
this
for method chaining
-
orderByAscTime
EventQuery orderByAscTime()Order the result by ascending time- Returns:
this
for method chaining
-
getResultStream
Returns requested results that match given criteria as a stream.- Returns:
- Stream of events. Never returns
null
.
-