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 Details

  • Constructor Details

    • DefaultUserEmailResolver

      public DefaultUserEmailResolver()
  • Method Details

    • resolveEmail

      public String resolveEmail(org.springframework.security.core.userdetails.UserDetails user)
      Description copied from interface: UserEmailResolver
      Resolves email for provided user.
      Specified by:
      resolveEmail in interface UserEmailResolver
      Parameters:
      user - user
      Returns:
      email value or null if no email found