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
|
int |
getDisplayNameOrdering()
Deprecated.
|
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
MapiContact to the given stream using specified save options. |
void |
save(OutputStream stream,
int saveFormat)
Saves this
MapiContact 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 |
setDisplayNameOrdering(int value)
Deprecated.
|
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 ObjectIdentifier getId()
Gets object identification information
public int getGender()
Gets or sets gender of a person.
public void setGender(int value)
Gets or sets gender of a person.
public String getLocation()
Gets or sets location
public void setLocation(String value)
Gets or sets location
public String getOfficeLocation()
Gets or sets office location
public void setOfficeLocation(String value)
Gets or sets office location
public String getFreeBusyLocation()
Gets or sets URL path from which a client can retrieve free/busy information for the contact as an iCal file
public 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 String getComputerNetworkName()
Gets or sets a name of the mail user's computer network.
public void setComputerNetworkName(String value)
Gets or sets a name of the mail user's computer network.
public Charset getPreferredTextEncoding()
Gets or sets preferred encoding for all text properties
getPreferredTextEncoding
in interface IPreferredTextEncodingProvider
public void setPreferredTextEncoding(Charset value)
Gets or sets preferred encoding for all text properties
setPreferredTextEncoding
in interface IPreferredTextEncodingProvider
value
- the preferred encoding for all text properties.public String getInitials()
Gets or sets an initials
public void setInitials(String value)
Gets or sets an initials
@Deprecated public int getDisplayNameOrdering()
Defines the order of names for DisplayName in case if DisplayName is not specified manually.
@Deprecated public void setDisplayNameOrdering(int value)
Defines the order of names for DisplayName in case if DisplayName is not specified manually.
public String getDisplayName()
Gets or sets a display name
public void setDisplayName(String value)
Gets or sets a display name
public String getPrefix()
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
public void setPrefix(String value)
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
public 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 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 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 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 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 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 String getSuffix()
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
public void setSuffix(String value)
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
public String getNotes()
Gets or sets a notes
public void setNotes(String value)
Gets or sets a notes
public int getNotesFormat()
Gets or sets a format of a notes field.
public void setNotesFormat(int value)
Gets or sets a format of a notes field.
public String getNickname()
Gets or sets a nickname of a person.
public void setNickname(String value)
Gets or sets a nickname of a person.
public ContactPhoto getPhoto()
Gets or sets an image of contact
public void setPhoto(ContactPhoto value)
Gets or sets an image of contact
public String getCompanyName()
Gets or sets a company name.
public void setCompanyName(String value)
Gets or sets a company name.
public String getProfession()
Gets or sets a job position of a person in a company.
public void setProfession(String value)
Gets or sets a job position of a person in a company.
public String getJobTitle()
Gets or sets a job title.
public void setJobTitle(String value)
Gets or sets a job title.
public String getDepartmentName()
Gets or sets a department name.
public void setDepartmentName(String value)
Gets or sets a department name.
public String getFileAs()
Gets or sets a name used for sorting.
public void setFileAs(String value)
Gets or sets a name used for sorting.
public 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 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 String getAccount()
Contains the alias of an Address Book object, which is an alternative name by which the object can be identified.
public 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 String getOrganizationalIdNumber()
Contains an identifier for the mail user used within the mail user's organization.
public void setOrganizationalIdNumber(String value)
Contains an identifier for the mail user used within the mail user's organization.
public String getCustomerId()
Gets or sets a customer id
public void setCustomerId(String value)
Gets or sets a customer id
public String getGovernmentIdNumber()
Gets or sets a government id number
public void setGovernmentIdNumber(String value)
Gets or sets a government id number
public String getHobbies()
Gets or sets a hobbies
public void setHobbies(String value)
Gets or sets a hobbies
public String getLanguage()
Gets or sets a language
public void setLanguage(String value)
Gets or sets a language
public EmailAddressList getEmailAddresses()
Gets list of email addresses
public PostalAddressList getPhysicalAddresses()
Gets list of postal addresses
public PhoneNumberList getPhoneNumbers()
Gets list of phone numbers
public UrlList getUrls()
Gets list of urls
public EventList getEvents()
Gets list of events
public InstantMessengerList getInstantMessengers()
Gets list of instant messenger addresses
public AssociatedPersonsList getAssociatedPersons()
Gets list of associated persons
public 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 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 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 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 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 void save(OutputStream stream, int saveFormat)
Saves this MapiContact
to the given stream with a format using the default options.
The supported save format is vCard
stream
- A stream to save tosaveFormat
- A save formatpublic void save(OutputStream stream, ContactSaveOptions saveOptions)
Saves this MapiContact
to the given stream using specified save options.
The supported save options is VCardSaveOptions
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 formatCopyright (c) 2008-2017 Aspose Pty Ltd. All Rights Reserved.