Enum Class SmtpType
- All Implemented Interfaces:
Serializable,Comparable<SmtpType>,Constable
Defines the valid SMTP configuration attributes for email server settings.
This enumeration is typically used as the source for the 'SMTP' master data,
containing all necessary parameters to configure email notifications.
- Since:
- 1.0
- Author:
- Bonitasoft
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe HTML template for email body content.The default sender email address for outgoing messages.The password for SMTP server authentication.The SMTP server hostname or IP address used for sending emails.The port number used to connect to the SMTP server.Indicates whether SSL encryption is enabled for the SMTP connection.Indicates whether STARTTLS encryption is enabled for the SMTP connection.Indicates whether to trust the server certificate without validation.The username for SMTP server authentication. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves all SMTP configuration attributes as a read-only Map where the key is the technical key and the value is the description.Retrieves all technical keys as a read-only List of Strings.Returns the description of this SMTP configuration attribute.getKey()Returns the unique string key associated with this SMTP attribute.static booleanChecks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.static SmtpTypeReturns the enum constant of this class with the specified name.static SmtpType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SMTP_HOST
The SMTP server hostname or IP address used for sending emails. -
SMTP_PORT
The port number used to connect to the SMTP server. -
FROM
The default sender email address for outgoing messages. -
SSL
Indicates whether SSL encryption is enabled for the SMTP connection. -
STARTTLS
Indicates whether STARTTLS encryption is enabled for the SMTP connection. -
TRUST_CERTIFICATE
Indicates whether to trust the server certificate without validation. -
USERNAME
The username for SMTP server authentication. -
PASSWORD
The password for SMTP server authentication. -
EMAILTEMPLATE
The HTML template for email body content.This type stores the email template that wraps the actual email content. The template must contain a
{{content}}placeholder where the email body will be inserted. Example template:<p style="text-align: center;"> <img src="logo-url" style="width: 300px;"> </p> <p>{{content}}</p>
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getKey
Returns the unique string key associated with this SMTP attribute.- Returns:
- The SMTP attribute key (e.g., "SmtpHost").
-
getDescription
Returns the description of this SMTP configuration attribute.- Returns:
- The description.
-
isValid
Checks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.- Parameters:
input- The string to validate.- Returns:
trueif the string is a valid enum constant,falseotherwise.
-
getAllData
Retrieves all SMTP configuration attributes as a read-only Map where the key is the technical key and the value is the description.- Returns:
- A map containing all SMTP attribute data (Key -> Description).
-
getAllKeysList
Retrieves all technical keys as a read-only List of Strings.- Returns:
- A list containing all SMTP attribute keys.
-