Package org.keycloak.models.map.events
Class MapAdminEventQuery
java.lang.Object
org.keycloak.models.map.events.MapAdminEventQuery
- All Implemented Interfaces:
AdminEventQuery
-
Field Summary
-
Constructor Summary
-
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 paginationSearch by events after the specified timeExecutes 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 timeprotected abstract Stream<AdminEvent>
read
(QueryParameters<AdminEvent> queryParameters) Search by resource realmresourcePath
(String resourcePath) Search by resource path.resourceType
(ResourceType... resourceTypes) Search byResourceType
.Search by events before the specified time
-
Field Details
-
realmId
-
-
Constructor Details
-
MapAdminEventQuery
public MapAdminEventQuery()
-
-
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
-
authRealm
Description copied from interface:AdminEventQuery
Search by authentication realm- Specified by:
authRealm
in interfaceAdminEventQuery
- Parameters:
realmId
- realm id- Returns:
- Associated
AdminEventQuery
for method chaining
-
authClient
Description copied from interface:AdminEventQuery
Search by authenticated client- Specified by:
authClient
in interfaceAdminEventQuery
- Parameters:
clientId
- client uuid- Returns:
- Associated
AdminEventQuery
for method chaining
-
authUser
Description copied from interface:AdminEventQuery
Search by authenticated user- Specified by:
authUser
in interfaceAdminEventQuery
- Parameters:
userId
- 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
-
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
-
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:
first
- first result to return- Returns:
this
for method chaining
-
maxResults
Description copied from interface:AdminEventQuery
Use for pagination- Specified by:
maxResults
in interfaceAdminEventQuery
- Parameters:
max
- 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
.
-
read
-