| org.columba.mail.folder.AbstractFolder org.columba.mail.folder.AbstractMessageFolder org.columba.mail.folder.AbstractLocalFolder
All known Subclasses: org.columba.mail.folder.zippedmh.ZippedMHFolder, org.columba.mail.folder.mh.CachedMHFolder, org.columba.mail.folder.mbox.CachedMboxFolder,
AbstractLocalFolder | abstract public class AbstractLocalFolder extends AbstractMessageFolder (Code) | | AbstractLocalFolder is a near-to working folder, which only needs a specific
IDataStorage ,
DefaultSearchEngine and
IHeaderListStorage "plugged in" to make it work.
This class is abstract becaused, instead use
MHCachedFolder a
complete implementation.
AbstractLocalFolder uses an internal
ColumbaMessage object as cache.
This allows parsing of a message only once, while accessing the data of the
message multiple times.
Attribute nextMessageUid handles the next unique message ID.
When adding a new message to this folder, it gets this ID assigned for later
reference. Then nextMessageUid is simply increased.
See Also: org.columba.mail.folder.mh.MHCachedFolder author: fdietz |
aktMessage | protected ColumbaMessage aktMessage(Code) | | we keep one message in cache in order to not needing to parse it twice
times
|
dataStorage | protected IDataStorage dataStorage(Code) | | implement your own mailbox format here
|
nextMessageUid | protected int nextMessageUid(Code) | | the next messag which gets added to this folder receives this unique ID
|
AbstractLocalFolder | public AbstractLocalFolder(FolderItem item, String path)(Code) | | Parameters: item - FolderItem contains xml configuration of thisfolder |
AbstractLocalFolder | public AbstractLocalFolder(String name, String type, String path)(Code) | | Parameters: name - the name of the folder. Parameters: type - type of folder. |
generateNextMessageUid | protected Object generateNextMessageUid()(Code) | | Generate new unique message ID
Integer containing UID |
getDataStorageInstance | abstract public IDataStorage getDataStorageInstance()(Code) | | Implement a IDataStorage for the mailbox format of your
pleasure.
instance of IDataStorage |
isInboxFolder | public boolean isInboxFolder()(Code) | |
|
isTrashFolder | public boolean isTrashFolder()(Code) | |
|
loadMessageFolderInfo | protected void loadMessageFolderInfo()(Code) | | |
removeFolder | public void removeFolder() throws Exception(Code) | | Remove folder from tree
See Also: org.columba.mail.folder.FolderTreeNode.removeFolder |
setFlags | protected void setFlags(Object uid, Flags flags) throws Exception(Code) | | Changes the selected message flags and updates the
MailFolderInfo accordingly.
This method is only used for innerCopy().
Parameters: uid - selected message UID Parameters: flags - new flags throws: Exception - |
setNextMessageUid | public void setNextMessageUid(int next)(Code) | | Set next unique message ID
Parameters: next - number of next message |
supportsAddFolder | public boolean supportsAddFolder(String newFolderType)(Code) | |
|
supportsMove | public boolean supportsMove()(Code) | | Returns true since local folders can be moved.
true. |
Methods inherited from org.columba.mail.folder.AbstractMessageFolder | protected InputStream decodeStream(MimeHeader header, InputStream bodyStream)(Code)(Java Doc) public boolean exists(Object uid) throws Exception(Code)(Java Doc) public void expungeFolder() throws Exception(Code)(Java Doc) public void fireMessageAdded(Object uid, Flags flags)(Code)(Java Doc) public void fireMessageFlagChanged(Object uid, Flags oldFlags, int variant)(Code)(Java Doc) public void fireMessageRemoved(Object uid, Flags flags)(Code)(Java Doc) public Object getAttribute(Object uid, String key) throws Exception(Code)(Java Doc) public Attributes getAttributes(Object uid) throws Exception(Code)(Java Doc) public File getDirectoryFile()(Code)(Java Doc) public IFilterList getFilterList()(Code)(Java Doc) public Flags getFlags(Object uid) throws Exception(Code)(Java Doc) abstract public IHeaderList getHeaderList() throws Exception(Code)(Java Doc) public Object getLastSelection()(Code)(Java Doc) public IMailboxInfo getMessageFolderInfo()(Code)(Java Doc) public IStatusObservable getObservable()(Code)(Java Doc) public DefaultSearchEngine getSearchEngine()(Code)(Java Doc) public Object[] getUids() throws Exception(Code)(Java Doc) protected boolean hasChanged()(Code)(Java Doc) public boolean isInboxFolder()(Code)(Java Doc) public boolean isReadOnly()(Code)(Java Doc) public boolean isTrashFolder()(Code)(Java Doc) protected void loadMessageFolderInfo()(Code)(Java Doc) protected void markMessage(Object uid, int variant) throws Exception(Code)(Java Doc) public void markMessage(Object[] uids, int variant) throws Exception(Code)(Java Doc) protected void recreateMessageFolderInfo()(Code)(Java Doc) public void removeMessage(Object uid) throws Exception(Code)(Java Doc) public void save() throws Exception(Code)(Java Doc) protected void saveMessageFolderInfo()(Code)(Java Doc) public Object[] searchMessages(IFilter filter, Object[] uids) throws Exception(Code)(Java Doc) public Object[] searchMessages(IFilter filter) throws Exception(Code)(Java Doc) public void setAttribute(Object uid, String key, Object value) throws Exception(Code)(Java Doc) public void setChanged(boolean b)(Code)(Java Doc) public void setLastSelection(Object lastSel)(Code)(Java Doc) public void setMessageFolderInfo(MailboxInfo i)(Code)(Java Doc) public void setSearchEngine(DefaultSearchEngine engine)(Code)(Java Doc) public boolean supportsAddMessage()(Code)(Java Doc) public String toString()(Code)(Java Doc) protected void updateMailFolderInfo(Flags flags, int variant) throws Exception(Code)(Java Doc)
|
|
|