org.apache.james.mailbox.jpa
Class JPAMailboxManager

java.lang.Object
  extended by org.apache.james.mailbox.store.StoreMailboxManager<Long>
      extended by org.apache.james.mailbox.jpa.JPAMailboxManager
All Implemented Interfaces:
MailboxListenerSupport, MailboxManager, RequestAware
Direct Known Subclasses:
OpenJPAMailboxManager

public abstract class JPAMailboxManager
extends StoreMailboxManager<Long>

JPA implementation of StoreMailboxManager


Field Summary
 
Fields inherited from class org.apache.james.mailbox.store.StoreMailboxManager
mailboxSessionMapperFactory, SQL_WILDCARD_CHAR
 
Constructor Summary
JPAMailboxManager(JPAMailboxSessionMapperFactory mailboxSessionMapperFactory, Authenticator authenticator, UidProvider<Long> uidProvider, MailboxPathLocker locker)
           
 
Method Summary
 void deleteEverything(MailboxSession mailboxSession)
          Delete all mailboxes
protected  Mailbox<Long> doCreateMailbox(MailboxPath path, MailboxSession session)
           
 
Methods inherited from class org.apache.james.mailbox.store.StoreMailboxManager
addGlobalListener, addListener, copyMessages, createMailbox, createMessageManager, createSystemSession, deleteMailbox, endProcessingRequest, getDelegationListener, getDelimiter, getLog, getMailbox, init, list, login, logout, mailboxExists, randomId, randomUidValidity, renameMailbox, search, setDelegatingMailboxListener, setLog, startProcessingRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAMailboxManager

public JPAMailboxManager(JPAMailboxSessionMapperFactory mailboxSessionMapperFactory,
                         Authenticator authenticator,
                         UidProvider<Long> uidProvider,
                         MailboxPathLocker locker)
Method Detail

doCreateMailbox

protected Mailbox<Long> doCreateMailbox(MailboxPath path,
                                        MailboxSession session)
                                 throws MailboxException
Specified by:
doCreateMailbox in class StoreMailboxManager<Long>
Throws:
MailboxException

deleteEverything

public void deleteEverything(MailboxSession mailboxSession)
                      throws MailboxException
Delete all mailboxes

Parameters:
maibloxSession -
Throws:
MailboxException


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.