|
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.Messages
This class contains the methods used for message manipulation.
Field Summary | |
protected Session |
m_session
|
Method Summary | |
DistributionList[] |
createDistLists(Message[] messages)
Creates an array of distribution lists from the messages. |
int |
serverAddAttachment(java.lang.String sMessageID,
AttachmentType attachmentType,
java.lang.String sName,
java.lang.String sSource,
int iPosition,
javax.activation.DataHandler handler)
Hits the server to add an attachment to a message. |
int |
serverAddAttachment(java.lang.String sMessageID,
java.lang.String sFolderID,
AttachmentType attachmentType,
java.lang.String sName,
java.lang.String sSource,
int iPosition,
javax.activation.DataHandler handler)
Hits the server to add an attachment to a message. |
protected void |
serverCancelMeeting(java.lang.String sMessageID,
PropertyValue[] values,
boolean bSeries,
boolean bSend,
boolean bSaveInSent,
boolean bDelete)
Hits the server to delete a send a meeting cancellation and optionally delete the meeting. |
void |
serverCopyMessages(java.lang.String[] srcMessageIDs,
java.lang.String sTargetFolderID)
Hits the server to copy the specified messages to another folder. |
void |
serverCopyMessages(java.lang.String[] srcMessageIDs,
java.lang.String sFolderID,
java.lang.String sTargetFolderID)
Hits the server to copy the specified messages to another folder. |
Appointment |
serverCreateAppointment(DefaultFolderType type,
PropertyValue[] values,
Recipient[] recipients,
RecurrencePattern pattern)
Hits the server to create an appointment. |
Appointment |
serverCreateAppointment(DefaultFolderType type,
PropertyValue[] values,
Recipient[] recipients,
RecurrencePattern pattern,
boolean bSend,
boolean bSaveSent)
Hits the server to create an appointment. |
Appointment |
serverCreateAppointment(java.lang.String sFolderID,
PropertyValue[] values,
Recipient[] recipients,
RecurrencePattern pattern)
Hits the server to create an appointment. |
Appointment |
serverCreateAppointment(java.lang.String sFolderID,
PropertyValue[] values,
Recipient[] recipients,
RecurrencePattern pattern,
boolean bSend,
boolean bSaveSent)
Hits the server to create an appointment. |
Contact |
serverCreateContact(DefaultFolderType type,
PropertyValue[] values)
Hits the server to create a contact. |
Contact |
serverCreateContact(java.lang.String sFolderID,
PropertyValue[] values)
Hits the server to create a contact. |
Journal |
serverCreateJournal(DefaultFolderType type,
PropertyValue[] values)
Hits the server to create a journal entry. |
Journal |
serverCreateJournal(java.lang.String sFolderID,
PropertyValue[] values)
Hits the server to create a journal entry. |
java.lang.String |
serverCreateMessage(DefaultFolderType folderType,
PropertyValue[] values)
Hits the server to create a message. |
java.lang.String |
serverCreateMessage(DefaultFolderType folderType,
PropertyValue[] values,
Recipient[] recipients)
Hits the server to create a message. |
java.lang.String |
serverCreateMessage(java.lang.String sFolderID,
PropertyValue[] values)
Hits the server to create a message. |
java.lang.String |
serverCreateMessage(java.lang.String sFolderID,
PropertyValue[] values,
Recipient[] recipients)
Hits the server to create a message. |
Task |
serverCreateTask(DefaultFolderType type,
PropertyValue[] values)
Hits the server to create a task. |
Task |
serverCreateTask(java.lang.String sFolderID,
PropertyValue[] values)
Hits the server to create a task. |
Message |
serverCreateTaskRequest(DefaultFolderType type,
java.lang.String sTaskID,
PropertyValue[] values,
Recipient[] recipients,
boolean bSend,
boolean bSaveInSent)
Hits the server to create a task. |
Message |
serverCreateTaskRequest(java.lang.String sFolderID,
java.lang.String sTaskID,
PropertyValue[] values,
Recipient[] recipients,
boolean bSend,
boolean bSaveInSent)
Hits the server to create a task request. |
void |
serverDeleteAttachment(java.lang.String sMessageID,
int iIndex)
Hits the server to delete an attachment from a message. |
void |
serverDeleteAttachment(java.lang.String sMessageID,
java.lang.String sFolderID,
int iIndex)
Hits the server to delete an attachment from a message. |
void |
serverDeleteMessages(java.lang.String[] messageIDs,
boolean bDeletedItems)
Hits the server to delete the specified messages. |
void |
serverDeleteMessages(java.lang.String[] messageIDs,
boolean bDeletedItems,
boolean bDeleteSeries)
Hits the server to delete the specified messages. |
void |
serverDeleteMessages(java.lang.String[] messageIDs,
java.lang.String sFolderID,
boolean bDeletedItems)
Hits the server to delete the specified messages. |
void |
serverDeleteMessages(java.lang.String[] messageIDs,
java.lang.String sFolderID,
boolean bDeletedItems,
boolean bDeleteSeries)
Hits the server to delete the specified messages. |
Message |
serverForwardMessage(java.lang.String sMessageID,
PropertyValue[] values,
PropertyKey[] keys)
Hits the server to create a new message in the oubox suitable for forwarding a specified message. |
Message |
serverForwardMessage(java.lang.String sMessageID,
PropertyValue[] values,
PropertyKey[] keys,
boolean bCopyRichText)
Hits the server to create a new message in the oubox suitable for forwarding a specified message. |
Message |
serverForwardMessage(java.lang.String sMessageID,
java.lang.String sFolderID,
PropertyValue[] values,
PropertyKey[] keys)
Hits the server to create a new message in the oubox suitable for forwarding a specified message. |
Message |
serverForwardMessage(java.lang.String sMessageID,
java.lang.String sFolderID,
PropertyValue[] values,
PropertyKey[] keys,
boolean bCopyRichText)
Hits the server to create a new message in the oubox suitable for forwarding a specified message. |
Message |
serverForwardMessage(java.lang.String sMessageID,
java.lang.String sFolderID,
PropertyValue[] values,
PropertyKey[] keys,
boolean bCopyRichText,
boolean bSeries)
Hits the server to create a new message in the oubox suitable for forwarding a specified message. |
Appointment[] |
serverGetAppointments(java.util.Date startTime,
java.util.Date endTime,
PropertyKey[] apptProps)
Queries the server to get appointments from the default calendar folder.. |
Appointment[] |
serverGetAppointments(DefaultFolderType folderType,
java.util.Date startTime,
java.util.Date endTime,
PropertyKey[] apptProps)
Queries the server to get appointments. |
Appointment[] |
serverGetAppointments(java.lang.String[] apptIDs,
java.util.Date instanceDate,
PropertyKey[] apptProps)
Queries the server to get appointments. |
Appointment[] |
serverGetAppointments(java.lang.String[] apptIDs,
PropertyKey[] apptProps)
Queries the server to get appointments. |
javax.activation.DataHandler |
serverGetAttachment(java.lang.String sMessageID,
int iIndex)
Hits the server to get an attachment from a message. |
javax.activation.DataHandler |
serverGetAttachment(java.lang.String sMessageID,
java.lang.String sFolderID,
int iIndex)
Hits the server to get an attachment from a message. |
javax.activation.DataHandler |
serverGetAttachment(java.lang.String sMessageID,
java.lang.String sFolderID,
int iEmbeddedIndex,
int iAttachmentIndex)
Hits the server to get an attachment from a message. |
Attachment[] |
serverGetAttachments(java.lang.String sMessageID,
PropertyKey[] keys)
Hits the server to get detailed information about an attachment. |
Attachment[] |
serverGetAttachments(java.lang.String sMessageID,
java.lang.String sFolderID,
PropertyKey[] keys)
Hits the server to get detailed information about an attachment. |
Contact |
serverGetContact(java.lang.String sContactID,
PropertyKey[] keys)
Queries the server to get a single contact. |
Contact[] |
serverGetContacts(DefaultFolderType type,
int iStartIndex,
int iEndIndex,
int iDepth,
PropertyKey[] keys,
SortProperty[] sortProps,
PropertyValue[] filterProps,
boolean bOr,
boolean bNot,
boolean bHidden)
Queries the server to get contacts. |
Contact[] |
serverGetContacts(java.lang.String[] contactIDs,
PropertyKey[] keys)
Queries the server to get contacts by their IDs. |
Contact[] |
serverGetContacts(java.lang.String sFolderID,
int iStartIndex,
int iEndIndex,
int iDepth,
PropertyKey[] keys,
SortProperty[] sortProps,
PropertyValue[] filterProps,
boolean bOr,
boolean bNot,
boolean bHidden)
Queries the server to get contacts. |
DistributionList |
serverGetDistributionList(java.lang.String sDistListID,
PropertyKey[] keys)
Queries the server to get a single distribution list. |
DistributionList[] |
serverGetDistributionLists(DefaultFolderType type,
int iStartIndex,
int iEndIndex,
int iDepth,
PropertyKey[] keys,
SortProperty[] sortProps,
PropertyValue[] filterProps,
boolean bOr,
boolean bNot,
boolean bHidden)
Queries the server to get distribution lists |
DistributionList[] |
serverGetDistributionLists(java.lang.String[] distListIDs,
PropertyKey[] keys)
Queries the server to get distribution lists by their IDs. |
DistributionList[] |
serverGetDistributionLists(java.lang.String sFolderID,
int iStartIndex,
int iEndIndex,
int iDepth,
PropertyKey[] keys,
SortProperty[] sortProps,
PropertyValue[] filterProps,
boolean bOr,
boolean bNot,
boolean bHidden)
Queries the server to get distribution lists. |
Message |
serverGetEmbeddedMessage(java.lang.String sMessageID,
java.lang.String sFolderID,
PropertyKey[] messageKeys,
int iIndex)
Queries the server to get an embedded message (an attachment that is a message). |
Message |
serverGetMessage(java.lang.String sMessageID,
PropertyKey[] keys)
Queries the server to get a single message. |
Message |
serverGetMessage(java.lang.String sMessageID,
java.lang.String sFolderID,
PropertyKey[] keys)
Queries the server to get a single message. |
int |
serverGetMessageCount(DefaultFolderType type,
int iDepth,
PropertyValue[] filterProps,
boolean bOr,
boolean bNot,
boolean bHidden)
Queries the server to get a count of messages. |
int |
serverGetMessageCount(java.lang.String sFolderID,
int iDepth,
PropertyValue[] filterProps,
boolean bOr,
boolean bNot,
boolean bHidden)
Queries the server to get a count of messages. |
Message[] |
serverGetMessages(DefaultFolderType folderType,
int iStartIndex,
int iEndIndex,
int iDepth,
PropertyKey[] messageKeys,
SortProperty[] sortProps,
PropertyValue[] filterProps,
boolean bOr,
boolean bNot,
boolean bHidden)
Queries the server to get messages. |
Message[] |
serverGetMessages(java.lang.String[] messageIDs,
PropertyKey[] keys)
Queries the server to get messages by their IDs. |
Message[] |
serverGetMessages(java.lang.String[] messageIDs,
java.lang.String sFolderID,
PropertyKey[] keys)
Queries the server to get messages by their IDs. |
Message[] |
serverGetMessages(java.lang.String sFolderID,
int iStartIndex,
int iEndIndex,
int iDepth,
PropertyKey[] messageKeys,
SortProperty[] sortProps,
PropertyValue[] filterProps,
boolean bOr,
boolean bNot,
boolean bHidden)
Queries the server to get messages. |
Task |
serverGetTask(java.lang.String sTaskID,
PropertyKey[] keys)
Queries the server to get a single task. |
Task[] |
serverGetTasks(java.lang.String[] taskIDs,
PropertyKey[] keys)
Queries the server to get tasks by their IDs. |
Task[] |
serverGetTasks(java.lang.String sFolderID,
int iStartIndex,
int iEndIndex,
int iDepth,
PropertyKey[] keys,
SortProperty[] sortProps,
PropertyValue[] filterProps,
boolean bOr,
boolean bNot,
boolean bHidden)
Queries the server to get tasks. |
void |
serverMoveMessages(java.lang.String[] srcMessageIDs,
DefaultFolderType folderType)
Hits the server to move the specified messages to another folder. |
void |
serverMoveMessages(java.lang.String[] srcMessageIDs,
java.lang.String sTargetFolderID)
Hits the server to move the specified messages to another folder. |
void |
serverMoveMessages(java.lang.String[] srcMessageIDs,
java.lang.String sFolderID,
DefaultFolderType folderType)
Hits the server to move the specified messages to another folder. |
void |
serverMoveMessages(java.lang.String[] srcMessageIDs,
java.lang.String sFolderID,
java.lang.String sTargetFolderID)
Hits the server to move the specified messages to another folder. |
Message |
serverReplyToMessage(java.lang.String sMessageID,
PropertyValue[] values,
PropertyKey[] keys,
boolean bReplyAll)
Hits the server to create a new message in the outbox suitable for replying to a specified message. |
Message |
serverReplyToMessage(java.lang.String sMessageID,
java.lang.String sFolderID,
PropertyValue[] values,
PropertyKey[] keys,
boolean bReplyAll)
Hits the server to create a new message in the outbox suitable for replying to a specified message. |
UnresolvedRecipient[] |
serverResolveRecipients(java.lang.String sMessageID,
boolean bRemove)
Resolves recipients on a message. |
UnresolvedRecipient[] |
serverResolveRecipients(java.lang.String sMessageID,
boolean bRemove,
boolean bSeries)
Resolves recipients on a message. |
void |
serverRespondToMeetingRequest(java.lang.String sMessageID,
PropertyValue[] values,
ResponseStatus status)
Hits the server to reply immediately to a meeting request. |
void |
serverRespondToMeetingRequest(java.lang.String sMessageID,
java.lang.String sFolderID,
PropertyValue[] values,
ResponseStatus status)
Hits the server to reply immediately to a meeting request. |
void |
serverRespondToTaskRequest(java.lang.String sMessageID,
PropertyValue[] values,
TaskResponseStatus status)
Hits the server to respond to to a task request. |
void |
serverRespondToTaskRequest(java.lang.String sMessageID,
java.lang.String sFolderID,
PropertyValue[] values,
TaskResponseStatus status,
boolean bSaveSent)
Hits the server to respond to a task request. |
void |
serverUpdateMessage(java.lang.String sMessageID,
PropertyValue[] values)
Hits the server to update a message. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
PropertyValue[] values)
Hits the server to update the specified messages. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
PropertyValue[] values,
Recipient[] recipients,
boolean bSend,
boolean bSaveInSent)
Hits the server to update the specified messages. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
PropertyValue[] values,
Recipient[] recipients,
RecurrencePattern pattern,
ResponseStatus responseStatus,
boolean bSeries,
boolean bSend,
boolean bSaveInSent)
Hits the server to update the specified messages. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
PropertyValue[] values,
Recipient[] recipients,
ResponseStatus responseStatus,
boolean bSend,
boolean bSaveInSent)
Hits the server to update the specified messages. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
PropertyValue[] values,
Recipient[] recipients,
ResponseStatus responseStatus,
boolean bSeries,
boolean bSend,
boolean bSaveInSent)
Hits the server to update the specified messages. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
java.lang.String sFolderID,
PropertyValue[] values,
Recipient[] recipients,
int[] deleteRecipients,
RecurrencePattern pattern,
ResponseStatus responseStatus,
boolean bSeries,
boolean bSend,
boolean bSaveInSent)
Hits the server to update the specified messages. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
java.lang.String sFolderID,
PropertyValue[] values,
Recipient[] recipients,
int[] deleteRecipients,
RecurrencePattern pattern,
ResponseStatus responseStatus,
TaskResponseStatus taskResponseStatus,
TaskStatus taskStatus,
boolean bSeries,
boolean bSend,
boolean bSaveInSent)
Hits the server to update the specified messages. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
java.lang.String sFolderID,
PropertyValue[] values,
Recipient[] recipients,
RecurrencePattern pattern,
ResponseStatus responseStatus,
boolean bSeries,
boolean bSend,
boolean bSaveInSent)
Hits the server to update the specified messages. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
java.lang.String sFolderID,
PropertyValue[] values,
Recipient[] recipients,
RecurrencePattern pattern,
ResponseStatus responseStatus,
TaskResponseStatus taskResponseStatus,
boolean bSeries,
boolean bSend,
boolean bSaveInSent)
Hits the server to update the specified messages. |
void |
serverUpdateMessages(java.lang.String[] messageIDs,
java.lang.String sFolderID,
PropertyValue[] values,
Recipient[] recipients,
ResponseStatus responseStatus,
boolean bSeries,
boolean bSend,
boolean bSaveInSent)
Hits the server to update the specified messages. |
boolean |
serverUpdateTaskFromRequest(DefaultFolderType folderType,
java.lang.String sTaskRequestID)
Updates a linked task from a task request. |
boolean |
serverUpdateTaskFromRequest(java.lang.String sFolderID,
java.lang.String sTaskRequestID)
Updates a linked task from a task request. |
void |
serverUpdateTaskRequest(java.lang.String sMessageID,
PropertyValue[] values,
TaskStatus taskStatus,
boolean bSaveInSent)
Hits the server to update the specified task and send an update to the originator of the task request that created it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Session m_session
Method Detail |
public Contact serverGetContact(java.lang.String sContactID, PropertyKey[] keys) throws ExchangeException
sContactID
- the contact IDkeys
- the properties to fetch for each contactnull
if not foundpublic Contact[] serverGetContacts(java.lang.String[] contactIDs, PropertyKey[] keys) throws ExchangeException
contactIDs
- the contact IDskeys
- the properties to fetch for each contactpublic Task serverGetTask(java.lang.String sTaskID, PropertyKey[] keys) throws ExchangeException
sTaskID
- the task IDkeys
- the properties to fetch for each tasknull
if not foundpublic Task[] serverGetTasks(java.lang.String[] taskIDs, PropertyKey[] keys) throws ExchangeException
taskIDs
- the task IDskeys
- the properties to fetch for each taskpublic Message serverGetMessage(java.lang.String sMessageID, PropertyKey[] keys) throws ExchangeException
sMessageID
- the message IDkeys
- the properties to fetch for each messagenull
if not foundpublic Message serverGetMessage(java.lang.String sMessageID, java.lang.String sFolderID, PropertyKey[] keys) throws ExchangeException
sMessageID
- the message IDsFolderID
- the folder ID (used as a backup in case
retrieving message by its ID fails)keys
- the properties to fetch for each messagenull
if not foundpublic Message[] serverGetMessages(java.lang.String[] messageIDs, PropertyKey[] keys) throws ExchangeException
messageIDs
- the message IDskeys
- the properties to fetch for each messagepublic Message[] serverGetMessages(java.lang.String[] messageIDs, java.lang.String sFolderID, PropertyKey[] keys) throws ExchangeException
messageIDs
- the message IDssFolderID
- the folder ID (used as a backup in case
retrieving message by its ID fails)keys
- the properties to fetch for each messagepublic Message[] serverGetMessages(java.lang.String sFolderID, int iStartIndex, int iEndIndex, int iDepth, PropertyKey[] messageKeys, SortProperty[] sortProps, PropertyValue[] filterProps, boolean bOr, boolean bNot, boolean bHidden) throws ExchangeException
sFolderID
- the folder IDiStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for alliDepth
- the depth of folders to use when calculating message count (0 for
only starting folder, N for depth of N, -1 for
infinite depth)messageKeys
- the properties to fetch for each messagesortProps
- the properties to sort byfilterProps
- the properties to filter bybOr
- if true
, or the filter properties
togetherbNot
- if true
, the condition is oppositebHidden
- if true
, get hidden messages
rather than visible onespublic Message[] serverGetMessages(DefaultFolderType folderType, int iStartIndex, int iEndIndex, int iDepth, PropertyKey[] messageKeys, SortProperty[] sortProps, PropertyValue[] filterProps, boolean bOr, boolean bNot, boolean bHidden) throws ExchangeException
folderType
- the folder typeiStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for alliDepth
- the depth of folders to use when calculating message count (0 for
only starting folder, N for depth of N, -1 for
infinite depth)messageKeys
- the properties to fetch for each messagesortProps
- the properties to sort byfilterProps
- the properties to filter bybOr
- if true
, or the filter properties
togetherbNot
- if true
, the condition is oppositebHidden
- if true
, get hidden messages
rather than visible onespublic Appointment[] serverGetAppointments(java.lang.String[] apptIDs, PropertyKey[] apptProps) throws ExchangeException
apptIDs
- the IDs of the appointments to retrieveapptProps
- the properties of each appointment to retrievepublic Appointment[] serverGetAppointments(java.lang.String[] apptIDs, java.util.Date instanceDate, PropertyKey[] apptProps) throws ExchangeException
seriesIDs
- the IDs of the master recurring appointments
to retrieveinstanceDate
- the date on which the instances occurapptProps
- the properties of each appointment to retrievepublic Appointment[] serverGetAppointments(java.util.Date startTime, java.util.Date endTime, PropertyKey[] apptProps) throws ExchangeException
startTime
- the starting time to get appointmentsendTime
- the ending time to get appointmentsapptProps
- the appointment properties to bring backpublic Appointment[] serverGetAppointments(DefaultFolderType folderType, java.util.Date startTime, java.util.Date endTime, PropertyKey[] apptProps) throws ExchangeException
folderType
- the folder typestartTime
- the starting time to get appointments, or
null
to go from the beginning of timeendTime
- the ending time to get appointments, or
null
to go until the end of timeapptProps
- the appointment properties to bring backpublic Contact[] serverGetContacts(DefaultFolderType type, int iStartIndex, int iEndIndex, int iDepth, PropertyKey[] keys, SortProperty[] sortProps, PropertyValue[] filterProps, boolean bOr, boolean bNot, boolean bHidden) throws ExchangeException
type
- the default folder typeiStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for alliDepth
- the depth of folders to use when calculating message count (0 for
only starting folder, N for depth of N, -1 for
infinite depth)keys
- the properties to fetch for each contactsortProps
- the properties to sort byfilterProps
- the properties to filter bybOr
- if true
, or the filter properties
togetherbNot
- if true
, the condition is oppositebHidden
- if true
, get hidden messages
rather than visible onespublic Contact[] serverGetContacts(java.lang.String sFolderID, int iStartIndex, int iEndIndex, int iDepth, PropertyKey[] keys, SortProperty[] sortProps, PropertyValue[] filterProps, boolean bOr, boolean bNot, boolean bHidden) throws ExchangeException
sFolderID
- the folder IDiStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for alliDepth
- the depth of folders to use when calculating message count (0 for
only starting folder, N for depth of N, -1 for
infinite depth)keys
- the properties to fetch for each contactsortProps
- the properties to sort byfilterProps
- the properties to filter bybOr
- if true
, or the filter properties
togetherbNot
- if true
, the condition is oppositebHidden
- if true
, get hidden messages
rather than visible onespublic DistributionList serverGetDistributionList(java.lang.String sDistListID, PropertyKey[] keys) throws ExchangeException
sDistListID
- the distribution list IDkeys
- the property keys to fetch for each dist listnull
if not foundpublic DistributionList[] serverGetDistributionLists(java.lang.String[] distListIDs, PropertyKey[] keys) throws ExchangeException
distListIDs
- the contact IDskeys
- the properties to fetch for each contactpublic DistributionList[] serverGetDistributionLists(DefaultFolderType type, int iStartIndex, int iEndIndex, int iDepth, PropertyKey[] keys, SortProperty[] sortProps, PropertyValue[] filterProps, boolean bOr, boolean bNot, boolean bHidden) throws ExchangeException
type
- the default folder typeiStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for alliDepth
- the depth of folders to use when calculating message count (0 for
only starting folder, N for depth of N, -1 for
infinite depth)keys
- the properties to fetch for each dist listsortProps
- the properties to sort byfilterProps
- the properties to filter bybOr
- if true
, or the filter properties
togetherbNot
- if true
, the condition is oppositebHidden
- if true
, get hidden messages
rather than visible onespublic DistributionList[] serverGetDistributionLists(java.lang.String sFolderID, int iStartIndex, int iEndIndex, int iDepth, PropertyKey[] keys, SortProperty[] sortProps, PropertyValue[] filterProps, boolean bOr, boolean bNot, boolean bHidden) throws ExchangeException
sFolderID
- the folder IDiStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for alliDepth
- the depth of folders to use when calculating message count (0 for
only starting folder, N for depth of N, -1 for
infinite depth)keys
- the properties to fetch for each dist listsortProps
- the properties to sort byfilterProps
- the properties to filter bybOr
- if true
, or the filter properties
togetherbNot
- if true
, the condition is oppositebHidden
- if true
, get hidden messages
rather than visible onespublic Task[] serverGetTasks(java.lang.String sFolderID, int iStartIndex, int iEndIndex, int iDepth, PropertyKey[] keys, SortProperty[] sortProps, PropertyValue[] filterProps, boolean bOr, boolean bNot, boolean bHidden) throws ExchangeException
sFolderID
- the folder IDiStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for alliDepth
- the depth of folders to use when calculating message count (0 for
only starting folder, N for depth of N, -1 for
infinite depth)keys
- the properties to fetch for each tasksortProps
- the properties to sort byfilterProps
- the properties to filter bybOr
- if true
, or the filter properties
togetherbNot
- if true
, the condition is oppositebHidden
- if true
, get hidden messages
rather than visible onespublic int serverGetMessageCount(java.lang.String sFolderID, int iDepth, PropertyValue[] filterProps, boolean bOr, boolean bNot, boolean bHidden) throws ExchangeException
sFolderID
- the folder IDiDepth
- the depth of folders to use when calculating message count (0 for
only starting folder, N for depth of N, -1 for
infinite depth)filterProps
- the properties to filter by; passing null
in this parameter will
not traverse subfolders, even if -1 is specified for iDepth
bOr
- if true
, or the filter properties
togetherbNot
- if true
, the condition is oppositebHidden
- if true
, get hidden messages
rather than visible onespublic int serverGetMessageCount(DefaultFolderType type, int iDepth, PropertyValue[] filterProps, boolean bOr, boolean bNot, boolean bHidden) throws ExchangeException
type
- the default folder typeiDepth
- the depth of folders to use when calculating message count (0 for
only starting folder, N for depth of N, -1 for
infinite depth)filterProps
- the properties to filter bybOr
- if true
, or the filter properties
togetherbNot
- if true
, the condition is oppositebHidden
- if true
, get hidden messages
rather than visible onespublic java.lang.String serverCreateMessage(java.lang.String sFolderID, PropertyValue[] values) throws ExchangeException
sFolderID
- the ID of the folder that the message will go invalues
- any initial property values to setExchangeException
- if a problem occurs while connecting to
or interacting with Exchangepublic java.lang.String serverCreateMessage(java.lang.String sFolderID, PropertyValue[] values, Recipient[] recipients) throws ExchangeException
sFolderID
- the ID of the folder that the message will go invalues
- any initial property values to setrecipients
- the initial recipients to add to the message
(null
for no initial recipients)ExchangeException
- if a problem occurs while connecting to
or interacting with Exchangepublic Contact serverCreateContact(DefaultFolderType type, PropertyValue[] values) throws ExchangeException
type
- the default folder typevalues
- any initial property values to setpublic Contact serverCreateContact(java.lang.String sFolderID, PropertyValue[] values) throws ExchangeException
sFolderID
- the ID of the folder that the message will go invalues
- any initial property values to setpublic boolean serverUpdateTaskFromRequest(DefaultFolderType folderType, java.lang.String sTaskRequestID) throws ExchangeException
sFolderID
- the ID of the folder that the task request
is in (may be null
)sTaskRequestID
- the ID of the task requestpublic boolean serverUpdateTaskFromRequest(java.lang.String sFolderID, java.lang.String sTaskRequestID) throws ExchangeException
sFolderID
- the ID of the folder that the task request
is in (may be null
)sTaskRequestID
- the ID of the task requestpublic Task serverCreateTask(DefaultFolderType type, PropertyValue[] values) throws ExchangeException
type
- the default folder typevalues
- any initial property values to setpublic Message serverCreateTaskRequest(DefaultFolderType type, java.lang.String sTaskID, PropertyValue[] values, Recipient[] recipients, boolean bSend, boolean bSaveInSent) throws ExchangeException
type
- the default folder typesTaskID
- the ID of the task to create a request fromvalues
- any initial property values to setassignee
- an assignee to send a task request for this task to
(or null
for no task request)bSend
- if true
, send the task requestbSaveInSent
- if true
and sending the request, save
the task request in the sent items foldernull
if the message is being sentpublic Task serverCreateTask(java.lang.String sFolderID, PropertyValue[] values) throws ExchangeException
sFolderID
- the ID of the folder that the message will go invalues
- any initial property values to setpublic Message serverCreateTaskRequest(java.lang.String sFolderID, java.lang.String sTaskID, PropertyValue[] values, Recipient[] recipients, boolean bSend, boolean bSaveInSent) throws ExchangeException
sFolderID
- the ID of the folder that the message will go insTaskID
- the ID of the task to create a request fromvalues
- any initial property values to setassignee
- an assignee to send a task request for this task tobSend
- if true
, send the task requestbSaveInSent
- if true
and sending the request, save
the task request in the sent items foldernull
if the message is being sentpublic Journal serverCreateJournal(java.lang.String sFolderID, PropertyValue[] values) throws ExchangeException
sFolderID
- the ID of the folder that the message will go invalues
- any initial property values to setpublic Journal serverCreateJournal(DefaultFolderType type, PropertyValue[] values) throws ExchangeException
type
- the default folder typevalues
- any initial property values to setpublic Appointment serverCreateAppointment(java.lang.String sFolderID, PropertyValue[] values, Recipient[] recipients, RecurrencePattern pattern) throws ExchangeException
sFolderID
- the ID of the folder that the appointment will go invalues
- any initial property values to setrecipients
- initial recipients to addpattern
- the recurrence pattern for the appointment (or
null
to create a non-recurring appointment)public Appointment serverCreateAppointment(java.lang.String sFolderID, PropertyValue[] values, Recipient[] recipients, RecurrencePattern pattern, boolean bSend, boolean bSaveSent) throws ExchangeException
sFolderID
- the ID of the folder that the appointment will go invalues
- any initial property values to setrecipients
- initial recipients to addpattern
- the recurrence pattern for the appointment (or
null
to create a non-recurring appointment)bSend
- if true
, send the appointment after it
is created (for meeting requests)bSaveSent
- if true
, save the sent message in the
sent items folderpublic Appointment serverCreateAppointment(DefaultFolderType type, PropertyValue[] values, Recipient[] recipients, RecurrencePattern pattern) throws ExchangeException
type
- the default folder typevalues
- any initial property values to setrecipients
- initial recipients to addpattern
- the recurrence pattern for the appointment (or
null
to create a non-recurring appointment)public Appointment serverCreateAppointment(DefaultFolderType type, PropertyValue[] values, Recipient[] recipients, RecurrencePattern pattern, boolean bSend, boolean bSaveSent) throws ExchangeException
type
- the default folder typevalues
- any initial property values to setrecipients
- initial recipients to addpattern
- the recurrence pattern for the appointment (or
null
to create a non-recurring appointment)bSend
- if true
, send the appointment after it
is created (for meeting requests)bSaveSent
- if true
, save the sent message in the
sent items folderpublic java.lang.String serverCreateMessage(DefaultFolderType folderType, PropertyValue[] values) throws ExchangeException
folderType
- the default folder type the message will go invalues
- any initial property values to setkeys
ExchangeException
- if a problem occurs while connecting to
or interacting with Exchangepublic java.lang.String serverCreateMessage(DefaultFolderType folderType, PropertyValue[] values, Recipient[] recipients) throws ExchangeException
folderType
- the default folder type the message will go invalues
- any initial property values to setrecipients
- the initial recipients to add to the message
(null
for no initial recipients)keys
ExchangeException
- if a problem occurs while connecting to
or interacting with Exchangepublic void serverUpdateMessage(java.lang.String sMessageID, PropertyValue[] values) throws ExchangeException
sMessageID
- the ID of the message to updatevalues
- the property values to setpublic void serverUpdateMessages(java.lang.String[] messageIDs, PropertyValue[] values) throws ExchangeException
messageIDs
- the IDs of the messages to updatevalues
- the property values to setpublic void serverUpdateMessages(java.lang.String[] messageIDs, PropertyValue[] values, Recipient[] recipients, boolean bSend, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatevalues
- the property values to set (or null
for no properties to update)recipients
- the recipients to add to the message (or
null
for no recipients to add)responseType
- the response typebSend
- if true
, send the messagebSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderpublic void serverUpdateMessages(java.lang.String[] messageIDs, PropertyValue[] values, Recipient[] recipients, ResponseStatus responseStatus, boolean bSend, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatevalues
- the property values to set (or null
for no properties to update)recipients
- the recipients to add to the message (or
null
for no recipients to add)responseType
- the response typebSend
- if true
, send the messagebSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderpublic void serverUpdateMessages(java.lang.String[] messageIDs, PropertyValue[] values, Recipient[] recipients, ResponseStatus responseStatus, boolean bSeries, boolean bSend, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatevalues
- the property values to set (or null
for no properties to update)recipients
- the recipients to add to the message (or
null
for no recipients to add)responseType
- the response typebSeries
- if true
and the message is a
recurring appointment, edit the seriesbSend
- if true
, send the messagebSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderpublic void serverUpdateMessages(java.lang.String[] messageIDs, java.lang.String sFolderID, PropertyValue[] values, Recipient[] recipients, ResponseStatus responseStatus, boolean bSeries, boolean bSend, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatesFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values to set (or null
for no properties to update)recipients
- the recipients to add to the message (or
null
for no recipients to add)responseType
- the response typebSeries
- if true
and the message is a
recurring appointment, edit the seriesbSend
- if true
, send the messagebSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderpublic void serverUpdateMessages(java.lang.String[] messageIDs, PropertyValue[] values, Recipient[] recipients, RecurrencePattern pattern, ResponseStatus responseStatus, boolean bSeries, boolean bSend, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatevalues
- the property values to set (or null
for no properties to update)recipients
- the recipients to add to the message (or
null
for no recipients to add)pattern
- if the message is an appointment, update the
recurrence pattern with the specified patternresponseType
- the response typebSeries
- if true
and the message is a
recurring appointment, edit the seriesbSend
- if true
, send the messagebSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderpublic void serverUpdateMessages(java.lang.String[] messageIDs, java.lang.String sFolderID, PropertyValue[] values, Recipient[] recipients, RecurrencePattern pattern, ResponseStatus responseStatus, boolean bSeries, boolean bSend, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatesFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values to set (or null
for no properties to update)recipients
- the recipients to add to the message (or
null
for no recipients to add)pattern
- if the message is an appointment, update the
recurrence pattern with the specified patternresponseStatus
- the meeting response status (this parameter
and the taskResponseStatus parameter
are mutually exclusive)bSeries
- if true
and the message is a
recurring appointment, edit the seriesbSend
- if true
, send the messagebSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderpublic void serverUpdateMessages(java.lang.String[] messageIDs, java.lang.String sFolderID, PropertyValue[] values, Recipient[] recipients, RecurrencePattern pattern, ResponseStatus responseStatus, TaskResponseStatus taskResponseStatus, boolean bSeries, boolean bSend, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatesFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values to set (or null
for no properties to update)recipients
- the recipients to add to the message (or
null
for no recipients to add)pattern
- if the message is an appointment, update the
recurrence pattern with the specified patternresponseStatus
- the meeting response status (this parameter
and the taskResponseStatus parameter
are mutually exclusive)taskResponseStatus
- the task response status (this parameter
and the responseStatus parameter
are mutually exclusive)bSeries
- if true
and the message is a
recurring appointment, edit the seriesbSend
- if true
, send the messagebSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderpublic void serverUpdateMessages(java.lang.String[] messageIDs, java.lang.String sFolderID, PropertyValue[] values, Recipient[] recipients, int[] deleteRecipients, RecurrencePattern pattern, ResponseStatus responseStatus, boolean bSeries, boolean bSend, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatesFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values to set (or null
for no properties to update)recipients
- the recipients to add to the message (or
null
for no recipients to add)deleteRecipients
- the recipients to delete from the message (or
null
for no recipients to delete)pattern
- if the message is an appointment, update the
recurrence pattern with the specified patternresponseType
- the response typebSeries
- if true
and the message is a
recurring appointment, edit the seriesbSend
- if true
, send the messagebSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderpublic void serverUpdateMessages(java.lang.String[] messageIDs, java.lang.String sFolderID, PropertyValue[] values, Recipient[] recipients, int[] deleteRecipients, RecurrencePattern pattern, ResponseStatus responseStatus, TaskResponseStatus taskResponseStatus, TaskStatus taskStatus, boolean bSeries, boolean bSend, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatesFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values to set (or null
for no properties to update)recipients
- the recipients to add to the message (or
null
for no recipients to add)deleteRecipients
- the recipients to delete from the message (or
null
for no recipients to delete)pattern
- if the message is an appointment, update the
recurrence pattern with the specified patternresponseStatus
- the meeting response status (this parameter,
the taskResponseStatus parameter
and the taskStatus parameter are
mutually exclusive)taskResponseStatus
- the task response status (this parameter,
the responseStatus parameter
and the taskStatus
parameter are
mutually exclusive)taskStatus
- the task response status (this parameter,
the responseStatus parameter
and the taskResponseStatus are mutually exclusive)bSeries
- if true
and the message is a
recurring appointment, edit the seriesbSend
- if true
, send the messagebSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderpublic Message serverForwardMessage(java.lang.String sMessageID, PropertyValue[] values, PropertyKey[] keys) throws ExchangeException
sMessageID
- the ID of the message to forwardvalues
- the property values to setkeys
- the keys for the properties to receive on the
new messagepublic Message serverForwardMessage(java.lang.String sMessageID, PropertyValue[] values, PropertyKey[] keys, boolean bCopyRichText) throws ExchangeException
sMessageID
- the ID of the message to forwardvalues
- the property values to setkeys
- the keys for the properties to receive on the
new messagebCopyRichText
- if true
, copy the rich text from
the original message to the forwarded message (it is then
up to the client to add annotation to the rich text and
to set the MESSAGE_RTF
on the forwarded message,
otherwise if a user changes the text property this will not be
reflected in the RTF of the forwarded message)public Message serverForwardMessage(java.lang.String sMessageID, java.lang.String sFolderID, PropertyValue[] values, PropertyKey[] keys) throws ExchangeException
sMessageID
- the ID of the message to forwardsFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values to setkeys
- the keys for the properties to receive on the
new messagepublic Message serverForwardMessage(java.lang.String sMessageID, java.lang.String sFolderID, PropertyValue[] values, PropertyKey[] keys, boolean bCopyRichText) throws ExchangeException
sMessageID
- the ID of the message to forwardsFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values to setkeys
- the keys for the properties to receive on the
new messagebCopyRichText
- if true
, copy the rich text from
the original message to the forwarded message (it is then
up to the client to add annotation to the rich text and
to set the MESSAGE_RTF
on the forwarded message,
otherwise if a user changes the text property this will not be
reflected in the RTF of the forwarded message)public Message serverForwardMessage(java.lang.String sMessageID, java.lang.String sFolderID, PropertyValue[] values, PropertyKey[] keys, boolean bCopyRichText, boolean bSeries) throws ExchangeException
sMessageID
- the ID of the message to forwardsFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values to setkeys
- the keys for the properties to receive on the
new messagebCopyRichText
- if true
, copy the rich text from
the original message to the forwarded message (it is then
up to the client to add annotation to the rich text and
to set the MESSAGE_RTF
on the forwarded message,
otherwise if a user changes the text property this will not be
reflected in the RTF of the forwarded message)bSeries
- forwards the message series (for appointments)public Message serverReplyToMessage(java.lang.String sMessageID, PropertyValue[] values, PropertyKey[] keys, boolean bReplyAll) throws ExchangeException
TO
field of the message is set from
the original sender of the message. In keeping with reply conventions, the
attachments on the original message are not copied into the reply. The
message subject remains unmodified.sMessageID
- the ID of the message to reply tovalues
- the property values on the new message to setkeys
- the keys for the properties to receive on the
new messagebReplyAll
- if true
, reply to all original
recipients of the messagepublic Message serverReplyToMessage(java.lang.String sMessageID, java.lang.String sFolderID, PropertyValue[] values, PropertyKey[] keys, boolean bReplyAll) throws ExchangeException
TO
field of the message is set from
the original sender of the message. In keeping with reply conventions, the
attachments on the original message are not copied into the reply. The
message subject remains unmodified.sMessageID
- the ID of the message to reply tosFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values on the new message to setkeys
- the keys for the properties to receive on the
new messagebReplyAll
- if true
, reply to all original
recipients of the messagepublic void serverRespondToMeetingRequest(java.lang.String sMessageID, PropertyValue[] values, ResponseStatus status) throws ExchangeException
TO
field of the message is set from the original sender of the
request.sMessageID
- the ID of the message to reply tovalues
- the property values on the new message to setkeys
- the keys for the properties to receive on the
new messagestatus
- the meeting response statuspublic void serverRespondToMeetingRequest(java.lang.String sMessageID, java.lang.String sFolderID, PropertyValue[] values, ResponseStatus status) throws ExchangeException
TO
field of the message is set from the original sender of the
request.sMessageID
- the ID of the message to reply tosFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values on the new message to setkeys
- the keys for the properties to receive on the
new messagestatus
- the meeting response statuspublic void serverRespondToTaskRequest(java.lang.String sMessageID, PropertyValue[] values, TaskResponseStatus status) throws ExchangeException
TO
field of the message is set from the original sender of the
request. The task request is saved in the sent items folder.sMessageID
- the ID of the message to reply tovalues
- the property values on the new message to setstatus
- the response statuspublic void serverRespondToTaskRequest(java.lang.String sMessageID, java.lang.String sFolderID, PropertyValue[] values, TaskResponseStatus status, boolean bSaveSent) throws ExchangeException
TO
field of the message is set from the original sender of the
request.sMessageID
- the ID of the message to reply tosFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)values
- the property values on the new message to setstatus
- the task response statusbSaveSent
- if true
, save in sent folderpublic void serverUpdateTaskRequest(java.lang.String sMessageID, PropertyValue[] values, TaskStatus taskStatus, boolean bSaveInSent) throws ExchangeException
messageIDs
- the IDs of the messages to updatevalues
- the property values to set on the task (or
null
for no properties to update)taskStatus
- the new task statusbSaveInSent
- if true
and sending the message,
save the message in the Sent Items
folderprotected void serverCancelMeeting(java.lang.String sMessageID, PropertyValue[] values, boolean bSeries, boolean bSend, boolean bSaveInSent, boolean bDelete) throws ExchangeException
sMessageID
- the ID of the messagebSeries
- if true
, cancel the
entire seriesbSend
- if true
, send the
cancellationbSaveInSent
- if true
and sending
the cancellation, save it in the sent folderbDelete
- if true
, delete the
appointmentpublic void serverDeleteMessages(java.lang.String[] messageIDs, boolean bDeletedItems) throws ExchangeException
messageIDs
- the IDs of the messages to deletebDeletedItems
- if true
, place message into deleted itemspublic void serverDeleteMessages(java.lang.String[] messageIDs, java.lang.String sFolderID, boolean bDeletedItems) throws ExchangeException
messageIDs
- the IDs of the messages to deletesFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)bDeletedItems
- if true
, place message into deleted itemspublic void serverDeleteMessages(java.lang.String[] messageIDs, boolean bDeletedItems, boolean bDeleteSeries) throws ExchangeException
messageIDs
- the IDs of the messages to deletebDeletedItems
- if true
, place message into deleted itemsbDeleteSeries
- if true
and the message is a recurring
appointment, delete all instances of the recurring appointment
rather than just the specified instancepublic void serverDeleteMessages(java.lang.String[] messageIDs, java.lang.String sFolderID, boolean bDeletedItems, boolean bDeleteSeries) throws ExchangeException
messageIDs
- the IDs of the messages to deletesFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)bDeletedItems
- if true
, place message into deleted itemsbDeleteSeries
- if true
and the message is a recurring
appointment, delete all instances of the recurring appointment
rather than just the specified instancepublic void serverCopyMessages(java.lang.String[] srcMessageIDs, java.lang.String sTargetFolderID) throws ExchangeException
srcMessageIDs
- the ID of the source messagessTargetFolderID
- the ID of the target folderpublic void serverCopyMessages(java.lang.String[] srcMessageIDs, java.lang.String sFolderID, java.lang.String sTargetFolderID) throws ExchangeException
srcMessageIDs
- the ID of the source messagessFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)sTargetFolderID
- the ID of the target folderpublic void serverMoveMessages(java.lang.String[] srcMessageIDs, DefaultFolderType folderType) throws ExchangeException
srcMessageIDs
- the ID of the source messagesfolderType
- the default folder type the message will go inpublic void serverMoveMessages(java.lang.String[] srcMessageIDs, java.lang.String sFolderID, DefaultFolderType folderType) throws ExchangeException
srcMessageIDs
- the ID of the source messagessFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)folderType
- the default folder type the message will go inpublic void serverMoveMessages(java.lang.String[] srcMessageIDs, java.lang.String sTargetFolderID) throws ExchangeException
srcMessageIDs
- the ID of the source messagessTargetFolderID
- the ID of the target folderpublic void serverMoveMessages(java.lang.String[] srcMessageIDs, java.lang.String sFolderID, java.lang.String sTargetFolderID) throws ExchangeException
srcMessageIDs
- the ID of the source messagessFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)sTargetFolderID
- the ID of the target folderpublic int serverAddAttachment(java.lang.String sMessageID, AttachmentType attachmentType, java.lang.String sName, java.lang.String sSource, int iPosition, javax.activation.DataHandler handler) throws ExchangeException
AttachmentType.FILE_DATA
- source parameter is ignored,
pass in null
AttachmentType.FILE_LINK
- pass in a link in UNC form,
such as \\server\path\file.doc
AttachmentType.OLE
- source parameter is ignored, pass in
null
AttachmentType.EMBEDDED_MESSAGE
- source parameter should
be an ID to a message
sMessageID
- the message IDattachmentType
- the attachment typesName
- the display name of the attachmentsSource
- the attachment sourceiPosition
- the position of the attachment in the messagehandler
- a handler that can supply the attachment datapublic int serverAddAttachment(java.lang.String sMessageID, java.lang.String sFolderID, AttachmentType attachmentType, java.lang.String sName, java.lang.String sSource, int iPosition, javax.activation.DataHandler handler) throws ExchangeException
AttachmentType.FILE_DATA
- source parameter is ignored,
pass in null
AttachmentType.FILE_LINK
- pass in a link in UNC form,
such as \\server\path\file.doc
AttachmentType.OLE
- source parameter is ignored, pass in
null
AttachmentType.EMBEDDED_MESSAGE
- source parameter should
be an ID to a message
sMessageID
- the message IDsFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)attachmentType
- the attachment typesName
- the display name of the attachmentsSource
- the attachment sourceiPosition
- the position of the attachment in the messagehandler
- a handler that can supply the attachment datapublic void serverDeleteAttachment(java.lang.String sMessageID, int iIndex) throws ExchangeException
sMessageID
- the message IDiIndex
- the index of the attachment in the attachments
collection of the messagepublic void serverDeleteAttachment(java.lang.String sMessageID, java.lang.String sFolderID, int iIndex) throws ExchangeException
sMessageID
- the message IDsFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)iIndex
- the index of the attachment in the attachments
collection of the messagepublic Attachment[] serverGetAttachments(java.lang.String sMessageID, PropertyKey[] keys) throws ExchangeException
sMessageID
- the message idkeys
- the properties to fetch for each attachmentpublic Attachment[] serverGetAttachments(java.lang.String sMessageID, java.lang.String sFolderID, PropertyKey[] keys) throws ExchangeException
sMessageID
- the message idsFolderID
- the folder id that contains the messagekeys
- the properties to fetch for each attachmentpublic javax.activation.DataHandler serverGetAttachment(java.lang.String sMessageID, int iIndex) throws ExchangeException
sMessageID
- the message IDiIndex
- the index of the attachment in the attachments
collection of the messagepublic javax.activation.DataHandler serverGetAttachment(java.lang.String sMessageID, java.lang.String sFolderID, int iIndex) throws ExchangeException
sMessageID
- the message IDsFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)iIndex
- the index of the attachment in the attachments
collection of the messagepublic javax.activation.DataHandler serverGetAttachment(java.lang.String sMessageID, java.lang.String sFolderID, int iEmbeddedIndex, int iAttachmentIndex) throws ExchangeException
sMessageID
- the message IDsFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)iEmbeddedIndex
- the index of the embedded index, or -1 if the message is not embeddediAttachmentIndex
- the index of the attachment in the attachments
collection of the messagepublic Message serverGetEmbeddedMessage(java.lang.String sMessageID, java.lang.String sFolderID, PropertyKey[] messageKeys, int iIndex) throws ExchangeException
sMessageID
- the message ID on which the embedded message is locatedsFolderID
- the folder ID (used to get the message if it
could not be retrieved off the session- may be
null
)messageKeys
- the properties to fetch for the messageiIndex
- the index of the embedded message in the
attachments collectionpublic UnresolvedRecipient[] serverResolveRecipients(java.lang.String sMessageID, boolean bRemove) throws ExchangeException
sMessageID
- the message ID to resolve recipientsbRemove
- true
to remove the
unresolved recipientsExchangeException
- if a problem occurs while connecting to
or interacting with Exchangepublic UnresolvedRecipient[] serverResolveRecipients(java.lang.String sMessageID, boolean bRemove, boolean bSeries) throws ExchangeException
sMessageID
- the message ID to resolve recipientsbRemove
- true
to remove the
unresolved recipientsbSeries
- if true
and the message is a
recurring appointment, edit the seriesExchangeException
- if a problem occurs while connecting to
or interacting with Exchangepublic DistributionList[] createDistLists(Message[] messages)
messages
- the array of messages to build the distribution lists
(may not be null
)
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |