org.jasig.portlet.emailpreview
Class ExchangeFolderDto

java.lang.Object
  extended by javax.mail.Folder
      extended by org.jasig.portlet.emailpreview.ExchangeFolderDto

public class ExchangeFolderDto
extends javax.mail.Folder

Describes an Exchange folder. This is a minimal implementation needed for Email Preview to be able to identify and list the user's email folders in the UI.

Author:
James Wennmacher, jwennmacher@unicon.net

Field Summary
 
Fields inherited from class javax.mail.Folder
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store
 
Constructor Summary
ExchangeFolderDto(String id, String foldername, int messageCount, int unreadMessageCount)
           
 
Method Summary
 void appendMessages(javax.mail.Message[] msgs)
           
 void close(boolean expunge)
           
 boolean create(int type)
           
 boolean delete(boolean recurse)
           
 boolean exists()
           
 javax.mail.Message[] expunge()
           
 int getChildFolderCount()
           
 javax.mail.Folder getFolder(String name)
           
 String getFullName()
           
 String getId()
           
 javax.mail.Message getMessage(int msgnum)
           
 int getMessageCount()
           
 String getName()
           
 javax.mail.Folder getParent()
           
 javax.mail.Flags getPermanentFlags()
           
 char getSeparator()
           
 int getType()
           
 int getUnreadMessageCount()
           
 boolean hasNewMessages()
           
 boolean isOpen()
           
 javax.mail.Folder[] list(String pattern)
           
 void open(int mode)
           
 boolean renameTo(javax.mail.Folder f)
           
 void setChildFolderCount(int childFolderCount)
           
 void setFoldername(String foldername)
           
 void setMessageCount(int messageCount)
           
 void setUnreadMessageCount(int unreadMessageCount)
           
 
Methods inherited from class javax.mail.Folder
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, copyMessages, fetch, finalize, getDeletedMessageCount, getMessages, getMessages, getMessages, getMode, getNewMessageCount, getStore, 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
 

Constructor Detail

ExchangeFolderDto

public ExchangeFolderDto(String id,
                         String foldername,
                         int messageCount,
                         int unreadMessageCount)
Method Detail

getName

public String getName()
Specified by:
getName in class javax.mail.Folder

setFoldername

public void setFoldername(String foldername)

getFullName

public String getFullName()
Specified by:
getFullName in class javax.mail.Folder

getParent

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

exists

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

list

public javax.mail.Folder[] list(String pattern)
                         throws javax.mail.MessagingException
Specified by:
list in class javax.mail.Folder
Throws:
javax.mail.MessagingException

getSeparator

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

getType

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

create

public boolean create(int type)
               throws javax.mail.MessagingException
Specified by:
create in class javax.mail.Folder
Throws:
javax.mail.MessagingException

hasNewMessages

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

getFolder

public javax.mail.Folder getFolder(String name)
                            throws javax.mail.MessagingException
Specified by:
getFolder in class javax.mail.Folder
Throws:
javax.mail.MessagingException

delete

public boolean delete(boolean recurse)
               throws javax.mail.MessagingException
Specified by:
delete in class javax.mail.Folder
Throws:
javax.mail.MessagingException

renameTo

public boolean renameTo(javax.mail.Folder f)
                 throws javax.mail.MessagingException
Specified by:
renameTo in class javax.mail.Folder
Throws:
javax.mail.MessagingException

open

public void open(int mode)
          throws javax.mail.MessagingException
Specified by:
open in class javax.mail.Folder
Throws:
javax.mail.MessagingException

close

public void close(boolean expunge)
           throws javax.mail.MessagingException
Specified by:
close in class javax.mail.Folder
Throws:
javax.mail.MessagingException

isOpen

public boolean isOpen()
Specified by:
isOpen in class javax.mail.Folder

getPermanentFlags

public javax.mail.Flags getPermanentFlags()
Specified by:
getPermanentFlags in class javax.mail.Folder

getMessageCount

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

setMessageCount

public void setMessageCount(int messageCount)

getMessage

public javax.mail.Message getMessage(int msgnum)
                              throws javax.mail.MessagingException
Specified by:
getMessage in class javax.mail.Folder
Throws:
javax.mail.MessagingException

appendMessages

public void appendMessages(javax.mail.Message[] msgs)
                    throws javax.mail.MessagingException
Specified by:
appendMessages in class javax.mail.Folder
Throws:
javax.mail.MessagingException

expunge

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

getUnreadMessageCount

public int getUnreadMessageCount()
                          throws javax.mail.MessagingException
Overrides:
getUnreadMessageCount in class javax.mail.Folder
Throws:
javax.mail.MessagingException

getId

public String getId()

setUnreadMessageCount

public void setUnreadMessageCount(int unreadMessageCount)

getChildFolderCount

public int getChildFolderCount()

setChildFolderCount

public void setChildFolderCount(int childFolderCount)


Copyright © 2013 Jasig. All Rights Reserved.