microsoft.exchange.webservices.data
Class RuleActions

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.RuleActions

public final class RuleActions
extends ComplexProperty

Represents the set of actions available for a rule.


Constructor Summary
protected RuleActions()
          Initializes a new instance of the RulePredicates class.
 
Method Summary
 StringList getAssignCategories()
          Gets the categories that should be stamped on incoming messages.
 FolderId getCopyToFolder()
          Gets or sets the Id of the folder incoming messages should be copied to.
 boolean getDelete()
          Gets or sets a value indicating whether incoming messages should be automatically moved to the Deleted Items folder.
 EmailAddressCollection getForwardAsAttachmentToRecipients()
          Gets the e-mail addresses to which incoming messages should be forwarded as attachments.
 EmailAddressCollection getForwardToRecipients()
          Gets the e-mail addresses to which incoming messages should be forwarded.
 boolean getMarkAsRead()
          Gets or sets a value indicating whether incoming messages should be marked as read.
 Importance getMarkImportance()
          Gets or sets the importance that should be stamped on incoming messages.
 FolderId getMoveToFolder()
          Gets or sets the Id of the folder to which incoming messages should be moved.
 boolean getPermanentDelete()
          Gets or sets a value indicating whether incoming messages should be permanently deleted.
 EmailAddressCollection getRedirectToRecipients()
          Gets the e-mail addresses to which incoming messages should be redirecteded.
 java.util.Collection<MobilePhone> getSendSMSAlertToRecipients()
          Gets the phone numbers to which an SMS alert should be sent.
 ItemId getServerReplyWithMessage()
          Gets or sets the Id of the template message that should be sent as a reply to incoming messages.
 boolean getStopProcessingRules()
          Gets or sets a value indicating whether subsequent rules should be evaluated.
protected  void internalValidate()
          Validates this instance.
 void setCopyToFolder(FolderId value)
           
 void setDelete(boolean value)
           
 void setMarkAsRead(boolean value)
           
 void setMarkImportance(Importance value)
           
 void setMoveToFolder(FolderId value)
           
 void setPermanentDelete(boolean value)
           
 void setServerReplyWithMessage(ItemId value)
           
 void setStopProcessingRules(boolean value)
           
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read element from XML.
protected  void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleActions

protected RuleActions()
Initializes a new instance of the RulePredicates class.

Method Detail

getAssignCategories

public StringList getAssignCategories()
Gets the categories that should be stamped on incoming messages. To disable stamping incoming messages with categories, set AssignCategories to null.


getCopyToFolder

public FolderId getCopyToFolder()
Gets or sets the Id of the folder incoming messages should be copied to. To disable copying incoming messages to a folder, set CopyToFolder to null.


setCopyToFolder

public void setCopyToFolder(FolderId value)

getDelete

public boolean getDelete()
Gets or sets a value indicating whether incoming messages should be automatically moved to the Deleted Items folder.


setDelete

public void setDelete(boolean value)

getForwardAsAttachmentToRecipients

public EmailAddressCollection getForwardAsAttachmentToRecipients()
Gets the e-mail addresses to which incoming messages should be forwarded as attachments. To disable forwarding incoming messages as attachments, empty the ForwardAsAttachmentToRecipients list.


getForwardToRecipients

public EmailAddressCollection getForwardToRecipients()
Gets the e-mail addresses to which incoming messages should be forwarded. To disable forwarding incoming messages, empty the ForwardToRecipients list.


getMarkImportance

public Importance getMarkImportance()
Gets or sets the importance that should be stamped on incoming messages. To disable the stamping of incoming messages with an importance, set MarkImportance to null.


setMarkImportance

public void setMarkImportance(Importance value)

getMarkAsRead

public boolean getMarkAsRead()
Gets or sets a value indicating whether incoming messages should be marked as read.


setMarkAsRead

public void setMarkAsRead(boolean value)

getMoveToFolder

public FolderId getMoveToFolder()
Gets or sets the Id of the folder to which incoming messages should be moved. To disable the moving of incoming messages to a folder, set CopyToFolder to null.


setMoveToFolder

public void setMoveToFolder(FolderId value)

getPermanentDelete

public boolean getPermanentDelete()
Gets or sets a value indicating whether incoming messages should be permanently deleted. When a message is permanently deleted, it is never saved into the recipient's mailbox. To delete a message after it has saved into the recipient's mailbox. To delete a message after it has


setPermanentDelete

public void setPermanentDelete(boolean value)

getRedirectToRecipients

public EmailAddressCollection getRedirectToRecipients()
Gets the e-mail addresses to which incoming messages should be redirecteded. To disable redirection of incoming messages, empty the RedirectToRecipients list. Unlike forwarded mail, redirected mail maintains the original sender and recipients.


getSendSMSAlertToRecipients

public java.util.Collection<MobilePhone> getSendSMSAlertToRecipients()
Gets the phone numbers to which an SMS alert should be sent. To disable sending SMS alerts for incoming messages, empty the SendSMSAlertToRecipients list.


getServerReplyWithMessage

public ItemId getServerReplyWithMessage()
Gets or sets the Id of the template message that should be sent as a reply to incoming messages. To disable automatic replies, set ServerReplyWithMessage to null.


setServerReplyWithMessage

public void setServerReplyWithMessage(ItemId value)

getStopProcessingRules

public boolean getStopProcessingRules()
Gets or sets a value indicating whether subsequent rules should be evaluated.


setStopProcessingRules

public void setStopProcessingRules(boolean value)

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - The reader.
Returns:
True if element was read.
Throws:
java.lang.Exception

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws java.lang.Exception
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - The writer.
Throws:
java.lang.Exception

internalValidate

protected void internalValidate()
                         throws java.lang.Exception
Validates this instance.

Overrides:
internalValidate in class ComplexProperty
Throws:
java.lang.Exception