|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.api.imap.AbstractLogEnabled
org.apache.james.mailboxmanager.torque.TorqueMailbox
public class TorqueMailbox
| Field Summary |
|---|
| Fields inherited from interface org.apache.james.mailboxmanager.mailbox.Mailbox |
|---|
ANONYMOUS_SESSION |
| Method Summary | |
|---|---|
void |
addListener(MailboxListener listener)
Implementations of Mailbox may interpret the fact that someone is listening and do some caching and even postpone persistence until everyone has removed itself. |
MessageResult |
appendMessage(javax.mail.internet.MimeMessage message,
java.util.Date internalDate,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
|
void |
copyTo(MessageRange set,
TorqueMailbox toMailbox,
MailboxSession session)
|
void |
deleted(MailboxSession session)
|
java.util.Iterator |
expunge(MessageRange set,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
|
MessageResult |
fillMessageResult(MessageRow messageRow,
MessageResult.FetchGroup result)
|
MessageResult |
getFirstUnseen(MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
|
protected MailboxRow |
getMailboxRow()
|
int |
getMessageCount(MailboxSession mailboxSession)
|
java.util.Iterator |
getMessages(MessageRange set,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
TODO: consolidate search and getMessages into a single method |
java.lang.String |
getName()
Example #mail.paul.lists.apache.james-dev (3rd level folder of user paul) |
javax.mail.Flags |
getPermanentFlags()
|
protected UidChangeTracker |
getUidChangeTracker()
|
long |
getUidNext(MailboxSession mailboxSession)
|
long |
getUidValidity(MailboxSession mailboxSession)
|
int |
getUnseenCount(MailboxSession mailboxSession)
|
boolean |
isWriteable()
|
long[] |
recent(boolean reset,
MailboxSession mailboxSession)
|
void |
removeListener(MailboxListener mailboxListener)
|
java.util.Iterator |
search(SearchQuery query,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
|
java.util.Iterator |
setFlags(javax.mail.Flags flags,
boolean value,
boolean replace,
MessageRange set,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
this is much more straight forward for IMAP instead of setting Flags of an array of lazy-loading MimeMessages. |
void |
setLog(org.apache.commons.logging.Log log)
|
protected void |
setMailboxRow(MailboxRow mailboxRow)
|
| Methods inherited from class org.apache.james.api.imap.AbstractLogEnabled |
|---|
getLog, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
Mailbox
getName in interface Mailbox
public int getMessageCount(MailboxSession mailboxSession)
throws MailboxManagerException
getMessageCount in interface MailboxMailboxManagerException
public MessageResult appendMessage(javax.mail.internet.MimeMessage message,
java.util.Date internalDate,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
throws MailboxManagerException
appendMessage in interface MailboxinternalDate - IMAP defines this as the time when the message has arrived to this server (by smtp). Clients are also allowed to set the internalDate on apppend.
Is this Mail.getLastUpdates() for James delivery? Should we use MimeMessage.getReceivedDate()?
fetchGroup - which fields to be returned in MessageResult or null for
minimal fetch group onlymailboxSession - TODO
MailboxManagerException - if anything went wrong
public java.util.Iterator getMessages(MessageRange set,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
throws MailboxManagerException
Mailbox
getMessages in interface MailboxmailboxSession - TODO
MailboxManagerException
public MessageResult fillMessageResult(MessageRow messageRow,
MessageResult.FetchGroup result)
throws org.apache.torque.TorqueException,
javax.mail.MessagingException,
MailboxManagerException
org.apache.torque.TorqueException
javax.mail.MessagingException
MailboxManagerExceptionpublic javax.mail.Flags getPermanentFlags()
getPermanentFlags in interface Mailbox
public long[] recent(boolean reset,
MailboxSession mailboxSession)
throws MailboxManagerException
recent in interface MailboxMailboxManagerException
public MessageResult getFirstUnseen(MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
throws MailboxManagerException
getFirstUnseen in interface MailboxMailboxManagerException
public int getUnseenCount(MailboxSession mailboxSession)
throws MailboxManagerException
getUnseenCount in interface MailboxMailboxManagerException
public java.util.Iterator expunge(MessageRange set,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
throws MailboxManagerException
expunge in interface Mailboxset - fetchGroup - which fields to be returned in MessageResultmailboxSession - TODO
MessageResult Iterator with the fields
defined by resultMailboxManagerException - if anything went wrong
public java.util.Iterator setFlags(javax.mail.Flags flags,
boolean value,
boolean replace,
MessageRange set,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
throws MailboxManagerException
Mailbox
setFlags in interface Mailboxflags - Flags to be setvalue - true = set, false = unsetreplace - replace all Flags with this flags, value has to be trueset - the range of messagesfetchGroup - fetch group for resultsmailboxSession - TODO
MessageResult Iterator containing messages
whose flags have been updated, not null
MailboxManagerException
public void addListener(MailboxListener listener)
throws MailboxManagerException
Mailbox
addListener in interface MailboxMailboxManagerExceptionpublic void removeListener(MailboxListener mailboxListener)
removeListener in interface Mailbox
public long getUidValidity(MailboxSession mailboxSession)
throws MailboxManagerException
getUidValidity in interface MailboxMailboxManagerException
public long getUidNext(MailboxSession mailboxSession)
throws MailboxManagerException
getUidNext in interface MailboxmailboxSession - TODO
MailboxManagerExceptionprotected UidChangeTracker getUidChangeTracker()
protected MailboxRow getMailboxRow()
protected void setMailboxRow(MailboxRow mailboxRow)
public java.util.Iterator search(SearchQuery query,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
throws MailboxManagerException
search in interface MailboxfetchGroup - which fields to be returned in MessageResultmailboxSession - TODO
MailboxManagerException - if anything went wrong
UnsupportedCriteriaException - when any of the search parameters are not supported by this
mailboxpublic boolean isWriteable()
isWriteable in interface Mailboxpublic void setLog(org.apache.commons.logging.Log log)
setLog in class AbstractLogEnabled
public void copyTo(MessageRange set,
TorqueMailbox toMailbox,
MailboxSession session)
throws MailboxManagerException
MailboxManagerExceptionpublic void deleted(MailboxSession session)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||