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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
-
Constructor Summary
ConstructorDescriptionMailSettings
(String senderKey, @Nullable org.joda.time.LocalDate expiryDate, @Nullable String contactCategoryKey, @Nullable String languageKey, Map<String, MailSettings.LocalizedMailSettings> localized, MailSettings.FormProperties formProperties) Creates an instance of aMailSettings
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the value of thecontactCategoryKey
record component.final boolean
Indicates whether some other object is "equal to" this one.@Nullable org.joda.time.LocalDate
Returns the value of theexpiryDate
record component.Returns the value of theformProperties
record component.getBcc()
getCc()
getHtmlText
(String locale) getPlainText
(String locale) String[]
getSubject
(String locale) final int
hashCode()
Returns a hash code value for this object.boolean
isTest()
@Nullable String
Returns the value of thelanguageKey
record component.Returns the value of thelocalized
record component.Returns the value of thesenderKey
record component.final String
toString()
Returns a string representation of this record class.
-
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 aMailSettings
record class.- Parameters:
senderKey
- the value for thesenderKey
record componentexpiryDate
- the value for theexpiryDate
record componentcontactCategoryKey
- the value for thecontactCategoryKey
record componentlanguageKey
- the value for thelanguageKey
record componentlocalized
- the value for thelocalized
record componentformProperties
- the value for theformProperties
record component
-
-
Method Details
-
getHtmlText
-
getPlainText
-
getSubject
-
isTest
public boolean isTest() -
getCc
-
getBcc
-
getReplyTo
-
getSingleCc
-
getBccRecipients
-
getCcRecipient
-
getAltRecipient
-
getAltRecipientUser
-
getSingleccRecipient
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
senderKey
Returns the value of thesenderKey
record component.- Returns:
- the value of the
senderKey
record component
-
expiryDate
@Nullable public @Nullable org.joda.time.LocalDate expiryDate()Returns the value of theexpiryDate
record component.- Returns:
- the value of the
expiryDate
record component
-
contactCategoryKey
Returns the value of thecontactCategoryKey
record component.- Returns:
- the value of the
contactCategoryKey
record component
-
languageKey
Returns the value of thelanguageKey
record component.- Returns:
- the value of the
languageKey
record component
-
localized
Returns the value of thelocalized
record component.- Returns:
- the value of the
localized
record component
-
formProperties
Returns the value of theformProperties
record component.- Returns:
- the value of the
formProperties
record component
-