|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.core.service.ServiceObject
microsoft.exchange.webservices.data.core.service.item.Item
microsoft.exchange.webservices.data.core.service.item.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 Contact. |
|
Contact(ItemAttachment parentAttachment)
Initializes a new instance of the Contact class. |
|
| Method Summary | |
|---|---|
static Contact |
bind(ExchangeService service,
ItemId id)
Binds to an existing contact and loads its first class property. |
static Contact |
bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
Binds to an existing contact and loads the specified set of property. |
String |
getAlias()
Gets the Alias from the directory |
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 |
getDirectoryId()
Gets the DirectoryID as Guid or DN string |
byte[] |
getDirectoryPhoto()
Gets the Photo from the directory |
EmailAddressCollection |
getDirectReports()
Get the direct reports mailbox information |
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. |
EmailAddress |
getManagerMailbox()
Gets the manager mailbox information |
String |
getMiddleName()
Gets the middle name of the contact. |
String |
getMileage()
Gets the mileage for the contact. |
ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version. |
byte[][] |
getMSExchangeCertificate()
Gets the MSExchange certificate from the directory |
String |
getNickName()
Gets the nick name of the contact. |
String |
getNotes()
Get the Notes from the directory |
String |
getOfficeLocation()
Gets the location of the contact's office. |
PhoneNumberDictionary |
getPhoneNumbers()
Gets an indexed list of phone numbers for the contact. |
String |
getPhoneticFirstName()
Gets the funn phonetic name from the directory |
String |
getPhoneticFullName()
Gets the funn phonetic name from the directory |
String |
getPhoneticLastName()
Gets the phonetic last name from the directory |
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. |
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. |
byte[][] |
getUserSMIMECertificate()
Gets the User SMIME certificate from the directory |
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. |
void |
validate()
Validates this instance. |
| Methods inherited from class microsoft.exchange.webservices.data.core.service.ServiceObject |
|---|
addServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getChangeXmlElementName, getDeleteFieldXmlElementName, getIsCustomDateTimeScopingRequired, getLoadedPropertyDefinitions, getObjectFromPropertyDefinition, getPropertyBag, getService, getSetFieldXmlElementName, getXmlElementName, getXmlElementNameOverride, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, writeToXml, writeToXmlForUpdate |
| 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
Contact.
To bind to an existing contact, use Contact.Bind() instead.
service - the service
Exception - the exception
public Contact(ItemAttachment parentAttachment)
throws Exception
Contact class.
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 exceptionpublic ServiceObjectSchema getSchema()
getSchema in class Itempublic 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
public 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
public String getPhoneticFullName()
throws Exception
Exception
public String getPhoneticFirstName()
throws Exception
Exception
public String getPhoneticLastName()
throws ServiceLocalException
ServiceLocalException
public String getAlias()
throws ServiceLocalException
ServiceLocalException
public String getNotes()
throws ServiceLocalException
ServiceLocalException
public byte[] getDirectoryPhoto()
throws ServiceLocalException
ServiceLocalException
public byte[][] getUserSMIMECertificate()
throws ServiceLocalException
ServiceLocalException
public byte[][] getMSExchangeCertificate()
throws ServiceLocalException
ServiceLocalException
public String getDirectoryId()
throws ServiceLocalException
ServiceLocalException
public EmailAddress getManagerMailbox()
throws ServiceLocalException
ServiceLocalException
public EmailAddressCollection getDirectReports()
throws ServiceLocalException
ServiceLocalException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||