james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r927010 - in /james/imap/trunk: mailbox/src/main/java/org/apache/james/imap/mailbox/ store/src/main/java/org/apache/james/imap/store/ torque/src/main/java/org/apache/james/mailboxmanager/torque/
Date Wed, 24 Mar 2010 11:20:32 GMT
Author: norman
Date: Wed Mar 24 11:20:32 2010
New Revision: 927010

URL: http://svn.apache.org/viewvc?rev=927010&view=rev
Log:
move methods to interface

Modified:
    james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java
    james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMailboxManager.java
    james/imap/trunk/torque/src/main/java/org/apache/james/mailboxmanager/torque/TorqueMailboxManager.java

Modified: james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java?rev=927010&r1=927009&r2=927010&view=diff
==============================================================================
--- james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java
(original)
+++ james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java
Wed Mar 24 11:20:32 2010
@@ -61,6 +61,20 @@ import org.apache.commons.logging.Log;
 public interface MailboxManager {
 
     /**
+     * Return the delimter to use for folders
+     * 
+     * @return delimiter
+     */
+    char getDelimiter();
+    
+    /**
+     * Return the prefix for the namespace
+     * 
+     * @return namespacePrefix
+     */
+    String getUserNameSpacePrefix();
+    
+    /**
      * <p>
      * Resolves a path for the given user.
      * </p>

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=927010&r1=927009&r2=927010&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
Wed Mar 24 11:20:32 2010
@@ -483,15 +483,22 @@ public abstract class StoreMailboxManage
         // Do nothing by default
     }
 
-    /**
-     * Return the delemiter to use
-     * 
-     * @return delemiter
+    /*
+     * (non-Javadoc)
+     * @see org.apache.james.imap.mailbox.MailboxManager#getDelimiter()
      */
-    protected char getDelimiter() {
+    public char getDelimiter() {
     	return delimiter;
     }
 
+    /*
+     * (non-Javadoc)
+     * @see org.apache.james.imap.mailbox.MailboxManager#getUserNameSpacePrefix()
+     */
+    public String getUserNameSpacePrefix() {
+        return USER_NAMESPACE_PREFIX;
+    }
+
 
     /**
      * End processing of Request for session. Default is to do nothing.

Modified: james/imap/trunk/torque/src/main/java/org/apache/james/mailboxmanager/torque/TorqueMailboxManager.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/torque/src/main/java/org/apache/james/mailboxmanager/torque/TorqueMailboxManager.java?rev=927010&r1=927009&r2=927010&view=diff
==============================================================================
--- james/imap/trunk/torque/src/main/java/org/apache/james/mailboxmanager/torque/TorqueMailboxManager.java
(original)
+++ james/imap/trunk/torque/src/main/java/org/apache/james/mailboxmanager/torque/TorqueMailboxManager.java
Wed Mar 24 11:20:32 2010
@@ -425,4 +425,20 @@ public class TorqueMailboxManager implem
         // Do nothing        
     }
 
+    /*
+     * (non-Javadoc)
+     * @see org.apache.james.imap.mailbox.MailboxManager#getDelimiter()
+     */
+    public char getDelimiter() {
+        return delimiter;
+    }
+
+    /*
+     * (non-Javadoc)
+     * @see org.apache.james.imap.mailbox.MailboxManager#getUserNameSpacePrefix()
+     */
+    public String getUserNameSpacePrefix() {
+        return USER_NAMESPACE_PREFIX;
+    }
+
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message