|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.exchange.webdav.AbstractItem | +--com.compoze.exchange.webdav.Folder
This class extends AbstractItem
to represent an item that is
a folder in the Exchange Store.
The following table contains the properties defined in the Exchange store schema
and mappings to their corresponding Java enumeration and methods:
Exchange Store Property | Property Enumeration | Java Methods |
DAV:childcount |
DavProperty.CHILD_COUNT |
getSize() |
DAV:visiblecount |
DavProperty.VISIBLE_COUNT |
getMessageCount() |
http://schemas.microsoft.com/exchange/outlookfolderclass |
ExchangeProperty.OUTLOOK_FOLDER_CLASS |
getType() AbstractItem.setType(IOutlookType) |
urn:schemas:httpmail:unreadcount |
HttpMailProperty.UNREAD_COUNT |
getUnreadMessageCount() |
Field Summary | |
protected Folders |
m_folders
|
protected int |
m_iRelDepth
|
protected Messages |
m_messages
|
Constructor Summary | |
|
Folder(java.lang.String sName)
Constructor. |
|
Folder(java.lang.String sName,
OutlookFolderType type)
Constructor. |
protected |
Folder(java.lang.String sName,
OutlookFolderType outlookFolderClass,
ContentClass contentClass)
Constructor. |
|
Folder(java.lang.String sName,
java.lang.String sType)
Constructor. |
protected |
Folder(java.lang.String sName,
java.lang.String sOutlookFolderClass,
java.lang.String sContentClass)
Constructor. |
Method Summary | |
void |
addItem(IItem item)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverAddItem(IItem) |
void |
addItem(IItem item,
boolean bServerRefresh)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverAddItem(IItem, boolean) |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
protected java.lang.String |
createFilename(int iIndex)
Creates the filename for this folder. |
void |
deleteItem(IItem item)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverDeleteItem(IItem) |
void |
deleteItem(UniqueID id)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverDeleteItem(UniqueID) |
boolean |
equals(java.lang.Object o,
java.util.Locale locale)
Indicates whether some other Folder
object is "equal to" this one. |
static java.util.List |
getDefaultProperties()
Gets a list of default properties pertaining to a folder. |
Folder |
getFolder(java.lang.String sFolderPath)
Gets a specified folder under this folder. |
Folder |
getFolder(java.lang.String sFolderPath,
boolean bCreate)
Gets a specified folder under this folder. |
Folders |
getFolders()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, SortOrder, RowRange) |
Folders |
getFolders(FolderFilter filter)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(FolderFilter filter,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(FolderFilter filter,
SortOrder sortOrder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(FolderFilter filter,
SortOrder sortOrder,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List props)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, SortOrder, RowRange) |
Folders |
getFolders(java.util.List props,
FolderFilter filter)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List props,
FolderFilter filter,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List props,
FolderFilter filter,
SortOrder sortOrder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List props,
FolderFilter filter,
SortOrder sortOrder,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List properties,
FolderFilter filter,
SortOrder order,
RowRange range)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List props,
FolderFilter filter,
SortOrder sortOrder,
RowRange range,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List props,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List properties,
int iScope,
FolderFilter filter,
SortOrder order,
RowRange range)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List props,
SortOrder sortOrder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, SortOrder, RowRange) |
Folders |
getFolders(java.util.List props,
SortOrder sortOrder,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Folders |
getFolders(java.util.List properties,
SortOrder order,
RowRange range)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, SortOrder, RowRange) |
Folders |
getFolders(SortOrder sortOrder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, SortOrder, RowRange) |
Folders |
getFolders(SortOrder sortOrder,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolders(List, int, FolderFilter, SortOrder, RowRange) |
Items |
getItems()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(AbstractMessageFilter filter)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(AbstractMessageFilter filter,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(AbstractMessageFilter filter,
SortOrder sortOrder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(AbstractMessageFilter filter,
SortOrder sortOrder,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props,
AbstractMessageFilter filter)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props,
AbstractMessageFilter filter,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props,
AbstractMessageFilter filter,
SortOrder sortOrder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props,
AbstractMessageFilter filter,
SortOrder sortOrder,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props,
AbstractMessageFilter filter,
SortOrder sortOrder,
RowRange range)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props,
AbstractMessageFilter filter,
SortOrder sortOrder,
RowRange range,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props,
SortOrder sortOrder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(java.util.List props,
SortOrder sortOrder,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(SortOrder sortOrder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Items |
getItems(SortOrder sortOrder,
int iDepth)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange) |
Folders |
getLocalFolders()
Gets a collection of sub-folders for this folder. |
Items |
getLocalItems()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with getLocalMessages() |
Messages |
getLocalMessages()
Gets a collection of messages for this folder. |
int |
getMessageCount()
Gets the number of messages in the folder. |
static java.util.List |
getProperties()
Gets a list of properties pertaining to a folder. |
int |
getRelativeDepth()
Gets the depth of this folder relative to the query |
int |
getSize()
Gets the total number of items under this folder, including subfolders. |
java.lang.String |
getType()
Gets the type of this folder. |
long |
getUnreadCount()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with getUnreadMessageCount() |
long |
getUnreadCount(boolean bQueryWebStore)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetUnreadMessageCount() |
int |
getUnreadMessageCount()
Gets the number of unread messages in the folder. |
long |
getVisibleCount()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with getMessageCount() |
long |
getVisibleCount(AbstractMessageFilter filter)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessageCount(AbstractMessageFilter) |
long |
getVisibleCount(AbstractMessageFilter filter,
int iScope)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessageCount(AbstractMessageFilter, int) |
long |
getVisibleCount(boolean bQueryWebStore)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessageCount(AbstractMessageFilter) |
boolean |
hasSubFolders()
Returns whether this folder has visible child folders |
boolean |
isDeletedItemsFolder()
Gets whether this folder is the user's "Deleted Items" folder. |
boolean |
isDraftsFolder()
Gets whether this folder is the user's "Drafts" folder. |
boolean |
isInboxFolder()
Gets whether this folder is the user's "Inbox" folder. |
boolean |
isOutboxFolder()
Gets whether this folder is the user's "Outbox" folder. |
boolean |
isSentItemsFolder()
Gets whether this folder is the user's "Sent Items" folder. |
void |
rename(java.lang.String sName)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverRename(String) |
void |
serverAddItem(IItem item)
Requests the server to add an item to this folder. |
void |
serverAddItem(IItem item,
boolean bServerRefresh)
Requests the server to add an item to this folder. |
void |
serverDelete()
Requests the server to delete the folder (the folder is removed permanently). |
void |
serverDeleteItem(IItem item)
Requests the server to delete an item from this folder. |
void |
serverDeleteItem(UniqueID id)
Requests the server to delete an item from this folder. |
Folders |
serverGetFolders(java.util.List properties,
FolderFilter filter,
SortOrder order,
RowRange range)
Queries the server for a list of folders. |
Folders |
serverGetFolders(java.util.List properties,
int iScope,
FolderFilter filter,
SortOrder order,
RowRange range)
Queries the server for a list of folders. |
Folders |
serverGetFolders(java.util.List properties,
int iScope,
FolderFilter filter,
SortOrder order,
RowRange range,
java.lang.String[] asExpandIDs)
Queries the server for a list of folders. |
Folders |
serverGetFolders(java.util.List properties,
SortOrder order,
RowRange range)
Queries the server for a list of folders. |
int |
serverGetMessageCount(AbstractMessageFilter filter)
Queries the server for the number of messages in the folder. |
int |
serverGetMessageCount(AbstractMessageFilter filter,
int iScope)
Queries the server for the number of messages in the folder. |
Messages |
serverGetMessages(java.util.List properties,
AbstractMessageFilter filter,
SortOrder order,
RowRange range)
Queries the server for a list of messages (contacts, appointments, task, journal entries, or mail messages, etc). |
Messages |
serverGetMessages(java.util.List properties,
int iScope,
AbstractMessageFilter filter,
SortOrder order,
RowRange range)
Queries the server for a list of messages (contacts, appointments, task, journal entries, or mail messages, etc). |
Messages |
serverGetMessages(java.util.List properties,
SortOrder order,
RowRange range)
Queries the server for a list of messages (contacts, appointments, task, journal entries, or mail messages, etc). |
int |
serverGetUnreadMessageCount()
Queries the server for the number of unread messages in the folder. |
void |
serverRename(java.lang.String sName)
Requests the server to rename this folder. |
void |
serverUpdate(boolean bServerRefresh)
Requests the server to update the folder of any changed properties. |
protected void |
setRelativeDepth(Folders folders,
java.lang.String sParentPath)
Calculates the relative depth for each folder in a list of folders |
void |
setType(java.lang.String sType)
Sets the type of this folder. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.compoze.exchange.webdav.AbstractItem |
copy, copy, copy, createFilename, delete, equals, getComment, getContentClass, getCreationDate, getDateLastModified, getDisplayName, getFile, getHRef, getID, getParentFolder, getPermanentURL, getUID, isFolder, isHidden, isReadOnly, isRoot, move, move, move, serverCopyTo, serverCopyTo, serverCopyTo, serverCopyTo, serverGetParentFolder, serverMoveTo, serverMoveTo, serverMoveTo, serverMoveTo, serverUpdate, setComment, setContentClass, setContentClass, setHidden, setReadOnly, setReleased, setType, setUID, update, update, validate |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int m_iRelDepth
protected Folders m_folders
protected Messages m_messages
Constructor Detail |
public Folder(java.lang.String sName)
sName
- the name of the folder (may not be null
or empty).public Folder(java.lang.String sName, OutlookFolderType type)
sName
- the name of the folder (may not be null
or empty).type
- the type of folder.public Folder(java.lang.String sName, java.lang.String sType)
sName
- the name of the folder (may not be null
or empty).sType
- the type of the folder.protected Folder(java.lang.String sName, OutlookFolderType outlookFolderClass, ContentClass contentClass)
sName
- the name of the folder (may not be null
or empty).outlookFolderClass
- the type of the folder.contentClass
- the content class of the folder (may not be null
or empty).protected Folder(java.lang.String sName, java.lang.String sOutlookFolderClass, java.lang.String sContentClass)
sName
- the name of the folder (may not be null
or empty).sOutlookFolderClass
- the type of the folder.sContentClass
- the content class of the folder (may not be null
or empty).Method Detail |
public boolean isInboxFolder() throws ExchangeException
true
if folder is "Inbox" folder; false
otherwiseExchangeException
- if a problem occurred while connecting to or interaction with Exchange Server.public boolean isOutboxFolder() throws ExchangeException
true
if folder is "Outbox" folder; false
otherwiseExchangeException
- if a problem occurred while connecting to or interaction with Exchange Server.public boolean isDeletedItemsFolder() throws ExchangeException
true
if folder is "Deleted Items" folder; false
otherwiseExchangeException
- if a problem occurred while connecting to or interaction with Exchange Server.public boolean isDraftsFolder() throws ExchangeException
true
if folder is "Drafts" folder; false
otherwiseExchangeException
- if a problem occurred while connecting to or interaction with Exchange Server.public boolean isSentItemsFolder() throws ExchangeException
true
if folder is "Sent Items" folder; false
otherwiseExchangeException
- if a problem occurred while connecting to or interaction with Exchange Server.public long getVisibleCount() throws ExchangeException
getMessageCount()
ExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedDavProperty.VISIBLE_COUNT
public long getVisibleCount(boolean bQueryWebStore) throws ExchangeException
serverGetMessageCount(AbstractMessageFilter)
bQueryWebStore
is set true
.bQueryWebStore
- true
queries the Exchage store
for the visible countExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedDavProperty.VISIBLE_COUNT
public long getVisibleCount(AbstractMessageFilter filter) throws ExchangeException
serverGetMessageCount(AbstractMessageFilter)
null
, a
count of all visible items within this folder is returned.
To get just the message count (not including subfolders) within this folder, ensure setIsFolder
condition is set (false
) on the specified filter. If the specified filter is null
,
a default filter is used with the setIsFolder
condition is set to false
.
filter
- the conditions to filter by or null
.ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedDavProperty.VISIBLE_COUNT
public long getVisibleCount(AbstractMessageFilter filter, int iScope) throws ExchangeException
serverGetMessageCount(AbstractMessageFilter, int)
null
, a
count of all visible items within this folder is returned. If the specified scope is deep traversal,
a count of visible items from this folder and all subfolders is returned.
To get just the message count (not including subfolders) within this folder, ensure setIsFolder
condition is set (false
) on the specified filter. If the specified filter is null
,
a default filter is used with the setIsFolder
condition is set to false
.
filter
- the conditions to filter by or null
.iScope
- the scope of the search to conduct.ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedDavProperty.VISIBLE_COUNT
,
IScope
public int getMessageCount() throws ExchangeException
ExchangeRuntimeException
- if this object has been released and can no longer be usedDavProperty.VISIBLE_COUNT
public int serverGetMessageCount(AbstractMessageFilter filter) throws ExchangeException
filter
- the conditions to filter by or null
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedDavProperty.VISIBLE_COUNT
public int serverGetMessageCount(AbstractMessageFilter filter, int iScope) throws ExchangeException
filter
- the conditions to filter by or null
iScope
- the scope of the search to conductExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedDavProperty.VISIBLE_COUNT
,
IScope
public long getUnreadCount() throws ExchangeException
getUnreadMessageCount()
HttpMailProperty.UNREAD_COUNT
public long getUnreadCount(boolean bQueryWebStore) throws ExchangeException
serverGetUnreadMessageCount()
bQueryWebStore
- true
queries the Exchage store
for the visible countHttpMailProperty.UNREAD_COUNT
public int getUnreadMessageCount()
ExchangeRuntimeException
- if this object has been released and can no longer be usedHttpMailProperty.UNREAD_COUNT
public int serverGetUnreadMessageCount() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedHttpMailProperty.UNREAD_COUNT
public int getSize()
IScope.DEEP
)
performed on this folder in order to get the correct result (use
one of the getFolders() helper methods that requires specifying
a scope).getSize
in class AbstractItem
ExchangeRuntimeException
- if this object has been released and can
no longer be usedDavProperty.CHILD_COUNT
public java.lang.String getType()
OutlookFolderType
for a partial
list of folder types.getType
in class AbstractItem
ExchangeRuntimeException
- if this object has been released and can
no longer be used.ExchangeProperty.OUTLOOK_FOLDER_CLASS
public void setType(java.lang.String sType)
OutlookFolderType
for a partial
list of folder types.setType
in class AbstractItem
stype
- the type of the folder.ExchangeRuntimeException
- if this object has been released and can
no longer be used.ExchangeProperty.OUTLOOK_FOLDER_CLASS
public Folder getFolder(java.lang.String sFolderPath) throws ExchangeException
The path specified should be relative to this folder. For example, if a user is in the Inbox folder and wants the folder containing support email under Inbox (call it Support), that is found under another folder (call it Compoze), one would use the following path Compoze/Support. By default, this will not create folders if they don't exist.
sFolderPath
- the path to the folder (may not be null
or empty)null
if not foundExchangeException
- if a problem occurred while connecting to or
interaction with Exchange Serverpublic Folder getFolder(java.lang.String sFolderPath, boolean bCreate) throws ExchangeException
The path specified should be relative to this folder. For example, if a user is in the Inbox folder and wants the folder containing support email under Inbox (call it Support), that is found under another folder (call it Compoze), one would use the following path Compoze/Support.
sFolderPath
- the path to the folder (may not be null
or empty)bCreate
- create folder if it does not existnull
if not foundExchangeException
- if a problem occurred while connecting to or
interaction with Exchange Serverpublic Folders getLocalFolders()
getFolders()
methods first.public Items getLocalItems()
getLocalMessages()
getItems()
methods first.public Messages getLocalMessages()
serverGetMessages()
methods first.public Folders serverGetFolders(java.util.List properties, SortOrder order, RowRange range) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)order
- the order to sort byrange
- the range of rows to returnFolder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Folders serverGetFolders(java.util.List properties, FolderFilter filter, SortOrder order, RowRange range) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)filter
- the conditions to search byorder
- the order to sort byrange
- the range of rows to returnFolder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Folders serverGetFolders(java.util.List properties, int iScope, FolderFilter filter, SortOrder order, RowRange range) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)iScope
- the scope of the searchfilter
- the conditions to search byorder
- the order to sort byrange
- the range of rows to returnFolder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Folders serverGetFolders(java.util.List properties, int iScope, FolderFilter filter, SortOrder order, RowRange range, java.lang.String[] asExpandIDs) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)iScope
- the scope of the searchfilter
- the conditions to search byorder
- the order to sort byrange
- the range of rows to returnlist
- of IDs to expand on, null
expands noneFolder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Messages serverGetMessages(java.util.List properties, SortOrder order, RowRange range) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)order
- the order to sort byrange
- the range of rows to returnAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Messages serverGetMessages(java.util.List properties, AbstractMessageFilter filter, SortOrder order, RowRange range) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)filter
- the conditions to search byorder
- the order to sort byrange
- the range of rows to returnAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Messages serverGetMessages(java.util.List properties, int iScope, AbstractMessageFilter filter, SortOrder order, RowRange range) throws ExchangeException
If no sort order is provided (order == null
), the following
sort order is used:
HttpMailProperty.DATE_RECEIVED
, SortOrder.DESCENDING
DO NOT SORT BY HttpMailProperty.SUBJECT
. This property
is not searchable because its value is only calculated when used
and not stored in the Exchange store. Use HttpMailProperty.NORMALIZED_SUBJECT
or MailHeaderProperty.SUBJECT
.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)iScope
- the scope of the searchfilter
- the conditions to search byorder
- the order to sort byrange
- the range of rows to returnAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Folders getFolders(java.util.List properties, SortOrder order, RowRange range) throws ExchangeException
serverGetFolders(List, SortOrder, RowRange)
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)order
- the order to sort byrange
- the range of rows to returnFolder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Folders getFolders(java.util.List properties, FolderFilter filter, SortOrder order, RowRange range) throws ExchangeException
serverGetFolders(List, FolderFilter, SortOrder, RowRange)
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)filter
- the conditions to search byorder
- the order to sort byrange
- the range of rows to returnFolder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Folders getFolders(java.util.List properties, int iScope, FolderFilter filter, SortOrder order, RowRange range) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
If no sort order is provided (order == null
), the following
sort order is used:
DavProperty.DISPLAY_NAME
, SortOrder.ASCENDING
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)iScope
- the scope of the searchfilter
- the conditions to search byorder
- the order to sort byrange
- the range of rows to returnExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Folders getFolders() throws ExchangeException
serverGetFolders(List, SortOrder, RowRange)
Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folders getFolders(java.util.List props) throws ExchangeException
serverGetFolders(List, SortOrder, RowRange)
props
- a list of properties (see Folder
to query for
and return or null
to return default properies.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Folders getFolders(java.util.List props, FolderFilter filter) throws ExchangeException
serverGetFolders(List, FolderFilter, SortOrder, RowRange)
props
- a list of properties (see Folder
to query for
and return or null
to return default properies.filter
- the conditions to filter by.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Folders getFolders(java.util.List props, SortOrder sortOrder) throws ExchangeException
serverGetFolders(List, SortOrder, RowRange)
props
- a list of properties (see Folder
to query for
and return or null
to return default properies.sortOrder
- the order to sort by.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Folders getFolders(SortOrder sortOrder) throws ExchangeException
serverGetFolders(List, SortOrder, RowRange)
sortOrder
- the order to sort by.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folders getFolders(FolderFilter filter) throws ExchangeException
serverGetFolders(List, FolderFilter, SortOrder, RowRange)
filter
- the conditions to filter by.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folders getFolders(FolderFilter filter, SortOrder sortOrder) throws ExchangeException
serverGetFolders(List, FolderFilter, SortOrder, RowRange)
filter
- the conditions to filter by.sortOrder
- the order to sort by.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedgetDefaultProperties()
,
getProperties()
public Folders getFolders(java.util.List props, FolderFilter filter, SortOrder sortOrder) throws ExchangeException
serverGetFolders(List, FolderFilter, SortOrder, RowRange)
props
- a list of properties (see Folder
to query for
and return or null
to return default properies.filter
- the conditions to filter by.sortOrder
- the order to sort by.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Folders getFolders(int iDepth) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
folders within this folder, not any subfolders. Specifying a deep depth
(IScope.DEEP
), not only returns folders within this folder,
but also all subsequent subfolders.
iDepth
- the depth (see IScope
) of the search to conduct.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Folders getFolders(java.util.List props, int iDepth) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
folders within this folder, not any subfolders. Specifying a deep depth
(IScope.DEEP
), not only returns folders within this folder,
but also all subsequent subfolders.
props
- a list of properties (see Folder
to query for
and return or null
to return default properies.iDepth
- the depth (see IScope
) of the search to conduct.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Folders getFolders(java.util.List props, FolderFilter filter, int iDepth) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
folders within this folder, not any subfolders. Specifying a deep depth
(IScope.DEEP
), not only returns folders within this folder,
but also all subsequent subfolders.
props
- a list of properties (see Folder
to query for
and return or null
to return default properies.filter
- the conditions to filter by.iDepth
- the depth (see IScope
) of the search to conduct.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Folders getFolders(java.util.List props, SortOrder sortOrder, int iDepth) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
folders within this folder, not any subfolders. Specifying a deep depth
(IScope.DEEP
), not only returns folders within this folder,
but also all subsequent subfolders.
props
- a list of properties (see Folder
to query for
and return or null
to return default properies.sortOrder
- the order to sort by.iDepth
- the depth (see IScope
) of the search to conduct.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Folders getFolders(SortOrder sortOrder, int iDepth) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
folders within this folder, not any subfolders. Specifying a deep depth
(IScope.DEEP
), not only returns folders within this folder,
but also all subsequent subfolders.
sortOrder
- the order to sort by.iDepth
- the depth (see IScope
) of the search to conduct.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folders getFolders(FolderFilter filter, int iDepth) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
folders within this folder, not any subfolders. Specifying a deep depth
(IScope.DEEP
), not only returns folders within this folder,
but also all subsequent subfolders.
filter
- the conditions to filter by.iDepth
- the depth (see IScope
) of the search to conduct.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folders getFolders(FolderFilter filter, SortOrder sortOrder, int iDepth) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
folders within this folder, not any subfolders. Specifying a deep depth
(IScope.DEEP
), not only returns folders within this folder,
but also all subsequent subfolders.
filter
- the conditions to filter by.sortOrder
- the order to sort by.iDepth
- the depth (see IScope
) of the search to conduct.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folders getFolders(java.util.List props, FolderFilter filter, SortOrder sortOrder, int iDepth) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
folders within this folder, not any subfolders. Specifying a deep depth
(IScope.DEEP
), not only returns folders within this folder,
but also all subsequent subfolders.
props
- a list of properties (see Folder
to query for
and return or null
to return default properies.filter
- the conditions to filter by.sortOrder
- the order to sort by.iDepth
- the depth (see IScope
) of the search to conduct.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Folders getFolders(java.util.List props, FolderFilter filter, SortOrder sortOrder, RowRange range, int iDepth) throws ExchangeException
serverGetFolders(List, int, FolderFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
folders within this folder, not any subfolders. Specifying a deep depth
(IScope.DEEP
), not only returns folders within this folder,
but also all subsequent subfolders.
props
- a list of properties (see Folder
to query for
and return or null
to return default properies.filter
- the conditions to filter by.sortOrder
- the order to sort by.range
- the rows to return or null
to return all rows.iDepth
- the depth (see IScope
) of the search to conduct.Folder
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedgetDefaultProperties()
,
getProperties()
public Items getItems() throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
AbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Items getItems(java.util.List props) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
props
- a list of property objects to query for and return or null
to return all properiesAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Items getItems(java.util.List props, SortOrder sortOrder) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
props
- a list of property objects to query for and return or null
to return all properiessortOrder
- the order to sort byAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Items getItems(SortOrder sortOrder) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
sortOrder
- the order to sort byAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Items getItems(int iDepth) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
items within this folder. Specifying a deep depth (IScope.DEEP
),
not only returns items within this folder, but also all subsequent items.
iDepth
- the depth of the search to conductAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Items getItems(java.util.List props, int iDepth) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
items within this folder. Specifying a deep depth (IScope.DEEP
),
not only returns items within this folder, but also all subsequent items.
props
- a list of property objects to query for and return or null
to return all properiesiDepth
- the depth of the search to conductAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Items getItems(java.util.List props, SortOrder sortOrder, int iDepth) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
items within this folder. Specifying a deep depth (IScope.DEEP
),
not only returns items within this folder, but also all subsequent items.
props
- a list of property objects to query for and return or null
to return all properiessortOrder
- the order to sort byiDepth
- the depth of the search to conductAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Items getItems(SortOrder sortOrder, int iDepth) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
items within this folder. Specifying a deep depth (IScope.DEEP
),
not only returns items within this folder, but also all subsequent items.
sortOrder
- the order to sort byiDepth
- the depth of the search to conductAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Items getItems(java.util.List props, AbstractMessageFilter filter) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
props
- a list of properties (see AbstractMessage
or any known subclasses) to query for
and return or null
to return default properies.filter
- the conditions to filter by.AbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Items getItems(AbstractMessageFilter filter) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
filter
- the conditions to filter by.AbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Items getItems(AbstractMessageFilter filter, SortOrder sortOrder) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
filter
- the conditions to filter by.sortOrder
- the order to sort by.AbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Items getItems(java.util.List props, AbstractMessageFilter filter, SortOrder sortOrder) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
props
- a list of properties (see AbstractMessage
or any known subclasses) to query for
and return or null
to return default properies.filter
- the conditions to filter by.sortOrder
- the order to sort by.AbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Items getItems(java.util.List props, AbstractMessageFilter filter, SortOrder sortOrder, RowRange range) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
props
- a list of properties (see AbstractMessage
or any known subclasses) to query for
and return or null
to return default properies.filter
- the conditions filter by.sortOrder
- the order to sort by.range
- the rows to return.AbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Items getItems(java.util.List props, AbstractMessageFilter filter, int iDepth) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
items within this folder. Specifying a deep depth (IScope.DEEP
),
not only returns items within this folder, but also all subsequent items.
props
- a list of properties (see AbstractMessage
or any known subclasses) to query for
and return or null
to return default properies.filter
- the conditions to filter by.iDepth
- the depth of the search to conduct.AbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Items getItems(AbstractMessageFilter filter, int iDepth) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
items within this folder. Specifying a deep depth (IScope.DEEP
),
not only returns items within this folder, but also all subsequent items.
filter
- the conditions to filter by.iDepth
- the depth of the search to conductAbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Items getItems(AbstractMessageFilter filter, SortOrder sortOrder, int iDepth) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
items within this folder. Specifying a deep depth (IScope.DEEP
),
not only returns items within this folder, but also all subsequent items.
filter
- the conditions to filter by.sortOrder
- the order to sort by.iDepth
- the depth of the search to conduct.AbstractMessage
objectsExchangeException
- if a problem occurred while connecting to or
interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedpublic Items getItems(java.util.List props, AbstractMessageFilter filter, SortOrder sortOrder, int iDepth) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
items within this folder. Specifying a deep depth (IScope.DEEP
),
not only returns items within this folder, but also all subsequent items.
props
- a list of properties (see AbstractMessage
or any known subclasses) to query for
and return or null
to return default properies.filter
- the conditions to filter by.sortOrder
- the order to sort by.iDepth
- the depth of the search to conduct.AbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic Items getItems(java.util.List props, AbstractMessageFilter filter, SortOrder sortOrder, RowRange range, int iDepth) throws ExchangeException
serverGetMessages(List, int, AbstractMessageFilter, SortOrder, RowRange)
Specifying a shallow depth (IScope.SHALLOW_TRAVERSAL
), only returns
items within this folder. Specifying a deep depth (IScope.DEEP
),
not only returns items within this folder, but also all subsequent items.
props
- a list of properties (see AbstractMessage
or any known subclasses) to query for
and return or null
to return default properies.filter
- the conditions to filter by.sortOrder
- the order to sort by.iDepth
- the depth of the search to conduct.AbstractMessage
objectsExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedpublic void addItem(IItem item) throws ExchangeException
serverAddItem(IItem)
If an item already exists with the same name as the specified item, an ItemExistsException
is thrown.
item
- item to addExchangeException
- if a problem occurred while connecting to or
interaction with Exchange Server .public void serverAddItem(IItem item) throws ExchangeException
item
- the item to addExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedItemExistsException
- if an item already exists with the same name as
the specified itempublic void addItem(IItem item, boolean bServerRefresh) throws ExchangeException
serverAddItem(IItem, boolean)
Calling this method requesting a refresh (bServerRefresh = true
)
causes a lookup to the Exchange store to retrieve the most current properties
(including those set by the Exchange store).
item
- the item to addbServerRefresh
- true
to request a refresh performed
by the Exchange store; false
otherwiseExchangeException
- if a problem occurred while connecting to or
interaction with Exchange ServerItemExistsException
- if an item already exists with the same name as
the specified itempublic void serverAddItem(IItem item, boolean bServerRefresh) throws ExchangeException
item
- the item to addbServerRefresh
- true
requests the server to refresh
the propertiesExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedItemExistsException
- if an item already exists with the same name as
the specified itempublic void deleteItem(IItem item) throws ExchangeException
serverDeleteItem(IItem)
item
- the item to delete.public void serverDeleteItem(IItem item) throws ExchangeException
item
- the item to delete.ExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedpublic void deleteItem(UniqueID id) throws ExchangeException
serverDeleteItem(UniqueID)
id
- the unique id of the item to delete.public void serverDeleteItem(UniqueID id) throws ExchangeException
id
- the unique id of the item to delete.ExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedpublic void serverUpdate(boolean bServerRefresh) throws ExchangeException
If the folder does not exist in the Exchange store, it is created, else the existing folder is updated.
serverUpdate
in class AbstractItem
bServerRefresh
- true
requests the server to refresh
the propertiesExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedpublic void serverDelete() throws ExchangeException
serverDelete
in class AbstractItem
ExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedpublic void serverRename(java.lang.String sName) throws ExchangeException
sName
- the name to rename to.ExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedpublic void rename(java.lang.String sName) throws ExchangeException
serverRename(String)
sName
- the name to rename to.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractItem
java.lang.CloneNotSupportedException
- if the object's class does not support the Cloneable interface.public boolean equals(java.lang.Object o, java.util.Locale locale)
Folder
object is "equal to" this one.equals
in class AbstractItem
o
- the object with which to compare.locale
- a locale for string comparisons.true
if this object is the same as the object argument; false
otherwise.public java.lang.String toString()
toString
in class AbstractItem
protected java.lang.String createFilename(int iIndex)
createFilename
in class AbstractItem
iIndex
- the index to appendAbstractItem.createFilename(int)
public static java.util.List getDefaultProperties()
ExchangeProperty.OUTLOOK_FOLDER_CLASS
HttpMailProperty.UNREAD_COUNT
DavProperty.VISIBLE_COUNT
DavProperty.CHILD_COUNT
AbstractItem.getDefaultProperties()
public static java.util.List getProperties()
AbstractItem.getProperties()
public int getRelativeDepth()
protected void setRelativeDepth(Folders folders, java.lang.String sParentPath)
folders
- the folders to set the relative depth forsParentPath
- the full path of the parentpublic boolean hasSubFolders() throws ExchangeException
true
if has child folders, false
otherwiseExchangeException
-
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |