|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.mstor.connector.AbstractFolderDelegate<T>
net.fortuna.mstor.connector.mbox.AbstractMetaFolder<MetaMessage>
net.fortuna.mstor.connector.mbox.MetaFolder
public class MetaFolder
A JDOM-based implementation of a meta folder.
$Id$ Created: 18/08/2004
| Field Summary | |
|---|---|
static java.lang.String |
FILE_EXTENSION
|
| Constructor Summary | |
|---|---|
MetaFolder(FolderDelegate<MessageDelegate> delegate)
Constructs a new meta folder instance. |
|
MetaFolder(org.jdom.Namespace namespace,
FolderDelegate<MessageDelegate> delegate)
Constructs a new meta folder instance with the specified namespace. |
|
| Method Summary | |
|---|---|
protected MetaMessage |
createMessage(int messageNumber)
|
protected java.lang.String |
getFileExtension()
|
MetaFolder |
getFolder(java.lang.String name)
Returns a child folder delegate with the specified name. |
long |
getLastUid()
Retrieves the last allocated message UID for the folder. |
MetaMessage |
getMessage(int messageNumber)
Returns message delegate corresponding to the specified message id. |
MetaFolder |
getParent()
|
long |
getUidValidity()
Returns the UID validity associated with the metadata. |
MetaFolder[] |
list(java.lang.String pattern)
Returns a list of child folder delegates matching the specified pattern. |
protected MetaMessage[] |
removeMessages(javax.mail.Message[] messages)
|
void |
save()
|
protected void |
setLastUid(long uid)
|
| Methods inherited from class net.fortuna.mstor.connector.mbox.AbstractMetaFolder |
|---|
appendMessages, close, create, delete, exists, expunge, getDelegate, getFile, getFolderName, getFullName, getLastModified, getMessageAsStream, getMessageCount, getSeparator, getType, newUidValidity, open, renameTo |
| Methods inherited from class net.fortuna.mstor.connector.AbstractFolderDelegate |
|---|
allocateUid, getDeletedMessageCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FILE_EXTENSION
| Constructor Detail |
|---|
public MetaFolder(FolderDelegate<MessageDelegate> delegate)
file - the meta folder file
public MetaFolder(org.jdom.Namespace namespace,
FolderDelegate<MessageDelegate> delegate)
file - the meta folder filenamespace - the namespace for the metadata| Method Detail |
|---|
public MetaFolder getParent()
public MetaFolder getFolder(java.lang.String name)
throws javax.mail.MessagingException
name - a folder name
javax.mail.MessagingException - where an unexpected error occurs retrieving the folderpublic MetaFolder[] list(java.lang.String pattern)
pattern - a pattern to match folders against
public final MetaMessage getMessage(int messageNumber)
throws DelegateException
messageNumber - the message number of the message to retrieve
DelegateException - where an error occurs retrieving the messageprotected final MetaMessage createMessage(int messageNumber)
createMessage in class AbstractFolderDelegate<MetaMessage>messageNumber - the message number to associate with the new message
protected MetaMessage[] removeMessages(javax.mail.Message[] messages)
removeMessages in class AbstractMetaFolder<MetaMessage>public final long getLastUid()
public final long getUidValidity()
throws java.lang.UnsupportedOperationException,
javax.mail.MessagingException
java.lang.UnsupportedOperationException - if this method is not supported by the folder implementation
javax.mail.MessagingException - if an error occurs retrieving the validity value
protected final void setLastUid(long uid)
throws DelegateException
setLastUid in class AbstractFolderDelegate<MetaMessage>uid - the latest UID for the folder
DelegateException - where an error occurs updating the latest UIDprotected java.lang.String getFileExtension()
getFileExtension in class AbstractMetaFolder<MetaMessage>
public final void save()
throws DelegateException
save in class AbstractMetaFolder<MetaMessage>DelegateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||