Class GroupMember
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.GroupMember
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>,IComplexPropertyChangedDelegate
public class GroupMember extends ComplexProperty implements IComplexPropertyChangedDelegate
Represents a group member.
-
-
Constructor Summary
Constructors Modifier Constructor Description GroupMember()Initializes a new instance of the GroupMember class.GroupMember(String smtpAddress)Initializes a new instance of the GroupMember class.GroupMember(String name, String smtpAddress)Initializes a new instance of the GroupMember class.GroupMember(String name, String address, String routingType)Initializes a new instance of the GroupMember class.GroupMember(String address, String routingType, MailboxType mailboxType)Initializes a new instance of the GroupMember class.GroupMember(String smtpAddress, MailboxType mailboxType)Initializes a new instance of the GroupMember class.GroupMember(Contact contact, EmailAddressKey emailAddressKey)Initializes a new instance of the GroupMember class.GroupMember(EmailAddress addressInformation)Initializes a new instance of the GroupMember class.protectedGroupMember(GroupMember member)Initializes a new instance of the GroupMember class.GroupMember(ItemId contactGroupId)Initializes a new instance of the GroupMember class.GroupMember(ItemId contactId, String addressToLink)Initializes a new instance of the GroupMember class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplexPropertyChanged(ComplexProperty complexProperty)Complex property changed.EmailAddressgetAddressInformation()Gets the address information of the member.StringgetKey()Gets the key of the member.MemberStatusgetStatus()Gets the status of the member.voidreadAttributesFromXml(EwsServiceXmlReader reader)Reads the member Key attribute from XML.protected voidsetAddressInformation(EmailAddress value)Sets the address information.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read Status or Mailbox elements from XML.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the member key attribute to XML.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, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
GroupMember
public GroupMember()
Initializes a new instance of the GroupMember class.
-
GroupMember
public GroupMember(String smtpAddress)
Initializes a new instance of the GroupMember class.- Parameters:
smtpAddress- The SMTP address of the member
-
GroupMember
public GroupMember(String address, String routingType, MailboxType mailboxType) throws ServiceLocalException
Initializes a new instance of the GroupMember class.- Parameters:
address- the addressroutingType- The routing type of the address.mailboxType- The mailbox type of the member.- Throws:
ServiceLocalException- the service local exception
-
GroupMember
public GroupMember(String smtpAddress, MailboxType mailboxType) throws ServiceLocalException
Initializes a new instance of the GroupMember class.- Parameters:
smtpAddress- The SMTP address of the membermailboxType- The mailbox type of the member.- Throws:
ServiceLocalException- the service local exception
-
GroupMember
public GroupMember(String name, String address, String routingType)
Initializes a new instance of the GroupMember class.- Parameters:
name- The name of the one-off member.address- the addressroutingType- The routing type of the address.
-
GroupMember
public GroupMember(String name, String smtpAddress)
Initializes a new instance of the GroupMember class.- Parameters:
name- The name of the one-off member.smtpAddress- The SMTP address of the member
-
GroupMember
public GroupMember(ItemId contactGroupId)
Initializes a new instance of the GroupMember class.- Parameters:
contactGroupId- The Id of the contact group to link the member to.
-
GroupMember
public GroupMember(ItemId contactId, String addressToLink)
Initializes a new instance of the GroupMember class.- Parameters:
contactId- The Id of the contact memberaddressToLink- The Id of the contact to link the member to.
-
GroupMember
public GroupMember(EmailAddress addressInformation) throws Exception
Initializes a new instance of the GroupMember class.- Parameters:
addressInformation- The e-mail address of the member.- Throws:
Exception- the exception
-
GroupMember
protected GroupMember(GroupMember member) throws Exception
Initializes a new instance of the GroupMember class.- Parameters:
member- GroupMember class instance to copy.- Throws:
Exception- the exception
-
GroupMember
public GroupMember(Contact contact, EmailAddressKey emailAddressKey) throws Exception
Initializes a new instance of the GroupMember class.- Parameters:
contact- The contact to link to.emailAddressKey- The contact's e-mail address to link to.- Throws:
Exception- the exception
-
-
Method Detail
-
getAddressInformation
public EmailAddress getAddressInformation()
Gets the address information of the member.- Returns:
- the address information
-
setAddressInformation
protected void setAddressInformation(EmailAddress value)
Sets the address information.- Parameters:
value- the new address information
-
getStatus
public MemberStatus getStatus()
Gets the status of the member.- Returns:
- the status
-
readAttributesFromXml
public void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
Reads the member Key attribute from XML.- Overrides:
readAttributesFromXmlin classComplexProperty- Parameters:
reader- the reader- Throws:
Exception- the exception
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read Status or Mailbox elements from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- the reader- Returns:
- True if element was read.
- Throws:
Exception- the exception
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes the member key attribute to XML.- Overrides:
writeAttributesToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
Exception- the exception
-
complexPropertyChanged
public void complexPropertyChanged(ComplexProperty complexProperty)
Complex property changed.- Specified by:
complexPropertyChangedin interfaceIComplexPropertyChangedDelegate- Parameters:
complexProperty- accepts ComplexProperty
-
-