|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MailContentManager
Field Summary |
---|
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager |
---|
ITERATE_ALL |
Method Summary | |
---|---|
int |
findMailTotal(Space space)
|
Mail |
getFirstMailAfter(java.lang.String spaceKey,
long mailId)
|
Mail |
getFirstMailBefore(java.lang.String spaceKey,
long mailId)
|
java.util.List |
getMail(Space space,
boolean currentOnly)
|
Mail |
getMailById(long id)
Get a mail by its database id. |
Mail |
getMailByMessageId(java.lang.String messageId)
Get a mail by its message-id. |
java.util.List |
getMailsByMessageId(java.lang.String messageId)
Get all mails with the matching message-id. |
java.util.List |
getSpaceMail(int firstResult,
int maxResults,
java.lang.String spaceKey)
|
java.util.Iterator |
getSpaceMailIterator(java.lang.String spaceKey)
|
java.util.Iterator |
getSpaceMailWithAttachmentsIterator(java.lang.String spaceKey)
|
void |
removeAllMail(Space space)
|
void |
removeAttachmentsForMail(Mail mail)
|
void |
removeMail(Mail mail)
removes mail and its associated attachments |
boolean |
spaceHasMail(java.lang.String spaceKey)
|
Mail |
storeIncomingMail(Space space,
byte[] rawMessage)
Create a new mail content object in the given space for the given raw RFC822 message. |
Mail |
storeIncomingMail(Space space,
javax.mail.internet.MimeMessage mimeMessage)
Create a new mail content object in the given space for the given mimeMessage. |
Method Detail |
---|
Mail getMailById(long id)
Mail getMailByMessageId(java.lang.String messageId)
java.util.List getMailsByMessageId(java.lang.String messageId)
messageId
- the message id of the mails to retrieve
Mail storeIncomingMail(Space space, javax.mail.internet.MimeMessage mimeMessage) throws ConfluenceException
space
- the space to attach the message tomimeMessage
- the message that has been received
ConfluenceException
Mail storeIncomingMail(Space space, byte[] rawMessage)
We use a byte array because RFC822 messages are streams of bytes - character encoding happens after the header is parsed
space
- the space to attach the message torawMessage
- the message that has been receivedboolean spaceHasMail(java.lang.String spaceKey)
Mail getFirstMailAfter(java.lang.String spaceKey, long mailId)
Mail getFirstMailBefore(java.lang.String spaceKey, long mailId)
void removeMail(Mail mail)
mail
- void removeAttachmentsForMail(Mail mail)
java.util.Iterator getSpaceMailIterator(java.lang.String spaceKey)
java.util.Iterator getSpaceMailWithAttachmentsIterator(java.lang.String spaceKey)
java.util.List getSpaceMail(int firstResult, int maxResults, java.lang.String spaceKey)
int findMailTotal(Space space)
java.util.List getMail(Space space, boolean currentOnly)
void removeAllMail(Space space)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |