|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface MailContentManager
Deprecated since 4.2. Archived mail is no longer managed using Mail objects, so this entire manager is obsolete. So as not to break binary compatibility, the manager will remain but all get methods will return nothing, and all mutator methods will fail silently.
Field Summary |
---|
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager |
---|
ITERATE_ALL |
Method Summary | |
---|---|
int |
findMailTotal(Space space)
Deprecated. |
Mail |
getFirstMailAfter(String spaceKey,
long mailId)
Deprecated. |
Mail |
getFirstMailBefore(String spaceKey,
long mailId)
Deprecated. |
List<Mail> |
getMail(Space space,
boolean currentOnly)
Deprecated. |
Mail |
getMailById(long id)
Deprecated. Get a mail by its database id. |
Mail |
getMailByMessageId(String messageId)
Deprecated. Get a mail by its message-id. |
List |
getMailsByMessageId(String messageId)
Deprecated. Get all mails with the matching message-id. |
List |
getSpaceMail(int firstResult,
int maxResults,
String spaceKey)
Deprecated. |
Iterator |
getSpaceMailIterator(String spaceKey)
Deprecated. |
Iterator |
getSpaceMailWithAttachmentsIterator(String spaceKey)
Deprecated. |
void |
removeAllMail(Space space)
Deprecated. |
void |
removeAttachmentsForMail(Mail mail)
Deprecated. |
void |
removeMail(Mail mail)
Deprecated. since 4.1 - does exactly the same thing as ContentEntityManager.removeContentEntity(com.atlassian.confluence.core.ContentEntityObject) |
boolean |
spaceHasMail(String spaceKey)
Deprecated. |
Mail |
storeIncomingMail(Space space,
byte[] rawMessage)
Deprecated. Create a new mail content object in the given space for the given raw RFC822 message. |
Mail |
storeIncomingMail(Space space,
MimeMessage mimeMessage)
Deprecated. 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)
@Deprecated void removeMail(Mail mail)
ContentEntityManager.removeContentEntity(com.atlassian.confluence.core.ContentEntityObject)
mail
- the mail to removevoid removeAttachmentsForMail(Mail mail)
Iterator getSpaceMailIterator(String spaceKey)
Iterator getSpaceMailWithAttachmentsIterator(String spaceKey)
List getSpaceMail(int firstResult, int maxResults, String spaceKey)
int findMailTotal(Space space)
List<Mail> 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 |