microsoft.exchange.webservices.data
Class DelegateUser

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

public final class DelegateUser
extends ComplexProperty

Represents a delegate user.


Constructor Summary
DelegateUser()
          Initializes a new instance of the class.
DelegateUser(StandardUser standardUser)
          Initializes a new instance of the class.
DelegateUser(java.lang.String primarySmtpAddress)
          Initializes a new instance of the class.
 
Method Summary
 DelegatePermissions getPermissions()
          Gets the list of delegate user's permissions.
 boolean getReceiveCopiesOfMeetingMessages()
          Gets a value indicating if the delegate user should receive copies of meeting requests.
 UserId getUserId()
          Gets the user Id of the delegate user.
 boolean getViewPrivateItems()
          Gets a value indicating if the delegate user should be able to view the principal's private items.
protected  void internalValidate()
          Validates this instance.
 void setReceiveCopiesOfMeetingMessages(boolean value)
          Sets the receive copies of meeting messages.
 void setViewPrivateItems(boolean value)
          Gets a value indicating if the delegate user should be able to view the principal's private items.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read element from XML.
protected  void validateAddDelegate()
          Validates this instance for AddDelegate.
protected  void validateUpdateDelegate()
          Validates this instance for UpdateDelegate.
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

DelegateUser

public DelegateUser()
Initializes a new instance of the class.


DelegateUser

public DelegateUser(java.lang.String primarySmtpAddress)
Initializes a new instance of the class.

Parameters:
primarySmtpAddress - the primary smtp address

DelegateUser

public DelegateUser(StandardUser standardUser)
Initializes a new instance of the class.

Parameters:
standardUser - the standard user
Method Detail

getUserId

public UserId getUserId()
Gets the user Id of the delegate user.

Returns:
the user id

getPermissions

public DelegatePermissions getPermissions()
Gets the list of delegate user's permissions.

Returns:
the permissions

getReceiveCopiesOfMeetingMessages

public boolean getReceiveCopiesOfMeetingMessages()
Gets a value indicating if the delegate user should receive copies of meeting requests.

Returns:
the receive copies of meeting messages

setReceiveCopiesOfMeetingMessages

public void setReceiveCopiesOfMeetingMessages(boolean value)
Sets the receive copies of meeting messages.

Parameters:
value - the new receive copies of meeting messages

getViewPrivateItems

public boolean getViewPrivateItems()
Gets a value indicating if the delegate user should be able to view the principal's private items.

Returns:
the view private items

setViewPrivateItems

public void setViewPrivateItems(boolean value)
Gets a value indicating if the delegate user should be able to view the principal's private items.

Parameters:
value - the new view private items

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 successful
Throws:
java.lang.Exception - the 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 - the exception

internalValidate

protected void internalValidate()
                         throws ServiceValidationException
Validates this instance.

Overrides:
internalValidate in class ComplexProperty
Throws:
ServiceValidationException - the service validation exception

validateAddDelegate

protected void validateAddDelegate()
                            throws ServiceValidationException,
                                   java.lang.Exception
Validates this instance for AddDelegate.

Throws:
java.lang.Exception
ServiceValidationException

validateUpdateDelegate

protected void validateUpdateDelegate()
                               throws java.lang.Exception
Validates this instance for UpdateDelegate.

Throws:
java.lang.Exception