public class MailConfigurationServiceImpl extends Object implements MailConfigurationService
| Constructor and Description |
|---|
MailConfigurationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteMailServer()
Delete the current mail server configuration
|
com.atlassian.mail.server.SMTPMailServer |
getMailServer()
Retrieve the current mail server configuration
|
com.atlassian.mail.server.SMTPMailServer |
updateMailServer(String name,
String fromAddress,
String subjectPrefix,
Boolean precedenceBulkHeaderExcluded,
String emailSetting,
String smtpServer,
String smtpPort,
String smtpUsername,
String smtpPassword,
Boolean tlsEnabled,
String jndiLocation)
Update the current mail server configuration
|
@NotNull
public com.atlassian.mail.server.SMTPMailServer getMailServer()
throws UnauthorisedException,
NotFoundException
MailConfigurationServicegetMailServer in interface MailConfigurationServiceUnauthorisedException - if user does not have appropriate permissions (System Administrator)NotFoundException - if no mail server configuration is set@NotNull
public com.atlassian.mail.server.SMTPMailServer updateMailServer(@Nullable
String name,
@Nullable
String fromAddress,
@Nullable
String subjectPrefix,
@Nullable
Boolean precedenceBulkHeaderExcluded,
@Nullable
String emailSetting,
@Nullable
String smtpServer,
@Nullable
String smtpPort,
@Nullable
String smtpUsername,
@Nullable
String smtpPassword,
@Nullable
Boolean tlsEnabled,
@Nullable
String jndiLocation)
throws WebValidationException,
UnauthorisedException
MailConfigurationServiceupdateMailServer in interface MailConfigurationServicefromAddress - must be a valid email addressemailSetting - must be either JNDI or SMTPWebValidationException - if the supplied parameters are invalidUnauthorisedException - if user does not have appropriate permissions (System Administrator)public void deleteMailServer()
throws NotFoundException,
com.atlassian.mail.MailException
MailConfigurationServicedeleteMailServer in interface MailConfigurationServiceNotFoundException - if a mail server is not currently setcom.atlassian.mail.MailException - if there is an error attempting to delete the current mail configurationCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.