Package org.keycloak.events.jpa
Class JpaEventQuery
- java.lang.Object
-
- org.keycloak.events.jpa.JpaEventQuery
-
- All Implemented Interfaces:
EventQuery
public class JpaEventQuery extends Object implements EventQuery
- Author:
- Stian Thorgersen
-
-
Constructor Summary
Constructors Constructor Description JpaEventQuery(javax.persistence.EntityManager em)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventQueryclient(String clientId)EventQueryfirstResult(int firstResult)EventQueryfromDate(Date fromDate)Stream<Event>getResultStream()EventQueryipAddress(String ipAddress)EventQuerymaxResults(int maxResults)EventQueryrealm(String realmId)EventQuerytoDate(Date toDate)EventQuerytype(EventType... types)EventQueryuser(String userId)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.events.EventQuery
getResultList
-
-
-
-
Method Detail
-
type
public EventQuery type(EventType... types)
- Specified by:
typein interfaceEventQuery
-
realm
public EventQuery realm(String realmId)
- Specified by:
realmin interfaceEventQuery
-
client
public EventQuery client(String clientId)
- Specified by:
clientin interfaceEventQuery
-
user
public EventQuery user(String userId)
- Specified by:
userin interfaceEventQuery
-
fromDate
public EventQuery fromDate(Date fromDate)
- Specified by:
fromDatein interfaceEventQuery
-
toDate
public EventQuery toDate(Date toDate)
- Specified by:
toDatein interfaceEventQuery
-
ipAddress
public EventQuery ipAddress(String ipAddress)
- Specified by:
ipAddressin interfaceEventQuery
-
firstResult
public EventQuery firstResult(int firstResult)
- Specified by:
firstResultin interfaceEventQuery
-
maxResults
public EventQuery maxResults(int maxResults)
- Specified by:
maxResultsin interfaceEventQuery
-
getResultStream
public Stream<Event> getResultStream()
- Specified by:
getResultStreamin interfaceEventQuery
-
-