com.atlassian.confluence.mail.archive.content
Class DefaultMailContentManager

java.lang.Object
  extended by com.atlassian.confluence.mail.archive.content.DefaultMailContentManager
All Implemented Interfaces:
MailContentManager

public class DefaultMailContentManager
extends java.lang.Object
implements MailContentManager


Constructor Summary
DefaultMailContentManager(CustomContentManager customContentManager, AttachmentManager attachmentManager)
           
 
Method Summary
 int findMailTotal(Space space)
           
 Mail getById(long id)
           
 Mail getFirstMailAfter(Mail mail)
           
 Mail getFirstMailBefore(Mail mail)
           
 java.lang.Iterable<Mail> getSpaceMail(Space space, int startIndex, int maxResults)
           
 void removeMailInSpace(Space space)
           
 boolean spaceHasMail(Space space)
           
 Mail storeIncomingMail(Space space, javax.mail.internet.MimeMessage mimeMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMailContentManager

public DefaultMailContentManager(CustomContentManager customContentManager,
                                 AttachmentManager attachmentManager)
Method Detail

getById

public Mail getById(long id)
Specified by:
getById in interface MailContentManager

getFirstMailAfter

public Mail getFirstMailAfter(Mail mail)
Specified by:
getFirstMailAfter in interface MailContentManager

getFirstMailBefore

public Mail getFirstMailBefore(Mail mail)
Specified by:
getFirstMailBefore in interface MailContentManager

findMailTotal

public int findMailTotal(Space space)
Specified by:
findMailTotal in interface MailContentManager

spaceHasMail

public boolean spaceHasMail(Space space)
Specified by:
spaceHasMail in interface MailContentManager

getSpaceMail

public java.lang.Iterable<Mail> getSpaceMail(Space space,
                                             int startIndex,
                                             int maxResults)
Specified by:
getSpaceMail in interface MailContentManager

storeIncomingMail

public Mail storeIncomingMail(Space space,
                              javax.mail.internet.MimeMessage mimeMessage)
                       throws ConfluenceException
Specified by:
storeIncomingMail in interface MailContentManager
Throws:
ConfluenceException

removeMailInSpace

public void removeMailInSpace(Space space)
Specified by:
removeMailInSpace in interface MailContentManager


Copyright © 2003-2014 Atlassian. All Rights Reserved.