use of org.keycloak.email.freemarker.beans.EventBean in project keycloak by keycloak.
the class FreeMarkerEmailTemplateProvider method sendEvent.
@Override
public void sendEvent(Event event) throws EmailException {
Map<String, Object> attributes = new HashMap<>();
attributes.put("user", new ProfileBean(user));
attributes.put("event", new EventBean(event));
send(toCamelCase(event.getType()) + "Subject", "event-" + event.getType().toString().toLowerCase() + ".ftl", attributes);
}
Aggregations