Class DigestLine

java.lang.Object
io.meeds.commons.digest.model.DigestLine

public class DigestLine extends Object
One line of a digest email, built by the addon owning the notification type. It holds text only, never HTML: the wording is a translation key of the addon notification bundle, its placeholders {0}, {1}... are replaced by the given arguments in order (plain replacement, the same convention as the other notification bundles: no quoting rule, apostrophes stay single), and the layout is the job of the email template. The arguments are escaped by the digest before being put in the email, the addon gives them raw.
  • Constructor Details

    • DigestLine

      public DigestLine()
  • Method Details

    • of

      public static DigestLine of(String labelKey, String... args)
      Parameters:
      labelKey - the wording key
      args - the values of its placeholders, in order; a null value is an empty placeholder, never an error
      Returns:
      the line, without link yet: see withUrl(String)
    • withUrl

      public DigestLine withUrl(String url)