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(org.ofbiz.core.entity.GenericValue gv)
           
 java.lang.Long create(MailServer mailServer)
           
 void delete(java.lang.Long mailServerId)
           
 PopMailServer getDefaultPopMailServer()
           
 SMTPMailServer getDefaultSMTPMailServer()
           
 MailServer getMailServer(java.lang.Long id)
           
 MailServer getMailServer(java.lang.String name)
           
protected  org.ofbiz.core.entity.GenericValue getMailServerGV(java.lang.Long id)
           
protected  java.util.List getMailServersByType(java.lang.String serverType)
           
protected  java.util.Map getMapFromColumns(MailServer mailServer)
           
 java.util.List getPopMailServers()
           
 java.util.List getServerNames()
           
 java.util.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(java.lang.Long id)
                         throws MailException
Specified by:
getMailServer in interface MailServerManager
Specified by:
getMailServer in class AbstractMailServerManager
Throws:
MailException

getMailServer

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

getServerNames

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

getSmtpMailServers

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

getPopMailServers

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

create

public java.lang.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(java.lang.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 java.util.List getMailServersByType(java.lang.String serverType)
                                       throws MailException
Throws:
MailException

getMailServerGV

protected org.ofbiz.core.entity.GenericValue getMailServerGV(java.lang.Long id)
                                                      throws MailException
Throws:
MailException

constructMailServer

protected MailServer constructMailServer(org.ofbiz.core.entity.GenericValue gv)

getMapFromColumns

protected java.util.Map getMapFromColumns(MailServer mailServer)
                                   throws MailException
Throws:
MailException


Copyright © 2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.