Package io.meeds.commons.digest.plugin
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 Summary
-
Method Details
-
getPluginIds
- Returns:
- the ids of the notification types this provider builds the lines of
-
buildLine
- Parameters:
item- the waiting notification, ids onlycontext- 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
-