Public Member Functions | |
IMailSender | setCategory (String idCategory) |
IMailSender | setReason (String reason) |
IMailSender | setPool (String pool) |
IMailSender | setFrom (IContact from) |
IMailSender | setRoot (String root) |
IMailSender | addAdministrators () |
IMailSender | addBySyndication (String syndication) |
IMailSender | addByRole (String role) |
IMailSender | addByEntity (Object entity, Object data) |
IMailSender | addByEntity (Object entity, boolean deep, Object data) |
IMailSender | addByEntity (String path, Object data) |
IMailSender | addByEntity (String path, boolean deep, Object data) |
IMailSender | addContact (IContact contact) |
IMailSender | addContacts (Collection< IContact > contacts) |
IMailSender | addAssistant (Assistant assistant) |
IMailSender | addAssistants (AssistantSet assistants) |
IMailSender | addUser (String name, String email) |
IMailSender | addAttachment (File file) |
IMailSender | addAttachments (Collection< File > files) |
IMailSender | addMailAttachments (Collection< MailAttachment > mas) |
IMailSender | onStart (Consumer command) |
IMailSender | onCancel (Consumer command) |
IMailSender | onBuild (Consumer command) |
IMailSender | onFinish (Consumer command) |
AssistantSet | getAssistants () |
void | removeAttachments () |
IMailSender | putIf (Object key, Supplier< Boolean > condition, Supplier value) |
IMailSender | put (Object key, Object value) |
IMailSender | putAll (Map attributes) |
void | send (String subject, String message) |
void | send (NotificationCategory category, String subject, String message) |
void | sendTemplate (String template, String subject) throws EmailException |
void | sendTemplate (Object entity, String template, String subject) throws EmailException |
void | sendTemplate (NotificationCategory category, Object entity, String template, String subject) throws EmailException |
void | silentSendTemplate (String template, String subject) |
void | silentSendTemplate (Object entity, String template, String subject) |
void | silentSendTemplate (NotificationCategory category, Object entity, String template, String subject) |
String | processMacros (IContact contact, String text, boolean web) |
Public Member Functions inherited from org.turro.action.IContactSender< IMailSender > | |
T | addAdministrators () |
T | addByEntity (Object entity, Object data) |
T | addByEntity (Object entity, boolean deep, Object data) |
T | addByEntity (String path, Object data) |
T | addByEntity (String path, boolean deep, Object data) |
T | addByRole (String role) |
T | addBySyndication (String syndication) |
T | addContact (IContact contact) |
T | addContacts (Collection< IContact > contacts) |
T | addAssistant (Assistant assistant) |
T | addAssistants (AssistantSet assistants) |
T | addUser (String name, String email) |
AssistantSet | getAssistants () |
default void | copyFrom (IContactSender sender) |
Public Attributes | |
final AssistantSet | assistants = new AssistantSet() |
Protected Member Functions | |
boolean | isFromValid () |
String | getFromString () |
Map | getAttributes () |
abstract void | doSend (NotificationCategory category, String subject, String message) |
abstract void | doSendTemplate (NotificationCategory category, Object entity, String template, String subject) throws EmailException |
Protected Attributes | |
String | defaultCategory = GenericElephantNotification.SYSTEM_NOTIFICATION |
String | reason |
Set< File > | attachments = new HashSet<>() |
Set< MailAttachment > | mailAttachments = new HashSet<>() |
Consumer | onStart |
IContact | from |
Definition at line 51 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addAdministrators | ( | ) |
Definition at line 107 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addAssistant | ( | Assistant | assistant | ) |
Definition at line 161 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addAssistants | ( | AssistantSet | assistants | ) |
Definition at line 167 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addAttachment | ( | File | file | ) |
Implements org.turro.action.IMailSender.
Definition at line 182 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addAttachments | ( | Collection< File > | files | ) |
Implements org.turro.action.IMailSender.
Definition at line 188 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addByEntity | ( | Object | entity, |
boolean | deep, | ||
Object | data | ||
) |
Definition at line 131 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addByEntity | ( | Object | entity, |
Object | data | ||
) |
IMailSender org.turro.mail.sender.AbstractMailSender.addByEntity | ( | String | path, |
boolean | deep, | ||
Object | data | ||
) |
IMailSender org.turro.mail.sender.AbstractMailSender.addByEntity | ( | String | path, |
Object | data | ||
) |
IMailSender org.turro.mail.sender.AbstractMailSender.addByRole | ( | String | role | ) |
Definition at line 119 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addBySyndication | ( | String | syndication | ) |
Definition at line 113 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addContact | ( | IContact | contact | ) |
Definition at line 149 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addContacts | ( | Collection< IContact > | contacts | ) |
IMailSender org.turro.mail.sender.AbstractMailSender.addMailAttachments | ( | Collection< MailAttachment > | mas | ) |
Implements org.turro.action.IMailSender.
Definition at line 194 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.addUser | ( | String | name, |
String | |||
) |
Definition at line 175 of file AbstractMailSender.java.
|
abstractprotected |
Reimplemented in org.turro.mail.sender.MailQueue, org.turro.mail.sender.MailPool, and org.turro.mail.sender.MailHeavy.
|
abstractprotected |
Reimplemented in org.turro.mail.sender.MailQueue, org.turro.mail.sender.MailPool, and org.turro.mail.sender.MailHeavy.
AssistantSet org.turro.mail.sender.AbstractMailSender.getAssistants | ( | ) |
Definition at line 224 of file AbstractMailSender.java.
|
protected |
Definition at line 257 of file AbstractMailSender.java.
|
protected |
Definition at line 90 of file AbstractMailSender.java.
|
protected |
Definition at line 86 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.onBuild | ( | Consumer | command | ) |
Implements org.turro.action.IMailSender.
Definition at line 212 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.onCancel | ( | Consumer | command | ) |
Implements org.turro.action.IMailSender.
Definition at line 206 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.onFinish | ( | Consumer | command | ) |
Implements org.turro.action.IMailSender.
Definition at line 218 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.onStart | ( | Consumer | command | ) |
Implements org.turro.action.IMailSender.
Definition at line 200 of file AbstractMailSender.java.
String org.turro.mail.sender.AbstractMailSender.processMacros | ( | IContact | contact, |
String | text, | ||
boolean | web | ||
) |
Implements org.turro.action.IMailSender.
Definition at line 328 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.put | ( | Object | key, |
Object | value | ||
) |
Implements org.turro.action.IMailSender.
Definition at line 246 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.putAll | ( | Map | attributes | ) |
Implements org.turro.action.IMailSender.
Definition at line 252 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.putIf | ( | Object | key, |
Supplier< Boolean > | condition, | ||
Supplier | value | ||
) |
Implements org.turro.action.IMailSender.
Definition at line 240 of file AbstractMailSender.java.
void org.turro.mail.sender.AbstractMailSender.removeAttachments | ( | ) |
Implements org.turro.action.IMailSender.
Definition at line 229 of file AbstractMailSender.java.
void org.turro.mail.sender.AbstractMailSender.send | ( | NotificationCategory | category, |
String | subject, | ||
String | message | ||
) |
Implements org.turro.action.IMailSender.
Definition at line 270 of file AbstractMailSender.java.
void org.turro.mail.sender.AbstractMailSender.send | ( | String | subject, |
String | message | ||
) |
Implements org.turro.action.IMailSender.
Definition at line 264 of file AbstractMailSender.java.
void org.turro.mail.sender.AbstractMailSender.sendTemplate | ( | NotificationCategory | category, |
Object | entity, | ||
String | template, | ||
String | subject | ||
) | throws EmailException |
Implements org.turro.action.IMailSender.
Definition at line 291 of file AbstractMailSender.java.
void org.turro.mail.sender.AbstractMailSender.sendTemplate | ( | Object | entity, |
String | template, | ||
String | subject | ||
) | throws EmailException |
Implements org.turro.action.IMailSender.
Definition at line 285 of file AbstractMailSender.java.
void org.turro.mail.sender.AbstractMailSender.sendTemplate | ( | String | template, |
String | subject | ||
) | throws EmailException |
IMailSender org.turro.mail.sender.AbstractMailSender.setCategory | ( | String | idCategory | ) |
Implements org.turro.action.IMailSender.
Definition at line 63 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.setFrom | ( | IContact | from | ) |
Implements org.turro.action.IMailSender.
Definition at line 81 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.setPool | ( | String | pool | ) |
Implements org.turro.action.IMailSender.
Definition at line 75 of file AbstractMailSender.java.
IMailSender org.turro.mail.sender.AbstractMailSender.setReason | ( | String | reason | ) |
IMailSender org.turro.mail.sender.AbstractMailSender.setRoot | ( | String | root | ) |
root | Templates' root on templates-mail/content. Defaults to / and must be prepended with a slash. |
Implements org.turro.action.IMailSender.
Definition at line 101 of file AbstractMailSender.java.
void org.turro.mail.sender.AbstractMailSender.silentSendTemplate | ( | NotificationCategory | category, |
Object | entity, | ||
String | template, | ||
String | subject | ||
) |
Implements org.turro.action.IMailSender.
Definition at line 314 of file AbstractMailSender.java.
void org.turro.mail.sender.AbstractMailSender.silentSendTemplate | ( | Object | entity, |
String | template, | ||
String | subject | ||
) |
Implements org.turro.action.IMailSender.
Definition at line 305 of file AbstractMailSender.java.
void org.turro.mail.sender.AbstractMailSender.silentSendTemplate | ( | String | template, |
String | subject | ||
) |
Implements org.turro.action.IMailSender.
Definition at line 296 of file AbstractMailSender.java.
final AssistantSet org.turro.mail.sender.AbstractMailSender.assistants = new AssistantSet() |
Definition at line 53 of file AbstractMailSender.java.
|
protected |
Definition at line 57 of file AbstractMailSender.java.
|
protected |
Definition at line 55 of file AbstractMailSender.java.
|
protected |
Definition at line 60 of file AbstractMailSender.java.
|
protected |
Definition at line 58 of file AbstractMailSender.java.
|
protected |
Definition at line 59 of file AbstractMailSender.java.
|
protected |
Definition at line 56 of file AbstractMailSender.java.