Package com.atlassian.crowd.manager.mail
Class MailManagerImpl
java.lang.Object
com.atlassian.crowd.manager.mail.MailManagerImpl
- All Implemented Interfaces:
MailConfigurationService,MailManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMailManagerImpl(InternalPropertyManager propertyManager, com.atlassian.sal.api.ApplicationProperties applicationProperties, ClusterService clusterService, Clock clock, I18nHelper i18nHelper, MailSendManager sendManager, AuthenticatedUserProvider authenticatedUserProvider, EmailAddressValidator emailValidator) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected StringremovePasswordFromLogs(String logs) voidsaveConfiguration(MailConfiguration mailConfiguration) voidsendEmail(EmailMessage messageToSend) Set<? extends EmailMessage>sendEmails(Collection<? extends EmailMessage> messagesToSend) voidsendHtmlEmail(javax.mail.internet.InternetAddress emailAddress, String subject, String body, String plainText) voidsendPlainTextEmail(javax.mail.internet.InternetAddress emailAddress, String subject, String body) voidsendPlainTextEmail(javax.mail.internet.InternetAddress emailAddress, String subject, String body, Map<String, String> headers, Map<String, javax.activation.DataSource> attachments) sendTestMail(com.atlassian.crowd.util.mail.SMTPServer smtpServer, javax.mail.internet.InternetAddress emailAddress) validateConfiguration(MailConfiguration mailServerEntity)
-
Field Details
-
SANITISED_PASSWORD
- See Also:
-
LINE_BEFORE_PASSWORD_IN_LOGS
- See Also:
-
-
Constructor Details
-
MailManagerImpl
public MailManagerImpl(InternalPropertyManager propertyManager, com.atlassian.sal.api.ApplicationProperties applicationProperties, ClusterService clusterService, Clock clock, I18nHelper i18nHelper, MailSendManager sendManager, AuthenticatedUserProvider authenticatedUserProvider, EmailAddressValidator emailValidator)
-
-
Method Details
-
sendHtmlEmail
public void sendHtmlEmail(javax.mail.internet.InternetAddress emailAddress, String subject, String body, String plainText) throws MailSendException - Specified by:
sendHtmlEmailin interfaceMailManager- Throws:
MailSendException
-
sendPlainTextEmail
public void sendPlainTextEmail(javax.mail.internet.InternetAddress emailAddress, String subject, String body) throws MailSendException - Specified by:
sendPlainTextEmailin interfaceMailManager- Throws:
MailSendException
-
sendPlainTextEmail
public void sendPlainTextEmail(javax.mail.internet.InternetAddress emailAddress, String subject, String body, Map<String, String> headers, Map<String, throws MailSendExceptionjavax.activation.DataSource> attachments) - Specified by:
sendPlainTextEmailin interfaceMailManager- Throws:
MailSendException
-
sendTestMail
public SendTestMailResult sendTestMail(com.atlassian.crowd.util.mail.SMTPServer smtpServer, javax.mail.internet.InternetAddress emailAddress) throws MailSendException - Specified by:
sendTestMailin interfaceMailManager- Throws:
MailSendException
-
sendEmails
public Set<? extends EmailMessage> sendEmails(Collection<? extends EmailMessage> messagesToSend) throws MailSendException - Specified by:
sendEmailsin interfaceMailManager- Throws:
MailSendException
-
sendEmail
- Specified by:
sendEmailin interfaceMailManager- Throws:
MailSendException
-
validateConfiguration
- Specified by:
validateConfigurationin interfaceMailManager
-
saveConfiguration
- Specified by:
saveConfigurationin interfaceMailConfigurationService- Specified by:
saveConfigurationin interfaceMailManager
-
getMailConfiguration
- Specified by:
getMailConfigurationin interfaceMailConfigurationService- Specified by:
getMailConfigurationin interfaceMailManager
-
removePasswordFromLogs
-
isConfigured
public boolean isConfigured()- Specified by:
isConfiguredin interfaceMailConfigurationService- Specified by:
isConfiguredin interfaceMailManager
-