Class ConfluenceMailServerManager

  • All Implemented Interfaces:
    com.atlassian.mail.server.MailServerManager

    public class ConfluenceMailServerManager
    extends com.atlassian.mail.server.managers.AbstractMailServerManager
    Confluence's implementation to manage MailServers CRUD. It also allows MailServers to be retrieved by id and name.
    • Constructor Detail

      • ConfluenceMailServerManager

        public ConfluenceMailServerManager()
    • Method Detail

      • getMailServer

        public com.atlassian.mail.server.MailServer getMailServer​(Long id)
        Specified by:
        getMailServer in interface com.atlassian.mail.server.MailServerManager
        Specified by:
        getMailServer in class com.atlassian.mail.server.managers.AbstractMailServerManager
      • getMailServer

        public com.atlassian.mail.server.MailServer getMailServer​(String name)
        Specified by:
        getMailServer in interface com.atlassian.mail.server.MailServerManager
        Specified by:
        getMailServer in class com.atlassian.mail.server.managers.AbstractMailServerManager
      • getServerNames

        public List<String> getServerNames()
        Specified by:
        getServerNames in interface com.atlassian.mail.server.MailServerManager
        Specified by:
        getServerNames in class com.atlassian.mail.server.managers.AbstractMailServerManager
      • getSmtpMailServers

        public List<com.atlassian.mail.server.SMTPMailServer> getSmtpMailServers()
        Specified by:
        getSmtpMailServers in interface com.atlassian.mail.server.MailServerManager
        Specified by:
        getSmtpMailServers in class com.atlassian.mail.server.managers.AbstractMailServerManager
      • getPopMailServers

        public List<com.atlassian.mail.server.PopMailServer> getPopMailServers()
        Specified by:
        getPopMailServers in interface com.atlassian.mail.server.MailServerManager
        Specified by:
        getPopMailServers in class com.atlassian.mail.server.managers.AbstractMailServerManager
      • getImapMailServers

        public List<com.atlassian.mail.server.ImapMailServer> getImapMailServers()
      • 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
      • create

        public Long create​(com.atlassian.mail.server.MailServer mailServer)
        Specified by:
        create in interface com.atlassian.mail.server.MailServerManager
        Specified by:
        create in class com.atlassian.mail.server.managers.AbstractMailServerManager
      • update

        public void update​(com.atlassian.mail.server.MailServer mailServer)
        Specified by:
        update in interface com.atlassian.mail.server.MailServerManager
        Specified by:
        update in class com.atlassian.mail.server.managers.AbstractMailServerManager
      • delete

        public void delete​(Long mailServerId)
        Specified by:
        delete in interface com.atlassian.mail.server.MailServerManager
        Specified by:
        delete in class com.atlassian.mail.server.managers.AbstractMailServerManager
      • deleteAll

        public void deleteAll()
      • setBandanaManager

        public void setBandanaManager​(com.atlassian.bandana.BandanaManager bandanaManager)
      • setEventPublisher

        public void setEventPublisher​(com.atlassian.event.api.EventPublisher eventPublisher)