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<MailAccount> getMailAccounts(Space space)
           
 List<MailPollResult> 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

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

List<MailPollResult> poll(Space space)

poll

MailPollResult poll(Space space,
                    MailAccount mailAccount)

getMailAccounts

List<MailAccount> getMailAccounts(Space space)

addMailAccount

MailAccount addMailAccount(Space space,
                           MailAccount mailAccount)

removeMailAccount

void removeMailAccount(Space space,
                       int accountId)

getMailAccount

MailAccount getMailAccount(Space space,
                           int accountId)

updateAccount

void updateAccount(Space space,
                   MailAccount mailAccount)

pollAllSpaces

List pollAllSpaces()


Copyright © 2003-2011 Atlassian. All Rights Reserved.