public interface SelectedMailbox
Modifier and Type | Field and Description |
---|---|
static int |
NO_SUCH_MESSAGE |
Modifier and Type | Method and Description |
---|---|
boolean |
addRecent(long uid)
Add a recent uid
|
void |
deselect()
Deselect the Mailbox
|
long |
existsCount()
Return the count of all existing uids
|
Collection<Long> |
expungedUids()
Return a Collection which holds all uids which were expunged
|
Collection<Long> |
flagUpdateUids()
Return a Collection which holds all uids reflecting the Messages which
flags were updated
|
javax.mail.Flags |
getApplicableFlags()
Return all applicable Flags for the selected mailbox
|
long |
getFirstUid()
Return the uid of the first message in the mailbox or -1 if the mailbox
is empty
|
long |
getLastUid()
Return the uid of the last message in the mailbox or -1 if the mailbox is
empty
|
org.apache.james.mailbox.model.MailboxPath |
getPath()
Return the path of the selected Mailbox
|
Collection<Long> |
getRecent()
Return a Collection of all recent uids
|
boolean |
hasNewApplicableFlags() |
boolean |
isDeletedByOtherSession()
Is the mailbox deleted?
|
boolean |
isRecent(long uid)
Is the given uid recent ?
|
boolean |
isRecentUidRemoved()
Was the recent uid removed ?
|
boolean |
isSizeChanged()
Is the size of the mailbox changed ?
|
int |
msn(long uid)
Return the msg index of the given uid or
NO_SUCH_MESSAGE if no
message with the given uid was found |
int |
recentCount()
Return the count of all recent uids
|
int |
remove(Long uid)
Removes the given UID.
|
boolean |
removeRecent(long uid)
Remove a recent uid
|
void |
resetEvents()
Reset all events
|
void |
resetExpungedUids() |
void |
resetNewApplicableFlags() |
void |
resetRecentUidRemoved() |
long |
uid(int index)
Return the uid of the message for the given index or
NO_SUCH_MESSAGE if no message with the given index was found |
static final int NO_SUCH_MESSAGE
void deselect()
int msn(long uid)
NO_SUCH_MESSAGE
if no
message with the given uid was founduid
- long uid(int index)
NO_SUCH_MESSAGE
if no message with the given index was foundindex
- boolean addRecent(long uid)
uid
- boolean removeRecent(long uid)
uid
- Collection<Long> getRecent()
int recentCount()
long existsCount()
org.apache.james.mailbox.model.MailboxPath getPath()
boolean isRecent(long uid)
uid
- boolean isDeletedByOtherSession()
boolean isSizeChanged()
boolean isRecentUidRemoved()
void resetRecentUidRemoved()
void resetEvents()
Collection<Long> expungedUids()
void resetExpungedUids()
int remove(Long uid)
uid
- not nullNO_SUCH_MESSAGE
if no message with the given uid was
found being expungedCollection<Long> flagUpdateUids()
long getFirstUid()
long getLastUid()
javax.mail.Flags getApplicableFlags()
boolean hasNewApplicableFlags()
void resetNewApplicableFlags()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.