Class MailAccount

java.lang.Object
de.bytestore.hostinger.security.entity.mail.MailAccount

@Entity(name="secure_MailAccount") public class MailAccount extends Object
The MailAccount class represents the configuration details for a mail account. It defines both the sending and receiving server settings, along with additional properties for authentication and connection. This entity includes metadata annotations for persistence, locking, and audit-related fields, such as creation and modification timestamps. Mail templates related to the account can also be associated via a one-to-many relationship.
  • Constructor Details

    • MailAccount

      public MailAccount()
  • Method Details

    • getReceiveType

      public MailReceiverType getReceiveType()
      Retrieves the mail receiver type for the mail account.
      Returns:
      the MailReceiverType corresponding to the receiveType property of this mail account
    • setReceiveType

      public void setReceiveType(MailReceiverType receivertype)
      Sets the mail receiver type for the mail account.
      Parameters:
      receivertype - the MailReceiverType to set, it should not be null.
    • getSendType

      public MailSenderType getSendType()
      Retrieves the type of mail sender based on the sendType property.
      Returns:
      an instance of MailSenderType corresponding to the sendType value.
    • setSendType

      public void setSendType(MailSenderType senderType)
      Sets the type of mail sender.
      Parameters:
      senderType - the type of the mail sender to be set. Must not be null.
    • getInstanceName

      public String getInstanceName(io.jmix.core.MetadataTools metadataTools)
    • getReceiveEncryption

      public MailServerEncryption getReceiveEncryption()
    • setReceiveEncryption

      public void setReceiveEncryption(MailServerEncryption receiveEncryption)
    • getSendEncryption

      public MailServerEncryption getSendEncryption()
    • setSendEncryption

      public void setSendEncryption(MailServerEncryption sendEncryption)