|
||||||||||
| 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<YamlMetaMessage>
net.fortuna.mstor.connector.mbox.YamlMetaFolder
public class YamlMetaFolder
| Field Summary | |
|---|---|
static java.lang.String |
FILE_EXTENSION
YAML file extension. |
| Constructor Summary | |
|---|---|
YamlMetaFolder(FolderDelegate<MessageDelegate> delegate)
|
|
| Method Summary | |
|---|---|
protected YamlMetaMessage |
createMessage(int messageNumber)
|
protected java.lang.String |
getFileExtension()
|
YamlMetaFolder |
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. |
YamlMetaMessage |
getMessage(int messageNumber)
Returns message delegate corresponding to the specified message id. |
YamlMetaFolder |
getParent()
|
long |
getUidValidity()
Returns the UID validity associated with the metadata. |
YamlMetaFolder[] |
list(java.lang.String pattern)
Returns a list of child folder delegates matching the specified pattern. |
protected YamlMetaMessage[] |
removeMessages(javax.mail.Message[] deleted)
|
protected 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 YamlMetaFolder(FolderDelegate<MessageDelegate> delegate)
delegate - | Method Detail |
|---|
protected java.lang.String getFileExtension()
getFileExtension in class AbstractMetaFolder<YamlMetaMessage>protected YamlMetaMessage[] removeMessages(javax.mail.Message[] deleted)
removeMessages in class AbstractMetaFolder<YamlMetaMessage>
protected void save()
throws DelegateException
save in class AbstractMetaFolder<YamlMetaMessage>DelegateException
protected YamlMetaMessage createMessage(int messageNumber)
throws DelegateException
createMessage in class AbstractFolderDelegate<YamlMetaMessage>messageNumber - the message number to associate with the new message
DelegateException - where an error occurs creating the delegate
protected void setLastUid(long uid)
throws java.lang.UnsupportedOperationException,
DelegateException
setLastUid in class AbstractFolderDelegate<YamlMetaMessage>uid - the latest UID for the folder
java.lang.UnsupportedOperationException - if this method is not supported in the folder delegate
DelegateException - where an error occurs updating the latest UID
public YamlMetaFolder getFolder(java.lang.String name)
throws javax.mail.MessagingException
name - a folder name
javax.mail.MessagingException - where an unexpected error occurs retrieving the folder
public long getLastUid()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if this method is not supported by the folder implementation
public YamlMetaMessage getMessage(int messageNumber)
throws DelegateException
messageNumber - the message number of the message to retrieve
DelegateException - where an error occurs retrieving the messagepublic YamlMetaFolder getParent()
public 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 valuepublic YamlMetaFolder[] list(java.lang.String pattern)
pattern - a pattern to match folders against
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||