1 17 18 package org.apache.james.imapserver.store; 19 20 import java.util.Collection ; 21 22 29 public interface ImapStore 30 { 31 36 ImapMailbox getMailbox( String qualifiedMailboxName ); 37 38 44 ImapMailbox getMailbox( ImapMailbox parent, String mailboxName ); 45 46 51 Collection getChildren( ImapMailbox parent ); 52 53 62 ImapMailbox createMailbox( ImapMailbox parent, 63 String mailboxName, 64 boolean selectable ) 65 throws MailboxException; 66 67 75 ImapMailbox setSelectable( ImapMailbox mailbox, boolean selectable ); 76 77 83 void deleteMailbox( ImapMailbox mailbox ) throws MailboxException; 84 85 91 void renameMailbox( ImapMailbox existingMailbox, String newName ) 92 throws MailboxException; 93 94 106 Collection listMailboxes( String searchPattern ) throws MailboxException; 107 108 } 109 | Popular Tags |