|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.email.proxy.mailbox.postbox.PostFlagList
public class PostFlagList
| Field Summary | |
|---|---|
protected PostMessage |
message
The internal message which the flag list holds the flags for |
protected java.util.HashSet |
sessionFlags
Any session flags, which are not permanently stored. |
| Fields inherited from interface rice.email.proxy.mailbox.FlagList |
|---|
ANSWERED_FLAG, DELETED_FLAG, DRAFT_FLAG, FLAGGED_FLAG, RECENT_FLAG, SEEN_FLAG |
| Constructor Summary | |
|---|---|
protected |
PostFlagList(PostMessage message)
Protected constructor which takes in the wrapped message. |
| Method Summary | |
|---|---|
void |
commit()
Causes any changes in this FlagList's state to be written to the associated Mailbox. |
static PostFlagList |
get(PostMessage msg)
Method by which other classes can get the flag list for a given message |
java.util.List |
getFlags()
Returns a vector containing all of the flags |
java.util.Set |
getSessionFlags()
Returns a vector containing all of the session flags |
boolean |
isAnswered()
Gets the Answered attribute of the Flags object |
boolean |
isDeleted()
Gets the Deleted attribute of the Flags object |
boolean |
isDraft()
Gets the Draft attribute of the Flags object |
boolean |
isFlagged()
Gets the Flagged attribute of the Flags object |
boolean |
isRecent()
Gets the Recent attribute of the Flags object |
boolean |
isSeen()
Gets the Seen attribute of the Flags object |
boolean |
isSessionFlagSet(java.lang.String flag)
Returns whether or not the given session flag is set |
boolean |
isSet(java.lang.String flag)
Returns whether or not the given flag is set |
void |
setAnswered(boolean value)
Sets the Answered attribute of the Flags object |
void |
setDeleted(boolean value)
Sets the Deleted attribute of the Flags object |
void |
setDraft(boolean value)
Sets the Draft attribute of the Flags object |
void |
setFlag(java.lang.String flag,
boolean value)
Sets the given flag, if value is true, removes it otherwise |
void |
setFlagged(boolean value)
Sets the Flagged attribute of the Flags object |
void |
setRecent(boolean value)
Sets the Recent attribute of the Flags object |
void |
setSeen(boolean value)
Sets the Seen attribute of the Flags object |
void |
setSessionFlag(java.lang.String flag,
boolean value)
Sets the given session flag, if value is true, removes it otherwise |
java.lang.String |
toFlagString()
Returns a string representation of the flags |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PostMessage message
protected java.util.HashSet sessionFlags
| Constructor Detail |
|---|
protected PostFlagList(PostMessage message)
| Method Detail |
|---|
public static PostFlagList get(PostMessage msg)
msg - The message to wrap
public void commit()
throws MailboxException
commit in interface FlagListMailboxExceptionpublic boolean isDeleted()
isDeleted in interface FlagListpublic boolean isAnswered()
isAnswered in interface FlagListpublic boolean isSeen()
isSeen in interface FlagListpublic boolean isFlagged()
isFlagged in interface FlagListpublic boolean isDraft()
isDraft in interface FlagListpublic boolean isSet(java.lang.String flag)
isSet in interface FlagListflag - The flag to check
public void setDeleted(boolean value)
setDeleted in interface FlagListvalue - The new Deleted valuepublic void setAnswered(boolean value)
setAnswered in interface FlagListvalue - The new Answered valuepublic void setSeen(boolean value)
setSeen in interface FlagListvalue - The new Seen valuepublic void setFlagged(boolean value)
setFlagged in interface FlagListvalue - The new Flagged valuepublic void setDraft(boolean value)
setDraft in interface FlagListvalue - The new Draft value
public void setFlag(java.lang.String flag,
boolean value)
setFlag in interface FlagListflag - The flagvalue - The valuepublic boolean isRecent()
isRecent in interface FlagListpublic void setRecent(boolean value)
setRecent in interface FlagListvalue - The new Recent valuepublic boolean isSessionFlagSet(java.lang.String flag)
flag - The flag to check
public void setSessionFlag(java.lang.String flag,
boolean value)
flag - The flagvalue - The valuepublic java.util.List getFlags()
getFlags in interface FlagListpublic java.util.Set getSessionFlags()
public java.lang.String toFlagString()
toFlagString in interface FlagList
|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||