public interface MailServerManager
| Modifier and Type | Field and Description |
|---|---|
static String[] |
SERVER_TYPES |
| Modifier and Type | Method and Description |
|---|---|
Long |
create(MailServer mailServer) |
void |
delete(Long mailServerId) |
PopMailServer |
getDefaultPopMailServer() |
SMTPMailServer |
getDefaultSMTPMailServer() |
MailServer |
getMailServer(Long id) |
MailServer |
getMailServer(String name) |
List<PopMailServer> |
getPopMailServers()
Gets a list of all the configured POP mail servers.
|
List<String> |
getServerNames() |
javax.mail.Session |
getSession(Properties props,
javax.mail.Authenticator auth) |
List<SMTPMailServer> |
getSmtpMailServers()
Gets a list of all the configured SMTP mail servers.
|
void |
init(Map params) |
boolean |
isDefaultSMTPMailServerDefined()
Whether a "default" SMTP Mail Server has been defined.
|
void |
setMailServerConfigurationHandler(MailServerConfigurationHandler mailServerConfigurationHandler)
Implementations of this interface are supposed to call registered here MailServerConfigurationHandler
immediately after they construct MailServer objects.
|
void |
update(MailServer mailServer) |
static final String[] SERVER_TYPES
@Nullable MailServer getMailServer(Long id) throws MailException
MailException@Nullable MailServer getMailServer(String name) throws MailException
MailExceptionLong create(MailServer mailServer) throws MailException
MailExceptionvoid update(MailServer mailServer) throws MailException
MailExceptionvoid delete(Long mailServerId) throws MailException
MailExceptionList<String> getServerNames() throws MailException
MailExceptionList<SMTPMailServer> getSmtpMailServers()
List<PopMailServer> getPopMailServers()
@Nullable SMTPMailServer getDefaultSMTPMailServer()
boolean isDefaultSMTPMailServerDefined()
@Nullable PopMailServer getDefaultPopMailServer()
javax.mail.Session getSession(Properties props, @Nullable javax.mail.Authenticator auth) throws MailException
MailExceptionvoid init(Map params)
void setMailServerConfigurationHandler(@Nullable MailServerConfigurationHandler mailServerConfigurationHandler)
ConfigLoader.ConfigLoader(String)mailServerConfigurationHandler - callback called upon creation of MailServer objectsCopyright © 2018 Atlassian. All rights reserved.