19 package org.turro.mail.json;
22 import org.turro.action.Contacts;
23 import org.turro.action.IMailSender;
24 import org.turro.action.MailSenders;
25 import org.turro.json.Jsons;
26 import org.turro.string.Strings;
27 import org.turro.util.Nulls;
55 sender.
addContact(Contacts.getContactById(contactId));
57 for(Map.Entry<String, String> user : structure.
getUsers().entrySet()) {
58 sender.
addUser(user.getKey(), user.getValue());
76 this.structure = structure;
static IMailSender getPool()
static IMailSender getQueue()
List< String > getEntityPaths()
Map< String, String > getUsers()
List< String > getContactIds()
boolean isAdministrators()
static JsonMailStructure fromJson(JsonValue value)
static JsonMail from(Jsons structure)
static JsonMail from(JsonMailStructure structure)
IMailSender setCategory(String idCategory)
void send(String subject, String message)