You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/08/20 22:07:01 UTC
svn commit: r987624 -
/james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMailboxManager.java
Author: norman
Date: Fri Aug 20 20:07:01 2010
New Revision: 987624
URL: http://svn.apache.org/viewvc?rev=987624&view=rev
Log:
Add new abstract class which allow to easy write a Mailbox implementation and not depend on the MessageMapper (IMAP-202)
Modified:
james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMailboxManager.java
Modified: james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMailboxManager.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMailboxManager.java?rev=987624&r1=987623&r2=987624&view=diff
==============================================================================
--- james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMailboxManager.java (original)
+++ james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMailboxManager.java Fri Aug 20 20:07:01 2010
@@ -75,7 +75,7 @@ public abstract class StoreMailboxManage
* @param mailboxRow
* @return storeMailbox
*/
- protected abstract MapperStoreMessageManager<Id> createMessageManager(MailboxEventDispatcher dispatcher, Mailbox<Id> mailboxRow, MailboxSession session) throws MailboxException;
+ protected abstract StoreMessageManager<Id> createMessageManager(MailboxEventDispatcher dispatcher, Mailbox<Id> mailboxRow, MailboxSession session) throws MailboxException;
/**
* Create a Mailbox for the given namespace and store it to the underlying storage
@@ -228,8 +228,8 @@ public abstract class StoreMailboxManage
*/
@SuppressWarnings("unchecked")
public void copyMessages(MessageRange set, MailboxPath from, MailboxPath to, MailboxSession session) throws MailboxException {
- MapperStoreMessageManager<Id> toMailbox = (MapperStoreMessageManager<Id>) getMailbox(to, session);
- MapperStoreMessageManager<Id> fromMailbox = (MapperStoreMessageManager<Id>) getMailbox(from, session);
+ StoreMessageManager<Id> toMailbox = (StoreMessageManager<Id>) getMailbox(to, session);
+ StoreMessageManager<Id> fromMailbox = (StoreMessageManager<Id>) getMailbox(from, session);
fromMailbox.copyTo(set, toMailbox, session);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org