microsoft.exchange.webservices.data.property.complex
Class DelegateUser

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.property.complex.DelegateUser
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>

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(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 request.
 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 item.
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 item.
 boolean tryReadElementFromXml(EwsServiceXmlReader reader)
          Tries to read element from XML.
protected  void validateAddDelegate()
          Validates this instance for AddDelegate.
 void validateUpdateDelegate()
          Validates this instance for UpdateDelegate.
 void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.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(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 request.

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 item.

Returns:
the view private item

setViewPrivateItems

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

Parameters:
value - the new view private item

tryReadElementFromXml

public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
                              throws Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - the reader
Returns:
true, if successful
Throws:
Exception - the exception

writeElementsToXml

public void writeElementsToXml(EwsServiceXmlWriter writer)
                        throws Exception
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
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,
                                   Exception
Validates this instance for AddDelegate.

Throws:
Exception
ServiceValidationException

validateUpdateDelegate

public void validateUpdateDelegate()
                            throws Exception
Validates this instance for UpdateDelegate.

Throws:
Exception


Copyright © 2012–2015 Microsoft. All rights reserved.