Class MailAccount
java.lang.Object
de.bytestore.hostinger.security.entity.mail.MailAccount
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInstanceName(io.jmix.core.MetadataTools metadataTools) Retrieves the mail receiver type for the mail account.Retrieves the type of mail sender based on the sendType property.voidsetReceiveEncryption(MailServerEncryption receiveEncryption) voidsetReceiveType(MailReceiverType receivertype) Sets the mail receiver type for the mail account.voidsetSendEncryption(MailServerEncryption sendEncryption) voidsetSendType(MailSenderType senderType) Sets the type of mail sender.
-
Constructor Details
-
MailAccount
public MailAccount()
-
-
Method Details
-
getReceiveType
Retrieves the mail receiver type for the mail account.- Returns:
- the MailReceiverType corresponding to the receiveType property of this mail account
-
setReceiveType
Sets the mail receiver type for the mail account.- Parameters:
receivertype- the MailReceiverType to set, it should not be null.
-
getSendType
Retrieves the type of mail sender based on the sendType property.- Returns:
- an instance of MailSenderType corresponding to the sendType value.
-
setSendType
Sets the type of mail sender.- Parameters:
senderType- the type of the mail sender to be set. Must not be null.
-
getInstanceName
-
getReceiveEncryption
-
setReceiveEncryption
-
getSendEncryption
-
setSendEncryption
-