Compoze Software, Inc.

com.compoze.exchange.webdav
Class Contact


java.lang.Object

  |

  +--com.compoze.exchange.webdav.AbstractItem

        |

        +--com.compoze.exchange.webdav.AbstractMessage

              |

              +--com.compoze.exchange.webdav.Contact

All Implemented Interfaces:
java.lang.Cloneable, IItem, java.io.Serializable

public class Contact
extends AbstractMessage
implements java.io.Serializable, java.lang.Cloneable

This class extends AbstractItem to represent an item that is a contact in the Exchange Store.

The following table contains the properties defined in the Exchange store schema and mappings to their corresponding Java enumeration and methods:

Exchange Store Property Property Enumeration Java Methods
urn:schemas:contacts:givenName
urn:schemas:contacts:middlename
urn:schemas:contacts:sn
urn:schemas:contacts:personaltitle
urn:schemas:contacts:namesuffix
urn:schemas:contacts:nickname
ContactsProperty.GIVEN_NAME
ContactsProperty.MIDDLE_NAME
ContactsProperty.SURNAME
ContactsProperty.PERSONAL_TITLE
ContactsProperty.SUFFIX
ContactsProperty.NICKNAME
getName()
setName(Name)
urn:schemas:contacts:street
urn:schemas:contacts:postofficebox
urn:schemas:contacts:l
urn:schemas:contacts:st
urn:schemas:contacts:postalcode
urn:schemas:contacts:co
ContactsProperty.WORK_STREET
ContactsProperty.WORK_PO_BOX
ContactsProperty.WORK_LOCALITY
ContactsProperty.WORK_REGION
ContactsProperty.WORK_POSTAL_CODE
ContactsProperty.WORK_COUNTRY
getBusinessAddress()
setBusinessAddress(Address)
urn:schemas:contacts:homeStreet
urn:schemas:contacts:homepostofficebox
urn:schemas:contacts:homeCity
urn:schemas:contacts:homeState
urn:schemas:contacts:homePostalCode
urn:schemas:contacts:homeCountry
ContactsProperty.HOME_STREET
ContactsProperty.HOME_PO_BOX
ContactsProperty.HOME_LOCALITY
ContactsProperty.HOME_REGION
ContactsProperty.HOME_POSTAL_CODE
ContactsProperty.HOME_COUNTRY
getHomeAddress()
setHomeAddress(Address)
urn:schemas:contacts:otherstreet
urn:schemas:contacts:otherpostofficebox
urn:schemas:contacts:othercity
urn:schemas:contacts:otherstate
urn:schemas:contacts:otherpostalcode
urn:schemas:contacts:othercountry
ContactsProperty.OTHER_STREET
ContactsProperty.OTHER_PO_BOX
ContactsProperty.OTHER_LOCALITY
ContactsProperty.OTHER_REGION
ContactsProperty.OTHER_POSTAL_CODE
ContactsProperty.OTHER_COUNTRY
getOtherAddress()
setOtherAddress(Address)
urn:schemas:contacts:account ContactsProperty.ACCOUNT getAccount()
setAccount(String)
urn:schemas:contacts:birthday ContactsProperty.BIRTHDAY getBirthday()
setBirthday(Date)
urn:schemas:contacts:billinginformation ContactsProperty.BILLING_INFORMATION getBillingInformation()
setBillingInformation(String)
urn:schemas:contacts:businesshomepage ContactsProperty.BUSINESS_HOMEPAGE getBusinessHomePage()
setBusinessHomePage(URL)
urn:schemas:contacts:callbackphone ContactsProperty.CALLBACK_PHONE
urn:schemas:contacts:childrensnames ContactsProperty.CHILDRENS_NAMES getChildrensNames()
setChildrensNames(String[])
urn:schemas:contacts:computernetworkname ContactsProperty.COMPUTER_NETWORK_NAME getComputerNetworkName()
setComputerNetworkName(String)
urn:schemas:contacts:customerid ContactsProperty.CUSTOMER_ID getCustomerId()
setCustomerId(String)
urn:schemas:contacts:department ContactsProperty.DEPARTMENT getDepartment()
setDepartment(String)
urn:schemas:contacts:email1 ContactsProperty.EMAIL1 getEmailAddress()
setEmailAddress(String)
urn:schemas:contacts:email2 ContactsProperty.EMAIL2 getEmail2Address()
setEmail2Address(String)
urn:schemas:contacts:email3 ContactsProperty.EMAIL3 getEmail3Address()
setEmail3Address(String)
urn:schemas:contacts:employeenumber ContactsProperty.EMPLOYEE_NUMBER getEmployeeNumber()
setEmployeeNumber(String)
http://schemas.microsoft.com/exchange/extensionattribute1 ExchangeProperty.EXTENSION_ATTRIBUTE1 getUserField1()
setUserField1(String)
http://schemas.microsoft.com/exchange/extensionattribute2 ExchangeProperty.EXTENSION_ATTRIBUTE2 getUserField2()
setUserField2(String)
http://schemas.microsoft.com/exchange/extensionattribute3 ExchangeProperty.EXTENSION_ATTRIBUTE3 getUserField3()
setUserField3(String)
http://schemas.microsoft.com/exchange/extensionattribute4 ExchangeProperty.EXTENSION_ATTRIBUTE4 getUserField4()
setUserField4(String)
urn:schemas:contacts:facsimiletelephonenumber ContactsProperty.WORK_FAX_NUMBER getBusinessFaxNumber()
setBusinessFaxNumber(String)
urn:schemas:contacts:fileas ContactsProperty.FILEAS getFileAs()
setFileAs(String)
urn:schemas:contacts:fileasid ContactsProperty.FILEAS_ID getFileAsId()
setFileAsId(FileAsId)
urn:schemas:contacts:ftpsite ContactsProperty.FTP_SITE getFtpSite()
setFtpSite(URL)
urn:schemas:contacts:gender ContactsProperty.GENDER getGender()
setGender(Gender)
urn:schemas:contacts:governmentid ContactsProperty.GOVERNMENT_ID getGovernmentId()
setGovernmentId(String)
urn:schemas:contacts:hobbies ContactsProperty.HOBBIES getHobbies()
setHobbies(String)
urn:schemas:contacts:homefax ContactsProperty.HOME_FAX_NUMBER getHomeFaxNumber()
setHomeFaxNumber(String)
urn:schemas:contacts:homelatitude ContactsProperty.HOME_LATITUDE getHomeLatitude()
setHomeLatitude(float)
urn:schemas:contacts:homelongitude ContactsProperty.HOME_LONGITUDE getHomeLongitude()
setHomeLongitude(float)
urn:schemas:contacts:homePhone ContactsProperty.HOME_PHONE getHomeTelephoneNumber()
setHomeTelephoneNumber(String)
urn:schemas:contacts:homephone2 ContactsProperty.HOME_PHONE2 getHomeTelephoneNumber2()
setHomeTelephoneNumber2(String)
urn:schemas:contacts:hometimezone ContactsProperty.HOME_TIMEZONE getHomeTimeZone()
setHomeTimeZone(TimeZone)
urn:schemas:contacts:initials ContactsProperty.INITIALS getInitials()
setInitials(String)
urn:schemas:contacts:internationalisdnnumber ContactsProperty.INTERNATIONAL_ISDN_NUMBER getIsdnNumber()
setIsdnNumber(String)
urn:schemas:contacts:language ContactsProperty.LANGUAGE getLanguage()
setLanguage(String)
urn:schemas:contacts:location ContactsProperty.LOCATION getLocation()
setLocation(String)
urn:schemas:contacts:mailingaddressid ContactsProperty.MAILING_ADDRESS_ID getMailingAddressId()
setMailingAddressId(MailingAddressId)
urn:schemas:contacts:mailingstreet
urn:schemas:contacts:mailingpostofficebox
urn:schemas:contacts:mailingcity
urn:schemas:contacts:mailingstate
urn:schemas:contacts:mailingpostalcode
urn:schemas:contacts:mailingcountry
ContactsProperty.MAILING_STREET
ContactsProperty.MAILING_PO_BOX
ContactsProperty.MAILING_CITY
ContactsProperty.MAILING_STATE
ContactsProperty.MAILING_POSTAL_CODE
ContactsProperty.MAILING_COUNTRY
getMailingAddress()
urn:schemas:contacts:manager ContactsProperty.MANAGER getManagerName()
setManagerName(String)
http://schemas.microsoft.com/exchange/mileage ExchangeProperty.MILEAGE getMileage()
setMileage(String)
urn:schemas:contacts:mobile ContactsProperty.MOBILE_NUMBER getMobileTelephoneNumber()
setMobileTelephoneNumber(String)
urn:schemas:contacts:o ContactsProperty.ORGANIZATION getCompanyName()
setCompanyName(String)
urn:schemas:contacts:officetelephonenumber ContactsProperty.PRIMARY_OFFICE_NUMBER getPrimaryOfficeTelephoneNumber()
setPrimaryOfficeTelephoneNumber(String)
urn:schemas:contacts:office2telephonenumber ContactsProperty.SECONDARY_OFFICE_NUMBER getSecondaryOfficeTelephoneNumber()
setSecondaryOfficeTelephoneNumber(String)
urn:schemas:contacts:organizationmainphone ContactsProperty.ORGANIZATION_MAIN_PHONE getOrganizationMainPhone()
setOrganizationMainPhone(String)
urn:schemas:contacts:otherfax ContactsProperty.OTHER_FAX_NUMBER getOtherFaxNumber()
setOtherFaxNumber(String)
urn:schemas:contacts:othermobile ContactsProperty.OTHER_MOBILE_NUMBER getOtherMobileTelephoneNumber()
setOtherMobileTelephoneNumber(String)
urn:schemas:contacts:otherpager ContactsProperty.OTHER_PAGER_NUMBER getOtherPagerTelephoneNumber()
setOtherPagerTelephoneNumber(String)
urn:schemas:contacts:otherTelephone ContactsProperty.OTHER_PHONE_NUMBER getOtherTelephoneNumber()
setOtherTelephoneNumber(String)
urn:schemas:contacts:pager ContactsProperty.PAGER_NUMBER getOtherPagerTelephoneNumber()
setOtherPagerTelephoneNumber(String)
urn:schemas:contacts:personalHomePage ContactsProperty.PERSONAL_HOMEPAGE getPersonalHomePage()
setPersonalHomePage(String)
urn:schemas:contacts:profession ContactsProperty.PROFESSION getProfession()
setProfession(String)
urn:schemas:contacts:referredby ContactsProperty.REFERRED_BY getReferredBy()
setReferredBy(String)
urn:schemas:contacts:roomnumber ContactsProperty.ROOM_NUMBER getRoomNumber()
setRoomNumber(String)
urn:schemas:contacts:secretarycn ContactsProperty.SECRETARY_NAME getSecretaryName()
setSecretaryName(String)
urn:schemas:contacts:secretaryphone ContactsProperty.SECRETARY_PHONE getSecretaryTelephoneNumber()
setSecretaryTelephoneNumber(String)
urn:schemas:contacts:spousecn ContactsProperty.SPOUSE_NAME getSpouseName()
setSpouseName(String)
urn:schemas:contacts:telephoneNumber ContactsProperty.WORK_TELEPHONE_NUMBER getBusinessTelephoneNumber()
setBusinessTelephoneNumber(String)
urn:schemas:contacts:telephonenumber2 ContactsProperty.ALTERNATIVE_WORK_TELEPHONE_NUMBER getBusinessTelephoneNumber2()
setBusinessTelephoneNumber2(String)
urn:schemas:contacts:telexnumber ContactsProperty.TELEX_NUMBER getTelexNumber()
setTelexNumber(String)
urn:schemas:contacts:title ContactsProperty.JOB_TITLE getJobTitle()
setJobTitle(String)
urn:schemas:contacts:ttytddphone ContactsProperty.TTYTTD_PHONE getTTYTDDNumber()
setTTYTDDNumber(String)
urn:schemas:contacts:weddinganniversary ContactsProperty.WEDDING_ANNIVERSARY getWeddingAnniversary()
setWeddingAnniversary(Date)

