|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
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(String spaceKey,
long mailId)
|
Mail |
getFirstMailBefore(String spaceKey,
long mailId)
|
List |
getMail(Space space,
boolean currentOnly)
|
Mail |
getMailById(long id)
Get a mail by its database id. |
Mail |
getMailByMessageId(String messageId)
Get a mail by its message-id. |
List |
getMailsByMessageId(String messageId)
Get all mails with the matching message-id. |
List |
getSpaceMail(int firstResult,
int maxResults,
String spaceKey)
|
Iterator |
getSpaceMailIterator(String spaceKey)
|
Iterator |
getSpaceMailWithAttachmentsIterator(String spaceKey)
|
void |
removeAllMail(Space space)
|
void |
removeAttachmentsForMail(Mail mail)
|
void |
removeMail(Mail mail)
removes mail and its associated attachments |
boolean |
spaceHasMail(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,
MimeMessage mimeMessage)
Create a new mail content object in the given space for the given mimeMessage. |
Method Detail |
---|
Mail getMailById(long id)
Mail getMailByMessageId(String messageId)
List getMailsByMessageId(String messageId)
messageId
- the message id of the mails to retrieve
Mail storeIncomingMail(Space space, 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(String spaceKey)
Mail getFirstMailAfter(String spaceKey, long mailId)
Mail getFirstMailBefore(String spaceKey, long mailId)
void removeMail(Mail mail)
mail
- void removeAttachmentsForMail(Mail mail)
Iterator getSpaceMailIterator(String spaceKey)
Iterator getSpaceMailWithAttachmentsIterator(String spaceKey)
List getSpaceMail(int firstResult, int maxResults, String spaceKey)
int findMailTotal(Space space)
List getMail(Space space, boolean currentOnly)
void removeAllMail(Space space)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |