Class DigestRecipientResolver

java.lang.Object
io.meeds.commons.digest.service.DigestRecipientResolver

@Component public class DigestRecipientResolver extends Object
What the digest email needs to know about its recipient and about the platform, gathered from the existing notification helpers so that the digest emails come from the same sender and use the same links as the instant ones.
  • Constructor Details

    • DigestRecipientResolver

      public DigestRecipientResolver()
  • Method Details

    • getEmail

      public String getEmail(String username)
      Returns:
      the recipient in the "Full Name<email>" form the mail queue expects, null when the user has no email
    • getFirstName

      public String getFirstName(String username)
    • getLocale

      public Locale getLocale(String username)
    • getSender

      public String getSender()
      The platform sender, the same as for the instant notification emails
    • getPlatformName

      public String getPlatformName()
    • getPlatformUrl

      public String getPlatformUrl()
      The platform itself (/portal), for the platform name and the "+ N more" links: a direct link, not the notification redirection which lands on the home page of the default site (EXO-90020)
    • getSettingsUrl

      public String getSettingsUrl(String username)
      The user notification settings page, the same link as the instant emails footer