com.atlassian.confluence.mail
Interface MailAccountManager

All Known Implementing Classes:
DefaultMailAccountManager

public interface MailAccountManager


Method Summary
 MailAccount addMailAccount(Space space, MailAccount mailAccount)
           
 MailAccount getMailAccount(Space space, int accountId)
           
 List getMailAccounts(Space space)
           
 List poll(Space space)
           
 MailPollResult poll(Space space, MailAccount mailAccount)
           
 List pollAllSpaces()
           
 void removeMailAccount(Space space, int accountId)
           
 void updateAccount(Space space, MailAccount mailAccount)
           
 MailPollResult updateAccountStatus(MailAccount mailAccount)
          check whether mail account can reliably retrieve mail.
 

Method Detail

updateAccountStatus

public MailPollResult updateAccountStatus(MailAccount mailAccount)
check whether mail account can reliably retrieve mail. This will perform a check (by connecting to the server and logging in, for example) rather than just trusting the last known status value set on the mail account.

Returns:
true if the server successfully verified its status, false otherwise

poll

public List poll(Space space)

poll

public MailPollResult poll(Space space,
                           MailAccount mailAccount)

getMailAccounts

public List getMailAccounts(Space space)

addMailAccount

public MailAccount addMailAccount(Space space,
                                  MailAccount mailAccount)

removeMailAccount

public void removeMailAccount(Space space,
                              int accountId)

getMailAccount

public MailAccount getMailAccount(Space space,
                                  int accountId)

updateAccount

public void updateAccount(Space space,
                          MailAccount mailAccount)

pollAllSpaces

public List pollAllSpaces()


Confluence is developed by Atlassian.