public class Contact extends Object implements IPreferredTextEncodingProvider
Represents contact information.
Constructor and Description |
---|
Contact() |
Modifier and Type | Method and Description |
---|---|
String |
getAccount()
Contains the alias of an Address Book object, which is an alternative name by which the object can be identified.
|
AssociatedPersonsList |
getAssociatedPersons()
Gets list of associated persons
|
AttachmentCollection |
getAttachments()
Gets attachments collection
|
String |
getCompanyName()
Gets or sets a company name.
|
String |
getComputerNetworkName()
Gets or sets a name of the mail user's computer network.
|
String |
getCustomerId()
Gets or sets a customer id
|
String |
getDepartmentName()
Gets or sets a department name.
|
String |
getDisplayName()
Gets or sets a display name
|
EmailAddressList |
getEmailAddresses()
Gets list of email addresses
|
EventList |
getEvents()
Gets list of events
|
String |
getFileAs()
Gets or sets a name used for sorting.
|
long |
getFileAsMapping()
Gets or sets a value which specifies how to generate and recompute the value of the FileAs property
when other contact name properties change.
|
String |
getFreeBusyLocation()
Gets or sets URL path from which a client can retrieve free/busy information for the contact as an iCal file
|
int |
getGender()
Gets or sets gender of a person.
|
String |
getGivenName()
Gets or sets a given name that is a part of a person's full name.
|
String |
getGovernmentIdNumber()
Gets or sets a government id number
|
String |
getHobbies()
Gets or sets a hobbies
|
ObjectIdentifier |
getId()
Gets object identification information
|
String |
getInitials()
Gets or sets an initials
|
InstantMessengerList |
getInstantMessengers()
Gets list of instant messenger addresses
|
String |
getJobTitle()
Gets or sets a job title.
|
String |
getLanguage()
Gets or sets a language
|
String |
getLocation()
Gets or sets location
|
String |
getMiddleName()
Gets or sets a middle name that is a part of a person's full name.
|
String |
getNickname()
Gets or sets a nickname of a person.
|
String |
getNotes()
Gets or sets a notes
|
int |
getNotesFormat()
Gets or sets a format of a notes field.
|
String |
getOfficeLocation()
Gets or sets office location
|
String |
getOrganizationalIdNumber()
Contains an identifier for the mail user used within the mail user's organization.
|
PhoneNumberList |
getPhoneNumbers()
Gets list of phone numbers
|
ContactPhoto |
getPhoto()
Gets or sets an image of contact
|
PostalAddressList |
getPhysicalAddresses()
Gets list of postal addresses
|
Charset |
getPreferredTextEncoding()
Gets or sets preferred encoding for all text properties
|
String |
getPrefix()
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
|
String |
getProfession()
Gets or sets a job position of a person in a company.
|
String |
getSuffix()
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
|
String |
getSurname()
Gets or sets a surname that is a part of a person's full name.
|
UrlList |
getUrls()
Gets list of urls
|
static Contact |
load(InputStream stream)
Loads contact data
|
static Contact |
load(InputStream stream,
int format)
Loads contact data
|
static Contact |
load(String filePath)
Loads contact data
|
static Contact |
load(String filePath,
int format)
Loads contact data
|
void |
save(OutputStream stream)
Saves this
MapiContact into the given stream with vCard format. |
void |
save(OutputStream stream,
ContactSaveOptions saveOptions)
Saves this
Contact to the given stream using specified save options. |
void |
save(OutputStream stream,
int saveFormat)
Saves this
Contact to the given stream with a format using the default options. |
void |
save(String filePath)
Saves this
MapiContact to the vCard file with a default options. |
void |
save(String filePath,
ContactSaveOptions saveOptions)
Saves this
MapiContact into file using specified save options. |
void |
save(String filePath,
int saveFormat)
Saves this
MapiContact to the specified file with a format using the default options. |
void |
setAccount(String value)
Contains the alias of an Address Book object, which is an alternative name by which the object can be identified.
|
void |
setCompanyName(String value)
Gets or sets a company name.
|
void |
setComputerNetworkName(String value)
Gets or sets a name of the mail user's computer network.
|
void |
setCustomerId(String value)
Gets or sets a customer id
|
void |
setDepartmentName(String value)
Gets or sets a department name.
|
void |
setDisplayName(String value)
Gets or sets a display name
|
void |
setFileAs(String value)
Gets or sets a name used for sorting.
|
void |
setFileAsMapping(long value)
Gets or sets a value which specifies how to generate and recompute the value of the FileAs property
when other contact name properties change.
|
void |
setFreeBusyLocation(String value)
Gets or sets URL path from which a client can retrieve free/busy information for the contact as an iCal file
|
void |
setGender(int value)
Gets or sets gender of a person.
|
void |
setGivenName(String value)
Gets or sets a given name that is a part of a person's full name.
|
void |
setGovernmentIdNumber(String value)
Gets or sets a government id number
|
void |
setHobbies(String value)
Gets or sets a hobbies
|
void |
setInitials(String value)
Gets or sets an initials
|
void |
setJobTitle(String value)
Gets or sets a job title.
|
void |
setLanguage(String value)
Gets or sets a language
|
void |
setLocation(String value)
Gets or sets location
|
void |
setMiddleName(String value)
Gets or sets a middle name that is a part of a person's full name.
|
void |
setNickname(String value)
Gets or sets a nickname of a person.
|
void |
setNotes(String value)
Gets or sets a notes
|
void |
setNotesFormat(int value)
Gets or sets a format of a notes field.
|
void |
setOfficeLocation(String value)
Gets or sets office location
|
void |
setOrganizationalIdNumber(String value)
Contains an identifier for the mail user used within the mail user's organization.
|
void |
setPhoto(ContactPhoto value)
Gets or sets an image of contact
|
void |
setPreferredTextEncoding(Charset value)
Gets or sets preferred encoding for all text properties
|
void |
setPrefix(String value)
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
|
void |
setProfession(String value)
Gets or sets a job position of a person in a company.
|
void |
setSuffix(String value)
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
|
void |
setSurname(String value)
Gets or sets a surname that is a part of a person's full name.
|
static Contact |
to_Contact(MapiContact contact)
Converts
MapiContact to Contact object |
static MapiContact |
to_MapiContact(Contact contact)
Converts
Contact to MapiContact object |
String |
toString()
Returns a string that represents the current object.
|
public final ObjectIdentifier getId()
Gets object identification information
public final int getGender()
Gets or sets gender of a person.
public final void setGender(int value)
Gets or sets gender of a person.
public final String getLocation()
Gets or sets location
public final void setLocation(String value)
Gets or sets location
public final String getOfficeLocation()
Gets or sets office location
public final void setOfficeLocation(String value)
Gets or sets office location
public final String getFreeBusyLocation()
Gets or sets URL path from which a client can retrieve free/busy information for the contact as an iCal file
public final void setFreeBusyLocation(String value)
Gets or sets URL path from which a client can retrieve free/busy information for the contact as an iCal file
public final String getComputerNetworkName()
Gets or sets a name of the mail user's computer network.
public final void setComputerNetworkName(String value)
Gets or sets a name of the mail user's computer network.
public final Charset getPreferredTextEncoding()
Gets or sets preferred encoding for all text properties
getPreferredTextEncoding
in interface IPreferredTextEncodingProvider
public final void setPreferredTextEncoding(Charset value)
Gets or sets preferred encoding for all text properties
setPreferredTextEncoding
in interface IPreferredTextEncodingProvider
public final String getInitials()
Gets or sets an initials
public final void setInitials(String value)
Gets or sets an initials
public final String getDisplayName()
Gets or sets a display name
public final void setDisplayName(String value)
Gets or sets a display name
public final String getPrefix()
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
public final void setPrefix(String value)
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
public final String getGivenName()
Gets or sets a given name that is a part of a person's full name. A given name is also known as a personal name, first name, forename, or Christian name.
public final void setGivenName(String value)
Gets or sets a given name that is a part of a person's full name. A given name is also known as a personal name, first name, forename, or Christian name.
public final String getMiddleName()
Gets or sets a middle name that is a part of a person's full name. In some countries people have an additional (middle) name.
public final void setMiddleName(String value)
Gets or sets a middle name that is a part of a person's full name. In some countries people have an additional (middle) name.
public final String getSurname()
Gets or sets a surname that is a part of a person's full name. Surname is also known as family name or last name.
public final void setSurname(String value)
Gets or sets a surname that is a part of a person's full name. Surname is also known as family name or last name.
public final String getSuffix()
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
public final void setSuffix(String value)
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
public final String getNotes()
Gets or sets a notes
public final void setNotes(String value)
Gets or sets a notes
public final int getNotesFormat()
Gets or sets a format of a notes field.
public final void setNotesFormat(int value)
Gets or sets a format of a notes field.
public final String getNickname()
Gets or sets a nickname of a person.
public final void setNickname(String value)
Gets or sets a nickname of a person.
public final ContactPhoto getPhoto()
Gets or sets an image of contact
public final void setPhoto(ContactPhoto value)
Gets or sets an image of contact
public final String getCompanyName()
Gets or sets a company name.
public final void setCompanyName(String value)
Gets or sets a company name.
public final String getProfession()
Gets or sets a job position of a person in a company.
public final void setProfession(String value)
Gets or sets a job position of a person in a company.
public final String getJobTitle()
Gets or sets a job title.
public final void setJobTitle(String value)
Gets or sets a job title.
public final String getDepartmentName()
Gets or sets a department name.
public final void setDepartmentName(String value)
Gets or sets a department name.
public final String getFileAs()
Gets or sets a name used for sorting.
public final void setFileAs(String value)
Gets or sets a name used for sorting.
public final long getFileAsMapping()
Gets or sets a value which specifies how to generate and recompute the value of the FileAs property when other contact name properties change.
public final void setFileAsMapping(long value)
Gets or sets a value which specifies how to generate and recompute the value of the FileAs property when other contact name properties change.
public final String getAccount()
Contains the alias of an Address Book object, which is an alternative name by which the object can be identified.
public final void setAccount(String value)
Contains the alias of an Address Book object, which is an alternative name by which the object can be identified.
public final String getOrganizationalIdNumber()
Contains an identifier for the mail user used within the mail user's organization.
public final void setOrganizationalIdNumber(String value)
Contains an identifier for the mail user used within the mail user's organization.
public final String getCustomerId()
Gets or sets a customer id
public final void setCustomerId(String value)
Gets or sets a customer id
public final String getGovernmentIdNumber()
Gets or sets a government id number
public final void setGovernmentIdNumber(String value)
Gets or sets a government id number
public final String getHobbies()
Gets or sets a hobbies
public final void setHobbies(String value)
Gets or sets a hobbies
public final String getLanguage()
Gets or sets a language
public final void setLanguage(String value)
Gets or sets a language
public final EmailAddressList getEmailAddresses()
Gets list of email addresses
public final PostalAddressList getPhysicalAddresses()
Gets list of postal addresses
public final PhoneNumberList getPhoneNumbers()
Gets list of phone numbers
public final UrlList getUrls()
Gets list of urls
public final EventList getEvents()
Gets list of events
public final InstantMessengerList getInstantMessengers()
Gets list of instant messenger addresses
public final AssociatedPersonsList getAssociatedPersons()
Gets list of associated persons
public final AttachmentCollection getAttachments()
Gets attachments collection
public static MapiContact to_MapiContact(Contact contact)
Converts Contact
to MapiContact
object
contact
- Object for conversionMapiContact
objectpublic static Contact to_Contact(MapiContact contact)
Converts MapiContact
to Contact
object
contact
- Object for conversionContact
objectpublic final void save(OutputStream stream)
Saves this MapiContact
into the given stream with vCard format.
The supported vCard version is 2.1
stream
- A stream to save tocom.aspose.ms.System.ArgumentNullException
- stream
is null
com.aspose.ms.System.NotSupportedException
- stream
does not support writingpublic final void save(String filePath)
Saves this MapiContact
to the vCard file with a default options.
The supported vCard version is 2.1
filePath
- A vCard file namecom.aspose.ms.System.ArgumentException
- filePath
is null
or empty
public final void save(String filePath, ContactSaveOptions saveOptions)
Saves this MapiContact
into file using specified save options.
The supported save options is VCardSaveOptions
filePath
- A vCard file namesaveOptions
- A save optionscom.aspose.ms.System.ArgumentException
- filePath
is null
or empty
com.aspose.ms.System.ArgumentNullException
- saveOptions
is null
com.aspose.ms.System.NotSupportedException
- some save option is not supportedpublic final void save(String filePath, int saveFormat)
Saves this MapiContact
to the specified file with a format using the default options.
The supported save format is vCard.
filePath
- A vCard file namesaveFormat
- A save formatpublic final void save(OutputStream stream, int saveFormat)
Saves this Contact
to the given stream with a format using the default options.
stream
- A stream to save tosaveFormat
- A save formatpublic final void save(OutputStream stream, ContactSaveOptions saveOptions)
Saves this Contact
to the given stream using specified save options.
stream
- A stream to save tosaveOptions
- A save optionspublic static Contact load(String filePath)
Loads contact data
filePath
- file pathpublic static Contact load(String filePath, int format)
Loads contact data
filePath
- file pathformat
- Represents contact formatpublic static Contact load(InputStream stream)
Loads contact data
stream
- Contact streampublic static Contact load(InputStream stream, int format)
Loads contact data
stream
- Contact streamformat
- Represents contact format