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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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> 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
-
MailRecipients
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
Add the given user mail to the specified recipient type.- Parameters:
type
- : Recipient typeuser
- : 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
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 extractlanguage
- : language to extract- Returns:
-
getRecipients
Get the recipient addresses for the mail.- Parameters:
type
-- Returns:
-
getLanguages
Get all languages for the mail- Returns:
-