|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hs.mail.imap.mailbox.SelectedMailbox
public class SelectedMailbox
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.hs.mail.imap.event.EventListener |
|---|
EventListener.Event |
| Constructor Summary | |
|---|---|
SelectedMailbox(long sessionID,
long mailboxID,
boolean readOnly)
Constructor used to create a selected mailbox. |
|
| Method Summary | |
|---|---|
void |
add(int msn,
long uid)
|
void |
event(EventListener.Event event)
Invoked when an event was fired. |
List<Long> |
getCachedUids()
|
EventTracker |
getEventTracker()
|
long |
getMailboxID()
|
int |
getMessageNumber(long uid)
Get the message sequence number corresponding to the given UID from the cache. |
long |
getUID(int msn)
Get the UID corresponding to the given message sequence number from the cache. |
boolean |
isDeletedMailbox()
Is the mailbox deleted by other session? |
boolean |
isReadOnly()
|
boolean |
isRecent()
Check whether this mailbox contains recent messages. |
void |
resetEvents()
|
void |
setRecent(boolean recent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectedMailbox(long sessionID,
long mailboxID,
boolean readOnly)
sessionID - ID of the session who selected this mailboxmailboxID - ID of the selected mailboxreadOnly - Is this mailbox is read-only? If selected via EXAMINE command
this mailbox is read-only. Otherwise if selected via SELECT
command this mailbox is not read-only.| Method Detail |
|---|
public EventTracker getEventTracker()
public List<Long> getCachedUids()
public long getMailboxID()
public boolean isReadOnly()
public boolean isRecent()
public boolean isDeletedMailbox()
public void setRecent(boolean recent)
public int getMessageNumber(long uid)
-1 is returned.
public long getUID(int msn)
-1 is returned.
public void add(int msn,
long uid)
public void event(EventListener.Event event)
EventListener
event in interface EventListenerpublic void resetEvents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||