ePOST API

rice.email.proxy.mailbox.postbox
Class PostFolder

java.lang.Object
  extended by rice.email.proxy.mailbox.postbox.PostFolder
All Implemented Interfaces:
MailFolder

public class PostFolder
extends java.lang.Object
implements MailFolder

This class translates between foedus and the emailservice.


Constructor Summary
PostFolder(Folder folder, PostFolder parent, EmailService email)
          Builds a folder given a string name
 
Method Summary
 void copy(MovingMessage[] messages, java.util.List[] flags, long[] internaldates)
           
 MailFolder createChild(java.lang.String name)
           
 void delete()
           
 void delete(boolean checkForInferiors)
           
 MailFolder getChild(java.lang.String name)
           
 MailFolder[] getChildren()
           
 int getExists()
           
 Folder getFolder()
           
 java.lang.String getFullName()
          Returns the full name of this folder.
 java.util.List getMessages(MsgFilter range)
          Obtains a list of StoredMessages in this folder that fall within the designated range.
 int getNextUID()
           
 PostFolder getParent()
           
 int getRecent()
           
 java.lang.String getUIDValidity()
           
 void purge(StoredMessage[] messages)
           
 void put(MovingMessage msg)
           
 void put(MovingMessage msg, java.util.List lflags, long internaldate)
           
 void setParent(PostFolder parent)
           
 void update(StoredMessage[] messages)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostFolder

public PostFolder(Folder folder,
                  PostFolder parent,
                  EmailService email)
           throws MailboxException
Builds a folder given a string name

Throws:
MailboxException
Method Detail

getFullName

public java.lang.String getFullName()
Returns the full name of this folder.

Specified by:
getFullName in interface MailFolder
Returns:
The name of this folder.

getNextUID

public int getNextUID()
               throws MailboxException
Specified by:
getNextUID in interface MailFolder
Throws:
MailboxException

getExists

public int getExists()
              throws MailboxException
Specified by:
getExists in interface MailFolder
Throws:
MailboxException

getRecent

public int getRecent()
              throws MailboxException
Specified by:
getRecent in interface MailFolder
Throws:
MailboxException

getFolder

public Folder getFolder()

getParent

public PostFolder getParent()

setParent

public void setParent(PostFolder parent)

delete

public void delete()
            throws MailboxException
Specified by:
delete in interface MailFolder
Throws:
MailboxException

delete

public void delete(boolean checkForInferiors)
            throws MailboxException
Throws:
MailboxException

put

public void put(MovingMessage msg)
         throws MailboxException
Specified by:
put in interface MailFolder
Throws:
MailboxException

put

public void put(MovingMessage msg,
                java.util.List lflags,
                long internaldate)
         throws MailboxException
Specified by:
put in interface MailFolder
Throws:
MailboxException

getMessages

public java.util.List getMessages(MsgFilter range)
                           throws MailboxException
Description copied from interface: MailFolder
Obtains a list of StoredMessages in this folder that fall within the designated range.

Specified by:
getMessages in interface MailFolder
Throws:
MailboxException

copy

public void copy(MovingMessage[] messages,
                 java.util.List[] flags,
                 long[] internaldates)
          throws MailboxException
Specified by:
copy in interface MailFolder
Throws:
MailboxException

update

public void update(StoredMessage[] messages)
            throws MailboxException
Specified by:
update in interface MailFolder
Throws:
MailboxException

purge

public void purge(StoredMessage[] messages)
           throws MailboxException
Specified by:
purge in interface MailFolder
Throws:
MailboxException

getUIDValidity

public java.lang.String getUIDValidity()
                                throws MailboxException
Specified by:
getUIDValidity in interface MailFolder
Throws:
MailboxException

createChild

public MailFolder createChild(java.lang.String name)
                       throws MailboxException
Specified by:
createChild in interface MailFolder
Throws:
MailboxException

getChild

public MailFolder getChild(java.lang.String name)
                    throws MailboxException
Specified by:
getChild in interface MailFolder
Throws:
MailboxException

getChildren

public MailFolder[] getChildren()
                         throws MailboxException
Specified by:
getChildren in interface MailFolder
Throws:
MailboxException

ePOST API

Copyright © 2001-2005 - Rice Pastry.