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 |
execute
public MaildirMailboxMapper(MaildirStore maildirStore, MailboxSession session)
public void delete(Mailbox<Integer> mailbox) throws MailboxException
MailboxMapper
Mailbox
from the underlying storagedelete
in interface MailboxMapper<Integer>
MailboxException
MailboxMapper.delete(org.apache.james.mailbox.store.mail.model.Mailbox)
public Mailbox<Integer> findMailboxByPath(MailboxPath mailboxPath) throws MailboxException, MailboxNotFoundException
MailboxMapper
Mailbox
for the given namefindMailboxByPath
in interface MailboxMapper<Integer>
MailboxException
MailboxNotFoundException
MailboxMapper.findMailboxByPath(org.apache.james.mailbox.model.MailboxPath)
public List<Mailbox<Integer>> findMailboxWithPathLike(MailboxPath mailboxPath) throws MailboxException
MailboxMapper
Mailbox
which name is like the given namefindMailboxWithPathLike
in interface MailboxMapper<Integer>
MailboxException
MailboxMapper.findMailboxWithPathLike(org.apache.james.mailbox.model.MailboxPath)
public boolean hasChildren(Mailbox<Integer> mailbox, char delimiter) throws MailboxException, MailboxNotFoundException
MailboxMapper
Mailbox
has childrenhasChildren
in interface MailboxMapper<Integer>
mailbox
- not nulldelimiter
- path delimiterMailboxException
MailboxNotFoundException
MailboxMapper.hasChildren(org.apache.james.mailbox.store.mail.model.Mailbox, char)
public void save(Mailbox<Integer> mailbox) throws MailboxException
MailboxMapper
Mailbox
to the underlying storagesave
in interface MailboxMapper<Integer>
MailboxException
MailboxMapper.save(org.apache.james.mailbox.store.mail.model.Mailbox)
public List<Mailbox<Integer>> list() throws MailboxException
MailboxMapper
list
in interface MailboxMapper<Integer>
MailboxException
MailboxMapper.list()
public void endRequest()
Mapper
endRequest
in interface Mapper
Mapper.endRequest()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.