Package org.keycloak.models.map.events
Class MapAuthEventQuery
- java.lang.Object
-
- org.keycloak.models.map.events.MapAuthEventQuery
-
- All Implemented Interfaces:
EventQuery
public abstract class MapAuthEventQuery extends Object implements EventQuery
-
-
Constructor Summary
Constructors Constructor Description MapAuthEventQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete 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 timeprotected abstract Stream<Event>
read(QueryParameters<Event> queryParameters)
EventQuery
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
-
-
-
Field Detail
-
realmId
protected String realmId
-
-
Method Detail
-
type
public EventQuery type(EventType... types)
Description copied from interface:EventQuery
Search events with given types- Specified by:
type
in interfaceEventQuery
- 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 interfaceEventQuery
- 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 interfaceEventQuery
- 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 interfaceEventQuery
- 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 thanfromDate
- Specified by:
fromDate
in interfaceEventQuery
- 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 thantoDate
- Specified by:
toDate
in interfaceEventQuery
- 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 interfaceEventQuery
- 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 interfaceEventQuery
- 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 interfaceEventQuery
- 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 interfaceEventQuery
- Returns:
this
for method chaining
-
orderByAscTime
public EventQuery orderByAscTime()
Description copied from interface:EventQuery
Order the result by ascending time- Specified by:
orderByAscTime
in interfaceEventQuery
- 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 interfaceEventQuery
- Returns:
- Stream of events. Never returns
null
.
-
read
protected abstract Stream<Event> read(QueryParameters<Event> queryParameters)
-
-