public class MailRecipients extends Object implements Serializable
| Constructor and Description | 
|---|
MailRecipients(String defaultLanguage)
Create a mail recipients 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addRecipient(javax.mail.Message.RecipientType type,
            javax.mail.Address addresse)
Add the given address to the specified recipient type. 
 | 
void | 
addRecipient(javax.mail.Message.RecipientType type,
            javax.mail.Address addresse,
            String language)
Add the given address to the specified recipient type and mail language. 
 | 
void | 
addRecipients(javax.mail.Message.RecipientType type,
             Collection<? extends javax.mail.Address> addresses)
Add the given addresses to the specified recipient type. 
 | 
void | 
addRecipients(javax.mail.Message.RecipientType type,
             Collection<? extends javax.mail.Address> addresses,
             String language)
Add the given addresses to the specified recipient type and mail language. 
 | 
void | 
addUserRecipient(javax.mail.Message.RecipientType type,
                IUser user)
Add the given user mail to the specified recipient type. 
 | 
void | 
addUserRecipients(javax.mail.Message.RecipientType type,
                 Collection<? extends IUser> users)
Add the given users mails to the specified recipient type. 
 | 
void | 
clearRecipients()
Remove all addresses. 
 | 
List<javax.mail.Address> | 
getAllRecipients(String language)
Get all the addresses for the mail recipient. 
 | 
List<String> | 
getLanguages()
Get all languages for the mail 
 | 
List<javax.mail.Address> | 
getRecipients(javax.mail.Message.RecipientType type)
Get the recipient addresses for the mail. 
 | 
List<javax.mail.Address> | 
getRecipients(javax.mail.Message.RecipientType type,
             String language)
Get the addresses for the mail recipient. 
 | 
public MailRecipients(String defaultLanguage)
defaultLanguage - public void addRecipient(javax.mail.Message.RecipientType type,
                         javax.mail.Address addresse)
type - addresse - public void addRecipients(javax.mail.Message.RecipientType type,
                          Collection<? extends javax.mail.Address> addresses)
type - addresses - public void addRecipient(javax.mail.Message.RecipientType type,
                         javax.mail.Address addresse,
                         String language)
type - addresse - language - public void addRecipients(javax.mail.Message.RecipientType type,
                          Collection<? extends javax.mail.Address> addresses,
                          String language)
type - addresses - language - public void addUserRecipient(javax.mail.Message.RecipientType type,
                             IUser user)
type - : Recipient typeuser - : user mail to addpublic void addUserRecipients(javax.mail.Message.RecipientType type,
                              Collection<? extends IUser> users)
type - users - public void clearRecipients()
public List<javax.mail.Address> getAllRecipients(String language)
language - public List<javax.mail.Address> getRecipients(javax.mail.Message.RecipientType type, String language)
type - : type to extractlanguage - : language to extractpublic List<javax.mail.Address> getRecipients(javax.mail.Message.RecipientType type)
type - Copyright © 2019 Visiativ Software. All rights reserved.