Folder Class

Used to represent a folder (e.g. "Inbox", "Contacts", etc.)

Constructors

Folder( String folderName, Connection conn )

Public Methods

getFolders( ) returns Folder[]
Returns an array of folders found in this folder. Returns a zero length array of no folders are found.
getFolders( String Traversal ) returns Folder[]
Returns an array of folders found in this folder. Returns a zero length array of no folders are found.
TraversalPossible values include "Deep", "Shallow", "SoftDeleted". Defaults to "Shallow" if a null or invalid string is used.
createFolder( String name ) returns Folder
Used to create a folder within this folder.
rename( String name ) returns void
Used to rename this folder.
move( Folder destination ) returns void
Used to move this folder to another folder.
delete( ) returns void
Used to delete this folder.
getID( ) returns String
Returns the unique Exchange ID for this folder.
getParentID( ) returns String
Returns the unique ID for the parent folder.
getName( ) returns String
Returns the name of the folder.
getTotalCount( ) returns Integer
Returns the total number of items found in this folder.
getUnreadCount( ) returns Integer
Returns the total number of unread items found in this folder.
getChildFolderCount( ) returns Integer
Returns the total number of folders found in this this folder.
toString( ) returns String
Returns the name of the folder.
getIndex( ) returns java.util.HashMap<String, javaxt.utils.Date>
Returns a hashmap of all the items found in this folder. The hashmap key is the item id and the corresponding value is the last modification date.

Static Methods

getDistinguishedFolderIds( ) returns String[]
Returns a list of Distinguished Folder IDs.
getDistinguishedFolderId( String folderName ) returns String
Returns the DistinguishedFolderID for a given folder.