Class MailRecipients

java.lang.Object
com.axemble.vdoc.sdk.structs.MailRecipients
All Implemented Interfaces:
Serializable

public class MailRecipients extends Object implements Serializable
Simple structure representing all addresses for a mail.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    MailRecipients(String defaultLanguage)
    Create a mail recipients
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRecipient(jakarta.mail.Message.RecipientType type, jakarta.mail.Address addresse)
    Add the given address to the specified recipient type.
    void
    addRecipient(jakarta.mail.Message.RecipientType type, jakarta.mail.Address addresse, String language)
    Add the given address to the specified recipient type and mail language.
    void
    addRecipients(jakarta.mail.Message.RecipientType type, Collection<? extends jakarta.mail.Address> addresses)
    Add the given addresses to the specified recipient type.
    void
    addRecipients(jakarta.mail.Message.RecipientType type, Collection<? extends jakarta.mail.Address> addresses, String language)
    Add the given addresses to the specified recipient type and mail language.
    void
    addUserRecipient(jakarta.mail.Message.RecipientType type, IUser user)
    Add the given user mail to the specified recipient type.
    void
    addUserRecipients(jakarta.mail.Message.RecipientType type, Collection<? extends IUser> users)
    Add the given users mails to the specified recipient type.
    void
    Remove all addresses.
    List<jakarta.mail.Address>
    Get all the addresses for the mail recipient.
    Get all languages for the mail
    List<jakarta.mail.Address>
    getRecipients(jakarta.mail.Message.RecipientType type)
    Get the recipient addresses for the mail.
    List<jakarta.mail.Address>
    getRecipients(jakarta.mail.Message.RecipientType type, String language)
    Get the addresses for the mail recipient.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MailRecipients

      public MailRecipients(String defaultLanguage)
      Create a mail recipients
      Parameters:
      defaultLanguage -
  • Method Details

    • addRecipient

      public void addRecipient(jakarta.mail.Message.RecipientType type, jakarta.mail.Address addresse)
      Add the given address to the specified recipient type.
      Parameters:
      type -
      addresse -
    • addRecipients

      public void addRecipients(jakarta.mail.Message.RecipientType type, Collection<? extends jakarta.mail.Address> addresses)
      Add the given addresses to the specified recipient type.
      Parameters:
      type -
      addresses -
    • addRecipient

      public void addRecipient(jakarta.mail.Message.RecipientType type, jakarta.mail.Address addresse, String language)
      Add the given address to the specified recipient type and mail language.
      Parameters:
      type -
      addresse -
      language -
    • addRecipients

      public void addRecipients(jakarta.mail.Message.RecipientType type, Collection<? extends jakarta.mail.Address> addresses, String language)
      Add the given addresses to the specified recipient type and mail language.
      Parameters:
      type -
      addresses -
      language -
    • addUserRecipient

      public void addUserRecipient(jakarta.mail.Message.RecipientType type, IUser user)
      Add the given user mail to the specified recipient type.
      Parameters:
      type - : Recipient type
      user - : user mail to add
    • addUserRecipients

      public void addUserRecipients(jakarta.mail.Message.RecipientType type, Collection<? extends IUser> users)
      Add the given users mails to the specified recipient type.
      Parameters:
      type -
      users -
    • clearRecipients

      public void clearRecipients()
      Remove all addresses.
    • getAllRecipients

      public List<jakarta.mail.Address> getAllRecipients(String language)
      Get all the addresses for the mail recipient. Extracts the TO, CC, and BCC recipients
      Parameters:
      language -
      Returns:
    • getRecipients

      public List<jakarta.mail.Address> getRecipients(jakarta.mail.Message.RecipientType type, String language)
      Get the addresses for the mail recipient.
      Parameters:
      type - : type to extract
      language - : language to extract
      Returns:
    • getRecipients

      public List<jakarta.mail.Address> getRecipients(jakarta.mail.Message.RecipientType type)
      Get the recipient addresses for the mail.
      Parameters:
      type -
      Returns:
    • getLanguages

      public List<String> getLanguages()
      Get all languages for the mail
      Returns: