Class RenderedNotification

java.lang.Object
io.jmix.bpm.notification.RenderedNotification

public class RenderedNotification extends Object
Result of rendering a notification's subject and body for one recipient, together with the effective content type (which, for a templated notification, comes from the template rather than the definition).
  • Field Details

    • subject

      protected final String subject
    • body

      protected final @Nullable String body
    • contentType

      protected final @Nullable String contentType
  • Constructor Details

    • RenderedNotification

      public RenderedNotification(String subject, @Nullable String body, @Nullable String contentType)
  • Method Details

    • getSubject

      public String getSubject()
      Returns the rendered subject.
      Returns:
      the rendered subject
    • getBody

      public @Nullable String getBody()
      Returns the rendered body.
      Returns:
      the rendered body, or null if there is none
    • getContentType

      public @Nullable String getContentType()
      Returns the effective content type to send with.
      Returns:
      the content type (e.g. "html" / "plain"), or null to use the default