public class MaildirMailboxMapper extends NonTransactionalMapper implements MailboxMapper<Integer>
Mapper.Transaction<T>, Mapper.VoidTransaction| Constructor and Description |
|---|
MaildirMailboxMapper(MaildirStore maildirStore,
MailboxSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Mailbox<Integer> mailbox)
Delete the given
Mailbox from the underlying storage |
void |
endRequest()
IMAP Request was complete.
|
Mailbox<Integer> |
findMailboxByPath(MailboxPath mailboxPath)
Return the
Mailbox for the given name |
List<Mailbox<Integer>> |
findMailboxWithPathLike(MailboxPath mailboxPath)
Return a List of
Mailbox which name is like the given name |
boolean |
hasChildren(Mailbox<Integer> mailbox,
char delimiter)
Return if the given
Mailbox has children |
List<Mailbox<Integer>> |
list()
|
void |
save(Mailbox<Integer> mailbox)
Save the give
Mailbox to the underlying storage |
executepublic MaildirMailboxMapper(MaildirStore maildirStore, MailboxSession session)
public void delete(Mailbox<Integer> mailbox) throws MailboxException
MailboxMapperMailbox from the underlying storagedelete in interface MailboxMapper<Integer>MailboxExceptionMailboxMapper.delete(org.apache.james.mailbox.store.mail.model.Mailbox)public Mailbox<Integer> findMailboxByPath(MailboxPath mailboxPath) throws MailboxException, MailboxNotFoundException
MailboxMapperMailbox for the given namefindMailboxByPath in interface MailboxMapper<Integer>MailboxExceptionMailboxNotFoundExceptionMailboxMapper.findMailboxByPath(org.apache.james.mailbox.model.MailboxPath)public List<Mailbox<Integer>> findMailboxWithPathLike(MailboxPath mailboxPath) throws MailboxException
MailboxMapperMailbox which name is like the given namefindMailboxWithPathLike in interface MailboxMapper<Integer>MailboxExceptionMailboxMapper.findMailboxWithPathLike(org.apache.james.mailbox.model.MailboxPath)public boolean hasChildren(Mailbox<Integer> mailbox, char delimiter) throws MailboxException, MailboxNotFoundException
MailboxMapperMailbox has childrenhasChildren in interface MailboxMapper<Integer>mailbox - not nulldelimiter - path delimiterMailboxExceptionMailboxNotFoundExceptionMailboxMapper.hasChildren(org.apache.james.mailbox.store.mail.model.Mailbox, char)public void save(Mailbox<Integer> mailbox) throws MailboxException
MailboxMapperMailbox to the underlying storagesave in interface MailboxMapper<Integer>MailboxExceptionMailboxMapper.save(org.apache.james.mailbox.store.mail.model.Mailbox)public List<Mailbox<Integer>> list() throws MailboxException
MailboxMapperlist in interface MailboxMapper<Integer>MailboxExceptionMailboxMapper.list()public void endRequest()
MapperendRequest in interface MapperMapper.endRequest()Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.