ePOST API

rice.email.proxy.mailbox.filebox
Class FileFlagList

java.lang.Object
  extended by rice.email.proxy.mailbox.filebox.FileFlagList
All Implemented Interfaces:
FlagList

public class FileFlagList
extends java.lang.Object
implements FlagList


Field Summary
 
Fields inherited from interface rice.email.proxy.mailbox.FlagList
ANSWERED_FLAG, DELETED_FLAG, DRAFT_FLAG, FLAGGED_FLAG, RECENT_FLAG, SEEN_FLAG
 
Method Summary
 void addFlag(java.lang.String flag)
           
 void commit()
          Causes any changes in this FlagList's state to be written to the associated Mailbox.
 java.util.List getFlags()
           
 boolean isAnswered()
           
 boolean isDeleted()
           
 boolean isDraft()
           
 boolean isFlagged()
           
 boolean isRecent()
          Methods which support the session flags, as well as the \Recent flag
 boolean isSeen()
           
 boolean isSet(java.lang.String flag)
          Methods which allow the querying of flags
 void removeFlag(java.lang.String flag)
           
 void setAnswered(boolean seen)
           
 void setDeleted(boolean deleted)
           
 void setDraft(boolean seen)
           
 void setFlag(java.lang.String flag, boolean value)
          Methods which allow the modification of flags
 void setFlagged(boolean seen)
           
 void setRecent(boolean seen)
           
 void setSeen(boolean seen)
           
 java.lang.String toFlagString()
          Utility method for conversion to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addFlag

public void addFlag(java.lang.String flag)

removeFlag

public void removeFlag(java.lang.String flag)

isSet

public boolean isSet(java.lang.String flag)
Description copied from interface: FlagList
Methods which allow the querying of flags

Specified by:
isSet in interface FlagList

setFlag

public void setFlag(java.lang.String flag,
                    boolean value)
Description copied from interface: FlagList
Methods which allow the modification of flags

Specified by:
setFlag in interface FlagList

commit

public void commit()
            throws MailboxException
Description copied from interface: FlagList
Causes any changes in this FlagList's state to be written to the associated Mailbox. This allows colapsing several changes into one disk write, one SQL command, etc.

Specified by:
commit in interface FlagList
Throws:
MailboxException

isRecent

public boolean isRecent()
Description copied from interface: FlagList
Methods which support the session flags, as well as the \Recent flag

Specified by:
isRecent in interface FlagList

isDraft

public boolean isDraft()
Specified by:
isDraft in interface FlagList

isAnswered

public boolean isAnswered()
Specified by:
isAnswered in interface FlagList

isDeleted

public boolean isDeleted()
Specified by:
isDeleted in interface FlagList

isFlagged

public boolean isFlagged()
Specified by:
isFlagged in interface FlagList

isSeen

public boolean isSeen()
Specified by:
isSeen in interface FlagList

setDeleted

public void setDeleted(boolean deleted)
Specified by:
setDeleted in interface FlagList

setSeen

public void setSeen(boolean seen)
Specified by:
setSeen in interface FlagList

setRecent

public void setRecent(boolean seen)
Specified by:
setRecent in interface FlagList

setDraft

public void setDraft(boolean seen)
Specified by:
setDraft in interface FlagList

setAnswered

public void setAnswered(boolean seen)
Specified by:
setAnswered in interface FlagList

setFlagged

public void setFlagged(boolean seen)
Specified by:
setFlagged in interface FlagList

getFlags

public java.util.List getFlags()
Specified by:
getFlags in interface FlagList

toFlagString

public java.lang.String toFlagString()
Description copied from interface: FlagList
Utility method for conversion to a string

Specified by:
toFlagString in interface FlagList

ePOST API

Copyright © 2001-2005 - Rice Pastry.