|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.ComplexPropertyCollection<GroupMember>
microsoft.exchange.webservices.data.GroupMemberCollection
public final class GroupMemberCollection
Represents a collection of members of GroupMember type.
| Constructor Summary | |
|---|---|
GroupMemberCollection()
* Initializes a new instance. |
|
| Method Summary | |
|---|---|
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?s first available e-mail address. |
void |
addPersonalContact(ItemId contactId,
String addressToLink)
* Adds a member linked to a specific contact?s e-mail address. |
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. |
protected 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(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
ServiceObject ewsObject)
* Writes the deletion update to XML. |
boolean |
writeSetUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
ServiceObject ownerObject,
PropertyDefinition propertyDefinition)
* Writes the update to XML. |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexPropertyCollection |
|---|
complexPropertyChanged, contains, getAddedItems, getCount, getItems, getModifiedItems, getPropertyAtIndex, getRemovedItems, indexOf, internalAdd, internalClear, internalRemove, internalRemoveAt, itemChanged, iterator, loadFromXml, loadFromXml, removeFromChangeLog, shouldWriteToXml, writeElementsToXml, writeToXml |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, getNamespace, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, validate, writeAttributesToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupMemberCollection()
| Method Detail |
|---|
protected String getCollectionItemXmlElementName(GroupMember member)
getCollectionItemXmlElementName in class ComplexPropertyCollection<GroupMember>member - the member
public GroupMember find(String key)
throws Exception
key - the key
Exception - the exceptionpublic void clear()
public void add(GroupMember member)
throws Exception
member - the member
Exception - the exception
public void addRange(Iterator<GroupMember> members)
throws Exception
members - the members
Exception - the exception
public void addContactGroup(ItemId contactGroupId)
throws Exception
contactGroupId - the contact group id
Exception - the exception
public void addPersonalContact(ItemId contactId,
String addressToLink)
throws Exception
contactId - the contact idaddressToLink - the address to link
Exception - the exception
public void addPersonalContact(ItemId contactId)
throws Exception
contactId - the contact id
Exception - the exception
public void addDirectoryUser(String smtpAddress)
throws ServiceLocalException,
Exception
smtpAddress - the smtp address
ServiceLocalException - the service local exception
Exception - the exception
public void addDirectoryUser(String address,
String routingType)
throws ServiceLocalException,
Exception
address - the addressroutingType - the routing type
ServiceLocalException - the service local exception
Exception - the exception
public void addDirectoryContact(String smtpAddress)
throws ServiceLocalException,
Exception
smtpAddress - the smtp address
ServiceLocalException - the service local exception
Exception - the exception
public void addDirectoryContact(String address,
String routingType)
throws ServiceLocalException,
Exception
address - the addressroutingType - the routing type
ServiceLocalException - the service local exception
Exception - the exception
public void addPublicGroup(String smtpAddress)
throws ServiceLocalException,
Exception
smtpAddress - the smtp address
ServiceLocalException - the service local exception
Exception - the exception
public void addDirectoryPublicFolder(String smtpAddress)
throws ServiceLocalException,
Exception
smtpAddress - the smtp address
ServiceLocalException - the service local exception
Exception - the exception
public void addOneOff(String displayName,
String address,
String routingType)
throws Exception
displayName - the display nameaddress - the addressroutingType - the routing type
Exception - the exception
public void addOneOff(String displayName,
String smtpAddress)
throws Exception
displayName - the display namesmtpAddress - the smtp address
Exception - the exception
public void addContactEmailAddress(Contact contact,
EmailAddressKey emailAddressKey)
throws Exception
contact - the contactemailAddressKey - the email address key
Exception - the exceptionpublic void removeAt(int index)
index - the indexpublic boolean remove(GroupMember member)
member - the member
public boolean writeSetUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
ServiceObject ownerObject,
PropertyDefinition propertyDefinition)
throws Exception
writeSetUpdateToXml in class ComplexPropertyCollection<GroupMember>writer - the writerownerObject - the owner objectpropertyDefinition - the property definition
Exception - the exception
public boolean writeDeleteUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
ServiceObject ewsObject)
writeDeleteUpdateToXml in class ComplexPropertyCollection<GroupMember>writer - the writerewsObject - the ews object
protected GroupMember createComplexProperty(String xmlElementName)
createComplexProperty in class ComplexPropertyCollection<GroupMember>xmlElementName - the xml element name
protected void clearChangeLog()
clearChangeLog in class ComplexPropertyCollection<GroupMember>
protected void internalValidate()
throws Exception
internalValidate in class ComplexPropertyException
ServiceValidationException - the service validation exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||