Contact Class

Used to represent a contact found in the Contacts Folder. http://msdn.microsoft.com/en-us/library/aa581315%28v=EXCHG.140%29.aspx

Constructors

Contact( javaxt.exchange.Contact contact )
Contact( String exchangeID, Connection conn, ExtendedFieldURI[] AdditionalProperties )
Contact( String exchangeID, Connection conn )
Contact( String firstName, String lastName )

Public Methods

getFirstName( ) returns String
getLastName( ) returns String
setFullName( String fullName ) returns void
Used to set the "Display Name" attribute for this contact.
getFullName( ) returns String
Returns the "FullName" attribute for this contact.
getPhysicalAddresses( ) returns PhysicalAddress[]
Returns an array of mailing addresses associated with this contact.
setPhysicalAddresses( PhysicalAddress[] physicalAddresses ) returns void
Used to add phone numbers to a contact.
addPhysicalAddress( PhysicalAddress address ) returns void
Used to associate a mailing address with this contact.
removePhysicalAddress( String str ) returns void
Deletes an address associated with this contact.
strComplete mailing address or an address type/category.
removePhysicalAddress( PhysicalAddress address ) returns void
Deletes an address associated with this contact.
addressPhysicalAddress. Must be an exact address match.
removePhysicalAddresses( ) returns void
Deletes all addresses associated with this contact.
getPhoneNumbers( ) returns PhoneNumber[]
Returns an array of PhoneNumbers associated with this contact.
setPhoneNumbers( PhoneNumber[] phoneNumbers ) returns void
Used to add phone numbers to a contact.
addPhoneNumber( PhoneNumber phoneNumber ) returns void
Used to associate a phone number with this contact.
removePhoneNumber( PhoneNumber phoneNumber ) returns void
removePhoneNumbers( ) returns void
getPrimaryEmailAddress( ) returns EmailAddress
getEmailAddresses( ) returns EmailAddress[]
Returns an array of email addresses associated with this contact. Note that Exchange only allows 3 email addresses per contact.
setEmailAddresses( EmailAddress[] emailAddresses ) returns void
Used to add email Addresses to a contact.
setEmailAddress( EmailAddress emailAddress ) returns void
addEmailAddress( EmailAddress emailAddress ) returns void
Used to associate an email address with the contact. Note that Exchange only allows 3 email addresses per contact.
removeEmailAddress( EmailAddress emailAddress ) returns void
Used delete an email address associated with this contact.
removeEmailAddresses( ) returns void
Used to remove all email addresses associated with this contact.
setCompanyName( String company ) returns void
Used to associate the contact with a company or organization.
getCompanyName( ) returns String
Returns the company or organization associated with this contact.
setBirthDay( java.util.Date birthday ) returns void
Used to set the date of birth using a java.util.Date.
setBirthDay( javaxt.utils.Date birthday ) returns void
Used to set the date of birth using a javaxt.utils.Date.
setBirthDay( String birthday ) returns void
Used to set the date of birth using a String. If the method fails to parse the string, the new value will be ignored.
getBirthDay( ) returns javaxt.utils.Date
Returns the date of birth.
getAge( ) returns Integer
Returns the age of the contact, in years.
setTitle( String title ) returns void
Used to set the job title.
getTitle( ) returns String
Returns the job title associated with this contact.
save( Connection conn ) returns String
Used to save/update a contact. Returns the Exchange ID for the item.
delete( Connection conn ) returns void
Used to delete a contact.
toString( ) returns String