Below is an example of how to create a contact:

      ContactFolder contactsFolder = m_session.getContactsFolder();
	Contacts contacts = contactsFolder.getContacts(ContactProperty.getProperties());
	
      Contact contact = new Contact();
	Name name = new Name("John", "", "Doe", "", "", "Johnny");
	contact.setName(name);

	Address businessAddress = new Address();
	businessAddress.setStreetAddress("550 North Lane");
	businessAddress.setLocality("Conshohocken");
	businessAddress.setRegion("PA");
	businessAddress.setPostalCode("19428");
	businessAddress.setCountry("United States of America");
	contact.setBusinessAddress(businessAddress);

	Address otherAddress = new Address();
	otherAddress.setStreetAddress("953 Mission Street");
	otherAddress.setLocality("San Francisco");
	otherAddress.setRegion("CA");
	otherAddress.setPostalCode("94103");
	otherAddress.setCountry("USA");
	contact.setOtherAddress(otherAddress);

	contact.setMailingAddressId(MailingAddressId.BUSINESS_ADDRESS);

	contact.setEmailAddress("info@compoze.com");
	contact.setEmail2Address("support@compoze.com");
	contact.setEmail3Address("webmaster@compoze.com");

	contact.setBusinessTelephoneNumber("1.866.COMPOZE");
	contact.setBusinessTelephoneNumber2("610.862.1104");
	contact.setBusinessFaxNumber("610.862.1180");

	contact.setOtherTelephoneNumber("415.247.9797");
	contact.setOtherFaxNumber("415.247.0208");

	contact.setBusinessHomePage("www.compoze.com");
	contact.setEmployeeNumber("1234567890");
	contact.setDepartment("Business development");
	contact.setCompanyName("Compoze Software");
	contact.setJobTitle("Senior Engineer");

	contacts.add(contact);
 

See Also:
Serialized Form

Constructor Summary
Contact()
          Constructor.
Contact(Name name)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
protected  java.lang.String createFilename(int iIndex)
          Composes the filename for this contact.
 java.lang.String getAccount()
          Gets the account number for this contact.
 java.util.LinkedList getBccAddresses()
          Gets the blind carbon copy (Bcc) addresses.
 java.lang.String getBccAddressesString()
          Gets the string representation of a list of blind carbon copy (Bcc) addresses.
 com.compoze.util.mail.InternetAddress[] getBccRecipients()
          Gets internet addresses of recipients set in the "Bcc" (blind carbon copy) field.
 java.lang.String getBillingInformation()
          Gets the billing information.
 java.util.Date getBirthday()
          Gets the birthday.
 Address getBusinessAddress()
          Gets the business address.
 java.lang.String getBusinessAddressCity()
          Gets the business address city of this contact.
 java.lang.String getBusinessAddressCountry()
          Gets the business address country of this contact.
 java.lang.String getBusinessAddressPostalCode()
          Gets the business address postal code of this contact.
 java.lang.String getBusinessAddressPostOfficeBox()
          Gets the business address post office box of this contact.
 java.lang.String getBusinessAddressStateOrProvince()
          Gets the business address state or province of this contact.
 java.lang.String getBusinessAddressStreet()
          Gets the business address street of this contact.
 java.lang.String getBusinessFaxNumber()
          Gets the work facsimile telephone number.
 java.lang.String getBusinessHomePage()
          Gets the URL to the home page of this contact's business web site.
 java.lang.String getBusinessTelephoneNumber()
          Gets the work telephone number.
 java.lang.String getBusinessTelephoneNumber2()
          Gets the alternative work telephone number.
 java.lang.String getCallbackTelephoneNumber()
          Gets the callback telephone number.
 java.util.LinkedList getCcAddresses()
          Gets the carbon copy (Cc) addresses.
 java.lang.String getCcAddressesString()
          Gets the string representation of a list of carbon copy (Cc) addresses.
 com.compoze.util.mail.InternetAddress[] getCcRecipients()
          Gets internet addresses of recipients set in the "Cc" (carbon copy) field.
 java.lang.String[] getChildrensNames()
          Gets the childrens (as in sons and daughters) names of this contact.
 java.lang.String getCommonName()
          Gets the common name of this contact
 java.lang.String getCompanyName()
          Gets the name of the organization or company.
 java.lang.String getComputerNetworkName()
          Gets the computer network name.
 java.lang.String getCustomerId()
          Gets the customer id.
static java.util.List getDefaultProperties()
          Gets a list of default properties pertaining to a contact.
 java.lang.String getDepartment()
          Gets the name of the department this contact works for.
 java.lang.String getEmail2Address()
          Gets the secondary e-mail address.
 java.lang.String getEmail3Address()
          Gets the third e-mail address.
 java.lang.String getEmailAddress()
          Gets the primary e-mail address of the contact.
 java.lang.String getEmailDisplayAs()
          Gets the "Display Name" field for the primary Email address of a contact.
 java.lang.String getEmployeeNumber()
          Gets the employee number.
 java.lang.String getFileAs()
          Gets the format in which to display the contact information.
 FileAsId getFileAsId()
          Gets how this contact information is displayed.
 com.compoze.util.mail.InternetAddress[] getFrom()
          Gets internet addresses of whom this message was sent.
 java.util.LinkedList getFromAddresses()
          Gets the addresses from whom the message was sent.
 java.lang.String getFromAddressesString()
          Gets the string representation of a list of from whom the message was sent.
 java.lang.String getFtpSite()
          Gets the URL to the FTP site.
 Gender getGender()
          Gets the gender.
 java.lang.String getGivenName()
          Gets the given name.
 java.lang.String getGovernmentId()
          Gets the government identifier.
 java.lang.String getHobbies()
          Gets the hobbies.
 Address getHomeAddress()
          Gets the home address.
 java.lang.String getHomeAddressCity()
          Gets the home address city of this contact.
 java.lang.String getHomeAddressCountry()
          Gets the home address country of this contact.
 java.lang.String getHomeAddressPostalCode()
          Gets the home address postal code of this contact.
 java.lang.String getHomeAddressPostOfficeBox()
          Gets the home address post office box of this contact.
 java.lang.String getHomeAddressStateOrProvince()
          Gets the home address state or province of this contact.
 java.lang.String getHomeAddressStreet()
          Gets the home address street of this contact.
 java.lang.String getHomeFaxNumber()
          Gets the home facsimile (fax) number.
 float getHomeLatitude()
          Gets the latitude of the home of this contact.
 float getHomeLongitude()
          Gets the longitude of the home of this contact.
 java.lang.String getHomeTelephoneNumber()
          Gets the home phone telephone number.
 java.lang.String getHomeTelephoneNumber2()
          Gets the alternative home telephone number.
 java.util.TimeZone getHomeTimeZone()
          Gets the home time zone.
 java.lang.String getInitials()
          Gets the initials.
 java.lang.String getIsdnNumber()
          Gets the Integrated Services Digital Network (ISDN) number.
 java.lang.String getJobTitle()
          Gets the work title or job position of this contact.
 java.lang.String getLanguage()
          Gets the language, in ISO639 format, of this contact.
 java.lang.String getLocation()
          Gets the location.
 Address getMailingAddress()
          Gets the current mailing address.
 MailingAddressId getMailingAddressId()
          Gets the mailing address identifier of the address (home, business, other).
 java.lang.String getManagerName()
          Gets the name of the manager this contact work under.
 MemberInfo[] getMemberInfo()
          Returns the distribution list members
 java.lang.String getMiddleName()
          Gets the middle name.
 java.lang.String getMileage()
          Gets the mileage.
 java.lang.String getMobileTelephoneNumber()
          Gets the mobile telephone number.
 Name getName()
           
 java.lang.String getNameSuffix()
          Gets the name suffix.
 java.lang.String getNickname()
          Gets the nickname.
 java.lang.String getOrganizationMainPhone()
          Gets the main telephone number for the company this contact works for.
 Address getOtherAddress()
          Gets the other address.
 java.lang.String getOtherAddressCity()
          Gets the other address city of this contact.
 java.lang.String getOtherAddressCountry()
          Gets the other address country of this contact.
 java.lang.String getOtherAddressPostalCode()
          Gets the other address postal code of this contact.
 java.lang.String getOtherAddressPostOfficeBox()
          Gets the other address post office box of this contact.
 java.lang.String getOtherAddressStateOrProvince()
          Gets the other address state or province of this contact.
 java.lang.String getOtherAddressStreet()
          Gets the other address street of this contact.
 java.lang.String getOtherFaxNumber()
          Gets the alternative work FAX number.
 java.lang.String getOtherMobileTelephoneNumber()
          Gets the alternative mobile telephone number.
 java.lang.String getOtherPagerTelephoneNumber()
          Gets the alternative pager telephone number.
 java.lang.String getOtherTelephoneNumber()
          Gets the alternative work telephone number.
 java.util.TimeZone getOtherTimeZone()
          Gets the alternative work time zone.
 java.lang.String getPagerTelephoneNumber()
          Gets pager telephone number.
 java.lang.String getPersonalHomePage()
          Gets the URL of the personal home page.
 java.lang.String getPersonalTitle()
          Gets the personal title.
 java.lang.String getPrimaryOfficeTelephoneNumber()
          Gets the primary office telephone number.
 java.lang.String getProfession()
          Gets the profession of this contact.
