com.atlassian.mail.server.managers
Class OFBizMailServerManager

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

public class OFBizMailServerManager
extends AbstractMailServerManager


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

Constructor Detail

OFBizMailServerManager

public OFBizMailServerManager()
Method Detail

getMailServer

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

getMailServer

public MailServer getMailServer(String name)
                         throws MailException
Specified by:
getMailServer in interface MailServerManager
Specified by:
getMailServer 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

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

getDefaultSMTPMailServer

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

getDefaultPopMailServer

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

getMailServersByType

protected List getMailServersByType(String serverType)
                             throws MailException
Throws:
MailException

getMailServerGV

protected GenericValue getMailServerGV(Long id)
                                throws MailException
Throws:
MailException

constructMailServer

protected MailServer constructMailServer(GenericValue gv)

getMapFromColumns

protected Map getMapFromColumns(MailServer mailServer)
                         throws MailException
Throws:
MailException


Atlassian Mail is developed by Atlassian Software Systems.