Package org.keycloak.events.jpa
Class JpaAdminEventQuery
java.lang.Object
org.keycloak.events.jpa.JpaAdminEventQuery
- All Implemented Interfaces:
AdminEventQuery
- Author:
- Giriraj Sharma
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthClient
(String authClientId) Search by authenticated clientauthIpAddress
(String ipAddress) Search by request ip addressSearch by authentication realmSearch by authenticated userfirstResult
(int firstResult) Used for paginationSearch by events after the specified timeExecutes the query and returns the results as a stream.maxResults
(int maxResults) Use for paginationoperation
(OperationType... operations) Search by operation typeOrder the result by ascending timeOrder the result by descending timeSearch by resource realmresourcePath
(String resourcePath) Search by resource path.resourceType
(ResourceType... resourceTypes) Search byResourceType
.Search by events before the specified time
-
Constructor Details
-
JpaAdminEventQuery
public JpaAdminEventQuery(jakarta.persistence.EntityManager em)
-
-
Method Details
-
realm
Description copied from interface:AdminEventQuery
Search by resource realm- Specified by:
realm
in interfaceAdminEventQuery
- Parameters:
realmId
- realm id- Returns:
- Associated
AdminEventQuery
for method chaining
-
operation
Description copied from interface:AdminEventQuery
Search by operation type- Specified by:
operation
in interfaceAdminEventQuery
- Returns:
this
for method chaining
-
resourceType
Description copied from interface:AdminEventQuery
Search byResourceType
.- Specified by:
resourceType
in interfaceAdminEventQuery
- Returns:
this
for method chaining
-
authRealm
Description copied from interface:AdminEventQuery
Search by authentication realm- Specified by:
authRealm
in interfaceAdminEventQuery
- Parameters:
authRealmId
- realm id- Returns:
- Associated
AdminEventQuery
for method chaining
-
authClient
Description copied from interface:AdminEventQuery
Search by authenticated client- Specified by:
authClient
in interfaceAdminEventQuery
- Parameters:
authClientId
- client uuid- Returns:
- Associated
AdminEventQuery
for method chaining
-
authUser
Description copied from interface:AdminEventQuery
Search by authenticated user- Specified by:
authUser
in interfaceAdminEventQuery
- Parameters:
authUserId
- user uuid- Returns:
- Associated
AdminEventQuery
for method chaining
-
authIpAddress
Description copied from interface:AdminEventQuery
Search by request ip address- Specified by:
authIpAddress
in interfaceAdminEventQuery
- Returns:
- Associated
AdminEventQuery
for method chaining
-
resourcePath
Description copied from interface:AdminEventQuery
Search by resource path. Supports wildcard*
. For example:- */master - matches 'realms/master'
- realms/master/*/00d4b16f - matches 'realms/master/clients/00d4b16f'
- realms/master/* - matches anything under 'realms/master'
- Specified by:
resourcePath
in interfaceAdminEventQuery
- Returns:
this
for method chaining
-
fromTime
Description copied from interface:AdminEventQuery
Search by events after the specified time- Specified by:
fromTime
in interfaceAdminEventQuery
- Parameters:
fromTime
- from date- Returns:
this
for method chaining
-
toTime
Description copied from interface:AdminEventQuery
Search by events before the specified time- Specified by:
toTime
in interfaceAdminEventQuery
- Parameters:
toTime
- to date- Returns:
this
for method chaining
-
firstResult
Description copied from interface:AdminEventQuery
Used for pagination- Specified by:
firstResult
in interfaceAdminEventQuery
- Parameters:
firstResult
- first result to return- Returns:
this
for method chaining
-
maxResults
Description copied from interface:AdminEventQuery
Use for pagination- Specified by:
maxResults
in interfaceAdminEventQuery
- Parameters:
maxResults
- the maximum results to return- Returns:
this
for method chaining
-
orderByDescTime
Description copied from interface:AdminEventQuery
Order the result by descending time- Specified by:
orderByDescTime
in interfaceAdminEventQuery
- Returns:
this
for method chaining
-
orderByAscTime
Description copied from interface:AdminEventQuery
Order the result by ascending time- Specified by:
orderByAscTime
in interfaceAdminEventQuery
- Returns:
this
for method chaining
-
getResultStream
Description copied from interface:AdminEventQuery
Executes the query and returns the results as a stream.- Specified by:
getResultStream
in interfaceAdminEventQuery
- Returns:
- Stream of admin events. Never returns
null
.
-