|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExchangeFolder
Represents an Exchange folder. Sub-folders of this folder can be accessed with the method getFolders(). Items stored in this folder can be accessed with the method getItems().
Exchange.getFolder(FolderType)
,
getItems()
,
getFolders()
Method Summary | |
---|---|
ExchangeNotificationWatermark |
addFolderListener(ExchangeFolderListener listener)
Adds a listener that will be notified when this folder or subfolders are created, changed or deleted. |
ExchangeNotificationWatermark |
addFolderListener(ExchangeFolderListener listener,
java.lang.String watermark)
Adds a listener that will be notified when this folder or subfolders are created, changed or deleted since the specified watermark. |
ExchangeNotificationWatermark |
addItemListener(ExchangeItemListener listener)
Adds a listener that will be notified when items are created, changed or deleted in this folder. |
ExchangeNotificationWatermark |
addItemListener(ExchangeItemListener listener,
java.lang.String watermark)
Adds a listener that will be notified when items are created, changed or deleted in this folder since the specified watermark. |
ExchangeNotificationWatermark |
addNewMailListener(ExchangeNewMailListener listener)
Adds a listener that will be notified when a new mail is received in this mail folder. |
ExchangeNotificationWatermark |
addNewMailListener(ExchangeNewMailListener listener,
java.lang.String watermark)
Adds a listener that will be notified when a new mail is received in this mail folder. |
ExchangeFolder |
copyTo(ExchangeFolder folder)
Creates a copy of this folder in the specified folder. |
ExchangeCalendarItem |
createCalendarItem()
Creates a new calendar item in this folder. |
ExchangeContact |
createContact()
Creates a new contact in this folder. |
ExchangeFolder |
createFolder(FolderContentType folderType,
java.lang.String displayName)
Creates a new sub-folder of this folder with the specified type and display name. |
ExchangeItem |
createItem(ItemType itemType)
Creates a new item in this folder. |
ExchangeItem |
createItem(java.lang.String itemClass)
Creates a new item in this folder with the specified item class. |
ExchangeItem |
createItemFrom(java.io.File file)
Creates a new message in this folder from the content of the specified file. |
ExchangeMail |
createMail()
Creates a new email in this folder. |
ExchangeTask |
createTask()
Creates a new calendar item in this folder. |
void |
delete(boolean moveToDeletedItems)
Deletes this folder. |
FolderContentType |
getContentType()
Returns the type of items this folder contains. |
java.lang.String |
getDisplayName()
Returns the name if the folder used for display. |
java.lang.String |
getFolderClass()
Returns a string that describes the folder class. |
java.lang.String |
getFolderId()
Returns the folder's identifier (ID) that identifies a folder in the Exchange store. |
java.lang.String |
getFolderIdChangeKey()
Returns the folder's change key. |
FoldersCollection |
getFolders()
Returns a collection of the sub-folders of this folder. |
int |
getFoldersCount()
Returns the count of sub-folders of this folder. |
ItemsCollection |
getItems()
Returns a collection of the items stored in this folder. |
int |
getItemsCount()
Returns the count of items stored in this folder. |
ExchangeFolder |
getParentFolder()
Returns the parent folder of this folder or null for the root folder. |
int |
getUnreadItemsCount()
Returns the count of unread items stored in this folder. |
boolean |
isUnreadItemsCountSupported()
Indicates whether this folder can contain unread items. |
void |
moveTo(ExchangeFolder folder)
Moves this folder to the specified folder. |
void |
removeFolderListener(ExchangeFolderListener listener)
Removes a listener. |
void |
removeItemListener(ExchangeItemListener listener)
Removes a listener. |
void |
removeNewMailListener(ExchangeNewMailListener listener)
Removes a listener. |
void |
save()
Saves all the changes made to this folder in the Exchange store. |
void |
setDisplayName(java.lang.String displayName)
Modifies the display name of this folder. |
Method Detail |
---|
java.lang.String getFolderId()
java.lang.String getFolderIdChangeKey()
ExchangeFolder getParentFolder() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.java.lang.String getFolderClass() throws ExchangeServiceException
"IPF.Appointment" for calendar folders containing appointments.
"IPF.Contact" for folders containing contacts.
"IPF.Journal" for folders containing the Outlook Journal entries.
"IPF.Note" for folders containing mail messages, like the Inbox, Sent Items, etc.
"IPF.StickyNote" for folders containing the Outlook sticky notes.
"IPF.Task" for folders containing Outlook tasks.
Consider using the method getContentType() to check the type of items contained in a folder.
ExchangeServiceException
- if any errors occur during the communication with Exchange.getContentType()
FolderContentType getContentType() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.java.lang.String getDisplayName() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.void setDisplayName(java.lang.String displayName) throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.int getFoldersCount() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.void save() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.void delete(boolean moveToDeletedItems) throws ExchangeServiceException
moveToDeletedItems
- specifies whether the folder is simply moved to the Deleted Items folder or definitely deleted.
ExchangeServiceException
- if any errors occur during the communication with Exchange.int getItemsCount() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.int getUnreadItemsCount() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.isUnreadItemsCountSupported()
boolean isUnreadItemsCountSupported() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.getUnreadItemsCount()
ItemsCollection getItems() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.FoldersCollection getFolders() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.void moveTo(ExchangeFolder folder) throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.ExchangeFolder copyTo(ExchangeFolder folder) throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.ExchangeFolder createFolder(FolderContentType folderType, java.lang.String displayName) throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.ExchangeItem createItem(ItemType itemType) throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.ExchangeItem createItem(java.lang.String itemClass) throws ExchangeServiceException
"IPM.Appointment" for appointments.
"IPM.Contact" for contacts.
"IPM.Activity" for Journal entries.
"IPM.Note" for e-mail messages.
"IPM.StickyNote" for Outlook sticky notes.
"IPM.Task" for tasks.
ExchangeServiceException
- if any errors occur during the communication with Exchange.ExchangeContact createContact() throws ExchangeServiceException
(ExchangeContact) createItem(ItemType.Contact);
ExchangeServiceException
- if any errors occur during the communication with Exchange.createItem(ItemType)
ExchangeCalendarItem createCalendarItem() throws ExchangeServiceException
(ExchangeCalendarItem) createItem(ItemType.CalendarItem);
ExchangeServiceException
- if any errors occur during the communication with Exchange.createItem(ItemType)
ExchangeMail createMail() throws ExchangeServiceException
(ExchangeMail) createItem(ItemType.Mail);
ExchangeServiceException
- if any errors occur during the communication with Exchange.createItem(ItemType)
ExchangeItem createItemFrom(java.io.File file) throws ExchangeServiceException, java.io.IOException
ExchangeServiceException
- if any errors occur during the communication with Exchange.
java.io.IOException
- if errors occur when reading the specified file.createItem(ItemType)
ExchangeTask createTask() throws ExchangeServiceException
(ExchangeTask) createItem(ItemType.Task);
ExchangeServiceException
- if any errors occur during the communication with Exchange.createItem(ItemType)
ExchangeNotificationWatermark addItemListener(ExchangeItemListener listener) throws ExchangeServiceException
ExchangeServiceException
ExchangeNotificationWatermark addItemListener(ExchangeItemListener listener, java.lang.String watermark) throws ExchangeServiceException
ExchangeServiceException
void removeItemListener(ExchangeItemListener listener) throws ExchangeServiceException
listener
- the listener to be removed
ExchangeServiceException
ExchangeNotificationWatermark addFolderListener(ExchangeFolderListener listener) throws ExchangeServiceException
ExchangeServiceException
ExchangeNotificationWatermark addFolderListener(ExchangeFolderListener listener, java.lang.String watermark) throws ExchangeServiceException
ExchangeServiceException
void removeFolderListener(ExchangeFolderListener listener) throws ExchangeServiceException
listener
- the listener to be removed
ExchangeServiceException
ExchangeNotificationWatermark addNewMailListener(ExchangeNewMailListener listener) throws ExchangeServiceException
listener
- the listener to be notified
ExchangeServiceException
ExchangeNotificationWatermark addNewMailListener(ExchangeNewMailListener listener, java.lang.String watermark) throws ExchangeServiceException
listener
- the listener to be notified
ExchangeServiceException
void removeNewMailListener(ExchangeNewMailListener listener) throws ExchangeServiceException
listener
- the listener to be removed
ExchangeServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |