Package org.keycloak.events
Interface EventStoreProvider
- All Superinterfaces:
EventListenerProvider
,Provider
- All Known Implementing Classes:
JpaEventStoreProvider
,MapEventStoreProvider
- Author:
- Stian Thorgersen
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Deprecated.Unused method.void
clear
(RealmModel realm) Removes all auth events for the realm from this store provider.void
clear
(RealmModel realm, long olderThan) Removes all auth events for the realm that are older thanolderThan
from this store provider.void
Deprecated.Unused method.void
clearAdmin
(RealmModel realm) Removes all auth events for the realm from this store provider.void
clearAdmin
(RealmModel realm, long olderThan) Removes all auth events for the realm that are older thanolderThan
from this store provider.void
Deprecated.This method is problem from the performance perspective.Returns an object representing admin event query of typeAdminEventQuery
.Returns an object representing auth event query of typeEventQuery
.Methods inherited from interface org.keycloak.events.EventListenerProvider
onEvent, onEvent
-
Method Details
-
createQuery
EventQuery createQuery()Returns an object representing auth event query of typeEventQuery
. The object is used for collecting requested properties of auth events (e.g. realm, operation, resourceType time boundaries, etc.) and contains theEventQuery.getResultStream()
method that returns all objects from this store provider that have given properties.- Returns:
- a query object
-
createAdminQuery
AdminEventQuery createAdminQuery()Returns an object representing admin event query of typeAdminEventQuery
. The object is used for collecting requested properties of admin events (e.g. realm, operation, resourceType time boundaries, etc.) and contains theAdminEventQuery.getResultStream()
method that returns all objects from this store provider that have given properties.- Returns:
- a query object
-
clear
void clear()Deprecated.Unused method. Currently, used only in the testsuiteRemoves all auth events from this store provider. -
clear
Removes all auth events for the realm from this store provider.- Parameters:
realm
- the realm
-
clear
Removes all auth events for the realm that are older thanolderThan
from this store provider.- Parameters:
realm
- the realmolderThan
- point in time in milliseconds
-
clearExpiredEvents
void clearExpiredEvents()Deprecated.This method is problem from the performance perspective. Some storages can provide better way for doing this (e.g. entry lifespan in the Infinispan server, etc.). We need to leave solving event expiration to each storage provider separately using expiration field on entity level.Clears all expired events in all realms -
clearAdmin
void clearAdmin()Deprecated.Unused method. Currently, used only in the testsuiteRemoves all admin events from this store provider. -
clearAdmin
Removes all auth events for the realm from this store provider.- Parameters:
realm
- the realm
-
clearAdmin
Removes all auth events for the realm that are older thanolderThan
from this store provider.- Parameters:
realm
- the realmolderThan
- point in time in milliseconds
-