Package org.keycloak.events.admin
Interface AdminEventQuery
- All Known Implementing Classes:
JpaAdminEventQuery
public interface AdminEventQuery
- Author:
- Stian Thorgersen
-
Method Summary
Modifier and TypeMethodDescriptionauthClient(String clientId) Search by authenticated clientauthIpAddress(String ipAddress) Search by request ip addressSearch by authentication realmSearch by authenticated userfirstResult(int first) Used for paginationfromTime(long fromTime) Search by events on or after the specified timestampDeprecated.Executes the query and returns the results as a stream.maxResults(int max) 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.toTime(long toTime) Search by events on or before the specified timestampDeprecated.
-
Method Details
-
realm
Search by resource realm- Parameters:
realmId- realm id- Returns:
- Associated
AdminEventQueryfor method chaining
-
authRealm
Search by authentication realm- Parameters:
realmId- realm id- Returns:
- Associated
AdminEventQueryfor method chaining
-
authClient
Search by authenticated client- Parameters:
clientId- client uuid- Returns:
- Associated
AdminEventQueryfor method chaining
-
authUser
Search by authenticated user- Parameters:
userId- user uuid- Returns:
- Associated
AdminEventQueryfor method chaining
-
authIpAddress
Search by request ip address- Parameters:
ipAddress-- Returns:
- Associated
AdminEventQueryfor method chaining
-
operation
Search by operation type- Parameters:
operations-- Returns:
thisfor method chaining
-
resourceType
Search byResourceType.- Parameters:
resourceTypes-- Returns:
thisfor method chaining
-
resourcePath
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'
- Parameters:
resourcePath-- Returns:
thisfor method chaining
-
fromTime
Deprecated.Search by events on or after the specified time- Parameters:
fromTime- from date- Returns:
thisfor method chaining
-
fromTime
Search by events on or after the specified timestamp- Parameters:
fromTime- from timestamp- Returns:
thisfor method chaining
-
toTime
Deprecated.Search by events on or before the specified time- Parameters:
toTime- to date- Returns:
thisfor method chaining
-
toTime
Search by events on or before the specified timestamp- Parameters:
toTime- to timestamp- Returns:
thisfor method chaining
-
firstResult
Used for pagination- Parameters:
first- first result to return- Returns:
thisfor method chaining
-
maxResults
Use for pagination- Parameters:
max- the maximum results to return- Returns:
thisfor method chaining
-
orderByDescTime
AdminEventQuery orderByDescTime()Order the result by descending time- Returns:
thisfor method chaining
-
orderByAscTime
AdminEventQuery orderByAscTime()Order the result by ascending time- Returns:
thisfor method chaining
-
getResultStream
Stream<AdminEvent> getResultStream()Executes the query and returns the results as a stream.- Returns:
- Stream of admin events. Never returns
null.
-