#16161 implement an EventBuilder constructor which can be called from scheduled tasks
This commit is contained in:
parent
780cb815dc
commit
4b0562da38
1 changed files with 5 additions and 1 deletions
|
@ -48,6 +48,11 @@ public class EventBuilder {
|
|||
private Event event;
|
||||
|
||||
public EventBuilder(RealmModel realm, KeycloakSession session, ClientConnection clientConnection) {
|
||||
this(realm, session);
|
||||
ipAddress(clientConnection.getRemoteAddr());
|
||||
}
|
||||
|
||||
public EventBuilder(RealmModel realm, KeycloakSession session) {
|
||||
this.realm = realm;
|
||||
|
||||
event = new Event();
|
||||
|
@ -76,7 +81,6 @@ public class EventBuilder {
|
|||
.collect(Collectors.toList());
|
||||
|
||||
realm(realm);
|
||||
ipAddress(clientConnection.getRemoteAddr());
|
||||
}
|
||||
|
||||
private EventBuilder(EventStoreProvider store, List<EventListenerProvider> listeners, RealmModel realm, Event event) {
|
||||
|
|
Loading…
Reference in a new issue