|
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.Session
This class provides a wrapper around a session to Microsoft Exchange, and is the entry point into the WebDAV API. It is designed to access the Microsoft Exchange Store via the WebDAV protocol.
Below is an example of how to start using this API:
Properties connectionProps = new Properties(); connectionProps.setProperty(Session.PROP_EXCHANGE_SERVER, "my_exchange_server"); connectionProps.setProperty(Session.PROP_EXCHANGE_MAILBOX, "my_exchange_mailbox"); connectionProps.setProperty(Session.PROP_USER_DOMAIN, "my_domain"); connectionProps.setProperty(Session.PROP_USER_USERNAME, "my_username"); connectionProps.setProperty(Session.PROP_USER_PASSWORD, "my_password"); Session exchangeSession = new Session(connectionProps); Mailbox mailbox = exchangeSession.serverGetMailbox();
The example constructs a Session object using the specifed connection propteries. The first
property Session.PROP_EXCHANGE_SERVER
, is the host name or IP address of the
server where Exchange Server is installed. The properties: Session.PROP_USER_DOMAIN
,
Session.PROP_USER_USERNAME
, Session.PROP_USER_PASSWORD
, are the
credentials used to log in the user.
The property, Session.PROP_EXCHANGE_MAILBOX
, represensts the alias of
the mailbox the user wants to log into. In most Exchange configurations, the mailbox
alias is the same as the user's username, allowing the user to specify the username
as the mailbox alias. In a few others (probably the minority), this is not the
case, and a look up against Active Directory is required to retrieve the mailbox
alias. In order to perform the lookup, the following properties must be set:
Session.PROP_AD_LOOKUP
to true
.
Session.PROP_DOMAIN_CONTROLLER
to the host name or IP address
of the server acting as the domain controller.
Two authentication protocols, Basic and NTLM, are supported to authenticate with Microsoft Exchange Server. Basic authentication is the original and most compatible authentication scheme, but is also the least secure. NTLM authentication is a proprietary protocol designed by Microsoft. It authenticates a connection rather than a request, so authentication must happen every time a new connection is made. It is also more secure than Basic in that it simulates a challenge/response scheme.
Basic authentication is the default authentication used to authenticate with
Exchange Server. To change the authentication protocol used, "Basic" or "NTLM",
set the property Session.PROP_AUTHENICATION_PROTOCOL
.
To connect to Exchange Server using SSL, set the following properties (also see Harmony Developers guide for SSL setup):
connectionProps.setProperty(Session.PROP_EXCHANGE_PROTOCOL, "https"); connectionProps.setProperty(Session.PROP_EXCHANGE_PORT, "443");
Field Summary | |
static java.lang.String |
PROP_AD_LOOKUP
Property used to store the the flag to determine to perform a lookup against Active Directory for the mailbox alias. |
static java.lang.String |
PROP_AD_PORT
Property used to store the port number for communicating with the domain controller. |
static java.lang.String |
PROP_AD_PROTOCOL
Property used to store the protocol for communicating with the domain controller. |
static java.lang.String |
PROP_AUTHENICATION_PROTOCOL
Property used to store the authentication protocol to login to Exchange server. |
static java.lang.String |
PROP_DOMAIN_CONTROLLER
Property used to store the domain controller host name or IP address. |
static java.lang.String |
PROP_EXCHANGE_MAILBOX
Property used to store the Exchange server login mailbox. |
static java.lang.String |
PROP_EXCHANGE_MAILBOX_CONTEXT
Property used to store the Exchange server mailbox context (the mailbox will be accessed with a URL like http://server/context/mailbox). |
static java.lang.String |
PROP_EXCHANGE_PORT
Property used to store the port number for communicating with the Exchange server. |
static java.lang.String |
PROP_EXCHANGE_PROTOCOL
Property used to store the protocol for communicating with the Exchange server. |
static java.lang.String |
PROP_EXCHANGE_SERVER
Property used to store the Exchange server host name or IP address. |
static java.lang.String |
PROP_POOL_PARSER_FACTORIES
Property used to store the the flag to determine to pool parser factories. |
static java.lang.String |
PROP_POOL_PARSERS
Property used to store the the flag to determine to pool parsers. |
static java.lang.String |
PROP_PROXY_HOST
|
static java.lang.String |
PROP_PROXY_PASSWORD
|
static java.lang.String |
PROP_PROXY_PORT
|
static java.lang.String |
PROP_PROXY_PROTOCOL
|
static java.lang.String |
PROP_PROXY_USER
Properties used to connect through a proxy server |
static java.lang.String |
PROP_SAX_PARSER_FACTORY
Property used to store the name of the class used to create new XML parsers. |
static java.lang.String |
PROP_USER_DOMAIN
Property used to store the user's domain. |
static java.lang.String |
PROP_USER_PASSWORD
Property used to store the user's password. |
static java.lang.String |
PROP_USER_USERNAME
Property used to store the user's username. |
Constructor Summary | |
Session(java.util.Properties connectionProps)
Constructor. |
Method Summary | |
void |
close()
Close the session to the Exchange server and release any resources held by the session. |
ActiveDirectorySession |
getActiveDirectorySession()
Gets the Active Directory session. |
ActiveDirectorySession |
getActiveDirectorySession(java.lang.String sHostURL)
Gets the Active Directory session. |
ActiveDirectorySession |
getActiveDirectorySession(java.lang.String sHostURL,
java.lang.String sUsername,
java.lang.String sPassword)
Gets the Active Directory session. |
Appointment |
getAppointment(UniqueID uniqueID)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetAppointment(UniqueID) |
Appointment |
getAppointment(UniqueID uniqueID,
boolean bOpenSeries)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetAppointment(UniqueID, boolean) |
Appointment |
getAppointment(UniqueID uniqueID,
java.util.List properties,
boolean bOpenSeries)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetAppointment(UniqueID, List, boolean) |
CalendarFolder |
getCalendarFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetCalendarFolder() |
Contact |
getContact(UniqueID uniqueID)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetContact(UniqueID) |
Contact |
getContact(UniqueID uniqueID,
java.util.List properties)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetContact(UniqueID, List) |
ContactFolder |
getContactsFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetContactsFolder() |
Folder |
getDefaultPublicFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetDefaultPublicFolder() |
Folder |
getDeletedItemsFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetDeletedItemsFolder() |
MailFolder |
getDraftsFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetDraftsFolder() |
java.lang.String |
getExchangeServer()
Gets the Exchange server for the session. |
Folder |
getFolder(UniqueID uniqueID)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolder(UniqueID) |
Folder |
getFolder(UniqueID uniqueID,
java.util.List properties)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetFolder(UniqueID, List) |
MailFolder |
getInboxFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetInboxFolder() |
IItem |
getItem(UniqueID uniqueID)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetItem(UniqueID) |
IItem |
getItem(UniqueID uniqueID,
java.util.List properties)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetItem(UniqueID, List) |
JournalFolder |
getJournalFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetJournalFolder() |
Mailbox |
getMailbox()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMailbox() |
Mailbox |
getMailbox(java.lang.String sMailbox)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMailbox()
DO NOT USE!!! |
Message |
getMessage(UniqueID uniqueID)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessage(UniqueID) |
Message |
getMessage(UniqueID uniqueID,
java.util.List properties)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMessage(UniqueID, List) |
NoteFolder |
getNotesFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetNotesFolder() |
Folder |
getOutboxFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetOutboxFolder() |
Folder |
getPublicFolder(java.lang.String sPathname)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetPublicFolder(String, List) |
Folder |
getSentItemsFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetSentItemsFolder() |
static Session |
getSession(java.lang.String sServerURL,
java.lang.String sUsername,
java.lang.String sPassword)
Gets the session connecting to the Exchange Store over WebDAV protocol. |
static Session |
getSession(java.net.URL serverURL,
java.lang.String sUsername,
java.lang.String sPassword)
Gets the session connecting to the Exchange Store over WebDAV protocol. |
TaskFolder |
getTasksFolder()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetTasksFolder() |
java.util.TimeZone |
getTimeZone()
Get the timezone for the current session |
java.lang.String |
getUserAlias()
Gets the user alias for the session. |
java.lang.String |
getUserDomain()
Gets the user domain for the session. |
User |
getUserInfo()
Gets the user information of the person who logged into this session. |
User |
getUserInfo(java.lang.String sHostURL)
Gets the user information of the person who logged into this session. |
Mailbox |
getUserMailbox()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverGetMailbox() |
java.lang.String |
getUserUsername()
Gets the user username for the session. |
boolean |
isServerExchange()
Determine if the server supplied by the PROP_EXCHANGE_SERVER is a WebDAV
Exchange 2000 or 2003 server. |
void |
serverDeleteItems(java.lang.String sSource,
java.lang.String[] subItems)
Requests the server to delete one or more items, either folders, messages, or both, from specified folder. |
void |
serverDeleteItems(java.lang.String sSource,
java.lang.String[] subItems,
boolean bDeletedItems)
Requests the server to delete one or more items, either folders, messages, or both, from specified folder. |
Appointment |
serverGetAppointment(UniqueID uniqueID)
Queries the server for the message with the specified unique ID. |
Appointment |
serverGetAppointment(UniqueID uniqueID,
boolean bOpenSeries)
Queries the server for the message with the specified unique ID. |
Appointment |
serverGetAppointment(UniqueID uniqueID,
java.util.List properties,
boolean bOpenSeries)
Queries the server for the message with the specified unique ID. |
Appointment[] |
serverGetAppointments(UniqueID[] uniqueIDs,
java.util.Date instanceDate,
java.util.List properties)
Queries the server for appointment instances based on the IDs of master appointments |
CalendarFolder |
serverGetCalendarFolder()
Queries the server for the user's "Calendar" folder. |
CalendarFolder |
serverGetCalendarFolder(java.util.List properties)
Queries the server for the user's "Calendar" folder. |
Contact |
serverGetContact(UniqueID uniqueID)
Queries the server for the contact with the specified unique ID. |
Contact |
serverGetContact(UniqueID uniqueID,
java.util.List properties)
Queries the server for the contact with the specified unique ID. |
ContactFolder |
serverGetContactsFolder()
Queries the server for the user's "Contacts" folder. |
ContactFolder |
serverGetContactsFolder(java.util.List properties)
Queries the server for the user's "Contacts" folder. |
Folder |
serverGetDefaultPublicFolder()
Queries the server for the default MAPI folder (/public) installed by Exchange. |
Folder |
serverGetDefaultPublicFolder(java.util.List properties)
Queries the server for the default MAPI folder (/public) installed by Exchange. |
Folder |
serverGetDeletedItemsFolder()
Queries the server for the user's "Deleted Items" folder. |
Folder |
serverGetDeletedItemsFolder(java.util.List properties)
Queries the server for the user's "Deleted Items" folder. |
MailFolder |
serverGetDraftsFolder()
Queries the server for the user's "Drafts" folder. |
MailFolder |
serverGetDraftsFolder(java.util.List properties)
Queries the server for the user's "Drafts" folder. |
Folder |
serverGetFolder(UniqueID uniqueID)
Queries the server for the folder with the specified unique ID. |
Folder |
serverGetFolder(UniqueID uniqueID,
java.util.List properties)
Queries the server for the folder with the specified unique ID. |
FreeBusy[] |
serverGetFreeBusy(java.util.List listAttendees,
java.util.Date startDate,
java.util.Date endDate,
int iInterval)
Queries the server for free busy information for each of the specified attendees |
MailFolder |
serverGetInboxFolder()
Queries the server for the user's "Inbox" folder. |
MailFolder |
serverGetInboxFolder(java.util.List properties)
Queries the server for the user's "Inbox" folder. |
IItem |
serverGetItem(UniqueID uniqueID)
Queries the server for the item with the specified unique ID. |
IItem |
serverGetItem(UniqueID uniqueID,
java.util.List properties)
Queries the server for the item with the specified unique ID. |
JournalFolder |
serverGetJournalFolder()
Gets the user's "Journal" folder. |
JournalFolder |
serverGetJournalFolder(java.util.List properties)
Gets the user's "Journal" folder. |
Mailbox |
serverGetMailbox()
Gets the mailbox currently logged into. |
Message |
serverGetMessage(UniqueID uniqueID)
Queries the server for the message with the specified unique ID. |
Message |
serverGetMessage(UniqueID uniqueID,
java.util.List properties)
Queries the server for the message with the specified unique ID. |
NoteFolder |
serverGetNotesFolder()
Queries the server for the user's "Notes" folder. |
NoteFolder |
serverGetNotesFolder(java.util.List properties)
Queries the server for the user's "Notes" folder. |
Folder |
serverGetOutboxFolder()
Queries the server for the user's "Outbox" folder. |
Folder |
serverGetOutboxFolder(java.util.List properties)
Queries the server for the user's "Outbox" folder. |
Folder |
serverGetPublicFolder(java.lang.String sPathname,
java.util.List properties)
Queries the server for the speicifed public folder. |
Folder |
serverGetSentItemsFolder()
Queries the server for the user's "Sent Items" folder. |
Folder |
serverGetSentItemsFolder(java.util.List properties)
Queries the server for the user's "Sent Items" folder. |
Task |
serverGetTask(UniqueID uniqueID)
Queries the server for the task with the specified unique ID. |
Task |
serverGetTask(UniqueID uniqueID,
java.util.List properties)
Queries the server for the task with the specified unique ID. |
TaskFolder |
serverGetTasksFolder()
Queries the server for the user's "Tasks" folder. |
TaskFolder |
serverGetTasksFolder(java.util.List properties)
Queries the server for the user's "Tasks" folder. |
ResultSet |
serverSearch(java.lang.String sSource,
java.lang.String[] properties,
IFilter filter,
SortOrder order,
RowRange range)
Queries the Exchange store. |
ResultSet |
serverSearch(java.lang.String sSource,
java.lang.String[] properties,
int iScope,
IFilter filter,
SortOrder order,
RowRange range)
Queries the Exchange store. |
ResultSet |
serverSearch(java.lang.String sSource,
java.lang.String[] properties,
java.lang.String[] subSources,
IFilter filter,
SortOrder order,
RowRange range)
Queries the Exchange store. |
ResultSet |
serverSearch(java.lang.String sSource,
java.lang.String[] properties,
java.lang.String[] subSources,
int iScope,
IFilter filter,
SortOrder order,
RowRange range)
Queries the Exchange store. |
ResultSet |
serverSearch(java.lang.String sSource,
java.lang.String sSQL,
RowRange range)
Queries the Exchange store. |
void |
setTimeZone(java.util.TimeZone timeZone)
Set the timezone for the current session |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String PROP_EXCHANGE_SERVER
public static final java.lang.String PROP_EXCHANGE_PROTOCOL
public static final java.lang.String PROP_EXCHANGE_PORT
public static final java.lang.String PROP_EXCHANGE_MAILBOX
public static final java.lang.String PROP_EXCHANGE_MAILBOX_CONTEXT
public static final java.lang.String PROP_USER_DOMAIN
public static final java.lang.String PROP_USER_USERNAME
public static final java.lang.String PROP_USER_PASSWORD
public static final java.lang.String PROP_DOMAIN_CONTROLLER
public static final java.lang.String PROP_AD_PROTOCOL
public static final java.lang.String PROP_AD_PORT
public static final java.lang.String PROP_AD_LOOKUP
public static final java.lang.String PROP_AUTHENICATION_PROTOCOL
public static final java.lang.String PROP_SAX_PARSER_FACTORY
public static final java.lang.String PROP_POOL_PARSERS
public static final java.lang.String PROP_POOL_PARSER_FACTORIES
public static final java.lang.String PROP_PROXY_USER
public static final java.lang.String PROP_PROXY_PASSWORD
public static final java.lang.String PROP_PROXY_HOST
public static final java.lang.String PROP_PROXY_PORT
public static final java.lang.String PROP_PROXY_PROTOCOL
Constructor Detail |
public Session(java.util.Properties connectionProps) throws ExchangeException
The following table contains the properties used to establish a session with
Exchange Server:
Property name | Java constant | Required | Details |
user.domain | PROP_USER_DOMAIN |
No | The domain name the user logs into. |
user.username | PROP_USER_USERNAME |
Yes | The user's username. |
user.password | PROP_USER_PASSWORD |
Yes | The user's password. |
exchange.mailbox | PROP_EXCHANGE_MAILBOX |
Yes | The name of the mailbox to log into (the username may be used) |
exchange.mailbox.context | PROP_EXCHANGE_MAILBOX_CONTEXT |
No (default /exchange) | The web context of the mailbox such that the URL ends up being protocol://server/context/mailbox. |
exchange.server | PROP_EXCHANGE_SERVER |
Yes | The host name or IP address of the server where Exchange Server is installed. |
exchange.protocol | PROP_EXCHANGE_PROTOCOL |
No |
The protocol in which to communicate with Exchange Server. If not specified, the protocol "http" is used. |
exchange.port | PROP_EXCHANGE_PORT |
No |
The port in which to communicate with Exchange Server. If not specified, the port 80 is used. |
domain.controller | PROP_DOMAIN_CONTROLLER |
Yes | The host name or IP address of the server acting as the domain controller. |
active_directory.protocol | PROP_AD_PROTOCOL |
No |
The protocol in which to communicate with the domain controller. If not specified, the protocol "ldap" is used. |
active_directory.port | PROP_AD_PORT |
No |
The port in which to communicate with the domain controller. If not specified, the port 389 is used. |
active_directory.lookup | PROP_AD_LOOKUP |
No |
Determines if a lookup agaist Active Directory for the mailbox
alias is performed. By default, set to false .
|
authentication.protocol | PROP_AUTHENICATION_PROTOCOL |
No |
The protocol used to authenticate with Exchange Server. If not specified, Basic authentication is used. |
sax.parser.factory | PROP_SAX_PARSER_FACTORY |
No |
Sets the class to use to create new XML parsers (must be an instance of
com.compoze.xml.parsers.SAXParserFactory). If left unset, then the default,
com.compoze.piccolo.xml.JAXSAXParserFactory , is used.
|
pool.parsers | PROP_POOL_PARSERS |
No |
If set (true ), then pool instances of the SAX parser and re-use them.
If parsers are pooled then parser factories are also pooled. If you are
experiencing exceptions related to SAX parsers being used concurrently (happens in some VM combinations) then set this to false .
By default, set to true .
|
pool.parser.factories | PROP_POOL_PARSER_FACTORIES |
No |
If set (true ), then pool instances of the SAX parser factories and re-use them.If not set ( true ), then both parsers and parser factories are not pooled.CAUTION: Instantiating parser factories is an expensive operation so only disable this if absolutely necessary. By default, set to true .
|
connectionProps
- properties used for establishing a session with
Exchange ServerExchangeException
- if a problem occurred while interacting with Exchange ServerMethod Detail |
public static Session getSession(java.net.URL serverURL, java.lang.String sUsername, java.lang.String sPassword) throws ExchangeException
serverURL
- the URL to the Microsoft Exchange serversUsername
- the usernamesPassword
- the passwordExchangeException
- if a problem occurred while interacting with Exchange Serverpublic static Session getSession(java.lang.String sServerURL, java.lang.String sUsername, java.lang.String sPassword) throws ExchangeException, java.net.MalformedURLException
sServerURL
- the URL to the Microsoft Exchange serversUsername
- the usernamesPassword
- the passwordExchangeException
- if a problem occurred while interacting with Exchange Serverpublic void close()
public ActiveDirectorySession getActiveDirectorySession() throws ActiveDirectoryException
ActiveDirectoryException
- if a problem occurred while interacting with Active DirectoryExchangeRuntimeException
- if this object has been released and can
no longer be usedActiveDirectorySession
public ActiveDirectorySession getActiveDirectorySession(java.lang.String sHostURL) throws ActiveDirectoryException
ActiveDirectoryException
- if a problem occurred while interacting with Active DirectoryExchangeRuntimeException
- if this object has been released and can
no longer be usedActiveDirectorySession
public ActiveDirectorySession getActiveDirectorySession(java.lang.String sHostURL, java.lang.String sUsername, java.lang.String sPassword) throws ActiveDirectoryException
sHostURL
- the host URL of the domain controller.sUsername
- the username.sPassword
- the password.ActiveDirectoryException
- if a problem occurred while interacting with Active DirectoryExchangeRuntimeException
- if this object has been released and can
no longer be usedActiveDirectorySession
public User getUserInfo() throws ActiveDirectoryException
See getActiveDirectorySession()
for further information.
ActiveDirectoryException
- if a problem occurred while interacting with Active DirectoryExchangeRuntimeException
- if this object has been released and can
no longer be usedpublic User getUserInfo(java.lang.String sHostURL) throws ActiveDirectoryException
sHostURL
- the host URL of the domain controller.ActiveDirectoryException
- if a problem occurred while interacting with Active DirectoryExchangeRuntimeException
- if this object has been released and can
no longer be usedgetActiveDirectorySession(String, String, String)
public java.lang.String getExchangeServer()
PROP_EXCHANGE_SERVER
public java.lang.String getUserDomain()
PROP_USER_DOMAIN
public java.lang.String getUserUsername()
PROP_USER_USERNAME
public Mailbox serverGetMailbox() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedpublic Mailbox getUserMailbox() throws ExchangeException
serverGetMailbox()
ExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedpublic Mailbox getMailbox() throws ExchangeException
serverGetMailbox()
ExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedpublic Mailbox getMailbox(java.lang.String sMailbox) throws ExchangeException
serverGetMailbox()
DO NOT USE!!!
ExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedpublic CalendarFolder getCalendarFolder() throws ExchangeException
serverGetCalendarFolder()
Calling this method is the same as calling Mailbox.getCalendarFolder()
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getCalendarFolder()
public CalendarFolder serverGetCalendarFolder() throws ExchangeException
This method queries the server only if this nor serverGetCalendarFolder(List)
were previously called, requesting the following properties:
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetCalendarFolder()
public CalendarFolder serverGetCalendarFolder(java.util.List properties) throws ExchangeException
Use this method to request specific properties or refresh the properties pertaining to the "Calendar" folder.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetCalendarFolder(List)
public ContactFolder getContactsFolder() throws ExchangeException
serverGetContactsFolder()
Calling this method is the same as calling Mailbox.getContactsFolder()
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getContactsFolder()
public ContactFolder serverGetContactsFolder() throws ExchangeException
This method queries the server only if this nor serverGetContactsFolder(List)
were previously called, requesting the following properties:
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetContactsFolder()
public ContactFolder serverGetContactsFolder(java.util.List properties) throws ExchangeException
Use this method to request specific properties or refresh the properties pertaining to the "Contacts" folder.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetContactsFolder(List)
public MailFolder getDraftsFolder() throws ExchangeException
serverGetDraftsFolder()
Calling this method is the same as calling Mailbox.getDraftsFolder()
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getDraftsFolder()
public MailFolder serverGetDraftsFolder() throws ExchangeException
This method queries the server only if this nor serverGetDraftsFolder(List)
were previously called, requesting the following properties:
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetDraftsFolder()
public MailFolder serverGetDraftsFolder(java.util.List properties) throws ExchangeException
Use this method to request specific properties or refresh the properties pertaining to the "Drafts" folder.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetDraftsFolder(List)
public Folder getDeletedItemsFolder() throws ExchangeException
serverGetDeletedItemsFolder()
Calling this method is the same as calling Mailbox.getDeletedItems()
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getDeletedItems()
public Folder serverGetDeletedItemsFolder() throws ExchangeException
This method queries the server only if this nor serverGetDeletedItemsFolder(List)
were previously called, requesting the following properties:
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetDeletedItemsFolder()
public Folder serverGetDeletedItemsFolder(java.util.List properties) throws ExchangeException
Use this method to request specific properties or refresh the properties pertaining to the "Deleted Items" folder.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetDeletedItemsFolder(List)
public MailFolder getInboxFolder() throws ExchangeException
serverGetInboxFolder()
Calling this method is the same as calling Mailbox.getInbox()
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getInbox()
public MailFolder serverGetInboxFolder() throws ExchangeException
This method queries the server only if this nor serverGetInboxFolder(List)
were previously called, requesting the following properties:
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetInboxFolder()
public MailFolder serverGetInboxFolder(java.util.List properties) throws ExchangeException
Use this method to request specific properties or refresh the properties pertaining to the "Inbox" folder.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetInboxFolder(List)
public JournalFolder getJournalFolder() throws ExchangeException
serverGetJournalFolder()
Calling this method is the same as calling Mailbox.getJournalFolder()
null
if folder does not exist.ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getJournalFolder()
public JournalFolder serverGetJournalFolder() throws ExchangeException
This method queries the server only if this nor serverGetJournalFolder(List)
were previously called, requesting the following properties:
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetJournalFolder()
public JournalFolder serverGetJournalFolder(java.util.List properties) throws ExchangeException
This method queries the server only if this nor serverGetJournalFolder(List)
were previously called, requesting the following properties:
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetJournalFolder(List)
public NoteFolder getNotesFolder() throws ExchangeException
serverGetNotesFolder()
Calling this method is the same as calling Mailbox.getNotesFolder()
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getNotesFolder()
public NoteFolder serverGetNotesFolder() throws ExchangeException
This method queries the server only if this nor serverGetNotesFolder(List)
were previously called, requesting the following properties:
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not exist.ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetNotesFolder()
public NoteFolder serverGetNotesFolder(java.util.List properties) throws ExchangeException
Use this method to request specific properties or refresh the properties pertaining to the "Notes" folder.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not exist.ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetNotesFolder(List)
public Folder getOutboxFolder() throws ExchangeException
serverGetOutboxFolder()
Calling this method is the same as calling Mailbox.getOutboxFolder()
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getOutboxFolder()
public Folder serverGetOutboxFolder() throws ExchangeException
This method queries the server only if this nor serverGetOutboxFolder(List)
were previously called, requesting the following properties:
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetOutboxFolder()
public Folder serverGetOutboxFolder(java.util.List properties) throws ExchangeException
Use this method to request specific properties or refresh the properties pertaining to the "Outbox" folder.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetOutboxFolder(List)
public Folder getSentItemsFolder() throws ExchangeException
serverGetSentItemsFolder()
Calling this method is the same as calling Mailbox.getSentItems()
null
if folder does not existExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getSentItems()
public Folder serverGetSentItemsFolder() throws ExchangeException
This method queries the server only if this nor serverGetSentItemsFolder(List)
were previously called, requesting the following properties:
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedMailbox.serverGetSentItemsFolder()
public Folder serverGetSentItemsFolder(java.util.List properties) throws ExchangeException
Use this method to request specific properties or refresh the properties pertaining to the "Sent Items" folder.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not existExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedMailbox.serverGetSentItemsFolder(List)
public TaskFolder getTasksFolder() throws ExchangeException
serverGetTasksFolder()
Calling this method is the same as calling Mailbox.getTasksFolder()
null
if folder does not exist.ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.getTasksFolder()
public TaskFolder serverGetTasksFolder() throws ExchangeException
This method queries the server only if this nor serverGetTasksFolder(List)
were previously called, requesting the following properties:
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not exist.ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetTasksFolder()
public TaskFolder serverGetTasksFolder(java.util.List properties) throws ExchangeException
Use this method to request specific properties or refresh the properties pertaining to the "Tasks" folder.
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)null
if folder does not exist.ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMailbox.serverGetTasksFolder(List)
public Folder getDefaultPublicFolder() throws ExchangeException
serverGetDefaultPublicFolder()
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folder serverGetDefaultPublicFolder() throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folder serverGetDefaultPublicFolder(java.util.List properties) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folder getPublicFolder(java.lang.String sPathname) throws ExchangeException
serverGetPublicFolder(String, List)
sPathname
- path of the public folderExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Folder serverGetPublicFolder(java.lang.String sPathname, java.util.List properties) throws ExchangeException
sPathname
- path of the public folderproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)ExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedpublic Folder getFolder(UniqueID uniqueID) throws ExchangeException
serverGetFolder(UniqueID)
Folder.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
getFolder(UniqueID, List)
.uniqueID
- the id of the folder to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedFolder.getDefaultProperties()
public Folder serverGetFolder(UniqueID uniqueID) throws ExchangeException
Folder.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
serverGetFolder(UniqueID, List)
.uniqueID
- the id of the folder to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedFolder.getDefaultProperties()
public Folder getFolder(UniqueID uniqueID, java.util.List properties) throws ExchangeException
serverGetFolder(UniqueID, List)
uniqueID
- the id of the folder to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- 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 specifiedFolder.getDefaultProperties()
public Folder serverGetFolder(UniqueID uniqueID, java.util.List properties) throws ExchangeException
uniqueID
- the id of the folder to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- 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 specifiedFolder.getDefaultProperties()
public Contact getContact(UniqueID uniqueID) throws ExchangeException
serverGetContact(UniqueID)
Contact.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
getContact(UniqueID, List)
.uniqueID
- the id of the contact to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedContact.getDefaultProperties()
public Contact serverGetContact(UniqueID uniqueID) throws ExchangeException
Contact.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
serverGetContact(UniqueID, List)
.uniqueID
- the id of the contact to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedContact.getDefaultProperties()
public Contact getContact(UniqueID uniqueID, java.util.List properties) throws ExchangeException
serverGetContact(UniqueID, List)
uniqueID
- the id of the contact to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- 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 specifiedContact.getDefaultProperties()
public Contact serverGetContact(UniqueID uniqueID, java.util.List properties) throws ExchangeException
uniqueID
- the id of the contact to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- 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 specifiedContact.getDefaultProperties()
public Appointment getAppointment(UniqueID uniqueID) throws ExchangeException
serverGetAppointment(UniqueID)
Appointment.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
getAppointment(UniqueID, List, boolean)
.uniqueID
- the id of the appointment to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedAppointment.getDefaultProperties()
public Appointment serverGetAppointment(UniqueID uniqueID) throws ExchangeException
A list of selected properties Appointment.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
serverGetAppointment(UniqueID, List, boolean)
.
uniqueID
- the id of the appointment to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedAppointment.getDefaultProperties()
public Appointment getAppointment(UniqueID uniqueID, boolean bOpenSeries) throws ExchangeException
serverGetAppointment(UniqueID, boolean)
bOpenSeries
is true
,
and the appointment is recurring, the master appointment is returned, otherwise
a single appointment occurrence is returned.
Appointment.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
getAppointment(UniqueID, List, boolean)
.uniqueID
- the id of the appointment to search forbOpenSeries
- true
to open series of recurring appointments; false
otherwisenull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedAppointment.getDefaultProperties()
public Appointment serverGetAppointment(UniqueID uniqueID, boolean bOpenSeries) throws ExchangeException
If bOpenSeries
is true
, and the appointment is recurring,
the master appointment is returned, otherwise a single appointment occurrence is returned.
A list of selected properties Appointment.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
serverGetAppointment(UniqueID, List, boolean)
.
uniqueID
- the id of the appointment to search forbOpenSeries
- true
to open series of recurring appointments; false
otherwisenull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedAppointment.getDefaultProperties()
public Appointment getAppointment(UniqueID uniqueID, java.util.List properties, boolean bOpenSeries) throws ExchangeException
serverGetAppointment(UniqueID, List, boolean)
bOpenSeries
is true
,
and the appointment is recurring, the master appointment is returned, otherwise
a single appointment occurrence is returned.uniqueID
- the id of the appointment to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)bOpenSeries
- true
to open series of recurring appointments; false
otherwisenull
if not foundExchangeException
- 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 specifiedAppointment.getDefaultProperties()
public Appointment serverGetAppointment(UniqueID uniqueID, java.util.List properties, boolean bOpenSeries) throws ExchangeException
If bOpenSeries
is true
, and the appointment is recurring,
the master appointment is returned, otherwise a single appointment occurrence is returned.
uniqueID
- the id of the appointment to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)bOpenSeries
- true
to open series of recurring appointments; false
otherwisenull
if not foundExchangeException
- 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 specifiedAppointment.getDefaultProperties()
public Appointment[] serverGetAppointments(UniqueID[] uniqueIDs, java.util.Date instanceDate, java.util.List properties) throws ExchangeException
uniqueIDs
- the IDs of the master recurring appointments to retrieveinstanceDate
- the date on which the instances occurproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storepublic Message getMessage(UniqueID uniqueID) throws ExchangeException
serverGetMessage(UniqueID)
Message.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
getMessage(UniqueID, List)
.uniqueID
- the id of the message to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMessage.getDefaultProperties()
public Message serverGetMessage(UniqueID uniqueID) throws ExchangeException
Message.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
serverGetMessage(UniqueID, List)
.uniqueID
- the id of the message to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedMessage.getDefaultProperties()
public Message getMessage(UniqueID uniqueID, java.util.List properties) throws ExchangeException
serverGetMessage(UniqueID, List)
uniqueID
- the id of the message to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- 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 specifiedMessage.getDefaultProperties()
public Message serverGetMessage(UniqueID uniqueID, java.util.List properties) throws ExchangeException
uniqueID
- the id of the message to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- 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 specifiedMessage.getDefaultProperties()
public IItem getItem(UniqueID uniqueID) throws ExchangeException
serverGetItem(UniqueID)
AbstractItem.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
getItem(UniqueID, List)
.uniqueID
- the id of the item to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedAbstractItem.getDefaultProperties()
public IItem serverGetItem(UniqueID uniqueID) throws ExchangeException
AbstractItem.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
serverGetItem(UniqueID, List)
.uniqueID
- the id of the item to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedAbstractItem.getDefaultProperties()
public IItem getItem(UniqueID uniqueID, java.util.List properties) throws ExchangeException
serverGetItem(UniqueID, List)
uniqueID
- the id of the item to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- 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 specifiedAbstractItem.getDefaultProperties()
public IItem serverGetItem(UniqueID uniqueID, java.util.List properties) throws ExchangeException
uniqueID
- the id of the item to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- 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 specified or the ID of the item is nullAbstractItem.getDefaultProperties()
public void serverDeleteItems(java.lang.String sSource, java.lang.String[] subItems) throws ExchangeException
The items are moved to the user's "Deleted Items" folder.
sSource
- the URI of the source collection (must not be null)subItems
- an array of items, either folders, messages, or both, that
are to be deletedpublic void serverDeleteItems(java.lang.String sSource, java.lang.String[] subItems, boolean bDeletedItems) throws ExchangeException
The items are moved to the user's "Deleted Items" folder by specifying
bDeletedItems = true
, otherwise they are removed from the
Exhange store.
sSource
- the URI of the source collection (must not be null)subItems
- an array of items, either folders, messages, or both, that
are to be deletedbDeletedItems
- if false
, remove items from Exchange storepublic ResultSet serverSearch(java.lang.String sSource, java.lang.String[] properties, IFilter filter, SortOrder order, RowRange range) throws ExchangeException
sSource
- the URI of the source collection (must not be null)properties
- an array of properties to query forfilter
- the conditions to search byorder
- the order to sort byrange
- the range of rows to returnExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedserverSearch(String, String[], String[], int, IFilter, SortOrder, RowRange)
public ResultSet serverSearch(java.lang.String sSource, java.lang.String[] properties, int iScope, IFilter filter, SortOrder order, RowRange range) throws ExchangeException
sSource
- the URI of the source collection (must not be null)properties
- an array of properties to query foriScope
- 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 Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedserverSearch(String, String[], String[], int, IFilter, SortOrder, RowRange)
,
IScope
public ResultSet serverSearch(java.lang.String sSource, java.lang.String[] properties, java.lang.String[] subSources, IFilter filter, SortOrder order, RowRange range) throws ExchangeException
sSource
- the URI of the source collection (must not be null)properties
- an array of properties to query forsubSources
- the URIs of sub source collectionsfilter
- the conditions to search byorder
- the order to sort byrange
- the range of rows to returnExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedserverSearch(String, String[], String[], int, IFilter, SortOrder, RowRange)
public ResultSet serverSearch(java.lang.String sSource, java.lang.String[] properties, java.lang.String[] subSources, int iScope, IFilter filter, SortOrder order, RowRange range) throws ExchangeException
The following example illustrates the use of search
.
com.compoze.exchange.webdav.filter.MessageFilter filter = new com.compoze.exchange.webdav.filter.MessageFilter(); filter.setHasAttachment(true); ResultSet rs = session.search("/exchange/skip.ogrudnick/Inbox/", new String[] { "\"DAV:href\"", "\"DAV:displayname\"", "\"DAV:contentclass\"", "\"urn:schemas:httpmail:subject\"" }, new String[] { "\"/exchange/skip.ogrudnick/Inbox/\"" "\"/exchange/skip.ogrudnick/Inbox/sub1/\"" "\"/exchange/skip.ogrudnick/Inbox/sub2/\"" }, IScope.SHALLOW_TRAVERSAL, filter, SortOrder.create(HttpMailProperty.DATE_RECEIVED, SortOrder.DESCENDING), new Range(10)); while (rs.next()) { System.out.println("urn:schemas:httpmail:subject = " + rs.getString("urn:schemas:httpmail:subject")); }
sSource
- the URI of the source collection (must not be null)properties
- an array of properties to query forsubSources
- the URIs of sub source collectionsiScope
- 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 Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedserverSearch(String, String, RowRange)
,
IScope
public ResultSet serverSearch(java.lang.String sSource, java.lang.String sSQL, RowRange range) throws ExchangeException
The following example illustrates the use of search
.
StringBuffer buffer = new StringBuffer(64); buffer.append("SELECT \"DAV:href\", \"DAV:displayname\", \"DAV:contentclass\", \"urn:schemas:httpmail:subject\" "); buffer.append("FROM scope('shallow traversal of \"/exchange/skip.ogrudnick/Inbox/\"') "); buffer.append("WHERE \"urn:schemas:httpmail:hasattachment" = true"); ResultSet rs = session.search("/exchange/skip.ogrudnick/Inbox/", buffer.toString(), new Range(10)); while (rs.next()) { System.out.println("urn:schemas:httpmail:subject = " + rs.getString("urn:schemas:httpmail:subject")); }
sSQL
- SQL (must not be null)range
- the range of rows to returnExchangeException
- if a problem occurred while interacting with Exchange ServerExchangeRuntimeException
- if this object has been released and can
no longer be usedpublic java.lang.String getUserAlias()
PROP_EXCHANGE_MAILBOX
, or the mailbox name resolved by setting
PROP_AD_LOOKUP
to "true"
.PROP_EXCHANGE_MAILBOX
,
PROP_AD_LOOKUP
public java.lang.String toString()
toString
in class java.lang.Object
public Task serverGetTask(UniqueID uniqueID, java.util.List properties) throws ExchangeException
uniqueID
- the id of the task to search forproperties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to request from the Exchange store
(must not be null
)null
if not foundExchangeException
- 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 specifiedTask.getDefaultProperties()
public Task serverGetTask(UniqueID uniqueID) throws ExchangeException
Task.getDefaultProperties()
are
requested from the Exchange store. To specify a list of properties, use
serverGetTask(UniqueID, List)
.uniqueID
- the id of the task to search fornull
if not foundExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedTask.getDefaultProperties()
public FreeBusy[] serverGetFreeBusy(java.util.List listAttendees, java.util.Date startDate, java.util.Date endDate, int iInterval) throws ExchangeException
listAttendees
- a list of strings representing the email addresses of the attendeesstartDate
- the date to begin searching onendDate
- the date to stop searching oniInterval
- the time interval to return information for (in minutes)FreeBusy
information that is parallel to the
users in listAttendeesExchangeException
- public java.util.TimeZone getTimeZone()
public void setTimeZone(java.util.TimeZone timeZone)
timeZone
- the timezone to set the session topublic boolean isServerExchange() throws ExchangeException
PROP_EXCHANGE_SERVER
is a WebDAV
Exchange 2000 or 2003 server. This method does require
that the following properties are correctly set for connecting to
a possible Exchange server: PROP_EXCHANGE_SERVER
,
PROP_EXCHANGE_PROTOCOL
, PROP_EXCHANGE_PORT
,
PROP_AUTHENICATION_PROTOCOL
. When connecting to servers
that use NTLM authentication, PROP_USER_USERNAME
,
PROP_USER_PASSWORD
and PROP_USER_DOMAIN
must
be specified.true
if the server is running Exchange on
the specified port and protocol false
otherwiseExchangeException
- if this method could not determine if the
specified server is running Exchange or
if there was a problem communicating with the
server
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |