public class UserId extends ComplexProperty
Constructor and Description |
---|
UserId()
Initializes a new instance.
|
UserId(StandardUser standardUser)
Initializes a new instance.
|
UserId(String primarySmtpAddress)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Gets the display name of the user.
|
String |
getPrimarySmtpAddress()
Gets the primary SMTP address or the user.
|
String |
getSID()
Gets the SID of the user.
|
StandardUser |
getstandardUser()
Gets a value indicating which standard user the user
represents.
|
static UserId |
getUserId(String primarySmtpAddress)
Implements an implicit conversion between a string representing a
primary SMTP address and UserId.
|
static UserId |
getUserIdFromStandardUser(StandardUser standardUser)
Implements an implicit conversion between StandardUser and UserId.
|
protected boolean |
isValid()
Determines whether this instance is valid.
|
void |
setDisplayName(String displayName)
Sets the display name.
|
void |
setPrimarySmtpAddress(String primarySmtpAddress)
Sets the primary smtp address.
|
void |
setSID(String sID)
Sets the sID.
|
void |
setStandardUser(StandardUser standardUser)
Sets the standard user.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
public UserId()
public UserId(String primarySmtpAddress)
primarySmtpAddress
- the primary smtp addresspublic UserId(StandardUser standardUser)
standardUser
- the standard userprotected boolean isValid()
public String getPrimarySmtpAddress()
public void setPrimarySmtpAddress(String primarySmtpAddress)
primarySmtpAddress
- the new primary smtp addresspublic String getDisplayName()
public void setDisplayName(String displayName)
displayName
- the new display namepublic StandardUser getstandardUser()
public void setStandardUser(StandardUser standardUser)
standardUser
- the new standard userpublic static UserId getUserId(String primarySmtpAddress)
primarySmtpAddress
- the primary smtp addresspublic static UserId getUserIdFromStandardUser(StandardUser standardUser)
standardUser
- the standard userpublic boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml
in class ComplexProperty
reader
- the readerException
- the exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writeElementsToXml
in class ComplexProperty
writer
- the writerXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionCopyright © 2012–2015 Microsoft. All rights reserved.