public class JCRMailboxMapper extends AbstractJCRScalingMapper implements MailboxMapper<String>
Mapper.Transaction<T>, Mapper.VoidTransactionMAILBOXES_PATHNODE_DELIMITER| Constructor and Description |
|---|
JCRMailboxMapper(MailboxSessionJCRRepository repos,
MailboxSession session,
int scaling) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Mailbox<String> mailbox)
Delete the given
Mailbox from the underlying storage |
Mailbox<String> |
findMailboxByPath(MailboxPath path)
Return the
Mailbox for the given name |
List<Mailbox<String>> |
findMailboxWithPathLike(MailboxPath path)
Return a List of
Mailbox which name is like the given name |
boolean |
hasChildren(Mailbox<String> mailbox,
char delimiter)
Return if the given
Mailbox has children |
List<Mailbox<String>> |
list()
|
void |
save(Mailbox<String> mailbox)
Save the give
Mailbox to the underlying storage |
begin, commit, constructUserPathPart, createUserPathStructure, endRequest, getLogger, getSession, rollbackexecuteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendRequest, executepublic JCRMailboxMapper(MailboxSessionJCRRepository repos, MailboxSession session, int scaling)
public void delete(Mailbox<String> mailbox) throws MailboxException
MailboxMapperMailbox from the underlying storagedelete in interface MailboxMapper<String>MailboxExceptionpublic Mailbox<String> findMailboxByPath(MailboxPath path) throws MailboxException, MailboxNotFoundException
MailboxMapperMailbox for the given namefindMailboxByPath in interface MailboxMapper<String>MailboxExceptionMailboxNotFoundExceptionpublic List<Mailbox<String>> findMailboxWithPathLike(MailboxPath path) throws MailboxException
MailboxMapperMailbox which name is like the given namefindMailboxWithPathLike in interface MailboxMapper<String>MailboxExceptionpublic void save(Mailbox<String> mailbox) throws MailboxException
MailboxMapperMailbox to the underlying storagesave in interface MailboxMapper<String>MailboxExceptionpublic boolean hasChildren(Mailbox<String> mailbox, char delimiter) throws MailboxException, MailboxNotFoundException
MailboxMapperMailbox has childrenhasChildren in interface MailboxMapper<String>mailbox - not nulldelimiter - path delimiterMailboxExceptionMailboxNotFoundExceptionpublic List<Mailbox<String>> list() throws MailboxException
MailboxMapperlist in interface MailboxMapper<String>MailboxExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.