|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ServiceObject
microsoft.exchange.webservices.data.Item
microsoft.exchange.webservices.data.Contact
public class Contact
Represents a contact. Properties available on contacts are defined in the ContactSchema class.
| Constructor Summary | |
|---|---|
|
Contact(ExchangeService service)
Initializes an unsaved local instance of |
protected |
Contact(ItemAttachment parentAttachment)
Initializes a new instance of the |
| Method Summary | |
|---|---|
static Contact |
bind(ExchangeService service,
ItemId id)
Binds to an existing contact and loads its first class properties. |
static Contact |
bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
Binds to an existing contact and loads the specified set of properties. |
String |
getAssistantName()
Gets the contact's assistant name. |
Date |
getBirthday()
Gets the contact's assistant name. |
String |
getBusinessHomePage()
Gets the business home page of the contact. |
StringList |
getChildren()
Gets a list of children for the contact. |
StringList |
getCompanies()
Gets a list of companies for the contact. |
String |
getCompanyName()
Gets the company name of the contact. |
CompleteName |
getCompleteName()
Gets the complete name of the contact. |
FileAttachment |
getContactPictureAttachment()
Retrieves the file attachment that holds the contact's picture. |
ContactSource |
getContactSource()
Gets the source of the contact. |
String |
getDepartment()
Gets the department of the contact. |
String |
getDisplayName()
Gets the display name of the contact. |
EmailAddressDictionary |
getEmailAddresses()
Gets an indexed list of e-mail addresses for the contact. |
String |
getFileAs()
Gets the name under which this contact is filed as. |
FileAsMapping |
getFileAsMapping()
Gets a value indicating how the FileAs property should be automatically calculated. |
String |
getGeneration()
Gets the generation of the contact. |
String |
getGivenName()
Gets the given name of the contact. |
Boolean |
getHasPicture()
Gets a value indicating whether this contact has a picture associated with it. |
ImAddressDictionary |
getImAddresses()
Gets an indexed list of Instant Messaging addresses for the contact. |
String |
getInitials()
Gets the initials of the contact. |
String |
getJobTitle()
Gets the contact's job title. |
String |
getManager()
Gets the name of the contact's manager. |
String |
getMiddleName()
Gets the middle name of the contact. |
String |
getMileage()
Gets the mileage for the contact. |
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version. |
String |
getNickName()
Gets the nick name of the contact. |
String |
getOfficeLocation()
Gets the location of the contact's office. |
PhoneNumberDictionary |
getPhoneNumbers()
Gets an indexed list of phone numbers for the contact. |
PhysicalAddressDictionary |
getPhysicalAddresses()
Gets an indexed list of physical addresses for the contact. |
PhysicalAddressIndex |
getPostalAddressIndex()
Gets the index of the contact's postal address. |
String |
getProfession()
Gets the contact's profession. |
protected ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object. |
String |
getSpouseName()
Gets the name of the contact's spouse. |
String |
getSurname()
Gets the surname of the contact. |
Date |
getWeddingAnniversary()
Gets the date of the contact's wedding anniversary. |
void |
removeContactPicture()
Removes the contact's picture. |
void |
setAssistantName(String value)
Sets the assistant name. |
void |
setBirthday(Date value)
Sets the birthday. |
void |
setBusinessHomePage(String value)
Sets the business home page. |
void |
setChildren(StringList value)
Sets the children. |
void |
setCompanies(StringList value)
Sets the companies. |
void |
setCompanyName(String value)
Sets the company name. |
void |
setContactPicture(byte[] content)
Sets the contact's picture using the specified byte array. |
void |
setContactPicture(InputStream contentStream)
Sets the contact's picture using the specified stream. |
void |
setContactPicture(String fileName)
Sets the contact's picture using the specified file. |
void |
setDepartment(String value)
Sets the department. |
void |
setDisplayName(String value)
Sets the display name. |
void |
setFileAs(FileAsMapping value)
Sets the file as. |
void |
setFileAs(String value)
Sets the file as. |
void |
setGeneration(String value)
Sets the generation. |
void |
setGivenName(String value)
Sets the given name. |
void |
setInitials(String value)
Sets the initials. |
void |
setJobTitle(String value)
Sets the job title. |
void |
setManager(String value)
Sets the manager. |
void |
setMiddleName(String value)
Sets the middle name. |
void |
setMileage(String value)
Sets the mileage. |
void |
setNickName(String value)
Sets the nick name. |
void |
setOfficeLocation(String value)
Sets the office location. |
void |
setPostalAddressIndex(PhysicalAddressIndex value)
Sets the postal address index. |
void |
setProfession(String value)
Sets the profession. |
void |
setSpouseName(String value)
Sets the spouse name. |
void |
setSurname(String value)
Sets the surname. |
void |
setWeddingAnniversary(Date value)
Sets the wedding anniversary. |
protected void |
validate()
Validates this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Contact(ExchangeService service)
throws Exception
service - the service
Exception - the exception
protected Contact(ItemAttachment parentAttachment)
throws Exception
parentAttachment - the parent attachment
Exception - the exception| Method Detail |
|---|
public static Contact bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
throws Exception
service - the serviceid - the idpropertySet - the property set
Exception - the exception
public static Contact bind(ExchangeService service,
ItemId id)
throws Exception
service - the serviceid - the id
Exception - the exceptionprotected ServiceObjectSchema getSchema()
getSchema in class Itemprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion in class Item
public void setContactPicture(byte[] content)
throws Exception
content - the new contact picture
Exception - the exception
public void setContactPicture(InputStream contentStream)
throws Exception
contentStream - the new contact picture
Exception - the exception
public void setContactPicture(String fileName)
throws Exception
fileName - the new contact picture
Exception - the exception
public FileAttachment getContactPictureAttachment()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void removeContactPicture()
throws Exception
Exception - the exception
protected void validate()
throws ServiceVersionException,
Exception
validate in class ItemServiceVersionException - the service version exception
Exception - the exception
public String getFileAs()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setFileAs(String value)
throws Exception
value - the new file as
Exception - the exception
public FileAsMapping getFileAsMapping()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setFileAs(FileAsMapping value)
throws Exception
value - the new file as
Exception - the exception
public String getDisplayName()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setDisplayName(String value)
throws Exception
value - the new display name
Exception - the exception
public String getGivenName()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setGivenName(String value)
throws Exception
value - the new given name
Exception - the exception
public String getInitials()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setInitials(String value)
throws Exception
value - the new initials
Exception - the exception
public String getMiddleName()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setMiddleName(String value)
throws Exception
value - the new middle name
Exception - the exception
public String getNickName()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setNickName(String value)
throws Exception
value - the new nick name
Exception - the exception
public CompleteName getCompleteName()
throws ServiceLocalException
ServiceLocalException - the service local exception
public String getCompanyName()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setCompanyName(String value)
throws Exception
value - the new company name
Exception - the exception
public EmailAddressDictionary getEmailAddresses()
throws ServiceLocalException
ServiceLocalException - the service local exception
public PhysicalAddressDictionary getPhysicalAddresses()
throws ServiceLocalException
ServiceLocalException - the service local exception
public PhoneNumberDictionary getPhoneNumbers()
throws ServiceLocalException
ServiceLocalException - the service local exception
public String getAssistantName()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setAssistantName(String value)
throws Exception
value - the new assistant name
Exception - the exception
public Date getBirthday()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setBirthday(Date value)
throws Exception
value - the new birthday
Exception - the exception
public String getBusinessHomePage()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setBusinessHomePage(String value)
throws Exception
value - the new business home page
Exception - the exception
public StringList getChildren()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setChildren(StringList value)
throws Exception
value - the new children
Exception - the exception
public StringList getCompanies()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setCompanies(StringList value)
throws Exception
value - the new companies
Exception - the exception
public ContactSource getContactSource()
throws ServiceLocalException
ServiceLocalException - the service local exception
public String getDepartment()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setDepartment(String value)
throws Exception
value - the new department
Exception - the exception
public String getGeneration()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setGeneration(String value)
throws Exception
value - the new generation
Exception - the exception
public ImAddressDictionary getImAddresses()
throws ServiceLocalException
ServiceLocalException - the service local exception
public String getJobTitle()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setJobTitle(String value)
throws Exception
value - the new job title
Exception - the exception
public String getManager()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setManager(String value)
throws Exception
value - the new manager
Exception - the exception
public String getMileage()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setMileage(String value)
throws Exception
value - the new mileage
Exception - the exception
public String getOfficeLocation()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setOfficeLocation(String value)
throws Exception
value - the new office location
Exception - the exception
public PhysicalAddressIndex getPostalAddressIndex()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setPostalAddressIndex(PhysicalAddressIndex value)
throws Exception
value - the new postal address index
Exception - the exception
public String getProfession()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setProfession(String value)
throws Exception
value - the new profession
Exception - the exception
public String getSpouseName()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setSpouseName(String value)
throws Exception
value - the new spouse name
Exception - the exception
public String getSurname()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setSurname(String value)
throws Exception
value - the new surname
Exception - the exception
public Date getWeddingAnniversary()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setWeddingAnniversary(Date value)
throws Exception
value - the new wedding anniversary
Exception - the exception
public Boolean getHasPicture()
throws ServiceLocalException
ServiceLocalException - the service local exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||