|
||||||||
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. |
java.lang.String |
getAlias()
Gets the Alias from the directory |
java.lang.String |
getAssistantName()
Gets the contact's assistant name. |
java.util.Date |
getBirthday()
Gets the contact's assistant name. |
java.lang.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. |
java.lang.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. |
java.lang.String |
getDepartment()
Gets the department of the contact. |
java.lang.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 |
java.lang.String |
getDisplayName()
Gets the display name of the contact. |
EmailAddressDictionary |
getEmailAddresses()
Gets an indexed list of e-mail addresses for the contact. |
java.lang.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. |
java.lang.String |
getGeneration()
Gets the generation of the contact. |
java.lang.String |
getGivenName()
Gets the given name of the contact. |
java.lang.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. |
java.lang.String |
getInitials()
Gets the initials of the contact. |
java.lang.String |
getJobTitle()
Gets the contact's job title. |
java.lang.String |
getManager()
Gets the name of the contact's manager. |
EmailAddress |
getManagerMailbox()
Gets the manager mailbox information |
java.lang.String |
getMiddleName()
Gets the middle name of the contact. |
java.lang.String |
getMileage()
Gets the mileage for the contact. |
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version. |
byte[][] |
getMSExchangeCertificate()
Gets the MSExchange certificate from the directory |
java.lang.String |
getNickName()
Gets the nick name of the contact. |
java.lang.String |
getNotes()
Get the Notes from the directory |
java.lang.String |
getOfficeLocation()
Gets the location of the contact's office. |
PhoneNumberDictionary |
getPhoneNumbers()
Gets an indexed list of phone numbers for the contact. |
java.lang.String |
getPhoneticFirstName()
Gets the funn phonetic name from the directory |
java.lang.String |
getPhoneticFullName()
Gets the funn phonetic name from the directory |
java.lang.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. |
java.lang.String |
getProfession()
Gets the contact's profession. |
protected ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object. |
java.lang.String |
getSpouseName()
Gets the name of the contact's spouse. |
java.lang.String |
getSurname()
Gets the surname of the contact. |
byte[][] |
getUserSMIMECertificate()
Gets the User SMIME certificate from the directory |
java.util.Date |
getWeddingAnniversary()
Gets the date of the contact's wedding anniversary. |
void |
removeContactPicture()
Removes the contact's picture. |
void |
setAssistantName(java.lang.String value)
Sets the assistant name. |
void |
setBirthday(java.util.Date value)
Sets the birthday. |
void |
setBusinessHomePage(java.lang.String value)
Sets the business home page. |
void |
setChildren(StringList value)
Sets the children. |
void |
setCompanies(StringList value)
Sets the companies. |
void |
setCompanyName(java.lang.String value)
Sets the company name. |
void |
setContactPicture(byte[] content)
Sets the contact's picture using the specified byte array. |
void |
setContactPicture(java.io.InputStream contentStream)
Sets the contact's picture using the specified stream. |
void |
setContactPicture(java.lang.String fileName)
Sets the contact's picture using the specified file. |
void |
setDepartment(java.lang.String value)
Sets the department. |
void |
setDisplayName(java.lang.String value)
Sets the display name. |
void |
setFileAs(FileAsMapping value)
Sets the file as. |
void |
setFileAs(java.lang.String value)
Sets the file as. |
void |
setGeneration(java.lang.String value)
Sets the generation. |
void |
setGivenName(java.lang.String value)
Sets the given name. |
void |
setInitials(java.lang.String value)
Sets the initials. |
void |
setJobTitle(java.lang.String value)
Sets the job title. |
void |
setManager(java.lang.String value)
Sets the manager. |
void |
setMiddleName(java.lang.String value)
Sets the middle name. |
void |
setMileage(java.lang.String value)
Sets the mileage. |
void |
setNickName(java.lang.String value)
Sets the nick name. |
void |
setOfficeLocation(java.lang.String value)
Sets the office location. |
void |
setPostalAddressIndex(PhysicalAddressIndex value)
Sets the postal address index. |
void |
setProfession(java.lang.String value)
Sets the profession. |
void |
setSpouseName(java.lang.String value)
Sets the spouse name. |
void |
setSurname(java.lang.String value)
Sets the surname. |
void |
setWeddingAnniversary(java.util.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 java.lang.Exception
service
- the service
java.lang.Exception
- the exceptionprotected Contact(ItemAttachment parentAttachment) throws java.lang.Exception
parentAttachment
- the parent attachment
java.lang.Exception
- the exceptionMethod Detail |
---|
public static Contact bind(ExchangeService service, ItemId id, PropertySet propertySet) throws java.lang.Exception
service
- the serviceid
- the idpropertySet
- the property set
java.lang.Exception
- the exceptionpublic static Contact bind(ExchangeService service, ItemId id) throws java.lang.Exception
service
- the serviceid
- the id
java.lang.Exception
- the exceptionprotected ServiceObjectSchema getSchema()
getSchema
in class Item
protected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class Item
public void setContactPicture(byte[] content) throws java.lang.Exception
content
- the new contact picture
java.lang.Exception
- the exceptionpublic void setContactPicture(java.io.InputStream contentStream) throws java.lang.Exception
contentStream
- the new contact picture
java.lang.Exception
- the exceptionpublic void setContactPicture(java.lang.String fileName) throws java.lang.Exception
fileName
- the new contact picture
java.lang.Exception
- the exceptionpublic FileAttachment getContactPictureAttachment() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void removeContactPicture() throws java.lang.Exception
java.lang.Exception
- the exceptionprotected void validate() throws ServiceVersionException, java.lang.Exception
validate
in class Item
ServiceVersionException
- the service version exception
java.lang.Exception
- the exceptionpublic java.lang.String getFileAs() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setFileAs(java.lang.String value) throws java.lang.Exception
value
- the new file as
java.lang.Exception
- the exceptionpublic FileAsMapping getFileAsMapping() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setFileAs(FileAsMapping value) throws java.lang.Exception
value
- the new file as
java.lang.Exception
- the exceptionpublic java.lang.String getDisplayName() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setDisplayName(java.lang.String value) throws java.lang.Exception
value
- the new display name
java.lang.Exception
- the exceptionpublic java.lang.String getGivenName() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setGivenName(java.lang.String value) throws java.lang.Exception
value
- the new given name
java.lang.Exception
- the exceptionpublic java.lang.String getInitials() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setInitials(java.lang.String value) throws java.lang.Exception
value
- the new initials
java.lang.Exception
- the exceptionpublic java.lang.String getMiddleName() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setMiddleName(java.lang.String value) throws java.lang.Exception
value
- the new middle name
java.lang.Exception
- the exceptionpublic java.lang.String getNickName() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setNickName(java.lang.String value) throws java.lang.Exception
value
- the new nick name
java.lang.Exception
- the exceptionpublic CompleteName getCompleteName() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getCompanyName() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setCompanyName(java.lang.String value) throws java.lang.Exception
value
- the new company name
java.lang.Exception
- the exceptionpublic EmailAddressDictionary getEmailAddresses() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic PhysicalAddressDictionary getPhysicalAddresses() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic PhoneNumberDictionary getPhoneNumbers() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getAssistantName() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setAssistantName(java.lang.String value) throws java.lang.Exception
value
- the new assistant name
java.lang.Exception
- the exceptionpublic java.util.Date getBirthday() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setBirthday(java.util.Date value) throws java.lang.Exception
value
- the new birthday
java.lang.Exception
- the exceptionpublic java.lang.String getBusinessHomePage() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setBusinessHomePage(java.lang.String value) throws java.lang.Exception
value
- the new business home page
java.lang.Exception
- the exceptionpublic StringList getChildren() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setChildren(StringList value) throws java.lang.Exception
value
- the new children
java.lang.Exception
- the exceptionpublic StringList getCompanies() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setCompanies(StringList value) throws java.lang.Exception
value
- the new companies
java.lang.Exception
- the exceptionpublic ContactSource getContactSource() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getDepartment() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setDepartment(java.lang.String value) throws java.lang.Exception
value
- the new department
java.lang.Exception
- the exceptionpublic java.lang.String getGeneration() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setGeneration(java.lang.String value) throws java.lang.Exception
value
- the new generation
java.lang.Exception
- the exceptionpublic ImAddressDictionary getImAddresses() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getJobTitle() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setJobTitle(java.lang.String value) throws java.lang.Exception
value
- the new job title
java.lang.Exception
- the exceptionpublic java.lang.String getManager() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setManager(java.lang.String value) throws java.lang.Exception
value
- the new manager
java.lang.Exception
- the exceptionpublic java.lang.String getMileage() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setMileage(java.lang.String value) throws java.lang.Exception
value
- the new mileage
java.lang.Exception
- the exceptionpublic java.lang.String getOfficeLocation() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setOfficeLocation(java.lang.String value) throws java.lang.Exception
value
- the new office location
java.lang.Exception
- the exceptionpublic PhysicalAddressIndex getPostalAddressIndex() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setPostalAddressIndex(PhysicalAddressIndex value) throws java.lang.Exception
value
- the new postal address index
java.lang.Exception
- the exceptionpublic java.lang.String getProfession() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setProfession(java.lang.String value) throws java.lang.Exception
value
- the new profession
java.lang.Exception
- the exceptionpublic java.lang.String getSpouseName() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setSpouseName(java.lang.String value) throws java.lang.Exception
value
- the new spouse name
java.lang.Exception
- the exceptionpublic java.lang.String getSurname() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setSurname(java.lang.String value) throws java.lang.Exception
value
- the new surname
java.lang.Exception
- the exceptionpublic java.util.Date getWeddingAnniversary() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setWeddingAnniversary(java.util.Date value) throws java.lang.Exception
value
- the new wedding anniversary
java.lang.Exception
- the exceptionpublic java.lang.Boolean getHasPicture() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getPhoneticFullName() throws java.lang.Exception
java.lang.Exception
public java.lang.String getPhoneticFirstName() throws java.lang.Exception
java.lang.Exception
public java.lang.String getPhoneticLastName() throws ServiceLocalException
ServiceLocalException
public java.lang.String getAlias() throws ServiceLocalException
ServiceLocalException
public java.lang.String getNotes() throws ServiceLocalException
ServiceLocalException
public byte[] getDirectoryPhoto() throws ServiceLocalException
ServiceLocalException
public byte[][] getUserSMIMECertificate() throws ServiceLocalException
ServiceLocalException
public byte[][] getMSExchangeCertificate() throws ServiceLocalException
ServiceLocalException
public java.lang.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 |