static java.util.List getProperties()
          Gets a list of properties pertaining to a contact.
 java.lang.String getReferredBy()
          Gets the name of the person referred by.
 java.lang.String getRoomNumber()
          Gets the room number.
 java.lang.String getSecondaryOfficeTelephoneNumber()
          Gets the secondary office telephone number.
 java.lang.String getSecretaryName()
          Gets the name of the secretary.
 java.lang.String getSecretaryTelephoneNumber()
          Gets the secretary's telephone number.
 java.lang.String getSpouseName()
          Gets the name of this contact's spouse.
 java.lang.String getSurname()
          Gets the surnname.
 java.lang.String getTelexNumber()
          Gets the work telex number.
 java.util.LinkedList getToAddresses()
          Gets the principal (To) addresses.
 java.lang.String getToAddressesString()
          Gets the string representation of a list of principal (To) addresses.
 com.compoze.util.mail.InternetAddress[] getToRecipients()
          Gets internet addresses of recipients set in the "To" (principal) field.
 java.lang.String getTTYTDDNumber()
          Gets the ttytdd phone number.
 java.lang.String getUserField1()
          Gets the user field 1.
 java.lang.String getUserField2()
          Gets the user field 2.
 java.lang.String getUserField3()
          Gets the user field 3.
 java.lang.String getUserField4()
          Gets the user field 4.
 java.util.Date getWeddingAnniversary()
          Gets wedding anniversary.
 boolean isDistributionList()
           
 void setAccount(java.lang.String sAccount)
          Sets the account number for this contact.
 void setBccAddresses(java.util.List addresses)
          Sets the blind carbon copy (Bcc) addresses.
 void setBccRecipients(com.compoze.util.mail.InternetAddress[] addressList)
          Sets "Bcc" (blind carbon copy) field with recipient's internet addresses.
 void setBccRecipients(java.lang.String sAddressList)
          Sets "Bcc" (blind carbon copy) field with sequence of recipient's internet addresses.
 void setBillingInformation(java.lang.String sBillingInformation)
          Sets the billing information.
 void setBirthday(java.util.Date birthday)
          Sets the birthday.
 void setBusinessAddress(Address address)
          Sets the business address.
 void setBusinessAddressCity(java.lang.String sLocality)
          Gets the business address city of this contact.
 void setBusinessAddressCountry(java.lang.String sCountry)
          Gets the business address country of this contact.
 void setBusinessAddressPostalCode(java.lang.String sPostalCode)
          Gets the business address postal code of this contact.
 void setBusinessAddressPostOfficeBox(java.lang.String sPostOfficeBox)
          Gets the business address post office box of this contact.
 void setBusinessAddressStateOrProvince(java.lang.String sStateOrProvince)
          Gets the business address state or province of this contact.
 void setBusinessAddressStreet(java.lang.String sStreet)
          Gets the business address street of this contact.
 void setBusinessFaxNumber(java.lang.String sBusinessFax)
          Sets the work facsimile telephone number.
 void setBusinessHomePage(java.lang.String sBusinessHomePage)
          Sets the URL of the home page of this contact's business Web site.
 void setBusinessHomePage(java.net.URL businessHomePage)
          Sets the URL of the home page of this contact's business Web site.
 void setBusinessTelephoneNumber(java.lang.String sBusinessPhone)
          Sets the work telephone number.
 void setBusinessTelephoneNumber2(java.lang.String sBusinessPhone)
          Sets the alternative work telephone number.
 void setCallbackTelephoneNumber(java.lang.String sCallbackPhone)
          Sets the callback telephone number.
 void setCcAddresses(java.util.List addresses)
          Sets the carbon copy (Cc) addresses.
 void setCcRecipients(com.compoze.util.mail.InternetAddress[] addressesList)
          Sets "Cc" (carbon copy) field with recipient's internet addresses.
 void setCcRecipients(java.lang.String sAddressList)
          Sets "Cc" (carbon copy) field with sequence of recipient's internet addresses.
 void setChildrensNames(java.lang.String[] childrensNames)
          Sets the childrens (as in sons and daughters) names of this contact.
 void setCommonName(java.lang.String sCommonName)
          Sets the common name of a contact.
 void setCompanyName(java.lang.String sCompanyName)
          Sets the name of the organization or company.
 void setComputerNetworkName(java.lang.String sComputerNetworkName)
          Sets the computer network name.
 void setCustomerId(java.lang.String sCustomerId)
          Sets the customer id.
 void setDepartment(java.lang.String sDepartment)
          Sets the name of the department this contact works for.
 void setEmail2Address(java.lang.String sEmail)
          Sets the secondary e-mail address.
 void setEmail3Address(java.lang.String sEmail)
          Sets the third e-mail address.
 void setEmailAddress(java.lang.String sEmail)
          Sets the primary e-mail address.
 void setEmailDisplayAs(java.lang.String sEmailDisplayAs)
          Sets the "Display Name" field for the primary Email address of a contact.
 void setEmployeeNumber(java.lang.String sEmployeeNumber)
          Sets the employee number.
 void setFileAs(java.lang.String sFileAs)
          Sets the format in which to display the contact information.
 void setFileAsId(FileAsId fileAsId)
          Sets how this contact information is displayed.
 void setFrom(com.compoze.util.mail.InternetAddress[] addressesList)
          Sets "From" field with internet addresses of whom this message was sent.
 void setFrom(java.lang.String sAddressList)
          Sets "From" field with sequence of internet addresses of whom this message was sent.
 void setFromAddress(java.lang.String sFromAddress)
          Sets the address from whom the message was sent.
 void setFromAddresses(java.util.List addresses)
          Sets the addresses from whom the message was sent.
 void setFtpSite(java.lang.String sFtpSite)
          Sets the URL to the FTP site.
 void setFtpSite(java.net.URL ftpSite)
          Sets the URL to the FTP site.
 void setGender(Gender gender)
          Sets the gender.
 void setGivenName(java.lang.String sGivenName)
          Sets the given name.
 void setGovernmentId(java.lang.String sGovernmentId)
          Sets the government identifier.
 void setHobbies(java.lang.String sHobbies)
          Sets the hobbies.
 void setHomeAddress(Address address)
          Sets the home address.
 void setHomeAddressCity(java.lang.String sLocality)
          Gets the home address city of this contact.
 void setHomeAddressCountry(java.lang.String sCountry)
          Gets the home address country of this contact.
 void setHomeAddressPostalCode(java.lang.String sPostalCode)
          Gets the home address postal code of this contact.
 void setHomeAddressPostOfficeBox(java.lang.String sPostOfficeBox)
          Gets the home address post office box of this contact.
 void setHomeAddressStateOrProvince(java.lang.String sStateOrProvince)
          Gets the home address state or province of this contact.
 void setHomeAddressStreet(java.lang.String sStreet)
          Gets the home address street of this contact.
 void setHomeFaxNumber(java.lang.String sHomeFax)
          Sets the home facsimile (fax) number.
 void setHomeLatitude(float fLatitude)
          Sets the latitude of the home of this contact.
 void setHomeLongitude(float fLongitude)
          Sets the longitude of the home of this contact.
 void setHomeTelephoneNumber(java.lang.String sHomePhone)
          Sets the home telephone number.
 void setHomeTelephoneNumber2(java.lang.String sHomePhone)
          Sets the alternative home telephone number.
 void setHomeTimeZone(java.util.TimeZone homeTimeZone)
          Sets the home time zone.
 void setInitials(java.lang.String sInitials)
          Sets the initials.
 void setIsdnNumber(java.lang.String sIsdn)
          Sets the Integrated Services Digital Network (ISDN) number.
 void setJobTitle(java.lang.String sTitle)
          Sets the work title or job position of this contact.
 void setLanguage(java.lang.String sLanguage)
          Sets the language, in ISO639 format, of this contact.
 void setLocation(java.lang.String sLocation)
          Sets the location.
 void setMailingAddressId(MailingAddressId mailAddressId)
          Sets the mailing address identifier of the address (home, business, other).
 void setManagerName(java.lang.String sManagerName)
          Sets the name of the manager this contact works under.
 void setMiddleName(java.lang.String sMiddleName)
          Sets the middle name.
 void setMileage(java.lang.String sMileage)
          Sets the mileage.
 void setMobileTelephoneNumber(java.lang.String sMobile)
          Sets the mobile telephone number.
 void setName(Name name)
          Sets the formal name.
 void setNameSuffix(java.lang.String sNameSuffix)
          Sets the name suffix.
 void setNickname(java.lang.String sNickname)
          Sets the nickname.
 void setOrganizationMainPhone(java.lang.String sOrganizationMainPhone)
          Sets the main telephone number for the company this contact works for.
 void setOtherAddress(Address address)
          Sets the other address.
 void setOtherAddressCity(java.lang.String sLocality)
          Gets the other address city of this contact.
 void setOtherAddressCountry(java.lang.String sCountry)
          Gets the other address country of this contact.
 void setOtherAddressPostalCode(java.lang.String sPostalCode)
          Gets the other address postal code of this contact.
 void setOtherAddressPostOfficeBox(java.lang.String sPostOfficeBox)
          Gets the other address post office box of this contact.
 void setOtherAddressStateOrProvince(java.lang.String sStateOrProvince)
          Gets the other address state or province of this contact.
 void setOtherAddressStreet(java.lang.String sStreet)
          Gets the other address street of this contact.
 void setOtherFaxNumber(java.lang.String sOtherFax)
          Sets the alternative work FAX number.
 void setOtherMobileTelephoneNumber(java.lang.String sOtherMobile)
          Sets the alternative mobile telephone number.
 void setOtherPagerTelephoneNumber(java.lang.String sOtherPager)
          Gets the alternative pager telephone number.
 void setOtherTelephoneNumber(java.lang.String sOtherPhone)
          Sets the alternative work telephone.
 void setOtherTimeZone(java.util.TimeZone otherTimeZone)
          Sets the alternative work time zone.
 void setPagerTelephoneNumber(java.lang.String sPager)
          Sets pager telephone number.
 void setPersonalHomePage(java.lang.String sPersonalHomePage)
          Sets the URL of the personal home page.
 void setPersonalHomePage(java.net.URL personalHomePage)
          Sets the URL of the personal home page.
 void setPersonalTitle(java.lang.String sPersonalTitle)
          Sets the personal title.
 void setPrimaryOfficeTelephoneNumber(java.lang.String sOfficeTelephoneNumber)
          Sets the primary office telephone number.
 void setProfession(java.lang.String sProfession)
          Sets the profession of this contact.
 void setReferredBy(java.lang.String sReferredBy)
          Sets the name of the person referred by.
 void setRoomNumber(java.lang.String sRoomNumber)
          Sets the room number.
 void setSecondaryOfficeTelephoneNumber(java.lang.String sOfficeTelephoneNumber)
          Sets the secondary office telephone number.
 void setSecretaryName(java.lang.String sName)
          Sets the name of the secretary
 void setSecretaryTelephoneNumber(java.lang.String sSecretaryPhone)
          Sets the secretary's telephone number.
 void setSpouseName(java.lang.String sSpouseName)
          Sets the name of this contact's spouse.
 void setSurname(java.lang.String sSurname)
          Sets the surname.
 void setTelexNumber(java.lang.String sTelexNumber)
          Sets the work telex number.
 void setToAddresses(java.util.List addresses)
          Sets the principal (To) addresses.
 void setToRecipients(com.compoze.util.mail.InternetAddress[] addressList)
          Sets "To" (principal) field with recipient's internet addresses.
 void setToRecipients(java.lang.String sAddressList)
          Sets "To" (principal) field with sequence of recipient's internet addresses.
 void setTTYTDDNumber(java.lang.String sTTYTTDNumber)
          Sets the ttytdd phone number.
 void setUserField1(java.lang.String sField)
          Sets the user field 1.
 void setUserField2(java.lang.String sField)
          Sets the user field 2.
 void setUserField3(java.lang.String sField)
          Sets the user field 3.
 void setUserField4(java.lang.String sField)
          Sets the user field 4.
 void setWeddingAnniversary(java.util.Date anniversary)
          Sets wedding anniversary.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class com.compoze.exchange.webdav.AbstractMessage
