public final class UserCreatedEvent extends Object
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 ...
}
}
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
AccountType |
getAccountType() |
@NonNull ApplicationUser |
getUser() |
String |
getUserName() |
int |
hashCode() |
boolean |
isDelegated() |
static UserCreatedEvent |
of(@NonNull ApplicationUser user) |
String |
toString() |
public AccountType getAccountType()
public String getUserName()
public boolean isDelegated()
public static UserCreatedEvent of(@NonNull @NonNull ApplicationUser user)
@NonNull public @NonNull ApplicationUser getUser()
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.