19 package org.turro.dossier.issue;
21 import java.util.Collection;
22 import org.apache.commons.mail.EmailException;
23 import org.turro.action.Contacts;
24 import org.turro.action.queue.QueuePeriod;
25 import org.turro.collections.KeyValueMap;
26 import org.turro.collections.parser.ParserException;
27 import org.turro.elephant.entities.db.QueueOptions;
28 import org.turro.i18n.I_;
29 import org.turro.log.WebLoggers;
30 import org.turro.mail.queue.QueueManager;
31 import org.turro.plugin.contacts.ContactList;
32 import org.turro.plugin.contacts.IContact;
33 import org.turro.scheduler.task.AbstractTask;
34 import org.turro.string.ObjectString;
45 KeyValueMap pars =
new KeyValueMap(
getSettings().getData());
47 (Long) ObjectString.parseNativeString(pars.get(
"doscat"), Long.class,
true),
48 (Long) ObjectString.parseNativeString(pars.get(
"dossier"), Long.class,
true),
49 (Long) ObjectString.parseNativeString(pars.get(
"days"), Long.class,
true),
52 }
catch (ParserException | EmailException ex) {
64 return I_.
get(
"Web issue notifier");
69 return "pubcat=;doscat=;dossier=;days=;tmpl=;";
74 Collection<QueueOptions> subs = qm.
getSubcribers(
"/publication/" + category);
void sendMail(IConstructor constructor)
static String get(String msg)
static WebLoggers severe(Object entity)
WebLoggers exception(Throwable throwable)
Collection< QueueOptions > getSubcribers(String idCategory)
TaskSettings getSettings()
IConstructor getConstructor()