Package org.keycloak.events
Interface EventQuery
-
- All Known Implementing Classes:
JpaEventQuery
,MapAuthEventQuery
public interface EventQuery
- Author:
- Stian Thorgersen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EventQuery
client(String clientId)
Search events for only one clientEventQuery
firstResult(int firstResult)
Index of the first result to return.EventQuery
fromDate(Date fromDate)
Search events that are newer thanfromDate
Stream<Event>
getResultStream()
Returns requested results that match given criteria as a stream.EventQuery
ipAddress(String ipAddress)
Search events from ipAddressEventQuery
maxResults(int max)
Maximum number of results to return.EventQuery
orderByAscTime()
Order the result by ascending timeEventQuery
orderByDescTime()
Order the result by descending timeEventQuery
realm(String realmId)
Search events within realmEventQuery
toDate(Date toDate)
Search events that are older thantoDate
EventQuery
type(EventType... types)
Search events with given typesEventQuery
user(String userId)
Search events for only one user
-
-
-
Method Detail
-
type
EventQuery type(EventType... types)
Search events with given types- Parameters:
types
- requested types- Returns:
- this object for method chaining
-
realm
EventQuery realm(String realmId)
Search events within realm- Parameters:
realmId
- id of realm- Returns:
- this object for method chaining
-
client
EventQuery client(String clientId)
Search events for only one client- Parameters:
clientId
- id of client- Returns:
- this object for method chaining
-
user
EventQuery user(String userId)
Search events for only one user- Parameters:
userId
- id of user- Returns:
- this object for method chaining
-
fromDate
EventQuery fromDate(Date fromDate)
Search events that are newer thanfromDate
- Parameters:
fromDate
- date- Returns:
- this object for method chaining
-
toDate
EventQuery toDate(Date toDate)
Search events that are older thantoDate
- Parameters:
toDate
- date- Returns:
- this object for method chaining
-
ipAddress
EventQuery ipAddress(String ipAddress)
Search events from ipAddress- Parameters:
ipAddress
- ip- Returns:
- this object for method chaining
-
firstResult
EventQuery firstResult(int firstResult)
Index of the first result to return.- Parameters:
firstResult
- the index. Ignored if negative.- Returns:
- this object for method chaining
-
maxResults
EventQuery maxResults(int max)
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
-
-