Object
se.curity.identityserver.sdk.data.email.Email

public final class Email extends Object
This is a container for the data model used for constructing emails.
Since:
2.1.0
  • Constructor Details

    • Email

      public Email(Map<String,Object> model)
      Constructs a new Email with the given model.
      Parameters:
      model - the data model of the Email
    • Email

      public Email(Map<String,Object> model, @Nullable Locale preferredLocale)
      Constructs a new Email with the given model and with specific locale. If available, this overrides whatever locale the system had selected. The locale is used when rendering the templates in the #message directive.
      Parameters:
      model - the data model of the Email
      preferredLocale - the preferred locale for the email
      Since:
      2.2.0
    • Email

      public Email(Map<String,Object> model, @Nullable String subject)
      Constructs a new Email with the given model and subject.
      Parameters:
      model - the data model of this email
      subject - the subject of this email
      Since:
      5.2.0
    • Email

      public Email(Map<String,Object> model, @Nullable String subject, @Nullable Locale preferredLocale)
      Constructs a new Email with the given model, subject, and with specific locale. If available, this overrides whatever locale the system had selected. The locale is used when rendering the templates in the #message directive.
      Parameters:
      model - the data model of this email
      subject - the subject of this email
      preferredLocale - the preferred locale for this email
      Since:
      5.2.0
  • Method Details

    • getModel

      public Map<String,Object> getModel()
      Returns the data model of the email.
      Returns:
      the data model of the Email
    • getSubject

      public String getSubject()
      Returns the subject of this email.
      Returns:
      the subject of this email
      Since:
      5.2.0
    • getPreferredLocale

      @Nullable public @Nullable Locale getPreferredLocale()
      The preferred locale to use when rendering this email If null, the default locale of the system, or context should be used.
      Returns:
      The preferred locale to use when rendering this email
      Since:
      2.2.0
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
      Since:
      2.2.0
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Since:
      2.2.0