Package org.techbd.util
Record Class ArtifactStore.EmailPersistence
java.lang.Object
java.lang.Record
org.techbd.util.ArtifactStore.EmailPersistence
- All Implemented Interfaces:
ArtifactStore.PersistenceStrategy
- Enclosing class:
ArtifactStore
public static record ArtifactStore.EmailPersistence(Map<String,Object> initArgs, InterpolateEngine ie, org.springframework.mail.javamail.JavaMailSender mailSender)
extends Record
implements ArtifactStore.PersistenceStrategy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.techbd.util.ArtifactStore.PersistenceStrategy
REQUIRED_ARG_ARTIFACT_ID
-
Constructor Summary
ConstructorDescriptionEmailPersistence
(Map<String, Object> initArgs, org.springframework.mail.javamail.JavaMailSender mailSender) EmailPersistence
(Map<String, Object> initArgs, InterpolateEngine ie, org.springframework.mail.javamail.JavaMailSender mailSender) Creates an instance of aEmailPersistence
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.ie()
Returns the value of theie
record component.initArgs()
Returns the value of theinitArgs
record component.org.springframework.mail.javamail.JavaMailSender
Returns the value of themailSender
record component.void
persist
(ArtifactStore.Artifact artifact, @NotNull Optional<ArtifactStore.PersistenceReporter> reporter) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
ARG_FROM
- See Also:
-
ARG_TO
- See Also:
-
ARG_CC
- See Also:
-
ARG_BCC
- See Also:
-
ARG_SUBJECT
- See Also:
-
ARG_BODY
- See Also:
-
ARG_ATTACHMENT_NAME
- See Also:
-
-
Constructor Details
-
EmailPersistence
-
EmailPersistence
public EmailPersistence(Map<String, Object> initArgs, InterpolateEngine ie, org.springframework.mail.javamail.JavaMailSender mailSender) Creates an instance of aEmailPersistence
record class.- Parameters:
initArgs
- the value for theinitArgs
record componentie
- the value for theie
record componentmailSender
- the value for themailSender
record component
-
-
Method Details
-
persist
public void persist(@NotNull ArtifactStore.Artifact artifact, @NotNull @NotNull Optional<ArtifactStore.PersistenceReporter> reporter) - Specified by:
persist
in interfaceArtifactStore.PersistenceStrategy
-
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)
. -
initArgs
Returns the value of theinitArgs
record component.- Returns:
- the value of the
initArgs
record component
-
ie
Returns the value of theie
record component.- Returns:
- the value of the
ie
record component
-
mailSender
public org.springframework.mail.javamail.JavaMailSender mailSender()Returns the value of themailSender
record component.- Returns:
- the value of the
mailSender
record component
-