addAttachment, equals, getAttachments, getBody, getCategories, getContactNames, getDateReceived, getFromEmailAddress, getFromName, getImportance, getNormalizedSubject, getSensitivity, getSize, getSubject, getTextDescription, getType, hasAttachment, isRead, serverDeleteAttachment, serverGetAttachments, serverUpdate, setBody, setCategories, setCategories, setContactNames, setContactNames, setDateReceived, setImportance, setRead, setSensitivity, setSubject, setTextDescription, setType
 
Methods inherited from class com.compoze.exchange.webdav.AbstractItem
copy, copy, copy, createFilename, delete, equals, getComment, getContentClass, getCreationDate, getDateLastModified, getDisplayName, getFile, getHRef, getID, getParentFolder, getPermanentURL, getUID, isFolder, isHidden, isReadOnly, isRoot, move, move, move, serverCopyTo, serverCopyTo, serverCopyTo, serverCopyTo, serverDelete, serverGetParentFolder, serverMoveTo, serverMoveTo, serverMoveTo, serverMoveTo, serverUpdate, setComment, setContentClass, setContentClass, setHidden, setReadOnly, setReleased, setType, setUID, update, update, validate
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Contact


public Contact()
Constructor.

Contact


public Contact(Name name)
Constructor.
Parameters:
name - formal name of contact (may not be null or empty
Method Detail

getName


public Name getName()

setName


public void setName(Name name)
Sets the formal name.
Parameters:
name - the formal name
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.GIVEN_NAME, ContactsProperty.SURNAME, ContactsProperty.MIDDLE_NAME, ContactsProperty.PERSONAL_TITLE, ContactsProperty.SUFFIX, ContactsProperty.NICKNAME

getGivenName


public java.lang.String getGivenName()
Gets the given name.
Returns:
the given name, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

setGivenName


public void setGivenName(java.lang.String sGivenName)
Sets the given name.
Parameters:
sGivenName - the given name
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

getSurname


public java.lang.String getSurname()
Gets the surnname.
Returns:
the surname, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

setSurname


public void setSurname(java.lang.String sSurname)
Sets the surname.
Parameters:
sSurname - the surname
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

getMiddleName


public java.lang.String getMiddleName()
Gets the middle name.
Returns:
the middle name, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

setMiddleName


public void setMiddleName(java.lang.String sMiddleName)
Sets the middle name.
Parameters:
sSurname - the middle name
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

getPersonalTitle


public java.lang.String getPersonalTitle()
Gets the personal title.
Returns:
the peronsal title, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

setPersonalTitle


public void setPersonalTitle(java.lang.String sPersonalTitle)
Sets the personal title.
Parameters:
sSurname - the personal title
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

getNameSuffix


public java.lang.String getNameSuffix()
Gets the name suffix.
Returns:
the name suffix, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

setNameSuffix


public void setNameSuffix(java.lang.String sNameSuffix)
Sets the name suffix.
Parameters:
sSurname - the name suffix
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

getNickname


public java.lang.String getNickname()
Gets the nickname.
Returns:
the nickname, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

setNickname


public void setNickname(java.lang.String sNickname)
Sets the nickname.
Parameters:
sNickname - the nickname
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

getInitials


public java.lang.String getInitials()
Gets the initials.
Returns:
the initials, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

setInitials


public void setInitials(java.lang.String sInitials)
Sets the initials.
Parameters:
sInitials - the initials
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INITIALS

getCompanyName


public java.lang.String getCompanyName()
Gets the name of the organization or company.
Returns:
the name of the organization or company, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ORGANIZATION

setCompanyName


public void setCompanyName(java.lang.String sCompanyName)
Sets the name of the organization or company.
Returns:
sCompanyName the name of the organization or company
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ORGANIZATION

getBusinessAddress


public Address getBusinessAddress()
Gets the business address.
Returns:
the business address
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_STREET, ContactsProperty.WORK_PO_BOX, ContactsProperty.WORK_LOCALITY, ContactsProperty.WORK_REGION, ContactsProperty.WORK_POSTAL_CODE, ContactsProperty.WORK_COUNTRY

setBusinessAddress


public void setBusinessAddress(Address address)
Sets the business address.
Parameters:
address - the business address
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_STREET, ContactsProperty.WORK_PO_BOX, ContactsProperty.WORK_LOCALITY, ContactsProperty.WORK_REGION, ContactsProperty.WORK_POSTAL_CODE, ContactsProperty.WORK_COUNTRY

getBusinessAddressStreet


public java.lang.String getBusinessAddressStreet()
Gets the business address street of this contact.
Returns:
the business address street, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_STREET

setBusinessAddressStreet


public void setBusinessAddressStreet(java.lang.String sStreet)
Gets the business address street of this contact.
Returns:
the business address street
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_STREET

getBusinessAddressPostOfficeBox


public java.lang.String getBusinessAddressPostOfficeBox()
Gets the business address post office box of this contact.
Returns:
the business address post office box, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_PO_BOX

setBusinessAddressPostOfficeBox


public void setBusinessAddressPostOfficeBox(java.lang.String sPostOfficeBox)
Gets the business address post office box of this contact.
Returns:
the business address post office box
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_PO_BOX

getBusinessAddressCity


public java.lang.String getBusinessAddressCity()
Gets the business address city of this contact.
Returns:
the business address city, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_LOCALITY

setBusinessAddressCity


public void setBusinessAddressCity(java.lang.String sLocality)
Gets the business address city of this contact.
Returns:
the business address city
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_LOCALITY

getBusinessAddressStateOrProvince


public java.lang.String getBusinessAddressStateOrProvince()
Gets the business address state or province of this contact.
Returns:
the business address state or province, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_REGION

setBusinessAddressStateOrProvince


public void setBusinessAddressStateOrProvince(java.lang.String sStateOrProvince)
Gets the business address state or province of this contact.
Parameters:
sStateOrProvince - the business address state or province
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_REGION

getBusinessAddressPostalCode


public java.lang.String getBusinessAddressPostalCode()
Gets the business address postal code of this contact.
Returns:
the business address postal code, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_POSTAL_CODE

setBusinessAddressPostalCode


public void setBusinessAddressPostalCode(java.lang.String sPostalCode)
Gets the business address postal code of this contact.
Returns:
the business address postal code
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_POSTAL_CODE

getBusinessAddressCountry


public java.lang.String getBusinessAddressCountry()
Gets the business address country of this contact.
Returns:
the business address country, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_COUNTRY

setBusinessAddressCountry


public void setBusinessAddressCountry(java.lang.String sCountry)
Gets the business address country of this contact.
Returns:
the business address country
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_COUNTRY

getHomeAddress


public Address getHomeAddress()
Gets the home address.
Returns:
the home address
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_STREET, ContactsProperty.HOME_PO_BOX, ContactsProperty.HOME_LOCALITY, ContactsProperty.HOME_REGION, ContactsProperty.HOME_POSTAL_CODE, ContactsProperty.HOME_COUNTRY

setHomeAddress


public void setHomeAddress(Address address)
Sets the home address.
Parameters:
address - the home address
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_STREET, ContactsProperty.HOME_PO_BOX, ContactsProperty.HOME_LOCALITY, ContactsProperty.HOME_REGION, ContactsProperty.HOME_POSTAL_CODE, ContactsProperty.HOME_COUNTRY

getHomeAddressStreet


public java.lang.String getHomeAddressStreet()
Gets the home address street of this contact.
Returns:
the home address street, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_STREET

setHomeAddressStreet


public void setHomeAddressStreet(java.lang.String sStreet)
Gets the home address street of this contact.
Returns:
the home address street
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_STREET

getHomeAddressPostOfficeBox


public java.lang.String getHomeAddressPostOfficeBox()
Gets the home address post office box of this contact.
Returns:
the home address post office box, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_PO_BOX

setHomeAddressPostOfficeBox


public void setHomeAddressPostOfficeBox(java.lang.String sPostOfficeBox)
Gets the home address post office box of this contact.
Returns:
the home address post office box
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_PO_BOX

getHomeAddressCity


public java.lang.String getHomeAddressCity()
Gets the home address city of this contact.
Returns:
the home address city, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_LOCALITY

setHomeAddressCity


public void setHomeAddressCity(java.lang.String sLocality)
Gets the home address city of this contact.
Returns:
the home address city
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_LOCALITY

getHomeAddressStateOrProvince


public java.lang.String getHomeAddressStateOrProvince()
Gets the home address state or province of this contact.
Returns:
the home address state or province, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_REGION

setHomeAddressStateOrProvince


public void setHomeAddressStateOrProvince(java.lang.String sStateOrProvince)
Gets the home address state or province of this contact.
Parameters:
sStateOrProvince - the home address state or province
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_REGION

getHomeAddressPostalCode


public java.lang.String getHomeAddressPostalCode()
Gets the home address postal code of this contact.
Returns:
the home address postal code, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_POSTAL_CODE

setHomeAddressPostalCode


public void setHomeAddressPostalCode(java.lang.String sPostalCode)
Gets the home address postal code of this contact.
Returns:
the home address postal code
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_POSTAL_CODE

getHomeAddressCountry


public java.lang.String getHomeAddressCountry()
Gets the home address country of this contact.
Returns:
the home address country, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_COUNTRY

setHomeAddressCountry


public void setHomeAddressCountry(java.lang.String sCountry)
Gets the home address country of this contact.
Returns:
the home address country
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_COUNTRY

getOtherAddress


public Address getOtherAddress()
Gets the other address.
Returns:
the other address
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_STREET, ContactsProperty.OTHER_PO_BOX, ContactsProperty.OTHER_LOCALITY, ContactsProperty.OTHER_REGION, ContactsProperty.OTHER_POSTAL_CODE, ContactsProperty.OTHER_COUNTRY

setOtherAddress


public void setOtherAddress(Address address)
Sets the other address.
Returns:
the other address
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_STREET, ContactsProperty.OTHER_PO_BOX, ContactsProperty.OTHER_LOCALITY, ContactsProperty.OTHER_REGION, ContactsProperty.OTHER_POSTAL_CODE, ContactsProperty.OTHER_COUNTRY

getOtherAddressStreet


public java.lang.String getOtherAddressStreet()
Gets the other address street of this contact.
Returns:
the other address street, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_STREET

setOtherAddressStreet


public void setOtherAddressStreet(java.lang.String sStreet)
Gets the other address street of this contact.
Returns:
the other address street
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_STREET

getOtherAddressPostOfficeBox


public java.lang.String getOtherAddressPostOfficeBox()
Gets the other address post office box of this contact.
Returns:
the other address post office box, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_PO_BOX

setOtherAddressPostOfficeBox


public void setOtherAddressPostOfficeBox(java.lang.String sPostOfficeBox)
Gets the other address post office box of this contact.
Returns:
the other address post office box
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_PO_BOX

getOtherAddressCity


public java.lang.String getOtherAddressCity()
Gets the other address city of this contact.
Returns:
the other address city, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_LOCALITY

setOtherAddressCity


public void setOtherAddressCity(java.lang.String sLocality)
Gets the other address city of this contact.
Returns:
the other address city
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_LOCALITY

getOtherAddressStateOrProvince


public java.lang.String getOtherAddressStateOrProvince()
Gets the other address state or province of this contact.
Returns:
the other address state or province, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_REGION

setOtherAddressStateOrProvince


public void setOtherAddressStateOrProvince(java.lang.String sStateOrProvince)
Gets the other address state or province of this contact.
Parameters:
sStateOrProvince - the other address state or province
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_REGION

getOtherAddressPostalCode


public java.lang.String getOtherAddressPostalCode()
Gets the other address postal code of this contact.
Returns:
the other address postal code, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_POSTAL_CODE

setOtherAddressPostalCode


public void setOtherAddressPostalCode(java.lang.String sPostalCode)
Gets the other address postal code of this contact.
Returns:
the other address postal code
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_POSTAL_CODE

getOtherAddressCountry


public java.lang.String getOtherAddressCountry()
Gets the other address country of this contact.
Returns:
the other address country, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_COUNTRY

setOtherAddressCountry


public void setOtherAddressCountry(java.lang.String sCountry)
Gets the other address country of this contact.
Returns:
the other address country
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_COUNTRY

setMailingAddressId


public void setMailingAddressId(MailingAddressId mailAddressId)
Sets the mailing address identifier of the address (home, business, other). If no mailing address id is specified, MailingAddressId.BUSINESS_ADDRESS is used as the default value.
Parameters:
mailAddressId - the mailing address identifier
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.MAILING_ADDRESS_ID

getMailingAddressId


public MailingAddressId getMailingAddressId()
Gets the mailing address identifier of the address (home, business, other).
Returns:
the mailing address identifier, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.MAILING_ADDRESS_ID

getMailingAddress


public Address getMailingAddress()
Gets the current mailing address.
Returns:
the mailing address, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used

getBusinessFaxNumber


public java.lang.String getBusinessFaxNumber()
Gets the work facsimile telephone number.
Returns:
the business fax number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_FAX_NUMBER

setBusinessFaxNumber


public void setBusinessFaxNumber(java.lang.String sBusinessFax)
Sets the work facsimile telephone number.
Parameters:
sBusinessFax - the business fax number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_FAX_NUMBER

getBusinessTelephoneNumber


public java.lang.String getBusinessTelephoneNumber()
Gets the work telephone number.
Returns:
the work number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_TELEPHONE_NUMBER

setBusinessTelephoneNumber


public void setBusinessTelephoneNumber(java.lang.String sBusinessPhone)
Sets the work telephone number.
Parameters:
sBusinessPhone - the work number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WORK_TELEPHONE_NUMBER

getCallbackTelephoneNumber


public java.lang.String getCallbackTelephoneNumber()
Gets the callback telephone number.
Returns:
the callback number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.CALLBACK_PHONE

setCallbackTelephoneNumber


public void setCallbackTelephoneNumber(java.lang.String sCallbackPhone)
Sets the callback telephone number.
Parameters:
sCallbackPhone - the callback number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.CALLBACK_PHONE

getBusinessTelephoneNumber2


public java.lang.String getBusinessTelephoneNumber2()
Gets the alternative work telephone number.
Returns:
the alternative work number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ALTERNATIVE_WORK_TELEPHONE_NUMBER

setBusinessTelephoneNumber2


public void setBusinessTelephoneNumber2(java.lang.String sBusinessPhone)
Sets the alternative work telephone number.
Parameters:
sBusinessPhone - the alternative work number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ALTERNATIVE_WORK_TELEPHONE_NUMBER

getHomeTelephoneNumber


public java.lang.String getHomeTelephoneNumber()
Gets the home phone telephone number.
Returns:
the home number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_PHONE

setHomeTelephoneNumber


public void setHomeTelephoneNumber(java.lang.String sHomePhone)
Sets the home telephone number.
Parameters:
sHomePhone - the home number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_PHONE

getHomeTelephoneNumber2


public java.lang.String getHomeTelephoneNumber2()
Gets the alternative home telephone number.
Returns:
the alternative home number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_PHONE2

setHomeTelephoneNumber2


public void setHomeTelephoneNumber2(java.lang.String sHomePhone)
Sets the alternative home telephone number.
Parameters:
sHomePhone - the alternative home number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_PHONE2

getHomeFaxNumber


public java.lang.String getHomeFaxNumber()
Gets the home facsimile (fax) number.
Returns:
the home fax number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_FAX_NUMBER

setHomeFaxNumber


public void setHomeFaxNumber(java.lang.String sHomeFax)
Sets the home facsimile (fax) number.
Parameters:
sHomeFax - the home fax number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_FAX_NUMBER

getMobileTelephoneNumber


public java.lang.String getMobileTelephoneNumber()
Gets the mobile telephone number.
Returns:
the mobile number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.MOBILE_NUMBER

setMobileTelephoneNumber


public void setMobileTelephoneNumber(java.lang.String sMobile)
Sets the mobile telephone number.
Parameters:
sMobile - the mobile number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.MOBILE_NUMBER

getPagerTelephoneNumber


public java.lang.String getPagerTelephoneNumber()
Gets pager telephone number.
Returns:
the pager number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.PAGER_NUMBER

setPagerTelephoneNumber


public void setPagerTelephoneNumber(java.lang.String sPager)
Sets pager telephone number.
Parameters:
sPager - the pager number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.PAGER_NUMBER

getPrimaryOfficeTelephoneNumber


public java.lang.String getPrimaryOfficeTelephoneNumber()
Gets the primary office telephone number.
Returns:
the primary office number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.PRIMARY_OFFICE_NUMBER

setPrimaryOfficeTelephoneNumber


public void setPrimaryOfficeTelephoneNumber(java.lang.String sOfficeTelephoneNumber)
Sets the primary office telephone number.
Parameters:
sOfficeTelephoneNumber - the primary office number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.PRIMARY_OFFICE_NUMBER

getSecondaryOfficeTelephoneNumber


public java.lang.String getSecondaryOfficeTelephoneNumber()
Gets the secondary office telephone number.
Returns:
the secondary office number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.SECONDARY_OFFICE_NUMBER

setSecondaryOfficeTelephoneNumber


public void setSecondaryOfficeTelephoneNumber(java.lang.String sOfficeTelephoneNumber)
Sets the secondary office telephone number.
Parameters:
sOfficeTelephoneNumber - the secondary office number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.SECONDARY_OFFICE_NUMBER

getOtherFaxNumber


public java.lang.String getOtherFaxNumber()
Gets the alternative work FAX number.
Returns:
the alternative fax number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_FAX_NUMBER

setOtherFaxNumber


public void setOtherFaxNumber(java.lang.String sOtherFax)
Sets the alternative work FAX number.
Parameters:
sOtherFax - the alternative fax number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_FAX_NUMBER

getOtherMobileTelephoneNumber


public java.lang.String getOtherMobileTelephoneNumber()
Gets the alternative mobile telephone number.
Returns:
the alternative mobile number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_MOBILE_NUMBER

setOtherMobileTelephoneNumber


public void setOtherMobileTelephoneNumber(java.lang.String sOtherMobile)
Sets the alternative mobile telephone number.
Parameters:
sOtherMobile - the alternative mobile number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_MOBILE_NUMBER

getOtherPagerTelephoneNumber


public java.lang.String getOtherPagerTelephoneNumber()
Gets the alternative pager telephone number.
Returns:
the alternative pager number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_PAGER_NUMBER

setOtherPagerTelephoneNumber


public void setOtherPagerTelephoneNumber(java.lang.String sOtherPager)
Gets the alternative pager telephone number.
Parameters:
sOtherPager - the alternative pager number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_PAGER_NUMBER

getOtherTelephoneNumber


public java.lang.String getOtherTelephoneNumber()
Gets the alternative work telephone number.
Returns:
the alternative work number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_PHONE_NUMBER

setOtherTelephoneNumber


public void setOtherTelephoneNumber(java.lang.String sOtherPhone)
Sets the alternative work telephone.
Parameters:
sOtherPhone - the alternative work number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_PHONE_NUMBER

getTelexNumber


public java.lang.String getTelexNumber()
Gets the work telex number.
Returns:
the work telex number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.TELEX_NUMBER

setTelexNumber


public void setTelexNumber(java.lang.String sTelexNumber)
Sets the work telex number.
Parameters:
sTelexNumber - the work telex number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.TELEX_NUMBER

getTTYTDDNumber


public java.lang.String getTTYTDDNumber()
Gets the ttytdd phone number.
Returns:
the ttyttd number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.TTYTTD_PHONE

setTTYTDDNumber


public void setTTYTDDNumber(java.lang.String sTTYTTDNumber)
Sets the ttytdd phone number.
Parameters:
sTTYTTDNumber - the ttyttd number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.TTYTTD_PHONE

getIsdnNumber


public java.lang.String getIsdnNumber()
Gets the Integrated Services Digital Network (ISDN) number.
Returns:
the ISDN number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INTERNATIONAL_ISDN_NUMBER

setIsdnNumber


public void setIsdnNumber(java.lang.String sIsdn)
Sets the Integrated Services Digital Network (ISDN) number.
Parameters:
sISDN - the ISDN number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.INTERNATIONAL_ISDN_NUMBER

getEmailAddress


public java.lang.String getEmailAddress()
Gets the primary e-mail address of the contact.
Returns:
the primary e-mail address, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.EMAIL1

setEmailAddress


public void setEmailAddress(java.lang.String sEmail)
Sets the primary e-mail address.
Parameters:
sEmail - the primary e-mail address
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.EMAIL1

getEmailDisplayAs


public java.lang.String getEmailDisplayAs()
Gets the "Display Name" field for the primary Email address of a contact.
Returns:
the "Display Name" for the primary email address.

setEmailDisplayAs


public void setEmailDisplayAs(java.lang.String sEmailDisplayAs)
Sets the "Display Name" field for the primary Email address of a contact.
Parameters:
sEmailDisplayAs - the name to use.

getEmail2Address


public java.lang.String getEmail2Address()
Gets the secondary e-mail address.
Returns:
the secondary e-mail address, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.EMAIL2

setEmail2Address


public void setEmail2Address(java.lang.String sEmail)
Sets the secondary e-mail address.
Parameters:
sEmail - the secondary e-mail address
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.EMAIL2

getEmail3Address


public java.lang.String getEmail3Address()
Gets the third e-mail address.
Returns:
the third e-mail address, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.EMAIL3

setEmail3Address


public void setEmail3Address(java.lang.String sEmail)
Sets the third e-mail address.
Parameters:
sEmail - the third e-mail address
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.EMAIL3

getBusinessHomePage


public java.lang.String getBusinessHomePage()
Gets the URL to the home page of this contact's business web site.
Returns:
the URL to the business home page, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.BUSINESS_HOMEPAGE

setBusinessHomePage


public void setBusinessHomePage(java.net.URL businessHomePage)
Sets the URL of the home page of this contact's business Web site.
Parameters:
businessHomePage - the URL to the business home page
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.BUSINESS_HOMEPAGE

setBusinessHomePage


public void setBusinessHomePage(java.lang.String sBusinessHomePage)
Sets the URL of the home page of this contact's business Web site.
Parameters:
sbusinessHomePage - the URL to the business home page
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.BUSINESS_HOMEPAGE

getComputerNetworkName


public java.lang.String getComputerNetworkName()
Gets the computer network name.
Returns:
the computer network name, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.COMPUTER_NETWORK_NAME

setComputerNetworkName


public void setComputerNetworkName(java.lang.String sComputerNetworkName)
Sets the computer network name.
Parameters:
sComputerNetworkName - the computer network name
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.COMPUTER_NETWORK_NAME

getDepartment


public java.lang.String getDepartment()
Gets the name of the department this contact works for.
Returns:
the department, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.DEPARTMENT

setDepartment


public void setDepartment(java.lang.String sDepartment)
Sets the name of the department this contact works for.
Parameters:
sDepartment - the department
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.DEPARTMENT

getEmployeeNumber


public java.lang.String getEmployeeNumber()
Gets the employee number.
Returns:
the employee number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.EMPLOYEE_NUMBER

setEmployeeNumber


public void setEmployeeNumber(java.lang.String sEmployeeNumber)
Sets the employee number.
Parameters:
sEmployeeNumber - the employee number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.EMPLOYEE_NUMBER

getManagerName


public java.lang.String getManagerName()
Gets the name of the manager this contact work under.
Returns:
the manager name, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.MANAGER

setManagerName


public void setManagerName(java.lang.String sManagerName)
Sets the name of the manager this contact works under.
Parameters:
sManagerName - the manager name
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.MANAGER

getOrganizationMainPhone


public java.lang.String getOrganizationMainPhone()
Gets the main telephone number for the company this contact works for.
Returns:
the main organization phone, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ORGANIZATION_MAIN_PHONE

setOrganizationMainPhone


public void setOrganizationMainPhone(java.lang.String sOrganizationMainPhone)
Sets the main telephone number for the company this contact works for.
Parameters:
sOrganizationMainPhone - the main organization phone
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ORGANIZATION_MAIN_PHONE

getJobTitle


public java.lang.String getJobTitle()
Gets the work title or job position of this contact.
Returns:
the work title or job position, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.JOB_TITLE

setJobTitle


public void setJobTitle(java.lang.String sTitle)
Sets the work title or job position of this contact.
Parameters:
sTitle - the work title or job position
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.JOB_TITLE

getProfession


public java.lang.String getProfession()
Gets the profession of this contact.
Returns:
the profession, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.PROFESSION

setProfession


public void setProfession(java.lang.String sProfession)
Sets the profession of this contact.
Parameters:
sProfession - the profession
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.PROFESSION

getRoomNumber


public java.lang.String getRoomNumber()
Gets the room number.
Returns:
the room number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ROOM_NUMBER

setRoomNumber


public void setRoomNumber(java.lang.String sRoomNumber)
Sets the room number.
Parameters:
sRoomNumber - the room number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ROOM_NUMBER

getGender


public Gender getGender()
Gets the gender.
Returns:
the gender, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.GENDER

setGender


public void setGender(Gender gender)
Sets the gender. If no gender is specified, Gender.UNSPECIFIED is used as the default value.
Parameters:
gender - the gender
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.GENDER

getSpouseName


public java.lang.String getSpouseName()
Gets the name of this contact's spouse.
Returns:
the name of the spouse, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.SPOUSE_NAME

setSpouseName


public void setSpouseName(java.lang.String sSpouseName)
Sets the name of this contact's spouse.
Parameters:
sSpouseName - the name of the spouse
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.SPOUSE_NAME

getWeddingAnniversary


public java.util.Date getWeddingAnniversary()
Gets wedding anniversary.
Returns:
the wedding anniversary date, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WEDDING_ANNIVERSARY

setWeddingAnniversary


public void setWeddingAnniversary(java.util.Date anniversary)
Sets wedding anniversary.
Parameters:
anniversary - the wedding anniversary date
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.WEDDING_ANNIVERSARY

getBirthday


public java.util.Date getBirthday()
Gets the birthday.
Returns:
the birthday date, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.BIRTHDAY

setBirthday


public void setBirthday(java.util.Date birthday)
Sets the birthday.
Parameters:
birthday - the birthday date
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.BIRTHDAY

getPersonalHomePage


public java.lang.String getPersonalHomePage()
Gets the URL of the personal home page.
Returns:
the URL to the personal web page, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.PERSONAL_HOMEPAGE

setPersonalHomePage


public void setPersonalHomePage(java.net.URL personalHomePage)
Sets the URL of the personal home page.
Parameters:
personalHomePage - the URL to the personal web page
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.PERSONAL_HOMEPAGE

setPersonalHomePage


public void setPersonalHomePage(java.lang.String sPersonalHomePage)
Sets the URL of the personal home page.
Parameters:
personalHomePage - the URL to the personal web page
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.PERSONAL_HOMEPAGE

getAccount


public java.lang.String getAccount()
Gets the account number for this contact.
Returns:
the account number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ACCOUNT

setAccount


public void setAccount(java.lang.String sAccount)
Sets the account number for this contact.
Parameters:
sAccount - the account number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.ACCOUNT

getBillingInformation


public java.lang.String getBillingInformation()
Gets the billing information.
Returns:
the billing information, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.BILLING_INFORMATION

setBillingInformation


public void setBillingInformation(java.lang.String sBillingInformation)
Sets the billing information.
Parameters:
sBillingInformation - the billing information
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.BILLING_INFORMATION

getCustomerId


public java.lang.String getCustomerId()
Gets the customer id.
Returns:
the customer id, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.CUSTOMER_ID

setCustomerId


public void setCustomerId(java.lang.String sCustomerId)
Sets the customer id.
Parameters:
sCustomerId - the customer id
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.CUSTOMER_ID

getGovernmentId


public java.lang.String getGovernmentId()
Gets the government identifier.
Returns:
the government identifier, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.GOVERNMENT_ID

setGovernmentId


public void setGovernmentId(java.lang.String sGovernmentId)
Sets the government identifier.
Parameters:
sGovernmentId - the government identifier
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.GOVERNMENT_ID

getFtpSite


public java.lang.String getFtpSite()
Gets the URL to the FTP site.
Returns:
the URL to the FTP site, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.FTP_SITE

setFtpSite


public void setFtpSite(java.net.URL ftpSite)
Sets the URL to the FTP site.
Parameters:
ftpSet - the URL to the FTP site
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.FTP_SITE

setFtpSite


public void setFtpSite(java.lang.String sFtpSite)
Sets the URL to the FTP site.
Parameters:
sFtpSite - the URL to the FTP site
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.FTP_SITE

getLocation


public java.lang.String getLocation()
Gets the location.
Returns:
the location, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.LOCATION

setLocation


public void setLocation(java.lang.String sLocation)
Sets the location.
Parameters:
sLocation - the location
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.LOCATION

getSecretaryName


public java.lang.String getSecretaryName()
Gets the name of the secretary.
Returns:
the secretary's name, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.SECRETARY_NAME

setSecretaryName


public void setSecretaryName(java.lang.String sName)
Sets the name of the secretary
Parameters:
sName - the secretary's name
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.SECRETARY_NAME

getSecretaryTelephoneNumber


public java.lang.String getSecretaryTelephoneNumber()
Gets the secretary's telephone number.
Returns:
the secretary's telephone number, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.SECRETARY_PHONE

setSecretaryTelephoneNumber


public void setSecretaryTelephoneNumber(java.lang.String sSecretaryPhone)
Sets the secretary's telephone number.
Parameters:
sSecretaryPhone - the secretary's phone number
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.SECRETARY_PHONE

getReferredBy


public java.lang.String getReferredBy()
Gets the name of the person referred by.
Returns:
the name of person this contact is referred by, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.REFERRED_BY

setReferredBy


public void setReferredBy(java.lang.String sReferredBy)
Sets the name of the person referred by.
Parameters:
sReferredBy - the name of person this contact is referred by
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.REFERRED_BY

getHobbies


public java.lang.String getHobbies()
Gets the hobbies.
Returns:
string listing of the hobbies, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOBBIES

setHobbies


public void setHobbies(java.lang.String sHobbies)
Sets the hobbies.
Parameters:
sHobbies - string listing of the hobbies
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOBBIES

getOtherTimeZone


public java.util.TimeZone getOtherTimeZone()
Gets the alternative work time zone.
Returns:
the alternative work time zone, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_TIMEZONE

setOtherTimeZone


public void setOtherTimeZone(java.util.TimeZone otherTimeZone)
Sets the alternative work time zone.
Parameters:
otherTimeZone - the alternative worktime zone
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.OTHER_TIMEZONE

getHomeTimeZone


public java.util.TimeZone getHomeTimeZone()
Gets the home time zone.
Returns:
the home time zone, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_TIMEZONE

setHomeTimeZone


public void setHomeTimeZone(java.util.TimeZone homeTimeZone)
Sets the home time zone.
Parameters:
homeTimeZone - the home time zone
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_TIMEZONE

getLanguage


public java.lang.String getLanguage()
Gets the language, in ISO639 format, of this contact. For example, english in ISO639 format would be "en".
Returns:
the language, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.LANGUAGE

setLanguage


public void setLanguage(java.lang.String sLanguage)
Sets the language, in ISO639 format, of this contact. For example, english in ISO639 format would be "en"
Parameters:
sLanguage - the language
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.LANGUAGE

getHomeLatitude


public float getHomeLatitude()
Gets the latitude of the home of this contact.
Returns:
the home latitude
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_LATITUDE

setHomeLatitude


public void setHomeLatitude(float fLatitude)
Sets the latitude of the home of this contact.
Parameters:
fLatitude - the home latitude
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_LATITUDE

getHomeLongitude


public float getHomeLongitude()
Gets the longitude of the home of this contact.
Returns:
the home longitude
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_LONGITUDE

setHomeLongitude


public void setHomeLongitude(float fLongitude)
Sets the longitude of the home of this contact.
Parameters:
fLongitude - the home longitude
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.HOME_LONGITUDE

getFileAsId


public FileAsId getFileAsId()
Gets how this contact information is displayed.
Returns:
fileas id mapping, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.FILEAS_ID

setFileAsId


public void setFileAsId(FileAsId fileAsId)
Sets how this contact information is displayed. If no id is specified, FileAsId.MAP_TO_LASTFIRST is used as the default value.
Parameters:
fileAsId - fileas id mapping
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.FILEAS_ID

getFileAs


public java.lang.String getFileAs()
Gets the format in which to display the contact information. Only used if FileAsID set to MAP_TO_NONE.
Returns:
the display format, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.FILEAS

setFileAs


public void setFileAs(java.lang.String sFileAs)
Sets the format in which to display the contact information. Only used if FileAsID set to MAP_TO_NONE.
Parameters:
sFileas - the display format
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.FILEAS

getChildrensNames


public java.lang.String[] getChildrensNames()
Gets the childrens (as in sons and daughters) names of this contact.
Returns:
collection of childrens names, else an empty collection
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.CHILDRENS_NAMES

setChildrensNames


public void setChildrensNames(java.lang.String[] childrensNames)
Sets the childrens (as in sons and daughters) names of this contact.
Parameters:
childrensNames - collection of childrens names
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.CHILDRENS_NAMES

getUserField1


public java.lang.String getUserField1()
Gets the user field 1.
Returns:
the first user field, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.EXTENSION_ATTRIBUTE1

setUserField1


public void setUserField1(java.lang.String sField)
Sets the user field 1.
Parameters:
sField - the first user field
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.EXTENSION_ATTRIBUTE1

getUserField2


public java.lang.String getUserField2()
Gets the user field 2.
Returns:
the second user field, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.EXTENSION_ATTRIBUTE2

setUserField2


public void setUserField2(java.lang.String sField)
Sets the user field 2.
Parameters:
sField - the second user field
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.EXTENSION_ATTRIBUTE2

getUserField3


public java.lang.String getUserField3()
Gets the user field 3.
Returns:
the third user field, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.EXTENSION_ATTRIBUTE3

setUserField3


public void setUserField3(java.lang.String sField)
Sets the user field 3.
Parameters:
sField - the third user field
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.EXTENSION_ATTRIBUTE3

getUserField4


public java.lang.String getUserField4()
Gets the user field 4.
Returns:
the fourth user field, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.EXTENSION_ATTRIBUTE4

setUserField4


public void setUserField4(java.lang.String sField)
Sets the user field 4.
Parameters:
sField - the fourth user field
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.EXTENSION_ATTRIBUTE4

getMileage


public java.lang.String getMileage()
Gets the mileage.
Returns:
the mileage, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.MILEAGE

setMileage


public void setMileage(java.lang.String sMileage)
Sets the mileage.
Parameters:
sMileage - the mileage
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ExchangeProperty.MILEAGE

getFromAddressesString


public java.lang.String getFromAddressesString()
Description copied from class: AbstractMessage
Gets the string representation of a list of from whom the message was sent.
Overrides:
getFromAddressesString in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

getFromAddresses


public java.util.LinkedList getFromAddresses()
Description copied from class: AbstractMessage
Gets the addresses from whom the message was sent.
Overrides:
getFromAddresses in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

setFromAddress


public void setFromAddress(java.lang.String sFromAddress)
Description copied from class: AbstractMessage
Sets the address from whom the message was sent.
Overrides:
setFromAddress in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

setFromAddresses


public void setFromAddresses(java.util.List addresses)
Description copied from class: AbstractMessage
Sets the addresses from whom the message was sent.
Overrides:
setFromAddresses in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

getFrom


public com.compoze.util.mail.InternetAddress[] getFrom()
                                                throws com.compoze.util.mail.AddressException
Gets internet addresses of whom this message was sent.
Overrides:
getFrom in class AbstractMessage
Returns:
array of InternetAddress objects; or null if not set
Throws:
com.compoze.util.mail.AddressException - if parsing of internet addresses fail
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.FROM

setFrom


public void setFrom(java.lang.String sAddressList)
             throws com.compoze.util.mail.AddressException
Sets "From" field with sequence of internet addresses of whom this message was sent.
Overrides:
setFrom in class AbstractMessage
Parameters:
sAddressList - sequence of internet addresses
Throws:
com.compoze.util.mail.AddressException - if parsing of internet addresses fail
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.FROM

setFrom


public void setFrom(com.compoze.util.mail.InternetAddress[] addressesList)
Sets "From" field with internet addresses of whom this message was sent.
Overrides:
setFrom in class AbstractMessage
Parameters:
addressesList - array of InternetAddress objects
Throws:
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.FROM

getToAddressesString


public java.lang.String getToAddressesString()
Description copied from class: AbstractMessage
Gets the string representation of a list of principal (To) addresses.
Overrides:
getToAddressesString in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

getToAddresses


public java.util.LinkedList getToAddresses()
Description copied from class: AbstractMessage
Gets the principal (To) addresses.
Overrides:
getToAddresses in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

setToAddresses


public void setToAddresses(java.util.List addresses)
Description copied from class: AbstractMessage
Sets the principal (To) addresses.
Overrides:
setToAddresses in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

getToRecipients


public com.compoze.util.mail.InternetAddress[] getToRecipients()
                                                        throws com.compoze.util.mail.AddressException
Gets internet addresses of recipients set in the "To" (principal) field.
Overrides:
getToRecipients in class AbstractMessage
Returns:
array of InternetAddress objects; or null if not set
Throws:
com.compoze.util.mail.AddressException - if parsing of internet addresses fail
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.TO

setToRecipients


public void setToRecipients(java.lang.String sAddressList)
                     throws com.compoze.util.mail.AddressException
Sets "To" (principal) field with sequence of recipient's internet addresses.
Overrides:
setToRecipients in class AbstractMessage
Parameters:
sAddressList - sequence of internet addresses
Throws:
com.compoze.util.mail.AddressException - if parsing of internet addresses fail
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.TO

setToRecipients


public void setToRecipients(com.compoze.util.mail.InternetAddress[] addressList)
Sets "To" (principal) field with recipient's internet addresses.
Overrides:
setToRecipients in class AbstractMessage
Parameters:
addressList - array of InternetAddress objects
Throws:
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.TO

getCcAddressesString


public java.lang.String getCcAddressesString()
Description copied from class: AbstractMessage
Gets the string representation of a list of carbon copy (Cc) addresses.
Overrides:
getCcAddressesString in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

getCcAddresses


public java.util.LinkedList getCcAddresses()
Description copied from class: AbstractMessage
Gets the carbon copy (Cc) addresses.
Overrides:
getCcAddresses in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

setCcAddresses


public void setCcAddresses(java.util.List addresses)
Description copied from class: AbstractMessage
Sets the carbon copy (Cc) addresses.
Overrides:
setCcAddresses in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

getCcRecipients


public com.compoze.util.mail.InternetAddress[] getCcRecipients()
                                                        throws com.compoze.util.mail.AddressException
Gets internet addresses of recipients set in the "Cc" (carbon copy) field.
Overrides:
getCcRecipients in class AbstractMessage
Returns:
array of InternetAddress objects; or null if not set
Throws:
com.compoze.util.mail.AddressException - if parsing of internet addresses fail
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.CC

setCcRecipients


public void setCcRecipients(java.lang.String sAddressList)
                     throws com.compoze.util.mail.AddressException
Sets "Cc" (carbon copy) field with sequence of recipient's internet addresses.
Overrides:
setCcRecipients in class AbstractMessage
Parameters:
sAddressList - sequence of internet addresses
Throws:
com.compoze.util.mail.AddressException - if parsing of internet addresses fail
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.CC

setCcRecipients


public void setCcRecipients(com.compoze.util.mail.InternetAddress[] addressesList)
Sets "Cc" (carbon copy) field with recipient's internet addresses.
Overrides:
setCcRecipients in class AbstractMessage
Parameters:
addressesList - array of InternetAddress objects
Throws:
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.CC

getBccAddressesString


public java.lang.String getBccAddressesString()
Description copied from class: AbstractMessage
Gets the string representation of a list of blind carbon copy (Bcc) addresses.
Overrides:
getBccAddressesString in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

getBccAddresses


public java.util.LinkedList getBccAddresses()
Description copied from class: AbstractMessage
Gets the blind carbon copy (Bcc) addresses.
Overrides:
getBccAddresses in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

setBccAddresses


public void setBccAddresses(java.util.List addresses)
Description copied from class: AbstractMessage
Sets the blind carbon copy (Bcc) addresses.
Overrides:
setBccAddresses in class AbstractMessage
Throws:
UnsupportedOperationException - if operation is not supported.

getBccRecipients


public com.compoze.util.mail.InternetAddress[] getBccRecipients()
                                                         throws com.compoze.util.mail.AddressException
Gets internet addresses of recipients set in the "Bcc" (blind carbon copy) field.
Overrides:
getBccRecipients in class AbstractMessage
Returns:
array of InternetAddress objects; or null if not set
Throws:
com.compoze.util.mail.AddressException - if parsing of internet addresses fail
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.BCC

setBccRecipients


public void setBccRecipients(java.lang.String sAddressList)
                      throws com.compoze.util.mail.AddressException
Sets "Bcc" (blind carbon copy) field with sequence of recipient's internet addresses.
Overrides:
setBccRecipients in class AbstractMessage
Parameters:
sAddressList - sequence of internet addresses
Throws:
com.compoze.util.mail.AddressException - if parsing of internet addresses fail
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.BCC

setBccRecipients


public void setBccRecipients(com.compoze.util.mail.InternetAddress[] addressList)
Sets "Bcc" (blind carbon copy) field with recipient's internet addresses.
Overrides:
setBccRecipients in class AbstractMessage
Parameters:
addressList - array of InternetAddress objects
Throws:
UnsupportedOperationException - if operation is not supported.
See Also:
MailHeaderProperty.BCC

isDistributionList


public boolean isDistributionList()
Returns:
true if this contact represents a distribution list

getMemberInfo


public MemberInfo[] getMemberInfo()
                           throws ExchangeException
Returns the distribution list members
Returns:
the members of the distribution list, or null if the contact is not a distribution list.
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
ExchangeException - if there is a problem with the properties needed to return this value

createFilename


protected java.lang.String createFilename(int iIndex)
Composes the filename for this contact.

The filename for this contact is composed of one of the two options:


If neither are set, then the default "Address Card.eml" is used.
Overrides:
createFilename in class AbstractMessage
Parameters:
iIndex - the index to append
Returns:
the filename
See Also:
AbstractItem.createFilename(int)

getCommonName


public java.lang.String getCommonName()
Gets the common name of this contact
Returns:
the common name/display name, or null if not set
Throws:
ExchangeRuntimeException - if this object has been released and can no longer be used
See Also:
ContactsProperty.COMMON_NAME

setCommonName


public void setCommonName(java.lang.String sCommonName)
Sets the common name of a contact.
Parameters:
sCommonName - the common name to set for this contact.
See Also:
ContactsProperty.COMMON_NAME

clone


public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates and returns a copy of this object.
Overrides:
clone in class AbstractMessage
Returns:
a clone of this instance.
Throws:
java.lang.CloneNotSupportedException - if the object's class does not support the Cloneable interface.

toString


public java.lang.String toString()
Returns a string representation of the object.
Overrides:
toString in class AbstractMessage
Returns:
the string representation of the object

getDefaultProperties


public static java.util.List getDefaultProperties()
Gets a list of default properties pertaining to a contact.
Following is the list of properties returned:
Returns:
a list (unmodifiable) of properties.
See Also:
AbstractMessage.getDefaultProperties()

getProperties


public static java.util.List getProperties()
Gets a list of properties pertaining to a contact.
Returns:
a list (unmodifiable) of properties.
See Also:
AbstractMessage.getProperties()

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.