microsoft.exchange.webservices.data
Class GroupMember

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.GroupMember

public class GroupMember
extends ComplexProperty

Represents a group member.


Constructor Summary
  GroupMember()
          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.
protected GroupMember(GroupMember member)
          Initializes a new instance of the GroupMember class.
  GroupMember(ItemId contactGroupId)
          Initializes a new instance of the GroupMember class.
  GroupMember(ItemId contactId, java.lang.String addressToLink)
          Initializes a new instance of the GroupMember class.
  GroupMember(java.lang.String smtpAddress)
          Initializes a new instance of the GroupMember class.
  GroupMember(java.lang.String smtpAddress, MailboxType mailboxType)
          Initializes a new instance of the GroupMember class.
  GroupMember(java.lang.String name, java.lang.String smtpAddress)
          Initializes a new instance of the GroupMember class.
  GroupMember(java.lang.String address, java.lang.String routingType, MailboxType mailboxType)
          Initializes a new instance of the GroupMember class.
  GroupMember(java.lang.String name, java.lang.String address, java.lang.String routingType)
          Initializes a new instance of the GroupMember class.
 
Method Summary
 void complexPropertyChanged(ComplexProperty complexProperty)
          Complex property changed.
 EmailAddress getAddressInformation()
          Gets the address information of the member.
 java.lang.String getKey()
          Gets the key of the member.
 MemberStatus getStatus()
          Gets the status of the member.
protected  void readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Reads the member Key attribute from XML.
protected  void setAddressInformation(EmailAddress value)
          Sets the address information.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read Status or Mailbox elements from XML.
protected  void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Writes the member key attribute to XML.
protected  void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupMember

public GroupMember()
Initializes a new instance of the GroupMember class.


GroupMember

public GroupMember(java.lang.String smtpAddress)
Initializes a new instance of the GroupMember class.

Parameters:
smtpAddress - The SMTP address of the member

GroupMember

public GroupMember(java.lang.String address,
                   java.lang.String routingType,
                   MailboxType mailboxType)
            throws ServiceLocalException
Initializes a new instance of the GroupMember class.

Parameters:
address - the address
routingType - The routing type of the address.
mailboxType - The mailbox type of the member.
Throws:
ServiceLocalException - the service local exception

GroupMember

public GroupMember(java.lang.String smtpAddress,
                   MailboxType mailboxType)
            throws ServiceLocalException
Initializes a new instance of the GroupMember class.

Parameters:
smtpAddress - The SMTP address of the member
mailboxType - The mailbox type of the member.
Throws:
ServiceLocalException - the service local exception

GroupMember

public GroupMember(java.lang.String name,
                   java.lang.String address,
                   java.lang.String routingType)
Initializes a new instance of the GroupMember class.

Parameters:
name - The name of the one-off member.
address - the address
routingType - The routing type of the address.

GroupMember

public GroupMember(java.lang.String name,
                   java.lang.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,
                   java.lang.String addressToLink)
Initializes a new instance of the GroupMember class.

Parameters:
contactId - The Id of the contact member
addressToLink - The Id of the contact to link the member to.

GroupMember

public GroupMember(EmailAddress addressInformation)
            throws java.lang.Exception
Initializes a new instance of the GroupMember class.

Parameters:
addressInformation - The e-mail address of the member.
Throws:
java.lang.Exception - the exception

GroupMember

protected GroupMember(GroupMember member)
               throws java.lang.Exception
Initializes a new instance of the GroupMember class.

Parameters:
member - GroupMember class instance to copy.
Throws:
java.lang.Exception - the exception

GroupMember

public GroupMember(Contact contact,
                   EmailAddressKey emailAddressKey)
            throws java.lang.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:
java.lang.Exception - the exception
Method Detail

getKey

public java.lang.String getKey()
Gets the key of the member.

Returns:
the key

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

protected void readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                              throws java.lang.Exception
Reads the member Key attribute from XML.

Overrides:
readAttributesFromXml in class ComplexProperty
Parameters:
reader - the reader
Throws:
java.lang.Exception - the exception

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Tries to read Status or Mailbox elements from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - the reader
Returns:
True if element was read.
Throws:
java.lang.Exception - the exception

writeAttributesToXml

protected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                             throws ServiceXmlSerializationException
Writes the member key attribute to XML.

Overrides:
writeAttributesToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
ServiceXmlSerializationException - the service xml serialization exception

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws java.lang.Exception
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
java.lang.Exception - the exception

complexPropertyChanged

public void complexPropertyChanged(ComplexProperty complexProperty)
Complex property changed.

Parameters:
complexProperty - accepts ComplexProperty