UserCreatedEvent

SecMan fires this event when a new user entity just got persisted.

Users may subscribe to this event in order to apply business logic to the newly created user. eg. add default roles

@Component
public class Listener {
    @EventListener(UserCreatedEvent.class)
    public void listenOn(UserCreatedEvent event) {
        // business logic ...
    }
}

API

UserCreatedEvent.java
class UserCreatedEvent {
  AccountType getAccountType()
  String getUserName()
  boolean isDelegated()
}