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