Class Item
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.service.ServiceObject
-
- microsoft.exchange.webservices.data.core.service.item.Item
-
- Direct Known Subclasses:
Appointment,Contact,ContactGroup,EmailMessage,PostItem,Task
public class Item extends ServiceObject
Represents a generic item. Properties available on item are defined in the ItemSchema class.
-
-
Constructor Summary
Constructors Constructor Description Item(ExchangeService service)Initializes an unsaved local instance ofItem.Item(ExchangeService service, ItemId itemId)Item(ItemAttachment parentAttachment)Initializes a new instance of the item class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Itembind(ExchangeService service, ItemId id)Binds to an existing item, whatever its actual type is, and loads the specified set of property.static Itembind(ExchangeService service, ItemId id, PropertySet propertySet)Binds to an existing item, whatever its actual type is, and loads the specified set of property.Itemcopy(WellKnownFolderName destinationFolderName)Creates a copy of this item in the specified folder.Itemcopy(FolderId destinationFolderId)Creates a copy of this item in the specified folder.voiddelete(DeleteMode deleteMode)Deletes the item.EnumSet<ResponseActions>getAllowedResponseActions()Gets a value indicating which response actions are allowed on this item.AttachmentCollectiongetAttachments()Gets a list of the attachments to this item.MessageBodygetBody()Gets the body of this item.StringListgetCategories()Gets the list of categories associated with this item.ConversationIdgetConversationId()Gets the Id of the conversation this item is part of.StringgetCulture()Gets the culture associated with this item.DategetDateTimeCreated()Gets the date and time this item was created.DategetDateTimeReceived()Gets the time when this item was received.DategetDateTimeSent()Gets the date and time this item was sent.protected AffectedTaskOccurrencegetDefaultAffectedTaskOccurrences()Gets the default setting for how to treat affected task occurrences on Delete.protected SendCancellationsModegetDefaultSendCancellationsMode()Gets the default setting for sending cancellations on Delete.protected SendInvitationsModegetDefaultSendInvitationsMode()Gets the default settings for sending invitations on Save.protected SendInvitationsOrCancellationsModegetDefaultSendInvitationsOrCancellationsMode()Gets the default settings for sending invitations or cancellations on Update.StringgetDisplayCc()Gets a text summarizing the Cc receipients of this item.StringgetDisplayTo()Gets a text summarizing the To recipients of this item.EnumSet<EffectiveRights>getEffectiveRights()Gets a value indicating the effective rights the current authenticated user has on this item.ExtendedPropertyCollectiongetExtendedProperties()Gets a list of extended property defined on this item.booleangetHasAttachments()Gets a value indicating whether the item has attachments.ItemIdgetId()Gets the Id of this item.PropertyDefinitiongetIdPropertyDefinition()The property definition for the Id of this object.ImportancegetImportance()Gets the importance of this item.StringgetInReplyTo()Gets the In-Reply-To reference of this item.InternetMessageHeaderCollectiongetInternetMessageHeaders()Gets a list of Internet headers for this item.booleangetIsAssociated()Gets a value indicating whether the message has been submitted to be sent.booleangetIsDraft()Gets a value indicating whether the message has been submitted to be sent.booleangetIsFromMe()Gets a value indicating whether the item has been sent by the current authenticated user.booleangetIsNew()Gets a value indicating whether this object is a real store item, or if it's a local object that has yet to be saved.booleangetIsReminderSet()Gets a value indicating whether a reminder is set for this item.booleangetIsResend()Gets a value indicating whether the item is a resend of another item.booleangetIsSubmitted()Gets a value indicating whether the message has been submitted to be sent.booleangetIsTimeZoneHeaderRequired(boolean isUpdateOperation)Gets a value indicating whether a time zone SOAP header should be emitted in a CreateItem or UpdateItem request so this item can be property saved or updated.booleangetIsUnmodified()Gets a value indicating whether the item has been modified since it was created.StringgetItemClass()Gets the custom class name of this item.StringgetLastModifiedName()Gets the name of the user who last modified this item.DategetLastModifiedTime()Gets the date and time this item was last modified.MimeContentgetMimeContent()Get the MIME content of this item.ExchangeVersiongetMinimumRequiredServerVersion()Gets the minimum required server version.ItemAttachmentgetParentAttachment()Gets the parent attachment of this item.FolderIdgetParentFolderId()Gets the Id of the parent folder of this item.DategetReminderDueBy()Gets the date and time when the reminder is due for this item.intgetReminderMinutesBeforeStart()Gets the number of minutes before the start of this item when the reminder should be triggered.ItemIdgetRootItemId()Gets Id of the root item for this item.ServiceObjectSchemagetSchema()Internal method to return the schema associated with this type of object.SensitivitygetSensitivity()Gets the sensitivity of this item.intgetSize()Gets the size of this item.StringgetSubject()Gets the subject.UniqueBodygetUniqueBody()Gets the body part that is unique to the conversation this item is part of.StringgetWebClientEditFormQueryString()Gets the query string that should be appended to the Exchange Web client URL to open this item using the appropriate read form in a web browser.StringgetWebClientReadFormQueryString()Gets the query string that should be appended to the Exchange Web client URL to open this item using the appropriate read form in a web browser.booleanhasUnprocessedAttachmentChanges()Gets a value indicating whether this instance has unprocessed attachment collection changes.protected voidinternalCreate(FolderId parentFolderId, MessageDisposition messageDisposition, SendInvitationsMode sendInvitationsMode)Create item.protected voidinternalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences)Deletes the object.protected voidinternalLoad(PropertySet propertySet)The property definition for the Id of this object.protected IteminternalUpdate(FolderId parentFolderId, ConflictResolutionMode conflictResolutionMode, MessageDisposition messageDisposition, SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode)Update item.booleanisAttachment()Gets a value indicating whether the item is an attachment.Itemmove(WellKnownFolderName destinationFolderName)Moves this item to a the specified folder.Itemmove(FolderId destinationFolderId)Moves this item to a the specified folder.booleanremoveExtendedProperty(ExtendedPropertyDefinition extendedPropertyDefinition)Removes an extended property.voidsave()Saves this item in the default folder based on the item's type (for example, an e-mail message is saved to the Drafts folder).voidsave(WellKnownFolderName parentFolderName)Saves this item in a specific folder.voidsave(FolderId parentFolderId)Saves this item in a specific folder.voidsetBody(MessageBody value)Sets the body.voidsetCategories(StringList value)Sets the categories.voidsetCulture(String value)Sets the culture.voidsetExtendedProperty(ExtendedPropertyDefinition extendedPropertyDefinition, Object value)Sets the extended property.voidsetImportance(Importance value)Sets the importance.voidsetInReplyTo(String value)Sets the in reply to.voidsetIsReminderSet(Boolean value)Sets the checks if is reminder set.voidsetItemClass(String value)Sets the item class.voidsetMimeContent(MimeContent value)Sets the mime content.voidsetReminderDueBy(Date value)Sets the reminder due by.voidsetReminderMinutesBeforeStart(int value)Sets the reminder minutes before start.voidsetSensitivity(Sensitivity value)Sets the sensitivity.voidsetSubject(String subject)Sets the subject.protected voidthrowIfThisIsAttachment()Throws exception if this is attachment.voidupdate(ConflictResolutionMode conflictResolutionMode)Applies the local changes that have been made to this item.voidvalidate()Validates this instance.-
Methods inherited from class microsoft.exchange.webservices.data.core.service.ServiceObject
addServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getChangeXmlElementName, getDeleteFieldXmlElementName, getIsCustomDateTimeScopingRequired, getLoadedPropertyDefinitions, getObjectFromPropertyDefinition, getPropertyBag, getService, getSetFieldXmlElementName, getXmlElementName, getXmlElementNameOverride, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, writeToXml, writeToXmlForUpdate
-
-
-
-
Constructor Detail
-
Item
public Item(ExchangeService service) throws Exception
Initializes an unsaved local instance ofItem. To bind to an existing item, usebind(ExchangeService, ItemId)instead.- Parameters:
service- the service- Throws:
Exception- the exception
-
Item
public Item(ExchangeService service, ItemId itemId) throws Exception
- Throws:
Exception
-
Item
public Item(ItemAttachment parentAttachment) throws Exception
Initializes a new instance of the item class.- Parameters:
parentAttachment- The parent attachment.- Throws:
Exception- the exception
-
-
Method Detail
-
bind
public static Item bind(ExchangeService service, ItemId id, PropertySet propertySet) throws Exception
Binds to an existing item, whatever its actual type is, and loads the specified set of property. Calling this method results in a call to EWS.- Parameters:
service- The service to use to bind to the item.id- The Id of the item to bind to.propertySet- The set of property to load.- Returns:
- An Item instance representing the item corresponding to the specified Id.
- Throws:
Exception- the exception
-
bind
public static Item bind(ExchangeService service, ItemId id) throws Exception
Binds to an existing item, whatever its actual type is, and loads the specified set of property. Calling this method results in a call to EWS.- Parameters:
service- The service to use to bind to the item.id- The Id of the item to bind to.- Returns:
- An Item instance representing the item corresponding to the specified Id.
- Throws:
Exception- the exception
-
getSchema
public ServiceObjectSchema getSchema()
Internal method to return the schema associated with this type of object.- Specified by:
getSchemain classServiceObject- Returns:
- The schema associated with this type of object.
-
getMinimumRequiredServerVersion
public ExchangeVersion getMinimumRequiredServerVersion()
Gets the minimum required server version.- Specified by:
getMinimumRequiredServerVersionin classServiceObject- Returns:
- Earliest Exchange version in which this service object type is supported.
-
throwIfThisIsAttachment
protected void throwIfThisIsAttachment() throws InvalidOperationException
Throws exception if this is attachment.- Throws:
InvalidOperationException- the invalid operation exception
-
getIdPropertyDefinition
public PropertyDefinition getIdPropertyDefinition()
The property definition for the Id of this object.- Overrides:
getIdPropertyDefinitionin classServiceObject- Returns:
- A PropertyDefinition instance.
-
internalLoad
protected void internalLoad(PropertySet propertySet) throws Exception
The property definition for the Id of this object.- Specified by:
internalLoadin classServiceObject- Parameters:
propertySet- the property set- Throws:
Exception- the exception
-
internalDelete
protected void internalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences) throws ServiceLocalException, Exception
Deletes the object.- Specified by:
internalDeletein classServiceObject- Parameters:
deleteMode- the delete modesendCancellationsMode- the send cancellations modeaffectedTaskOccurrences- the affected task occurrences- Throws:
ServiceLocalException- the service local exceptionException- the exception
-
internalCreate
protected void internalCreate(FolderId parentFolderId, MessageDisposition messageDisposition, SendInvitationsMode sendInvitationsMode) throws Exception
Create item.- Parameters:
parentFolderId- the parent folder idmessageDisposition- the message dispositionsendInvitationsMode- the send invitations mode- Throws:
Exception- the exception
-
internalUpdate
protected Item internalUpdate(FolderId parentFolderId, ConflictResolutionMode conflictResolutionMode, MessageDisposition messageDisposition, SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) throws ServiceResponseException, Exception
Update item.- Parameters:
parentFolderId- the parent folder idconflictResolutionMode- the conflict resolution modemessageDisposition- the message dispositionsendInvitationsOrCancellationsMode- the send invitations or cancellations mode- Returns:
- Updated item.
- Throws:
ServiceResponseException- the service response exceptionException- the exception
-
hasUnprocessedAttachmentChanges
public boolean hasUnprocessedAttachmentChanges() throws ServiceLocalException
Gets a value indicating whether this instance has unprocessed attachment collection changes.- Throws:
ServiceLocalException
-
getParentAttachment
public ItemAttachment getParentAttachment()
Gets the parent attachment of this item.- Returns:
- the parent attachment
-
getRootItemId
public ItemId getRootItemId() throws ServiceLocalException
Gets Id of the root item for this item.- Returns:
- the root item id
- Throws:
ServiceLocalException- the service local exception
-
delete
public void delete(DeleteMode deleteMode) throws ServiceLocalException, Exception
Deletes the item. Calling this method results in a call to EWS.- Parameters:
deleteMode- the delete mode- Throws:
ServiceLocalException- the service local exceptionException- the exception
-
save
public void save(FolderId parentFolderId) throws Exception
Saves this item in a specific folder. Calling this method results in at least one call to EWS. Mutliple calls to EWS might be made if attachments have been added.- Parameters:
parentFolderId- the parent folder id- Throws:
Exception- the exception
-
save
public void save(WellKnownFolderName parentFolderName) throws Exception
Saves this item in a specific folder. Calling this method results in at least one call to EWS. Mutliple calls to EWS might be made if attachments have been added.- Parameters:
parentFolderName- the parent folder name- Throws:
Exception- the exception
-
save
public void save() throws Exception
Saves this item in the default folder based on the item's type (for example, an e-mail message is saved to the Drafts folder). Calling this method results in at least one call to EWS. Mutliple calls to EWS might be made if attachments have been added.- Throws:
Exception- the exception
-
update
public void update(ConflictResolutionMode conflictResolutionMode) throws ServiceResponseException, Exception
Applies the local changes that have been made to this item. Calling this method results in at least one call to EWS. Mutliple calls to EWS might be made if attachments have been added or removed.- Parameters:
conflictResolutionMode- the conflict resolution mode- Throws:
ServiceResponseException- the service response exceptionException- the exception
-
copy
public Item copy(FolderId destinationFolderId) throws Exception
Creates a copy of this item in the specified folder. Calling this method results in a call to EWS. Copy returns null if the copy operation is across two mailboxes or between a mailbox and a public folder.- Parameters:
destinationFolderId- the destination folder id- Returns:
- The copy of this item.
- Throws:
Exception- the exception
-
copy
public Item copy(WellKnownFolderName destinationFolderName) throws Exception
Creates a copy of this item in the specified folder. Calling this method results in a call to EWS. Copy returns null if the copy operation is across two mailboxes or between a mailbox and a public folder.- Parameters:
destinationFolderName- the destination folder name- Returns:
- The copy of this item.
- Throws:
Exception- the exception
-
move
public Item move(FolderId destinationFolderId) throws Exception
Moves this item to a the specified folder. Calling this method results in a call to EWS. Move returns null if the move operation is across two mailboxes or between a mailbox and a public folder.- Parameters:
destinationFolderId- the destination folder id- Returns:
- The moved copy of this item.
- Throws:
Exception- the exception
-
move
public Item move(WellKnownFolderName destinationFolderName) throws Exception
Moves this item to a the specified folder. Calling this method results in a call to EWS. Move returns null if the move operation is across two mailboxes or between a mailbox and a public folder.- Parameters:
destinationFolderName- the destination folder name- Returns:
- The moved copy of this item.
- Throws:
Exception- the exception
-
setExtendedProperty
public void setExtendedProperty(ExtendedPropertyDefinition extendedPropertyDefinition, Object value) throws Exception
Sets the extended property.- Parameters:
extendedPropertyDefinition- the extended property definitionvalue- the value- Throws:
Exception- the exception
-
removeExtendedProperty
public boolean removeExtendedProperty(ExtendedPropertyDefinition extendedPropertyDefinition) throws Exception
Removes an extended property.- Parameters:
extendedPropertyDefinition- the extended property definition- Returns:
- True if property was removed.
- Throws:
Exception- the exception
-
validate
public void validate() throws Exception
Validates this instance.- Overrides:
validatein classServiceObject- Throws:
Exception- the exception
-
getIsTimeZoneHeaderRequired
public boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation) throws Exception
Gets a value indicating whether a time zone SOAP header should be emitted in a CreateItem or UpdateItem request so this item can be property saved or updated.- Overrides:
getIsTimeZoneHeaderRequiredin classServiceObject- Parameters:
isUpdateOperation- Indicates whether the operation being petrformed is an update operation.- Returns:
- true if a time zone SOAP header should be emitted; otherwise,false
- Throws:
ServiceLocalExceptionException
-
isAttachment
public boolean isAttachment()
Gets a value indicating whether the item is an attachment.- Returns:
- true, if is attachment
-
getIsNew
public boolean getIsNew() throws ServiceLocalException
Gets a value indicating whether this object is a real store item, or if it's a local object that has yet to be saved.- Returns:
- the checks if is new
- Throws:
ServiceLocalException- the service local exception
-
getId
public ItemId getId() throws ServiceLocalException
Gets the Id of this item.- Overrides:
getIdin classServiceObject- Returns:
- the id
- Throws:
ServiceLocalException- the service local exception
-
getMimeContent
public MimeContent getMimeContent() throws ServiceLocalException
Get the MIME content of this item.- Returns:
- the mime content
- Throws:
ServiceLocalException- the service local exception
-
setMimeContent
public void setMimeContent(MimeContent value) throws Exception
Sets the mime content.- Parameters:
value- the new mime content- Throws:
Exception- the exception
-
getParentFolderId
public FolderId getParentFolderId() throws ServiceLocalException
Gets the Id of the parent folder of this item.- Returns:
- the parent folder id
- Throws:
ServiceLocalException- the service local exception
-
getSensitivity
public Sensitivity getSensitivity() throws ServiceLocalException
Gets the sensitivity of this item.- Returns:
- the sensitivity
- Throws:
ServiceLocalException- the service local exception
-
setSensitivity
public void setSensitivity(Sensitivity value) throws Exception
Sets the sensitivity.- Parameters:
value- the new sensitivity- Throws:
Exception- the exception
-
getAttachments
public AttachmentCollection getAttachments() throws ServiceLocalException
Gets a list of the attachments to this item.- Returns:
- the attachments
- Throws:
ServiceLocalException- the service local exception
-
getDateTimeReceived
public Date getDateTimeReceived() throws ServiceLocalException
Gets the time when this item was received.- Returns:
- the date time received
- Throws:
ServiceLocalException- the service local exception
-
getSize
public int getSize() throws ServiceLocalException
Gets the size of this item.- Returns:
- the size
- Throws:
ServiceLocalException- the service local exception
-
getCategories
public StringList getCategories() throws ServiceLocalException
Gets the list of categories associated with this item.- Returns:
- the categories
- Throws:
ServiceLocalException- the service local exception
-
setCategories
public void setCategories(StringList value) throws Exception
Sets the categories.- Parameters:
value- the new categories- Throws:
Exception- the exception
-
getCulture
public String getCulture() throws ServiceLocalException
Gets the culture associated with this item.- Returns:
- the culture
- Throws:
ServiceLocalException- the service local exception
-
setCulture
public void setCulture(String value) throws Exception
Sets the culture.- Parameters:
value- the new culture- Throws:
Exception- the exception
-
getImportance
public Importance getImportance() throws ServiceLocalException
Gets the importance of this item.- Returns:
- the importance
- Throws:
ServiceLocalException- the service local exception
-
setImportance
public void setImportance(Importance value) throws Exception
Sets the importance.- Parameters:
value- the new importance- Throws:
Exception- the exception
-
getInReplyTo
public String getInReplyTo() throws ServiceLocalException
Gets the In-Reply-To reference of this item.- Returns:
- the in reply to
- Throws:
ServiceLocalException- the service local exception
-
setInReplyTo
public void setInReplyTo(String value) throws Exception
Sets the in reply to.- Parameters:
value- the new in reply to- Throws:
Exception- the exception
-
getIsSubmitted
public boolean getIsSubmitted() throws ServiceLocalException
Gets a value indicating whether the message has been submitted to be sent.- Returns:
- the checks if is submitted
- Throws:
ServiceLocalException- the service local exception
-
getIsAssociated
public boolean getIsAssociated() throws ServiceLocalException
Gets a value indicating whether the message has been submitted to be sent.- Returns:
- the checks if is associated
- Throws:
ServiceLocalException- the service local exception
-
getIsDraft
public boolean getIsDraft() throws ServiceLocalException
Gets a value indicating whether the message has been submitted to be sent.- Returns:
- the checks if is draft
- Throws:
ServiceLocalException- the service local exception
-
getIsFromMe
public boolean getIsFromMe() throws ServiceLocalException
Gets a value indicating whether the item has been sent by the current authenticated user.- Returns:
- the checks if is from me
- Throws:
ServiceLocalException- the service local exception
-
getIsResend
public boolean getIsResend() throws ServiceLocalException
Gets a value indicating whether the item is a resend of another item.- Returns:
- the checks if is resend
- Throws:
ServiceLocalException- the service local exception
-
getIsUnmodified
public boolean getIsUnmodified() throws ServiceLocalException
Gets a value indicating whether the item has been modified since it was created.- Returns:
- the checks if is unmodified
- Throws:
ServiceLocalException- the service local exception
-
getInternetMessageHeaders
public InternetMessageHeaderCollection getInternetMessageHeaders() throws ServiceLocalException
Gets a list of Internet headers for this item.- Returns:
- the internet message headers
- Throws:
ServiceLocalException- the service local exception
-
getDateTimeSent
public Date getDateTimeSent() throws ServiceLocalException
Gets the date and time this item was sent.- Returns:
- the date time sent
- Throws:
ServiceLocalException- the service local exception
-
getDateTimeCreated
public Date getDateTimeCreated() throws ServiceLocalException
Gets the date and time this item was created.- Returns:
- the date time created
- Throws:
ServiceLocalException- the service local exception
-
getAllowedResponseActions
public EnumSet<ResponseActions> getAllowedResponseActions() throws ServiceLocalException
Gets a value indicating which response actions are allowed on this item. Examples of response actions are Reply and Forward.- Returns:
- the allowed response actions
- Throws:
ServiceLocalException- the service local exception
-
getReminderDueBy
public Date getReminderDueBy() throws ServiceLocalException
Gets the date and time when the reminder is due for this item.- Returns:
- the reminder due by
- Throws:
ServiceLocalException- the service local exception
-
setReminderDueBy
public void setReminderDueBy(Date value) throws Exception
Sets the reminder due by.- Parameters:
value- the new reminder due by- Throws:
Exception- the exception
-
getIsReminderSet
public boolean getIsReminderSet() throws ServiceLocalException
Gets a value indicating whether a reminder is set for this item.- Returns:
- the checks if is reminder set
- Throws:
ServiceLocalException- the service local exception
-
setIsReminderSet
public void setIsReminderSet(Boolean value) throws Exception
Sets the checks if is reminder set.- Parameters:
value- the new checks if is reminder set- Throws:
Exception- the exception
-
getReminderMinutesBeforeStart
public int getReminderMinutesBeforeStart() throws ServiceLocalException
Gets the number of minutes before the start of this item when the reminder should be triggered.- Returns:
- the reminder minutes before start
- Throws:
ServiceLocalException- the service local exception
-
setReminderMinutesBeforeStart
public void setReminderMinutesBeforeStart(int value) throws Exception
Sets the reminder minutes before start.- Parameters:
value- the new reminder minutes before start- Throws:
Exception- the exception
-
getDisplayCc
public String getDisplayCc() throws ServiceLocalException
Gets a text summarizing the Cc receipients of this item.- Returns:
- the display cc
- Throws:
ServiceLocalException- the service local exception
-
getDisplayTo
public String getDisplayTo() throws ServiceLocalException
Gets a text summarizing the To recipients of this item.- Returns:
- the display to
- Throws:
ServiceLocalException- the service local exception
-
getHasAttachments
public boolean getHasAttachments() throws ServiceLocalException
Gets a value indicating whether the item has attachments.- Returns:
- the checks for attachments
- Throws:
ServiceLocalException- the service local exception
-
getBody
public MessageBody getBody() throws ServiceLocalException
Gets the body of this item.- Returns:
- MessageBody
- Throws:
ServiceLocalException- the service local exception
-
setBody
public void setBody(MessageBody value) throws Exception
Sets the body.- Parameters:
value- the new body- Throws:
Exception- the exception
-
getItemClass
public String getItemClass() throws ServiceLocalException
Gets the custom class name of this item.- Returns:
- the item class
- Throws:
ServiceLocalException- the service local exception
-
setItemClass
public void setItemClass(String value) throws Exception
Sets the item class.- Parameters:
value- the new item class- Throws:
Exception- the exception
-
setSubject
public void setSubject(String subject) throws Exception
Sets the subject.- Parameters:
subject- the new subject- Throws:
Exception- the exception
-
getSubject
public String getSubject() throws ServiceLocalException
Gets the subject.- Returns:
- the subject
- Throws:
ServiceLocalException- the service local exception
-
getWebClientReadFormQueryString
public String getWebClientReadFormQueryString() throws ServiceLocalException
Gets the query string that should be appended to the Exchange Web client URL to open this item using the appropriate read form in a web browser.- Returns:
- the web client read form query string
- Throws:
ServiceLocalException- the service local exception
-
getWebClientEditFormQueryString
public String getWebClientEditFormQueryString() throws ServiceLocalException
Gets the query string that should be appended to the Exchange Web client URL to open this item using the appropriate read form in a web browser.- Returns:
- the web client edit form query string
- Throws:
ServiceLocalException- the service local exception
-
getExtendedProperties
public ExtendedPropertyCollection getExtendedProperties() throws ServiceLocalException
Gets a list of extended property defined on this item.- Overrides:
getExtendedPropertiesin classServiceObject- Returns:
- the extended property
- Throws:
ServiceLocalException- the service local exception
-
getEffectiveRights
public EnumSet<EffectiveRights> getEffectiveRights() throws ServiceLocalException
Gets a value indicating the effective rights the current authenticated user has on this item.- Returns:
- the effective rights
- Throws:
ServiceLocalException- the service local exception
-
getLastModifiedName
public String getLastModifiedName() throws ServiceLocalException
Gets the name of the user who last modified this item.- Returns:
- the last modified name
- Throws:
ServiceLocalException- the service local exception
-
getLastModifiedTime
public Date getLastModifiedTime() throws ServiceLocalException
Gets the date and time this item was last modified.- Returns:
- the last modified time
- Throws:
ServiceLocalException- the service local exception
-
getConversationId
public ConversationId getConversationId() throws ServiceLocalException
Gets the Id of the conversation this item is part of.- Returns:
- the conversation id
- Throws:
ServiceLocalException- the service local exception
-
getUniqueBody
public UniqueBody getUniqueBody() throws ServiceLocalException
Gets the body part that is unique to the conversation this item is part of.- Returns:
- the unique body
- Throws:
ServiceLocalException- the service local exception
-
getDefaultAffectedTaskOccurrences
protected AffectedTaskOccurrence getDefaultAffectedTaskOccurrences()
Gets the default setting for how to treat affected task occurrences on Delete. Subclasses will override this for different default behavior.- Returns:
- the default affected task occurrences
-
getDefaultSendCancellationsMode
protected SendCancellationsMode getDefaultSendCancellationsMode()
Gets the default setting for sending cancellations on Delete. Subclasses will override this for different default behavior.- Returns:
- the default send cancellations mode
-
getDefaultSendInvitationsMode
protected SendInvitationsMode getDefaultSendInvitationsMode()
Gets the default settings for sending invitations on Save. Subclasses will override this for different default behavior.- Returns:
- the default send invitations mode
-
getDefaultSendInvitationsOrCancellationsMode
protected SendInvitationsOrCancellationsMode getDefaultSendInvitationsOrCancellationsMode()
Gets the default settings for sending invitations or cancellations on Update. Subclasses will override this for different default behavior.- Returns:
- the default send invitations or cancellations mode
-
-