Package com.axemble.vdoc.sdk.system.mail
Interface ISystemMailExtension
- All Known Implementing Classes:
DefaultSystemMailExtension
public interface ISystemMailExtension
Mail extension used to build systems mail
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.mail.internet.MimeMessage
buildLostPasswordMessage
(LostPasswordConfiguration configuration) build lost password messagejakarta.mail.internet.MimeMessage
build new account messagejakarta.mail.internet.MimeMessage
buildUpdatePasswordMessage
(UpdatePasswordConfiguration configuration) build update password messageRetrieve the default email colorRetrieve the default email link colorRetrieve the default email logoRetrieve the default login page URLretrieveLostPasswordLink
(LostPasswordConfiguration configuration) Retrieve the URL for lost passwordRetrieve the URL for uninitialized passwordretrieveUpdatedPasswordPasswordLink
(UpdatePasswordConfiguration configuration) Retrieve the URL for updated password confirmation
-
Method Details
-
buildLostPasswordMessage
jakarta.mail.internet.MimeMessage buildLostPasswordMessage(LostPasswordConfiguration configuration) throws jakarta.mail.MessagingException build lost password message- Parameters:
configuration
-LostPasswordConfiguration
- Returns:
- mime message to send
- Throws:
jakarta.mail.MessagingException
- if there is a problem with mime message
-
buildUpdatePasswordMessage
jakarta.mail.internet.MimeMessage buildUpdatePasswordMessage(UpdatePasswordConfiguration configuration) throws ExternalUserException, NonContactableUserException, jakarta.mail.MessagingException build update password message- Parameters:
configuration
-UpdatePasswordConfiguration
- Returns:
- mime message to send
- Throws:
ExternalUserException
- if user is externalNonContactableUserException
- if user haven't mailjakarta.mail.MessagingException
- if there is a problem with mime message
-
buildUninitializedPasswordMessage
jakarta.mail.internet.MimeMessage buildUninitializedPasswordMessage(UninitializedPasswordConfiguration configuration) throws jakarta.mail.MessagingException, NonContactableUserException build new account message- Parameters:
configuration
-UninitializedPasswordConfiguration
- Returns:
- mime message to send
- Throws:
jakarta.mail.MessagingException
- if there is a problem with mime messageNonContactableUserException
- if user haven't mail
-
retrieveDefaultEmailLogo
Retrieve the default email logo- Parameters:
user
- the current user who will receive a mail- Returns:
- the logo path
-
retrieveDefaultEmailColor
Retrieve the default email color- Parameters:
user
- the current user who will receive a mail- Returns:
- the hexadecimal color code
-
retrieveDefaultEmailLinkColor
Retrieve the default email link color- Parameters:
user
- the current user who will receive a mail- Returns:
- the hexadecimal color code
-
retrieveUninitializedPasswordLink
Retrieve the URL for uninitialized password- Parameters:
configuration
- the configuration- Returns:
- the full link
-
retrieveLostPasswordLink
Retrieve the URL for lost password- Parameters:
configuration
- the configuration- Returns:
- the full link
-
retrieveUpdatedPasswordPasswordLink
Retrieve the URL for updated password confirmation- Parameters:
configuration
- the configuration- Returns:
- the full link
-
retrieveDefaultPlateformeLink
String retrieveDefaultPlateformeLink()Retrieve the default login page URL- Returns:
- the link
-