com.atlassian.mail.server.managers
Class XMLMailServerManager

java.lang.Object
  extended by com.atlassian.mail.server.managers.AbstractMailServerManager
      extended by com.atlassian.mail.server.managers.XMLMailServerManager
All Implemented Interfaces:
MailServerManager

public class XMLMailServerManager
extends AbstractMailServerManager


Field Summary
 
Fields inherited from interface com.atlassian.mail.server.MailServerManager
SERVER_TYPES
 
Constructor Summary
XMLMailServerManager()
           
 
Method Summary
 Long create(MailServer mailServer)
           
 void delete(Long mailServerId)
           
 String getConfigFile()
           
protected  InputStream getConfigurationInputStream(String resource)
           
 PopMailServer getDefaultPopMailServer()
           
 SMTPMailServer getDefaultSMTPMailServer()
           
 MailServer getMailServer(Long id)
           
 MailServer getMailServer(String name)
           
 List getPopMailServers()
           
 List getServerNames()
           
 List getSmtpMailServers()
           
 void init(Map params)
           
 void update(MailServer mailServer)
           
 
Methods inherited from class com.atlassian.mail.server.managers.AbstractMailServerManager
getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMailServerManager

public XMLMailServerManager()
Method Detail

init

public void init(Map params)
Specified by:
init in interface MailServerManager
Overrides:
init in class AbstractMailServerManager

getConfigurationInputStream

protected InputStream getConfigurationInputStream(String resource)

getConfigFile

public String getConfigFile()

getMailServer

public MailServer getMailServer(Long id)
Specified by:
getMailServer in interface MailServerManager
Specified by:
getMailServer in class AbstractMailServerManager

getMailServer

public MailServer getMailServer(String name)
                         throws MailException
Specified by:
getMailServer in interface MailServerManager
Specified by:
getMailServer in class AbstractMailServerManager
Throws:
MailException

create

public Long create(MailServer mailServer)
            throws MailException
Specified by:
create in interface MailServerManager
Specified by:
create in class AbstractMailServerManager
Throws:
MailException

update

public void update(MailServer mailServer)
            throws MailException
Specified by:
update in interface MailServerManager
Specified by:
update in class AbstractMailServerManager
Throws:
MailException

delete

public void delete(Long mailServerId)
            throws MailException
Specified by:
delete in interface MailServerManager
Specified by:
delete in class AbstractMailServerManager
Throws:
MailException

getServerNames

public List getServerNames()
                    throws MailException
Specified by:
getServerNames in interface MailServerManager
Specified by:
getServerNames in class AbstractMailServerManager
Throws:
MailException

getSmtpMailServers

public List getSmtpMailServers()
                        throws MailException
Specified by:
getSmtpMailServers in interface MailServerManager
Specified by:
getSmtpMailServers in class AbstractMailServerManager
Throws:
MailException

getPopMailServers

public List getPopMailServers()
                       throws MailException
Specified by:
getPopMailServers in interface MailServerManager
Specified by:
getPopMailServers in class AbstractMailServerManager
Throws:
MailException

getDefaultSMTPMailServer

public SMTPMailServer getDefaultSMTPMailServer()
                                        throws MailException
Specified by:
getDefaultSMTPMailServer in interface MailServerManager
Specified by:
getDefaultSMTPMailServer in class AbstractMailServerManager
Throws:
MailException

getDefaultPopMailServer

public PopMailServer getDefaultPopMailServer()
                                      throws MailException
Specified by:
getDefaultPopMailServer in interface MailServerManager
Specified by:
getDefaultPopMailServer in class AbstractMailServerManager
Throws:
MailException


Atlassian Mail is developed by Atlassian Software Systems.