Interface DigestLineProvider

All Known Implementing Classes:
DigestLinePlugin

public interface DigestLineProvider
Builds the digest email lines of the notification types an addon owns. The digest stores ids only, so at send time it asks the addon for each waiting item: the addon loads the object by its id and returns the line, or nothing when the object doesn't exist any more, in which case the line is left out of the email and not counted.
  • Method Details

    • getPluginIds

      List<String> getPluginIds()
      Returns:
      the ids of the notification types this provider builds the lines of
    • buildLine

      DigestLine buildLine(DigestItem item, DigestLineContext context)
      Parameters:
      item - the waiting notification, ids only
      context - the recipient, his language and his timezone
      Returns:
      the line to put in the email, or null when the object it is about doesn't exist any more