org.opencrx.application.imap
Class IMAPFolderImpl

java.lang.Object
  extended by javax.mail.Folder
      extended by org.opencrx.application.imap.IMAPFolderImpl
All Implemented Interfaces:
UIDFolder

public class IMAPFolderImpl
extends Folder
implements UIDFolder


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.mail.UIDFolder
UIDFolder.FetchProfileItem
 
Field Summary
protected  ActivitiesFilterHelper activitiesHelper
           
static String EMAIL_ADDRESS_LOOKUP_CASE_INSENSITIVE_PROPERTY_NAME
           
static String EMAIL_ADDRESS_LOOKUP_IGNORE_DISABLED_PROPERTY_NAME
           
protected  File folderDir
           
protected static String INDEX_FILE_NAME
           
protected  boolean isEMailAddressLookupCaseInsensitive
           
protected  boolean isEMailAddressLookupIgnoreDisabled
           
static String MAILDIR_PROPERTY_NAME
           
protected  List<Long> messageUIDs
           
protected  Map<Long,String> messageXRIs
           
protected  String name
           
protected static long SYNCHRONIZE_REFRESH_RATE
           
protected  long synchronizeNextAt
           
 
Fields inherited from class javax.mail.Folder
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store
 
Fields inherited from interface javax.mail.UIDFolder
LASTUID
 
Constructor Summary
IMAPFolderImpl(String name, String username, ActivitiesFilterHelper activitiesHelper)
           
 
Method Summary
 void appendMessages(Message[] newMessages)
           
 void close(boolean arg0)
           
 boolean create(int arg0)
           
 boolean delete(boolean arg0)
           
 boolean exists()
           
 Message[] expunge()
           
 Folder getFolder(String arg0)
           
 String getFullName()
           
static File getMailDir(String username)
           
 Message getMessage(int messageNumber)
           
 Message getMessageByUID(long uid)
           
 int getMessageCount()
           
 Message[] getMessagesByUID(long[] uids)
           
 Message[] getMessagesByUID(long start, long end)
           
 String getName()
           
 Folder getParent()
           
 Flags getPermanentFlags()
           
 char getSeparator()
           
 int getType()
           
 long getUID(Message message)
           
 long getUIDValidity()
           
 boolean hasNewMessages()
           
 boolean isOpen()
           
 Folder[] list(String arg0)
           
 void open(int arg0)
           
 boolean renameTo(Folder arg0)
           
 
Methods inherited from class javax.mail.Folder
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, copyMessages, fetch, finalize, getDeletedMessageCount, getMessages, getMessages, getMessages, getMode, getNewMessageCount, getStore, getUnreadMessageCount, getURLName, isSubscribed, list, listSubscribed, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, search, search, setFlags, setFlags, setFlags, setSubscribed, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INDEX_FILE_NAME

protected static final String INDEX_FILE_NAME
See Also:
Constant Field Values

SYNCHRONIZE_REFRESH_RATE

protected static final long SYNCHRONIZE_REFRESH_RATE
See Also:
Constant Field Values

MAILDIR_PROPERTY_NAME

public static final String MAILDIR_PROPERTY_NAME
See Also:
Constant Field Values

EMAIL_ADDRESS_LOOKUP_CASE_INSENSITIVE_PROPERTY_NAME

public static final String EMAIL_ADDRESS_LOOKUP_CASE_INSENSITIVE_PROPERTY_NAME
See Also:
Constant Field Values

EMAIL_ADDRESS_LOOKUP_IGNORE_DISABLED_PROPERTY_NAME

public static final String EMAIL_ADDRESS_LOOKUP_IGNORE_DISABLED_PROPERTY_NAME
See Also:
Constant Field Values

name

protected final String name

activitiesHelper

protected final ActivitiesFilterHelper activitiesHelper

messageUIDs

protected final List<Long> messageUIDs

messageXRIs

protected final Map<Long,String> messageXRIs

folderDir

protected File folderDir

isEMailAddressLookupCaseInsensitive

protected boolean isEMailAddressLookupCaseInsensitive

isEMailAddressLookupIgnoreDisabled

protected boolean isEMailAddressLookupIgnoreDisabled

synchronizeNextAt

protected long synchronizeNextAt
Constructor Detail

IMAPFolderImpl

public IMAPFolderImpl(String name,
                      String username,
                      ActivitiesFilterHelper activitiesHelper)
Method Detail

getMailDir

public static File getMailDir(String username)

appendMessages

public void appendMessages(Message[] newMessages)
                    throws MessagingException
Specified by:
appendMessages in class Folder
Throws:
MessagingException

close

public void close(boolean arg0)
           throws MessagingException
Specified by:
close in class Folder
Throws:
MessagingException

create

public boolean create(int arg0)
               throws MessagingException
Specified by:
create in class Folder
Throws:
MessagingException

delete

public boolean delete(boolean arg0)
               throws MessagingException
Specified by:
delete in class Folder
Throws:
MessagingException

exists

public boolean exists()
               throws MessagingException
Specified by:
exists in class Folder
Throws:
MessagingException

expunge

public Message[] expunge()
                  throws MessagingException
Specified by:
expunge in class Folder
Throws:
MessagingException

getFolder

public Folder getFolder(String arg0)
                 throws MessagingException
Specified by:
getFolder in class Folder
Throws:
MessagingException

getMessage

public Message getMessage(int messageNumber)
                   throws MessagingException
Specified by:
getMessage in class Folder
Throws:
MessagingException

getMessageCount

public int getMessageCount()
                    throws MessagingException
Specified by:
getMessageCount in class Folder
Throws:
MessagingException

getFullName

public String getFullName()
Specified by:
getFullName in class Folder

getName

public String getName()
Specified by:
getName in class Folder

getParent

public Folder getParent()
                 throws MessagingException
Specified by:
getParent in class Folder
Throws:
MessagingException

getPermanentFlags

public Flags getPermanentFlags()
Specified by:
getPermanentFlags in class Folder

getSeparator

public char getSeparator()
                  throws MessagingException
Specified by:
getSeparator in class Folder
Throws:
MessagingException

getType

public int getType()
            throws MessagingException
Specified by:
getType in class Folder
Throws:
MessagingException

hasNewMessages

public boolean hasNewMessages()
                       throws MessagingException
Specified by:
hasNewMessages in class Folder
Throws:
MessagingException

isOpen

public boolean isOpen()
Specified by:
isOpen in class Folder

list

public Folder[] list(String arg0)
              throws MessagingException
Specified by:
list in class Folder
Throws:
MessagingException

open

public void open(int arg0)
          throws MessagingException
Specified by:
open in class Folder
Throws:
MessagingException

renameTo

public boolean renameTo(Folder arg0)
                 throws MessagingException
Specified by:
renameTo in class Folder
Throws:
MessagingException

getMessageByUID

public Message getMessageByUID(long uid)
                        throws MessagingException
Specified by:
getMessageByUID in interface UIDFolder
Throws:
MessagingException

getMessagesByUID

public Message[] getMessagesByUID(long[] uids)
                           throws MessagingException
Specified by:
getMessagesByUID in interface UIDFolder
Throws:
MessagingException

getMessagesByUID

public Message[] getMessagesByUID(long start,
                                  long end)
                           throws MessagingException
Specified by:
getMessagesByUID in interface UIDFolder
Throws:
MessagingException

getUID

public long getUID(Message message)
            throws MessagingException
Specified by:
getUID in interface UIDFolder
Throws:
MessagingException

getUIDValidity

public long getUIDValidity()
                    throws MessagingException
Specified by:
getUIDValidity in interface UIDFolder
Throws:
MessagingException


This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.