Package org.keycloak.events.jpa
Class JpaEventQuery
java.lang.Object
org.keycloak.events.jpa.JpaEventQuery
- All Implemented Interfaces:
EventQuery
- Author:
- Stian Thorgersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSearch events for only one clientfirstResult(int firstResult) Index of the first result to return.fromDate(long fromDate) Search events that are on or afterfromDateDeprecated.Returns requested results that match given criteria as a stream.Search events from ipAddressmaxResults(int maxResults) Maximum number of results to return.Order the result by ascending timeOrder the result by descending timeSearch events within realmtoDate(long toDate) Search events that are on or beforetoDateSearch events that are on or beforetoDateSearch events with given typesSearch events for only one user
-
Constructor Details
-
JpaEventQuery
public JpaEventQuery(jakarta.persistence.EntityManager em)
-
-
Method Details
-
type
Description copied from interface:EventQuerySearch events with given types- Specified by:
typein interfaceEventQuery- Parameters:
types- requested types- Returns:
- this object for method chaining
-
realm
Description copied from interface:EventQuerySearch events within realm- Specified by:
realmin interfaceEventQuery- Parameters:
realmId- id of realm- Returns:
- this object for method chaining
-
client
Description copied from interface:EventQuerySearch events for only one client- Specified by:
clientin interfaceEventQuery- Parameters:
clientId- id of client- Returns:
- this object for method chaining
-
user
Description copied from interface:EventQuerySearch events for only one user- Specified by:
userin interfaceEventQuery- Parameters:
userId- id of user- Returns:
- this object for method chaining
-
fromDate
Deprecated.Description copied from interface:EventQuerySearch events that are on or afterfromDate- Specified by:
fromDatein interfaceEventQuery- Parameters:
fromDate- date- Returns:
- this object for method chaining
-
fromDate
Description copied from interface:EventQuerySearch events that are on or afterfromDate- Specified by:
fromDatein interfaceEventQuery- Parameters:
fromDate- from timestamp- Returns:
- this object for method chaining
-
toDate
Description copied from interface:EventQuerySearch events that are on or beforetoDate- Specified by:
toDatein interfaceEventQuery- Parameters:
toDate- date- Returns:
- this object for method chaining
-
toDate
Description copied from interface:EventQuerySearch events that are on or beforetoDate- Specified by:
toDatein interfaceEventQuery- Parameters:
toDate- to timestamp- Returns:
- this object for method chaining
-
ipAddress
Description copied from interface:EventQuerySearch events from ipAddress- Specified by:
ipAddressin interfaceEventQuery- Parameters:
ipAddress- ip- Returns:
- this object for method chaining
-
firstResult
Description copied from interface:EventQueryIndex of the first result to return.- Specified by:
firstResultin interfaceEventQuery- Parameters:
firstResult- the index. Ignored if negative.- Returns:
- this object for method chaining
-
maxResults
Description copied from interface:EventQueryMaximum number of results to return.- Specified by:
maxResultsin interfaceEventQuery- Parameters:
maxResults- a number. Ignored if negative.- Returns:
- this object for method chaining
-
orderByDescTime
Description copied from interface:EventQueryOrder the result by descending time- Specified by:
orderByDescTimein interfaceEventQuery- Returns:
thisfor method chaining
-
orderByAscTime
Description copied from interface:EventQueryOrder the result by ascending time- Specified by:
orderByAscTimein interfaceEventQuery- Returns:
thisfor method chaining
-
getResultStream
Description copied from interface:EventQueryReturns requested results that match given criteria as a stream.- Specified by:
getResultStreamin interfaceEventQuery- Returns:
- Stream of events. Never returns
null.
-