Modifier and Type | Method and Description |
---|---|
MailboxSession |
MailboxManager.createSystemSession(String userName,
org.slf4j.Logger log)
Creates a new system session.
A system session is intended to be used for programmatic access. Use MailboxManager.login(String, String, Logger) when accessing this API from a
protocol. |
MailboxSession |
MailboxListener.Event.getSession()
Gets the
MailboxSession in which's context the MailboxListener.Event
happened |
MailboxSession |
MailboxManager.login(String userid,
String passwd,
org.slf4j.Logger log)
Autenticates the given user against the given password.
When authentic and authorized, a session will be supplied |
Modifier and Type | Method and Description |
---|---|
void |
MailboxListenerSupport.addGlobalListener(MailboxListener listener,
MailboxSession session)
Add a
MailboxListener which get fired for ever
MailboxPath |
void |
MailboxListenerSupport.addListener(MailboxPath mailboxPath,
MailboxListener listener,
MailboxSession session)
Implementations of Mailbox may interpret the fact that someone is
listening and do some caching and even postpone persistence until
everyone has removed itself.
|
long |
MessageManager.appendMessage(InputStream msgIn,
Date internalDate,
MailboxSession mailboxSession,
boolean isRecent,
javax.mail.Flags flags)
Appends a message to this mailbox.
|
List<MessageRange> |
MailboxManager.copyMessages(MessageRange set,
MailboxPath from,
MailboxPath to,
MailboxSession session)
Copy the given
MessageRange from one Mailbox to the other. |
void |
MailboxManager.createMailbox(MailboxPath mailboxPath,
MailboxSession mailboxSession)
Creates a new mailbox.
|
void |
MailboxManager.deleteMailbox(MailboxPath mailboxPath,
MailboxSession session)
Delete the mailbox with the name
|
void |
RequestAware.endProcessingRequest(MailboxSession session)
End the processing of a request for the given MailboxSession.
|
<T> T |
MailboxPathLocker.executeWithLock(MailboxSession session,
MailboxPath path,
MailboxPathLocker.LockAwareExecution<T> execution)
Deprecated.
use
MailboxPathLocker.executeWithLock(MailboxSession, MailboxPath, LockAwareExecution, boolean) with argument true |
<T> T |
MailboxPathLocker.executeWithLock(MailboxSession session,
MailboxPath path,
MailboxPathLocker.LockAwareExecution<T> execution,
boolean writeLock)
Execute the
MailboxPathLocker.LockAwareExecution while holding a lock on the
MailboxPath . |
Iterator<Long> |
MessageManager.expunge(MessageRange set,
MailboxSession mailboxSession)
Expunges messages in the given range from this mailbox.
|
MessageManager |
MailboxManager.getMailbox(MailboxPath mailboxPath,
MailboxSession session)
Gets an session suitable for IMAP.
|
long |
MessageManager.getMessageCount(MailboxSession mailboxSession)
|
Quota |
QuotaManager.getMessageQuota(MailboxSession session)
Return the message count
Quota for the given MailboxSession (which in fact is
bound to a user) |
MessageResultIterator |
MessageManager.getMessages(MessageRange set,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession)
Gets messages in the given range.
|
MessageManager.MetaData |
MessageManager.getMetaData(boolean resetRecent,
MailboxSession mailboxSession,
MessageManager.MetaData.FetchGroup fetchGroup)
Gets current meta data for the mailbox.
Consolidates common calls together to allow improved performance. The meta-data returned should be immutable and represent the current state of the mailbox. |
Quota |
QuotaManager.getStorageQuota(MailboxSession session)
Return the message storage
Quota for the given MailboxSession (which in fact is
bound to a user) |
boolean |
MessageManager.hasRight(MailboxACL.MailboxACLRight right,
MailboxSession session)
Tells whether the given
MailboxSession 's user has the given
MailboxACL.MailboxACLRight for this MessageManager 's mailbox. |
boolean |
MessageManager.isModSeqPermanent(MailboxSession session)
|
boolean |
MessageManager.isWriteable(MailboxSession session)
|
List<MailboxPath> |
MailboxManager.list(MailboxSession session)
Return a unmodifiable
List of MailboxPath objects |
MailboxACL.MailboxACLRights[] |
MessageManager.listRigths(MailboxACL.MailboxACLEntryKey identifier,
MailboxSession session)
Computes a result suitable for the LISTRIGHTS IMAP command.
|
void |
MailboxManager.logout(MailboxSession session,
boolean force)
Logs the session out, freeing any resources.
|
boolean |
MailboxManager.mailboxExists(MailboxPath mailboxPath,
MailboxSession session)
Does the given mailbox exist?
|
MailboxACL.MailboxACLRights |
MessageManager.myRights(MailboxSession session)
Returns the rights applicable to the user who has sent the current
request.
|
void |
MailboxListenerSupport.removeGlobalListener(MailboxListener listner,
MailboxSession session)
Remove the
MailboxListener |
void |
MailboxListenerSupport.removeListener(MailboxPath mailboxPath,
MailboxListener listner,
MailboxSession session)
Remove the
MailboxListener |
void |
MailboxManager.renameMailbox(MailboxPath from,
MailboxPath to,
MailboxSession session)
Renames a mailbox.
|
List<MailboxMetaData> |
MailboxManager.search(MailboxQuery expression,
MailboxSession session)
Searches for mailboxes matching the given query.
|
Iterator<Long> |
MessageManager.search(SearchQuery searchQuery,
MailboxSession mailboxSession)
Searches for messages matching the given query.
|
Map<Long,javax.mail.Flags> |
MessageManager.setFlags(javax.mail.Flags flags,
boolean value,
boolean replace,
MessageRange set,
MailboxSession mailboxSession)
Sets flags on messages within the given range.
|
void |
RequestAware.startProcessingRequest(MailboxSession session)
Start the processing of a request for the given MailboxSession.
|
void |
SubscriptionManager.subscribe(MailboxSession session,
String mailbox)
Subscribes the user in the session to the given mailbox.
|
Collection<String> |
SubscriptionManager.subscriptions(MailboxSession session)
Finds all subscriptions for the user in the session.
|
void |
SubscriptionManager.unsubscribe(MailboxSession session,
String mailbox)
Unsubscribes the user in the session from the given mailbox.
|
Constructor and Description |
---|
MailboxListener.Added(MailboxSession session,
MailboxPath path) |
MailboxListener.Event(MailboxSession session,
MailboxPath path) |
MailboxListener.Expunged(MailboxSession session,
MailboxPath path) |
MailboxListener.FlagsUpdated(MailboxSession session,
MailboxPath path) |
MailboxListener.MailboxACLUpdated(MailboxSession session,
MailboxPath path) |
MailboxListener.MailboxAdded(MailboxSession session,
MailboxPath path) |
MailboxListener.MailboxDeletion(MailboxSession session,
MailboxPath path) |
MailboxListener.MailboxRenamed(MailboxSession session,
MailboxPath path) |
MailboxListener.MessageEvent(MailboxSession session,
MailboxPath path) |
Modifier and Type | Method and Description |
---|---|
protected MailboxMapper<UUID> |
HBaseMailboxSessionMapperFactory.createMailboxMapper(MailboxSession session) |
protected StoreMessageManager<UUID> |
HBaseMailboxManager.createMessageManager(Mailbox<UUID> mailboxRow,
MailboxSession session) |
protected MessageMapper<UUID> |
HBaseMailboxSessionMapperFactory.createMessageMapper(MailboxSession session) |
protected SubscriptionMapper |
HBaseMailboxSessionMapperFactory.createSubscriptionMapper(MailboxSession session) |
void |
HBaseMailboxManager.deleteEverything(MailboxSession mailboxSession)
Delete all mailboxes
|
protected Mailbox<UUID> |
HBaseMailboxManager.doCreateMailbox(MailboxPath mailboxPath,
MailboxSession session) |
protected javax.mail.Flags |
HBaseMessageManager.getPermanentFlags(MailboxSession session)
Support user flags
|
Modifier and Type | Method and Description |
---|---|
long |
HBaseModSeqProvider.highestModSeq(MailboxSession session,
Mailbox<UUID> mailbox) |
long |
HBaseUidProvider.lastUid(MailboxSession session,
Mailbox<UUID> mailbox)
Returns the last message uid used in a mailbox.
|
long |
HBaseModSeqProvider.nextModSeq(MailboxSession session,
Mailbox<UUID> mailbox) |
long |
HBaseUidProvider.nextUid(MailboxSession session,
Mailbox<UUID> mailbox)
Returns the next uid.
|
Constructor and Description |
---|
HBaseMessageMapper(MailboxSession session,
UidProvider<UUID> uidProvider,
ModSeqProvider<UUID> modSeqProvider,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
MailboxMapper<Long> |
InMemoryMailboxSessionMapperFactory.createMailboxMapper(MailboxSession session) |
MessageMapper<Long> |
InMemoryMailboxSessionMapperFactory.createMessageMapper(MailboxSession session) |
SubscriptionMapper |
InMemoryMailboxSessionMapperFactory.createSubscriptionMapper(MailboxSession session) |
Modifier and Type | Method and Description |
---|---|
long |
InMemoryModSeqProvider.highestModSeq(MailboxSession session,
Mailbox<Long> mailbox) |
long |
InMemoryUidProvider.lastUid(MailboxSession session,
Mailbox<Long> mailbox) |
long |
InMemoryModSeqProvider.nextModSeq(MailboxSession session,
Mailbox<Long> mailbox) |
long |
InMemoryUidProvider.nextUid(MailboxSession session,
Mailbox<Long> mailbox) |
Constructor and Description |
---|
InMemoryMessageMapper(MailboxSession session,
UidProvider<Long> uidProvider,
ModSeqProvider<Long> modSeqProvider) |
Modifier and Type | Method and Description |
---|---|
MailboxMapper<String> |
JCRMailboxSessionMapperFactory.createMailboxMapper(MailboxSession session) |
protected StoreMessageManager<String> |
JCRMailboxManager.createMessageManager(Mailbox<String> mailboxEntity,
MailboxSession session) |
MessageMapper<String> |
JCRMailboxSessionMapperFactory.createMessageMapper(MailboxSession session) |
protected Subscription |
JCRSubscriptionManager.createSubscription(MailboxSession session,
String mailbox) |
SubscriptionMapper |
JCRMailboxSessionMapperFactory.createSubscriptionMapper(MailboxSession session) |
protected Mailbox<String> |
JCRMailboxManager.doCreateMailbox(MailboxPath path,
MailboxSession session) |
protected javax.mail.Flags |
JCRMessageManager.getPermanentFlags(MailboxSession session)
This implementation allow to store ANY user flag in a permanent manner
|
javax.jcr.Session |
GlobalMailboxSessionJCRRepository.login(MailboxSession session)
Login in the
Repository with the global configured user and password |
javax.jcr.Session |
MailboxSessionJCRRepository.login(MailboxSession session)
If no
Session exists for the MailboxSession one will get created. |
protected javax.jcr.Session |
MailboxSessionJCRRepository.login(MailboxSession mSession,
String username,
char[] pass) |
void |
MailboxSessionJCRRepository.logout(MailboxSession mSession)
Logout the JCR
Session if one exists |
Constructor and Description |
---|
AbstractJCRScalingMapper(MailboxSessionJCRRepository repository,
MailboxSession mSession,
int scaling) |
Modifier and Type | Method and Description |
---|---|
long |
JCRModSeqProvider.highestModSeq(MailboxSession session,
Mailbox<String> mailbox) |
long |
JCRUidProvider.lastUid(MailboxSession mailboxSession,
Mailbox<String> mailbox) |
protected long |
JCRModSeqProvider.lockedNextModSeq(MailboxSession session,
Mailbox<String> mailbox) |
protected long |
JCRUidProvider.lockedNextUid(MailboxSession session,
Mailbox<String> mailbox) |
Constructor and Description |
---|
JCRMailboxMapper(MailboxSessionJCRRepository repos,
MailboxSession session,
int scaling) |
JCRMessageMapper(MailboxSessionJCRRepository repos,
MailboxSession session,
UidProvider<String> uidProvider,
ModSeqProvider<String> modSeqProvider)
Construct a new
JCRMessageMapper instance using JCRMessageMapper.MESSAGE_SCALE_DAY as default |
JCRMessageMapper(MailboxSessionJCRRepository repository,
MailboxSession mSession,
UidProvider<String> uidProvider,
ModSeqProvider<String> modSeqProvider,
int scaleType)
Construct a new
JCRMessageMapper instance |
Constructor and Description |
---|
JCRSubscriptionMapper(MailboxSessionJCRRepository repos,
MailboxSession session,
int scaling) |
Modifier and Type | Method and Description |
---|---|
MailboxMapper<Long> |
JPAMailboxSessionMapperFactory.createMailboxMapper(MailboxSession session) |
MessageMapper<Long> |
JPAMailboxSessionMapperFactory.createMessageMapper(MailboxSession session) |
protected Subscription |
JPASubscriptionManager.createSubscription(MailboxSession session,
String mailbox) |
SubscriptionMapper |
JPAMailboxSessionMapperFactory.createSubscriptionMapper(MailboxSession session) |
void |
JPAMailboxManager.deleteEverything(MailboxSession mailboxSession)
Delete all mailboxes
|
protected Mailbox<Long> |
JPAMailboxManager.doCreateMailbox(MailboxPath path,
MailboxSession session) |
protected javax.mail.Flags |
JPAMessageManager.getPermanentFlags(MailboxSession session)
Support user flags
|
Modifier and Type | Method and Description |
---|---|
long |
JPAModSeqProvider.highestModSeq(MailboxSession session,
Mailbox<Long> mailbox) |
long |
JPAUidProvider.lastUid(MailboxSession session,
Mailbox<Long> mailbox) |
protected long |
JPAModSeqProvider.lockedNextModSeq(MailboxSession session,
Mailbox<Long> mailbox) |
protected long |
JPAUidProvider.lockedNextUid(MailboxSession session,
Mailbox<Long> mailbox) |
Constructor and Description |
---|
JPAMessageMapper(MailboxSession session,
UidProvider<Long> uidProvider,
ModSeqProvider<Long> modSeqProvider,
javax.persistence.EntityManagerFactory entityManagerFactory) |
Modifier and Type | Method and Description |
---|---|
protected StoreMessageManager<Long> |
OpenJPAMailboxManager.createMessageManager(Mailbox<Long> mailboxRow,
MailboxSession session) |
Modifier and Type | Method and Description |
---|---|
void |
LuceneMessageSearchIndex.add(MailboxSession session,
Mailbox<Id> mailbox,
Message<Id> membership) |
void |
LuceneMessageSearchIndex.delete(MailboxSession session,
Mailbox<Id> mailbox,
MessageRange range) |
Iterator<Long> |
LuceneMessageSearchIndex.search(MailboxSession session,
Mailbox<Id> mailbox,
SearchQuery searchQuery) |
void |
LuceneMessageSearchIndex.update(MailboxSession session,
Mailbox<Id> mailbox,
MessageRange range,
javax.mail.Flags f) |
Modifier and Type | Method and Description |
---|---|
long |
MaildirFolder.appendMessage(MailboxSession session,
String name)
Appends a message to the uidlist and returns its uid.
|
protected MailboxMapper<Integer> |
MaildirMailboxSessionMapperFactory.createMailboxMapper(MailboxSession session) |
protected MessageMapper<Integer> |
MaildirMailboxSessionMapperFactory.createMessageMapper(MailboxSession session) |
protected SubscriptionMapper |
MaildirMailboxSessionMapperFactory.createSubscriptionMapper(MailboxSession session) |
MaildirMessageName |
MaildirFolder.delete(MailboxSession session,
long uid)
Retrieves the file belonging to the given uid, deletes it and updates
the uid list.
|
MailboxACL |
MaildirFolder.getACL(MailboxSession session) |
long |
MaildirFolder.getLastUid(MailboxSession session)
Returns the last uid used in this mailbox
|
MaildirMessageName |
MaildirFolder.getMessageNameByUid(MailboxSession session,
Long uid)
Searches the uid list for a certain uid and returns the according
MaildirMessageName |
SortedMap<Long,MaildirMessageName> |
MaildirFolder.getRecentMessages(MailboxSession session)
Creates a map of recent messages.
|
SortedMap<Long,MaildirMessageName> |
MaildirFolder.getUidMap(MailboxSession session,
FilenameFilter filter,
int limit)
Reads all uids from the uid list file which match the given filter
and returns as many of them as a sorted map as the limit specifies.
|
SortedMap<Long,MaildirMessageName> |
MaildirFolder.getUidMap(MailboxSession session,
FilenameFilter filter,
long from,
long to) |
SortedMap<Long,MaildirMessageName> |
MaildirFolder.getUidMap(MailboxSession session,
long from,
long to)
Reads all uids between the two boundaries from the folder and returns them as
a sorted map together with their corresponding
MaildirMessageName s. |
long |
MaildirStore.highestModSeq(MailboxSession session,
Mailbox<Integer> mailbox) |
long |
MaildirStore.lastUid(MailboxSession session,
Mailbox<Integer> mailbox) |
Mailbox<Integer> |
MaildirStore.loadMailbox(MailboxSession session,
File root,
String namespace,
String user,
String folderName)
Creates a Mailbox object with data loaded from the file system
|
Mailbox<Integer> |
MaildirStore.loadMailbox(MailboxSession session,
MailboxPath mailboxPath)
Creates a Mailbox object with data loaded from the file system
|
long |
MaildirStore.nextModSeq(MailboxSession session,
Mailbox<Integer> mailbox) |
long |
MaildirStore.nextUid(MailboxSession session,
Mailbox<Integer> mailbox) |
void |
MaildirFolder.setACL(MailboxSession session,
MailboxACL acl) |
void |
MaildirFolder.update(MailboxSession session,
long uid,
String messageName)
Updates an entry in the uid list.
|
Constructor and Description |
---|
MaildirMailboxMapper(MaildirStore maildirStore,
MailboxSession session) |
MaildirMessageMapper(MailboxSession session,
MaildirStore maildirStore) |
Constructor and Description |
---|
MaildirMailbox(MailboxSession session,
MailboxPath path,
MaildirFolder folder) |
Modifier and Type | Method and Description |
---|---|
static MailboxPath |
MailboxPath.inbox(MailboxSession session)
Return a
MailboxPath which represent the INBOX of the given
session |
static MailboxPath |
MailboxPath.parse(MailboxSession session,
String fullmailboxname)
Create a
MailboxPath by parsing the given full mailboxname (which included the namespace) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleMailboxSession
Describes a mailbox session.
|
Modifier and Type | Method and Description |
---|---|
protected MailboxSession |
StoreMailboxManager.createSession(String userName,
String password,
org.slf4j.Logger log,
MailboxSession.SessionType type)
Create Session
|
MailboxSession |
StoreMailboxManager.createSystemSession(String userName,
org.slf4j.Logger log) |
MailboxSession |
StoreMailboxManager.login(String userid,
String passwd,
org.slf4j.Logger log) |
Modifier and Type | Method and Description |
---|---|
void |
MailboxEventDispatcher.added(MailboxSession session,
SortedMap<Long,MessageMetaData> uids,
Mailbox<Id> mailbox)
Should get called when a new message was added to a Mailbox.
|
void |
StoreMailboxManager.addGlobalListener(MailboxListener listener,
MailboxSession session) |
void |
AbstractDelegatingMailboxListener.addGlobalListener(MailboxListener listener,
MailboxSession session) |
void |
StoreMailboxManager.addListener(MailboxPath path,
MailboxListener listener,
MailboxSession session) |
void |
AbstractDelegatingMailboxListener.addListener(MailboxPath path,
MailboxListener listener,
MailboxSession session) |
long |
StoreMessageManager.appendMessage(InputStream msgIn,
Date internalDate,
MailboxSession mailboxSession,
boolean isRecent,
javax.mail.Flags flagsToBeSet) |
protected MessageMetaData |
StoreMessageManager.appendMessageToStore(Message<Id> message,
MailboxSession session) |
List<MessageRange> |
StoreMailboxManager.copyMessages(MessageRange set,
MailboxPath from,
MailboxPath to,
MailboxSession session) |
List<MessageRange> |
StoreMessageManager.copyTo(MessageRange set,
StoreMessageManager<Id> toMailbox,
MailboxSession session)
Copy the
MessageRange to the StoreMessageManager |
protected long |
StoreMessageManager.countUnseenMessagesInMailbox(MailboxSession session)
Return the count of unseen messages
|
void |
StoreMailboxManager.createMailbox(MailboxPath mailboxPath,
MailboxSession mailboxSession) |
protected abstract MailboxMapper<Id> |
MailboxSessionMapperFactory.createMailboxMapper(MailboxSession session)
Create a
MailboxMapper instance which will get reused during the whole MailboxSession |
protected StoreMessageManager<Id> |
StoreMailboxManager.createMessageManager(Mailbox<Id> mailbox,
MailboxSession session)
Create a
MailboxManager for the given Mailbox. |
protected abstract MessageMapper<Id> |
MailboxSessionMapperFactory.createMessageMapper(MailboxSession session)
Create a
MessageMapper instance which will get reused during the whole MailboxSession |
protected Subscription |
StoreSubscriptionManager.createSubscription(MailboxSession session,
String mailbox)
Create Subscription for the given user and mailbox.
|
protected abstract SubscriptionMapper |
MailboxSessionMapperFactory.createSubscriptionMapper(MailboxSession session)
Create a
SubscriptionMapper instance which will get reused during the whole MailboxSession |
void |
StoreMailboxManager.deleteMailbox(MailboxPath mailboxPath,
MailboxSession session) |
protected Map<Long,MessageMetaData> |
StoreMessageManager.deleteMarkedInMailbox(MessageRange range,
MailboxSession session) |
protected Mailbox<Id> |
StoreMailboxManager.doCreateMailbox(MailboxPath mailboxPath,
MailboxSession session)
Create a Mailbox for the given mailbox path.
|
void |
MailboxSessionMapperFactory.endProcessingRequest(MailboxSession session)
Call endRequest on
Mapper instances |
void |
StoreMailboxManager.endProcessingRequest(MailboxSession session)
End processing of Request for session
|
void |
StoreSubscriptionManager.endProcessingRequest(MailboxSession session) |
<T> T |
AbstractMailboxPathLocker.executeWithLock(MailboxSession session,
MailboxPath path,
MailboxPathLocker.LockAwareExecution<T> execution) |
<T> T |
AbstractMailboxPathLocker.executeWithLock(MailboxSession session,
MailboxPath path,
MailboxPathLocker.LockAwareExecution<T> execution,
boolean writeLock) |
Iterator<Long> |
StoreMessageManager.expunge(MessageRange set,
MailboxSession mailboxSession) |
void |
MailboxEventDispatcher.expunged(MailboxSession session,
Map<Long,MessageMetaData> uids,
Mailbox<Id> mailbox)
Should get called when a message was expunged from a Mailbox.
|
protected Long |
StoreMessageManager.findFirstUnseenMessageUid(MailboxSession session)
Return the uid of the first unseen message or null of none is found
|
void |
MailboxEventDispatcher.flagsUpdated(MailboxSession session,
List<Long> uids,
Mailbox<Id> mailbox,
List<UpdatedFlags> uflags)
Should get called when the message flags were update in a Mailbox.
|
MessageManager |
StoreMailboxManager.getMailbox(MailboxPath mailboxPath,
MailboxSession session) |
MailboxMapper<Id> |
MailboxSessionMapperFactory.getMailboxMapper(MailboxSession session) |
long |
StoreMessageManager.getMessageCount(MailboxSession mailboxSession) |
MessageMapper<Id> |
MailboxSessionMapperFactory.getMessageMapper(MailboxSession session) |
MessageResultIterator |
StoreMessageManager.getMessages(MessageRange set,
MessageResult.FetchGroup fetchGroup,
MailboxSession mailboxSession) |
MessageManager.MetaData |
StoreMessageManager.getMetaData(boolean resetRecent,
MailboxSession mailboxSession,
MessageManager.MetaData.FetchGroup fetchGroup) |
protected javax.mail.Flags |
StoreMessageManager.getPermanentFlags(MailboxSession session)
Return
Flags which are permanent stored by the mailbox. |
protected MailboxACL |
StoreMessageManager.getResolvedMailboxACL(MailboxSession mailboxSession)
Applies the global ACL (if there are any) to the mailbox ACL.
|
protected javax.mail.Flags |
StoreMessageManager.getSharedPermanentFlags(MailboxSession session)
Returns the flags which are shared for the current mailbox, i.e.
|
SubscriptionMapper |
MailboxSessionMapperFactory.getSubscriptionMapper(MailboxSession session)
Create a
SubscriptionMapper instance or return the one which exists for the MailboxSession already |
boolean |
StoreMessageManager.hasRight(MailboxACL.MailboxACLRight right,
MailboxSession session) |
protected boolean |
StoreMessageManager.isGroupFolder(MailboxSession session)
Returns true if the current mailbox does not reside neither in private
nor other users' namespace.
|
boolean |
StoreMessageManager.isModSeqPermanent(MailboxSession session)
Return true.
|
boolean |
StoreMessageManager.isWriteable(MailboxSession session)
This mailbox is writable
|
List<MailboxPath> |
StoreMailboxManager.list(MailboxSession session) |
MailboxACL.MailboxACLRights[] |
StoreMessageManager.listRigths(MailboxACL.MailboxACLEntryKey key,
MailboxSession session) |
protected abstract void |
AbstractMailboxPathLocker.lock(MailboxSession session,
MailboxPath path,
boolean writeLock)
Perform lock
|
protected void |
JVMMailboxPathLocker.lock(MailboxSession session,
MailboxPath path,
boolean writeLock) |
void |
StoreMailboxManager.logout(MailboxSession session,
boolean force)
Close the
MailboxSession if not null |
void |
MailboxEventDispatcher.mailboxAdded(MailboxSession session,
Mailbox<Id> mailbox)
Should get called when a Mailbox was added.
|
void |
MailboxEventDispatcher.mailboxDeleted(MailboxSession session,
Mailbox<Id> mailbox)
Should get called when a Mailbox was deleted.
|
boolean |
StoreMailboxManager.mailboxExists(MailboxPath mailboxPath,
MailboxSession session) |
void |
MailboxEventDispatcher.mailboxRenamed(MailboxSession session,
MailboxPath from,
Mailbox<Id> to)
Should get called when a Mailbox was renamed.
|
MailboxACL.MailboxACLRights |
StoreMessageManager.myRights(MailboxSession session) |
protected List<Long> |
StoreMessageManager.recent(boolean reset,
MailboxSession mailboxSession)
Return a List which holds all uids of recent messages and optional reset
the recent flag on the messages for the uids
|
void |
StoreMailboxManager.removeGlobalListener(MailboxListener listener,
MailboxSession session) |
void |
AbstractDelegatingMailboxListener.removeGlobalListener(MailboxListener listener,
MailboxSession session) |
void |
StoreMailboxManager.removeListener(MailboxPath mailboxPath,
MailboxListener listener,
MailboxSession session) |
void |
AbstractDelegatingMailboxListener.removeListener(MailboxPath mailboxPath,
MailboxListener listener,
MailboxSession session) |
void |
StoreMailboxManager.renameMailbox(MailboxPath from,
MailboxPath to,
MailboxSession session) |
List<MailboxMetaData> |
StoreMailboxManager.search(MailboxQuery mailboxExpression,
MailboxSession session) |
Iterator<Long> |
StoreMessageManager.search(SearchQuery query,
MailboxSession mailboxSession) |
Map<Long,javax.mail.Flags> |
StoreMessageManager.setFlags(javax.mail.Flags flags,
boolean value,
boolean replace,
MessageRange set,
MailboxSession mailboxSession) |
void |
MailboxSessionMapperFactory.startProcessingRequest(MailboxSession session)
Do nothing
|
void |
StoreMailboxManager.startProcessingRequest(MailboxSession session)
Do nothing.
|
void |
StoreSubscriptionManager.startProcessingRequest(MailboxSession session)
Do nothing, Sub classes should override this if needed
|
void |
StoreSubscriptionManager.subscribe(MailboxSession session,
String mailbox) |
Collection<String> |
StoreSubscriptionManager.subscriptions(MailboxSession session) |
protected abstract void |
AbstractMailboxPathLocker.unlock(MailboxSession session,
MailboxPath path,
boolean writeLock)
Release lock
|
protected void |
JVMMailboxPathLocker.unlock(MailboxSession session,
MailboxPath path,
boolean writeLock) |
void |
StoreSubscriptionManager.unsubscribe(MailboxSession session,
String mailbox) |
Constructor and Description |
---|
MailboxEventDispatcher.AddedImpl(MailboxSession session,
Mailbox<Id> mailbox,
SortedMap<Long,MessageMetaData> added) |
MailboxEventDispatcher.ExpungedImpl(MailboxSession session,
Mailbox<Id> mailbox,
Map<Long,MessageMetaData> uids) |
MailboxEventDispatcher.FlagsUpdatedImpl(MailboxSession session,
Mailbox<Id> mailbox,
List<Long> uids,
List<UpdatedFlags> uFlags) |
MailboxEventDispatcher.MailboxAddedImpl(MailboxSession session,
Mailbox<Id> mailbox) |
MailboxEventDispatcher.MailboxDeletionImpl(MailboxSession session,
Mailbox<Id> mailbox) |
MailboxEventDispatcher.MailboxRenamedEventImpl(MailboxSession session,
MailboxPath oldPath,
Mailbox<Id> newMailbox) |
Modifier and Type | Field and Description |
---|---|
protected MailboxSession |
AbstractMessageMapper.mailboxSession |
Modifier and Type | Method and Description |
---|---|
MailboxMapper<Id> |
MailboxMapperFactory.getMailboxMapper(MailboxSession session)
Create a
MailboxMapper instance or return the one which exists for the MailboxSession already |
MessageMapper<Id> |
MessageMapperFactory.getMessageMapper(MailboxSession session)
Create a
MessageMapper instance of return the one which exists for the MailboxSession already |
long |
ModSeqProvider.highestModSeq(MailboxSession session,
Mailbox<Id> mailbox)
Return the highest mod-sequence which were used for the
Mailbox |
long |
ZooUidProvider.lastUid(MailboxSession session,
Mailbox<E> mailbox) |
long |
UidProvider.lastUid(MailboxSession session,
Mailbox<Id> mailbox)
Return the last uid which were used for storing a Message in the
Mailbox |
protected abstract long |
AbstractLockingModSeqProvider.lockedNextModSeq(MailboxSession session,
Mailbox<Id> mailbox)
Generate the next mod-seq for the given
Mailbox while holding a lock on it. |
protected abstract long |
AbstractLockingUidProvider.lockedNextUid(MailboxSession session,
Mailbox<Id> mailbox)
Generate the next uid to use while the
Mailbox is locked |
long |
ModSeqProvider.nextModSeq(MailboxSession session,
Mailbox<Id> mailbox)
Return the next mod-sequence which can be used for the
Mailbox . |
long |
AbstractLockingModSeqProvider.nextModSeq(MailboxSession session,
Mailbox<Id> mailbox) |
long |
ZooUidProvider.nextUid(MailboxSession session,
Mailbox mailbox) |
long |
AbstractLockingUidProvider.nextUid(MailboxSession session,
Mailbox<Id> mailbox) |
long |
UidProvider.nextUid(MailboxSession session,
Mailbox<Id> mailbox)
Return the next uid which can be used while append a Message to the
Mailbox . |
Constructor and Description |
---|
AbstractMessageMapper(MailboxSession mailboxSession,
UidProvider<Id> uidProvider,
ModSeqProvider<Id> modSeqProvider) |
Modifier and Type | Method and Description |
---|---|
protected abstract long |
ListeningQuotaManager.getMaxMessage(MailboxSession session)
Return the maximum message count which is allowed for the given
MailboxSession (in fact the user which the session is bound to) |
protected long |
FixedQuotaManager.getMaxMessage(MailboxSession session) |
protected long |
PerUserQuotaManager.getMaxMessage(MailboxSession session) |
protected abstract long |
ListeningQuotaManager.getMaxStorage(MailboxSession session)
Return the maximum storage which is allowed for the given
MailboxSession (in fact the user which the session is bound to)
The returned valued must be in bytes |
protected long |
FixedQuotaManager.getMaxStorage(MailboxSession session) |
protected long |
PerUserQuotaManager.getMaxStorage(MailboxSession session) |
Quota |
ListeningQuotaManager.getMessageQuota(MailboxSession session) |
Quota |
ListeningQuotaManager.getStorageQuota(MailboxSession session) |
Modifier and Type | Method and Description |
---|---|
abstract void |
ListeningMessageSearchIndex.add(MailboxSession session,
Mailbox<Id> mailbox,
Message<Id> message)
|
void |
LazyMessageSearchIndex.add(MailboxSession session,
Mailbox<Id> mailbox,
Message<Id> message) |
abstract void |
ListeningMessageSearchIndex.delete(MailboxSession session,
Mailbox<Id> mailbox,
MessageRange range)
Delete the
MessageRange for the given Mailbox from the index |
void |
LazyMessageSearchIndex.delete(MailboxSession session,
Mailbox<Id> mailbox,
MessageRange range) |
Iterator<Long> |
MessageSearchIndex.search(MailboxSession session,
Mailbox<Id> mailbox,
SearchQuery searchQuery)
Return all uids of the previous indexed
Mailbox 's which match the SearchQuery |
Iterator<Long> |
SimpleMessageSearchIndex.search(MailboxSession session,
Mailbox<Id> mailbox,
SearchQuery query) |
Iterator<Long> |
LazyMessageSearchIndex.search(MailboxSession session,
Mailbox<Id> mailbox,
SearchQuery searchQuery)
Lazy index the mailbox on first search request if it was not indexed before.
|
abstract void |
ListeningMessageSearchIndex.update(MailboxSession session,
Mailbox<Id> mailbox,
MessageRange range,
javax.mail.Flags flags)
|
void |
LazyMessageSearchIndex.update(MailboxSession session,
Mailbox<Id> mailbox,
MessageRange range,
javax.mail.Flags flags) |
Modifier and Type | Method and Description |
---|---|
SubscriptionMapper |
SubscriptionMapperFactory.getSubscriptionMapper(MailboxSession session)
Create a
SubscriptionMapper instance or return the one which exists for the MailboxSession already |
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.