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:
com.atlassian.mail.server.MailServerManager

public class OFBizMailServerManager
extends com.atlassian.mail.server.managers.AbstractMailServerManager

This was taken from atlassian-mail and placed into its now rightful home of JIRA.

Since:
4.3

Field Summary
 
Fields inherited from interface com.atlassian.mail.server.MailServerManager
SERVER_TYPES
 
Constructor Summary
OFBizMailServerManager()
           
 
Method Summary
protected  com.atlassian.mail.server.MailServer constructMailServer(org.ofbiz.core.entity.GenericValue gv)
           
 Long create(com.atlassian.mail.server.MailServer mailServer)
           
 void delete(Long mailServerId)
           
 com.atlassian.mail.server.PopMailServer getDefaultPopMailServer()
           
 com.atlassian.mail.server.SMTPMailServer getDefaultSMTPMailServer()
           
 com.atlassian.mail.server.MailServer getMailServer(Long id)
           
 com.atlassian.mail.server.MailServer getMailServer(String name)
           
protected  org.ofbiz.core.entity.GenericValue getMailServerGV(Long id)
           
protected  List getMailServersByType(String serverType)
           
protected  Map getMapFromColumns(com.atlassian.mail.server.MailServer mailServer)
           
 List getPopMailServers()
           
 List getServerNames()
           
 List getSmtpMailServers()
           
 void update(com.atlassian.mail.server.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 com.atlassian.mail.server.MailServer getMailServer(Long id)
                                                   throws com.atlassian.mail.MailException
Specified by:
getMailServer in interface com.atlassian.mail.server.MailServerManager
Specified by:
getMailServer in class com.atlassian.mail.server.managers.AbstractMailServerManager
Throws:
com.atlassian.mail.MailException

getMailServer

public com.atlassian.mail.server.MailServer getMailServer(String name)
                                                   throws com.atlassian.mail.MailException
Specified by:
getMailServer in interface com.atlassian.mail.server.MailServerManager
Specified by:
getMailServer in class com.atlassian.mail.server.managers.AbstractMailServerManager
Throws:
com.atlassian.mail.MailException

getServerNames

public List getServerNames()
                    throws com.atlassian.mail.MailException
Specified by:
getServerNames in interface com.atlassian.mail.server.MailServerManager
Specified by:
getServerNames in class com.atlassian.mail.server.managers.AbstractMailServerManager
Throws:
com.atlassian.mail.MailException

getSmtpMailServers

public List getSmtpMailServers()
                        throws com.atlassian.mail.MailException
Specified by:
getSmtpMailServers in interface com.atlassian.mail.server.MailServerManager
Specified by:
getSmtpMailServers in class com.atlassian.mail.server.managers.AbstractMailServerManager
Throws:
com.atlassian.mail.MailException

getPopMailServers

public List getPopMailServers()
                       throws com.atlassian.mail.MailException
Specified by:
getPopMailServers in interface com.atlassian.mail.server.MailServerManager
Specified by:
getPopMailServers in class com.atlassian.mail.server.managers.AbstractMailServerManager
Throws:
com.atlassian.mail.MailException

create

public Long create(com.atlassian.mail.server.MailServer mailServer)
            throws com.atlassian.mail.MailException
Specified by:
create in interface com.atlassian.mail.server.MailServerManager
Specified by:
create in class com.atlassian.mail.server.managers.AbstractMailServerManager
Throws:
com.atlassian.mail.MailException

update

public void update(com.atlassian.mail.server.MailServer mailServer)
            throws com.atlassian.mail.MailException
Specified by:
update in interface com.atlassian.mail.server.MailServerManager
Specified by:
update in class com.atlassian.mail.server.managers.AbstractMailServerManager
Throws:
com.atlassian.mail.MailException

delete

public void delete(Long mailServerId)
            throws com.atlassian.mail.MailException
Specified by:
delete in interface com.atlassian.mail.server.MailServerManager
Specified by:
delete in class com.atlassian.mail.server.managers.AbstractMailServerManager
Throws:
com.atlassian.mail.MailException

getDefaultSMTPMailServer

public com.atlassian.mail.server.SMTPMailServer getDefaultSMTPMailServer()
Specified by:
getDefaultSMTPMailServer in interface com.atlassian.mail.server.MailServerManager
Specified by:
getDefaultSMTPMailServer in class com.atlassian.mail.server.managers.AbstractMailServerManager

getDefaultPopMailServer

public com.atlassian.mail.server.PopMailServer getDefaultPopMailServer()
Specified by:
getDefaultPopMailServer in interface com.atlassian.mail.server.MailServerManager
Specified by:
getDefaultPopMailServer in class com.atlassian.mail.server.managers.AbstractMailServerManager

getMailServersByType

protected List getMailServersByType(String serverType)
                             throws com.atlassian.mail.MailException
Throws:
com.atlassian.mail.MailException

getMailServerGV

protected org.ofbiz.core.entity.GenericValue getMailServerGV(Long id)
                                                      throws com.atlassian.mail.MailException
Throws:
com.atlassian.mail.MailException

constructMailServer

protected com.atlassian.mail.server.MailServer constructMailServer(org.ofbiz.core.entity.GenericValue gv)

getMapFromColumns

protected Map getMapFromColumns(com.atlassian.mail.server.MailServer mailServer)
                         throws com.atlassian.mail.MailException
Throws:
com.atlassian.mail.MailException


Copyright © 2002-2011 Atlassian. All Rights Reserved.