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 Details

  • Constructor Details

    • EmailPersistence

      public EmailPersistence(Map<String,Object> initArgs, org.springframework.mail.javamail.JavaMailSender mailSender)
    • EmailPersistence

      public EmailPersistence(Map<String,Object> initArgs, InterpolateEngine ie, org.springframework.mail.javamail.JavaMailSender mailSender)
      Creates an instance of a EmailPersistence record class.
      Parameters:
      initArgs - the value for the initArgs record component
      ie - the value for the ie record component
      mailSender - the value for the mailSender record component
  • Method Details

    • persist

      public void persist(@NotNull ArtifactStore.Artifact artifact, @NotNull @NotNull Optional<ArtifactStore.PersistenceReporter> reporter)
      Specified by:
      persist in interface ArtifactStore.PersistenceStrategy
    • 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.
    • initArgs

      public Map<String,Object> initArgs()
      Returns the value of the initArgs record component.
      Returns:
      the value of the initArgs record component
    • ie

      public InterpolateEngine ie()
      Returns the value of the ie record component.
      Returns:
      the value of the ie record component
    • mailSender

      public org.springframework.mail.javamail.JavaMailSender mailSender()
      Returns the value of the mailSender record component.
      Returns:
      the value of the mailSender record component