UserCreatedEvent (record)
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
record UserCreatedEvent {
ApplicationUser getUser() (1)
AccountType getAccountType()
String getUserName()
boolean isDelegated()
}
1 | getUser()
|