Record Class MailSettings

java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.mail.MailSettings
All Implemented Interfaces:
Serializable

public record MailSettings(String senderKey, @Nullable org.joda.time.LocalDate expiryDate, @Nullable String contactCategoryKey, @Nullable String languageKey, Map<String,MailSettings.LocalizedMailSettings> localized, MailSettings.FormProperties formProperties) extends Record implements Serializable
See Also:
  • Constructor Details

    • MailSettings

      public MailSettings(String senderKey, @Nullable @Nullable org.joda.time.LocalDate expiryDate, @Nullable @Nullable String contactCategoryKey, @Nullable @Nullable String languageKey, Map<String,MailSettings.LocalizedMailSettings> localized, MailSettings.FormProperties formProperties)
      Creates an instance of a MailSettings record class.
      Parameters:
      senderKey - the value for the senderKey record component
      expiryDate - the value for the expiryDate record component
      contactCategoryKey - the value for the contactCategoryKey record component
      languageKey - the value for the languageKey record component
      localized - the value for the localized record component
      formProperties - the value for the formProperties record component
  • Method Details

    • getHtmlText

      public String getHtmlText(String locale)
    • getPlainText

      public String getPlainText(String locale)
    • getSubject

      public String getSubject(String locale)
    • isTest

      public boolean isTest()
    • getCc

      public String getCc()
    • getBcc

      public String getBcc()
    • getReplyTo

      public String getReplyTo()
    • getSingleCc

      public String getSingleCc()
    • getBccRecipients

      public List<String> getBccRecipients()
    • getCcRecipient

      public List<String> getCcRecipient()
    • getAltRecipient

      public String getAltRecipient()
    • getAltRecipientUser

      public String getAltRecipientUser()
    • getSingleccRecipient

      public String[] getSingleccRecipient()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • senderKey

      public String senderKey()
      Returns the value of the senderKey record component.
      Returns:
      the value of the senderKey record component
    • expiryDate

      @Nullable public @Nullable org.joda.time.LocalDate expiryDate()
      Returns the value of the expiryDate record component.
      Returns:
      the value of the expiryDate record component
    • contactCategoryKey

      @Nullable public @Nullable String contactCategoryKey()
      Returns the value of the contactCategoryKey record component.
      Returns:
      the value of the contactCategoryKey record component
    • languageKey

      @Nullable public @Nullable String languageKey()
      Returns the value of the languageKey record component.
      Returns:
      the value of the languageKey record component
    • localized

      Returns the value of the localized record component.
      Returns:
      the value of the localized record component
    • formProperties

      public MailSettings.FormProperties formProperties()
      Returns the value of the formProperties record component.
      Returns:
      the value of the formProperties record component