Package org.keycloak.events
Class EventBuilder
java.lang.Object
org.keycloak.events.EventBuilder
- Author:
- Stian Thorgersen
-
Constructor Summary
ConstructorsConstructorDescriptionEventBuilder(RealmModel realm, KeycloakSession session) EventBuilder(RealmModel realm, KeycloakSession session, ClientConnection clientConnection) -
Method Summary
Modifier and TypeMethodDescriptionclient(ClientModel client) clone()detail(String key, Collection<String> values) Add event detail where strings from the input Collection are filtered not to containnulland then joined using::character.Add event detail where strings from the input Stream are filtered not to containnulland then joined using::character.voidgetEvent()realm(RealmModel realm) removeDetail(String key) session(UserSessionModel session) storeImmediately(boolean forcedValue) Sets the time when to store the event.voidsuccess()
-
Constructor Details
-
EventBuilder
-
EventBuilder
-
-
Method Details
-
realm
-
client
-
client
-
user
-
user
-
session
-
session
-
ipAddress
-
event
-
detail
-
detail
Add event detail where strings from the input Collection are filtered not to containnulland then joined using::character.- Parameters:
key- of the detailvalues- , can be null- Returns:
- builder for chaining
-
detail
Add event detail where strings from the input Stream are filtered not to containnulland then joined using::character.- Parameters:
key- of the detailvalues- , can be null- Returns:
- builder for chaining
-
storeImmediately
Sets the time when to store the event. By default, events marked as success (success()) are stored upon commit of the session's transaction while the failures (error(java.lang.String)are stored and propagated to the event listeners immediately into the event store.- Parameters:
forcedValue- Iftrue, the event is stored in the event store immediately. Iffalse, the event is stored upon commit.- Returns:
-
removeDetail
-
getEvent
-
success
public void success() -
error
-
clone
-