Class DelegateUser
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- 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
Constructors Constructor Description DelegateUser()Initializes a new instance of theDelegateUserclass.DelegateUser(String primarySmtpAddress)Initializes a new instance of theDelegateUserclass.DelegateUser(StandardUser standardUser)Initializes a new instance of theDelegateUserclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelegatePermissionsgetPermissions()Gets the list of delegate user's permissions.booleangetReceiveCopiesOfMeetingMessages()Gets a value indicating if the delegate user should receive copies of meeting request.UserIdgetUserId()Gets the user Id of the delegate user.booleangetViewPrivateItems()Gets a value indicating if the delegate user should be able to view the principal's private item.protected voidinternalValidate()Validates this instance.voidsetReceiveCopiesOfMeetingMessages(boolean value)Sets the receive copies of meeting messages.voidsetViewPrivateItems(boolean value)Gets a value indicating if the delegate user should be able to view the principal's private item.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.protected voidvalidateAddDelegate()Validates this instance for AddDelegate.voidvalidateUpdateDelegate()Validates this instance for UpdateDelegate.voidwriteElementsToXml(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
-
-
-
-
Constructor Detail
-
DelegateUser
public DelegateUser()
Initializes a new instance of theDelegateUserclass.
-
DelegateUser
public DelegateUser(String primarySmtpAddress)
Initializes a new instance of theDelegateUserclass.- Parameters:
primarySmtpAddress- the primary smtp address
-
DelegateUser
public DelegateUser(StandardUser standardUser)
Initializes a new instance of theDelegateUserclass.- Parameters:
standardUser- the standard user
-
-
Method Detail
-
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:
tryReadElementFromXmlin classComplexProperty- 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:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
Exception- the exception
-
internalValidate
protected void internalValidate() throws ServiceValidationException
Validates this instance.- Overrides:
internalValidatein classComplexProperty- Throws:
ServiceValidationException- the service validation exception
-
validateAddDelegate
protected void validateAddDelegate() throws ServiceValidationException, Exception
Validates this instance for AddDelegate.- Throws:
ExceptionServiceValidationException
-
validateUpdateDelegate
public void validateUpdateDelegate() throws Exception
Validates this instance for UpdateDelegate.- Throws:
Exception
-
-