Package com.axemble.vdoc.sdk.structs
Class MailRecipients
java.lang.Object
com.axemble.vdoc.sdk.structs.MailRecipients
- All Implemented Interfaces:
- Serializable
Simple structure representing all addresses for a mail.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRecipient(jakarta.mail.Message.RecipientType type, jakarta.mail.Address addresse) Add the given address to the specified recipient type.voidaddRecipient(jakarta.mail.Message.RecipientType type, jakarta.mail.Address addresse, String language) Add the given address to the specified recipient type and mail language.voidaddRecipients(jakarta.mail.Message.RecipientType type, Collection<? extends jakarta.mail.Address> addresses) Add the given addresses to the specified recipient type.voidaddRecipients(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.voidaddUserRecipient(jakarta.mail.Message.RecipientType type, IUser user) Add the given user mail to the specified recipient type.voidaddUserRecipients(jakarta.mail.Message.RecipientType type, Collection<? extends IUser> users) Add the given users mails to the specified recipient type.voidRemove all addresses.List<jakarta.mail.Address> getAllRecipients(String language) Get all the addresses for the mail recipient.Get all languages for the mailList<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.
- 
Constructor Details- 
MailRecipientsCreate a mail recipients- Parameters:
- defaultLanguage-
 
 
- 
- 
Method Details- 
addRecipientpublic void addRecipient(jakarta.mail.Message.RecipientType type, jakarta.mail.Address addresse) Add the given address to the specified recipient type.- Parameters:
- type-
- addresse-
 
- 
addRecipientspublic 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-
 
- 
addRecipientpublic 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-
 
- 
addRecipientspublic 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-
 
- 
addUserRecipientAdd the given user mail to the specified recipient type.- Parameters:
- type- : Recipient type
- user- : user mail to add
 
- 
addUserRecipientspublic void addUserRecipients(jakarta.mail.Message.RecipientType type, Collection<? extends IUser> users) Add the given users mails to the specified recipient type.- Parameters:
- type-
- users-
 
- 
clearRecipientspublic void clearRecipients()Remove all addresses.
- 
getAllRecipientsGet all the addresses for the mail recipient. Extracts the TO, CC, and BCC recipients- Parameters:
- language-
- Returns:
 
- 
getRecipientspublic 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:
 
- 
getRecipientsGet the recipient addresses for the mail.- Parameters:
- type-
- Returns:
 
- 
getLanguagesGet all languages for the mail- Returns:
 
 
-