public final class GroupMemberCollection extends ComplexPropertyCollection<GroupMember> implements ICustomXmlUpdateSerializer
Constructor and Description |
---|
GroupMemberCollection()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(GroupMember member)
Adds a member to the collection.
|
void |
addContactEmailAddress(Contact contact,
EmailAddressKey emailAddressKey)
Adds a member that is linked to a specific e-mail address of a contact.
|
void |
addContactGroup(ItemId contactGroupId)
Adds a member linked to a Contact Group.
|
void |
addDirectoryContact(String smtpAddress)
Adds a member linked to an Active Directory contact.
|
void |
addDirectoryContact(String address,
String routingType)
Adds a member linked to an Active Directory contact.
|
void |
addDirectoryPublicFolder(String smtpAddress)
Adds a member linked to a mail-enabled Public Folder.
|
void |
addDirectoryUser(String smtpAddress)
Adds a member linked to an Active Directory user.
|
void |
addDirectoryUser(String address,
String routingType)
Adds a member linked to an Active Directory user.
|
void |
addOneOff(String displayName,
String smtpAddress)
Adds a one-off member.
|
void |
addOneOff(String displayName,
String address,
String routingType)
Adds a one-off member.
|
void |
addPersonalContact(ItemId contactId)
Adds a member linked to a contact?
|
void |
addPersonalContact(ItemId contactId,
String addressToLink)
Adds a member linked to a specific contact?
|
void |
addPublicGroup(String smtpAddress)
Adds a member linked to a Public Group.
|
void |
addRange(Iterator<GroupMember> members)
Adds multiple members to the collection.
|
void |
clear()
Clears the collection.
|
void |
clearChangeLog()
Clears the change log.
|
protected GroupMember |
createComplexProperty(String xmlElementName)
Creates a GroupMember object from an XML element name.
|
GroupMember |
find(String key)
* Finds the member with the specified key in the collection.Members that
have not yet been saved do not have a key.
|
protected String |
getCollectionItemXmlElementName(GroupMember member)
Retrieves the XML element name corresponding to the provided
GroupMember object.
|
protected void |
internalValidate()
Validates this instance.
|
boolean |
remove(GroupMember member)
Removes a member from the collection.
|
void |
removeAt(int index)
Removes a member at the specified index.
|
boolean |
writeDeleteUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject)
Writes the deletion update to XML.
|
boolean |
writeSetUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ownerObject,
PropertyDefinition propertyDefinition)
Writes the update to XML.
|
complexPropertyChanged, contains, getAddedItems, getCount, getItems, getModifiedItems, getPropertyAtIndex, getRemovedItems, indexOf, internalAdd, internalClear, internalRemove, internalRemoveAt, itemChanged, iterator, loadFromXml, loadFromXml, removeFromChangeLog, shouldWriteToXml, updateFromXml, writeElementsToXml, writeToXml
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, validate, writeAttributesToXml, writeToXml
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public GroupMemberCollection()
protected String getCollectionItemXmlElementName(GroupMember member)
getCollectionItemXmlElementName
in class ComplexPropertyCollection<GroupMember>
member
- the memberpublic GroupMember find(String key) throws Exception
key
- the keyException
- the exceptionpublic void clear()
public void add(GroupMember member) throws Exception
member
- the memberException
- the exceptionpublic void addRange(Iterator<GroupMember> members) throws Exception
members
- the membersException
- the exceptionpublic void addContactGroup(ItemId contactGroupId) throws Exception
contactGroupId
- the contact group idException
- the exceptionpublic void addPersonalContact(ItemId contactId, String addressToLink) throws Exception
contactId
- the contact idaddressToLink
- the address to linkException
- the exceptionpublic void addPersonalContact(ItemId contactId) throws Exception
contactId
- the contact idException
- the exceptionpublic void addDirectoryUser(String smtpAddress) throws ServiceLocalException, Exception
smtpAddress
- the smtp addressServiceLocalException
- the service local exceptionException
- the exceptionpublic void addDirectoryUser(String address, String routingType) throws ServiceLocalException, Exception
address
- the addressroutingType
- the routing typeServiceLocalException
- the service local exceptionException
- the exceptionpublic void addDirectoryContact(String smtpAddress) throws ServiceLocalException, Exception
smtpAddress
- the smtp addressServiceLocalException
- the service local exceptionException
- the exceptionpublic void addDirectoryContact(String address, String routingType) throws ServiceLocalException, Exception
address
- the addressroutingType
- the routing typeServiceLocalException
- the service local exceptionException
- the exceptionpublic void addPublicGroup(String smtpAddress) throws ServiceLocalException, Exception
smtpAddress
- the smtp addressServiceLocalException
- the service local exceptionException
- the exceptionpublic void addDirectoryPublicFolder(String smtpAddress) throws ServiceLocalException, Exception
smtpAddress
- the smtp addressServiceLocalException
- the service local exceptionException
- the exceptionpublic void addOneOff(String displayName, String address, String routingType) throws Exception
displayName
- the display nameaddress
- the addressroutingType
- the routing typeException
- the exceptionpublic void addOneOff(String displayName, String smtpAddress) throws Exception
displayName
- the display namesmtpAddress
- the smtp addressException
- the exceptionpublic void addContactEmailAddress(Contact contact, EmailAddressKey emailAddressKey) throws Exception
contact
- the contactemailAddressKey
- the email address keyException
- the exceptionpublic void removeAt(int index)
index
- the indexpublic boolean remove(GroupMember member)
member
- the memberpublic boolean writeSetUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ownerObject, PropertyDefinition propertyDefinition) throws Exception
writeSetUpdateToXml
in interface ICustomXmlUpdateSerializer
writeSetUpdateToXml
in class ComplexPropertyCollection<GroupMember>
writer
- the writerownerObject
- the owner objectpropertyDefinition
- the property definitionException
- the exceptionpublic boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer, ServiceObject ewsObject)
writeDeleteUpdateToXml
in interface ICustomXmlUpdateSerializer
writeDeleteUpdateToXml
in class ComplexPropertyCollection<GroupMember>
writer
- the writerewsObject
- the ews objectprotected GroupMember createComplexProperty(String xmlElementName)
createComplexProperty
in class ComplexPropertyCollection<GroupMember>
xmlElementName
- the xml element namepublic void clearChangeLog()
clearChangeLog
in class ComplexPropertyCollection<GroupMember>
protected void internalValidate() throws Exception
internalValidate
in class ComplexProperty
Exception
Copyright © 2012–2015 Microsoft. All rights reserved.