com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class Contact

    • Constructor Detail

      • Contact

        public Contact()
    • Method Detail

      • getId

        public final ObjectIdentifier getId()

        Gets object identification information

      • getGender

        public final int getGender()

        Gets or sets gender of a person.

      • setGender

        public final void setGender(int value)

        Gets or sets gender of a person.

      • getLocation

        public final String getLocation()

        Gets or sets location

      • setLocation

        public final void setLocation(String value)

        Gets or sets location

      • getOfficeLocation

        public final String getOfficeLocation()

        Gets or sets office location

      • setOfficeLocation

        public final void setOfficeLocation(String value)

        Gets or sets office location

      • getFreeBusyLocation

        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

      • setFreeBusyLocation

        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

      • getComputerNetworkName

        public final String getComputerNetworkName()

        Gets or sets a name of the mail user's computer network.

      • setComputerNetworkName

        public final void setComputerNetworkName(String value)

        Gets or sets a name of the mail user's computer network.

      • getInitials

        public final String getInitials()

        Gets or sets an initials

      • setInitials

        public final void setInitials(String value)

        Gets or sets an initials

      • getDisplayName

        public final String getDisplayName()

        Gets or sets a display name

      • setDisplayName

        public final void setDisplayName(String value)

        Gets or sets a display name

      • getPrefix

        public final String getPrefix()

        Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.

      • setPrefix

        public final void setPrefix(String value)

        Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.

      • getGivenName

        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.

      • setGivenName

        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.

      • getMiddleName

        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.

      • setMiddleName

        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.

      • getSurname

        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.

      • setSurname

        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.

      • getSuffix

        public final String getSuffix()

        Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.

      • setSuffix

        public final void setSuffix(String value)

        Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.

      • getNotes

        public final String getNotes()

        Gets or sets a notes

      • setNotes

        public final void setNotes(String value)

        Gets or sets a notes

      • getNotesFormat

        public final int getNotesFormat()

        Gets or sets a format of a notes field.

      • setNotesFormat

        public final void setNotesFormat(int value)

        Gets or sets a format of a notes field.

      • getNickname

        public final String getNickname()

        Gets or sets a nickname of a person.

      • setNickname

        public final void setNickname(String value)

        Gets or sets a nickname of a person.

      • getPhoto

        public final ContactPhoto getPhoto()

        Gets or sets an image of contact

      • setPhoto

        public final void setPhoto(ContactPhoto value)

        Gets or sets an image of contact

      • getCompanyName

        public final String getCompanyName()

        Gets or sets a company name.

      • setCompanyName

        public final void setCompanyName(String value)

        Gets or sets a company name.

      • getProfession

        public final String getProfession()

        Gets or sets a job position of a person in a company.

      • setProfession

        public final void setProfession(String value)

        Gets or sets a job position of a person in a company.

      • getJobTitle

        public final String getJobTitle()

        Gets or sets a job title.

      • setJobTitle

        public final void setJobTitle(String value)

        Gets or sets a job title.

      • getDepartmentName

        public final String getDepartmentName()

        Gets or sets a department name.

      • setDepartmentName

        public final void setDepartmentName(String value)

        Gets or sets a department name.

      • getFileAs

        public final String getFileAs()

        Gets or sets a name used for sorting.

      • setFileAs

        public final void setFileAs(String value)

        Gets or sets a name used for sorting.

      • getFileAsMapping

        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.

      • setFileAsMapping

        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.

      • getAccount

        public final String getAccount()

        Contains the alias of an Address Book object, which is an alternative name by which the object can be identified.

      • setAccount

        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.

      • getOrganizationalIdNumber

        public final String getOrganizationalIdNumber()

        Contains an identifier for the mail user used within the mail user's organization.

      • setOrganizationalIdNumber

        public final void setOrganizationalIdNumber(String value)

        Contains an identifier for the mail user used within the mail user's organization.

      • getCustomerId

        public final String getCustomerId()

        Gets or sets a customer id

      • setCustomerId

        public final void setCustomerId(String value)

        Gets or sets a customer id

      • getGovernmentIdNumber

        public final String getGovernmentIdNumber()

        Gets or sets a government id number

      • setGovernmentIdNumber

        public final void setGovernmentIdNumber(String value)

        Gets or sets a government id number

      • getHobbies

        public final String getHobbies()

        Gets or sets a hobbies

      • setHobbies

        public final void setHobbies(String value)

        Gets or sets a hobbies

      • getLanguage

        public final String getLanguage()

        Gets or sets a language

      • setLanguage

        public final void setLanguage(String value)

        Gets or sets a language

      • getEmailAddresses

        public final EmailAddressList getEmailAddresses()

        Gets list of email addresses

      • getPhysicalAddresses

        public final PostalAddressList getPhysicalAddresses()

        Gets list of postal addresses

      • getPhoneNumbers

        public final PhoneNumberList getPhoneNumbers()

        Gets list of phone numbers

      • getUrls

        public final UrlList getUrls()

        Gets list of urls

      • getEvents

        public final EventList getEvents()

        Gets list of events

      • getInstantMessengers

        public final InstantMessengerList getInstantMessengers()

        Gets list of instant messenger addresses

      • getAssociatedPersons

        public final AssociatedPersonsList getAssociatedPersons()

        Gets list of associated persons

      • save

        public final void save(OutputStream stream)

        Saves this MapiContact into the given stream with vCard format. The supported vCard version is 2.1

        Parameters:
        stream - A stream to save to
        Throws:
        com.aspose.ms.System.ArgumentNullException - stream is null
        com.aspose.ms.System.NotSupportedException - stream does not support writing
      • save

        public final void save(String filePath)

        Saves this MapiContact to the vCard file with a default options. The supported vCard version is 2.1

        Parameters:
        filePath - A vCard file name
        Throws:
        com.aspose.ms.System.ArgumentException - filePath is null or empty
      • save

        public final void save(String filePath,
                ContactSaveOptions saveOptions)

        Saves this MapiContact into file using specified save options. The supported save options is VCardSaveOptions

        Parameters:
        filePath - A vCard file name
        saveOptions - A save options
        Throws:
        com.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 supported
      • save

        public 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.

        Parameters:
        filePath - A vCard file name
        saveFormat - A save format
      • save

        public final void save(OutputStream stream,
                int saveFormat)

        Saves this Contact to the given stream with a format using the default options.

        Parameters:
        stream - A stream to save to
        saveFormat - A save format
      • save

        public final void save(OutputStream stream,
                ContactSaveOptions saveOptions)

        Saves this Contact to the given stream using specified save options.

        Parameters:
        stream - A stream to save to
        saveOptions - A save options
      • load

        public static Contact load(String filePath)

        Loads contact data

        Parameters:
        filePath - file path
        Returns:
        Returns contact object
      • load

        public static Contact load(String filePath,
                   int format)

        Loads contact data

        Parameters:
        filePath - file path
        format - Represents contact format
        Returns:
        Returns contact object
      • load

        public static Contact load(InputStream stream)

        Loads contact data

        Parameters:
        stream - Contact stream
        Returns:
        Returns contact object
      • load

        public static Contact load(InputStream stream,
                   int format)

        Loads contact data

        Parameters:
        stream - Contact stream
        format - Represents contact format
        Returns:
        Returns contact object
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the current object.