Class DefaultUserEmailResolver
java.lang.Object
io.jmix.notifications.channel.impl.DefaultUserEmailResolver
- All Implemented Interfaces:
UserEmailResolver
@Component("ntf_DefaultUserEmailResolver")
@Order
public class DefaultUserEmailResolver
extends Object
implements UserEmailResolver
Default implementation of
UserEmailResolver
.
Tries to resolve email as a value of user property specified in application property 'jmix.notifications.userEmailPropertyName' ('email' by default).
-
Field Summary
Modifier and TypeFieldDescriptionprotected Metadata
protected NotificationsProperties
protected UserRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveEmail
(org.springframework.security.core.userdetails.UserDetails user) Resolves email for provided user.
-
Field Details
-
userRepository
-
metadata
-
notificationsProperties
-
-
Constructor Details
-
DefaultUserEmailResolver
public DefaultUserEmailResolver()
-
-
Method Details
-
resolveEmail
Description copied from interface:UserEmailResolver
Resolves email for provided user.- Specified by:
resolveEmail
in interfaceUserEmailResolver
- Parameters:
user
- user- Returns:
- email value or null if no email found
-