com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class Contact

    • Constructor Detail

      • Contact

        public Contact()
    • Method Detail

      • getId

        public ObjectIdentifier getId()

        Gets object identification information

      • getGender

        public int getGender()

        Gets or sets gender of a person.

      • setGender

        public void setGender(int value)

        Gets or sets gender of a person.

      • getLocation

        public String getLocation()

        Gets or sets location

      • setLocation

        public void setLocation(String value)

        Gets or sets location

      • getOfficeLocation

        public String getOfficeLocation()

        Gets or sets office location

      • setOfficeLocation

        public void setOfficeLocation(String value)

        Gets or sets office location

      • getFreeBusyLocation

        public 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 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 String getComputerNetworkName()

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

      • setComputerNetworkName

        public void setComputerNetworkName(String value)

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

      • getInitials

        public String getInitials()

        Gets or sets an initials

      • setInitials

        public void setInitials(String value)

        Gets or sets an initials

      • getDisplayNameOrdering

        @Deprecated
        public int getDisplayNameOrdering()
        Deprecated. 

        Defines the order of names for DisplayName in case if DisplayName is not specified manually.

      • setDisplayNameOrdering

        @Deprecated
        public void setDisplayNameOrdering(int value)
        Deprecated. 

        Defines the order of names for DisplayName in case if DisplayName is not specified manually.

      • getDisplayName

        public String getDisplayName()

        Gets or sets a display name

      • setDisplayName

        public void setDisplayName(String value)

        Gets or sets a display name

      • getPrefix

        public String getPrefix()

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

      • setPrefix

        public void setPrefix(String value)

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

      • getGivenName

        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.

      • setGivenName

        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.

      • getMiddleName

        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.

      • setMiddleName

        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.

      • getSurname

        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.

      • setSurname

        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.

      • getSuffix

        public String getSuffix()

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

      • setSuffix

        public void setSuffix(String value)

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

      • getNotes

        public String getNotes()

        Gets or sets a notes

      • setNotes

        public void setNotes(String value)

        Gets or sets a notes

      • getNotesFormat

        public int getNotesFormat()

        Gets or sets a format of a notes field.

      • setNotesFormat

        public void setNotesFormat(int value)

        Gets or sets a format of a notes field.

      • getNickname

        public String getNickname()

        Gets or sets a nickname of a person.

      • setNickname

        public void setNickname(String value)

        Gets or sets a nickname of a person.

      • getPhoto

        public ContactPhoto getPhoto()

        Gets or sets an image of contact

      • setPhoto

        public void setPhoto(ContactPhoto value)

        Gets or sets an image of contact

      • getCompanyName

        public String getCompanyName()

        Gets or sets a company name.

      • setCompanyName

        public void setCompanyName(String value)

        Gets or sets a company name.

      • getProfession

        public String getProfession()

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

      • setProfession

        public void setProfession(String value)

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

      • getJobTitle

        public String getJobTitle()

        Gets or sets a job title.

      • setJobTitle

        public void setJobTitle(String value)

        Gets or sets a job title.

      • getDepartmentName

        public String getDepartmentName()

        Gets or sets a department name.

      • setDepartmentName

        public void setDepartmentName(String value)

        Gets or sets a department name.

      • getFileAs

        public String getFileAs()

        Gets or sets a name used for sorting.

      • setFileAs

        public void setFileAs(String value)

        Gets or sets a name used for sorting.

      • getFileAsMapping

        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.

      • setFileAsMapping

        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.

      • getAccount

        public String getAccount()

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

      • setAccount

        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.

      • getOrganizationalIdNumber

        public String getOrganizationalIdNumber()

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

      • setOrganizationalIdNumber

        public void setOrganizationalIdNumber(String value)

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

      • getCustomerId

        public String getCustomerId()

        Gets or sets a customer id

      • setCustomerId

        public void setCustomerId(String value)

        Gets or sets a customer id

      • getGovernmentIdNumber

        public String getGovernmentIdNumber()

        Gets or sets a government id number

      • setGovernmentIdNumber

        public void setGovernmentIdNumber(String value)

        Gets or sets a government id number

      • getHobbies

        public String getHobbies()

        Gets or sets a hobbies

      • setHobbies

        public void setHobbies(String value)

        Gets or sets a hobbies

      • getLanguage

        public String getLanguage()

        Gets or sets a language

      • setLanguage

        public void setLanguage(String value)

        Gets or sets a language

      • getEmailAddresses

        public EmailAddressList getEmailAddresses()

        Gets list of email addresses

      • getPhysicalAddresses

        public PostalAddressList getPhysicalAddresses()

        Gets list of postal addresses

      • getPhoneNumbers

        public PhoneNumberList getPhoneNumbers()

        Gets list of phone numbers

      • getUrls

        public UrlList getUrls()

        Gets list of urls

      • getEvents

        public EventList getEvents()

        Gets list of events

      • getInstantMessengers

        public InstantMessengerList getInstantMessengers()

        Gets list of instant messenger addresses

      • getAssociatedPersons

        public AssociatedPersonsList getAssociatedPersons()

        Gets list of associated persons

      • to_MapiContact

        public static MapiContact to_MapiContact(Contact contact)

        Converts Contact to MapiContact object

        Parameters:
        contact - Object for conversion
        Returns:
        MapiContact object
      • to_Contact

        public static Contact to_Contact(MapiContact contact)

        Converts MapiContact to Contact object

        Parameters:
        contact - Object for conversion
        Returns:
        Contact object
      • save

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

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

        public void save(OutputStream stream,
                ContactSaveOptions saveOptions)

        Saves this MapiContact to the given stream using specified save options. The supported save options is VCardSaveOptions

        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.