19 package org.turro.dossier.issue;
21 import java.util.Collection;
22 import java.util.logging.Level;
23 import java.util.logging.Logger;
24 import org.turro.collections.parser.ParserException;
25 import org.turro.string.ObjectString;
26 import org.apache.commons.mail.EmailException;
27 import org.turro.action.Contacts;
28 import org.turro.action.queue.QueuePeriod;
29 import org.turro.collections.KeyValueMap;
30 import org.turro.elephant.context.ElephantContext;
31 import org.turro.elephant.entities.db.QueueOptions;
32 import org.turro.i18n.I_;
33 import org.turro.mail.queue.QueueManager;
34 import org.turro.plugin.contacts.ContactList;
35 import org.turro.plugin.contacts.IContact;
36 import org.turro.scheduler.motor.DefaultTask;
46 return I_.
get(
"Web issue notifier");
52 KeyValueMap pars =
new KeyValueMap(
getData());
54 (Long) ObjectString.parseNativeString(pars.get(
"doscat"), Long.class,
true),
55 (Long) ObjectString.parseNativeString(pars.get(
"dossier"), Long.class,
true),
56 (Long) ObjectString.parseNativeString(pars.get(
"days"), Long.class,
true),
59 }
catch (ParserException | EmailException ex) {
66 return "pubcat=;doscat=;dossier=;days=;tmpl=;";
71 Collection<QueueOptions> subs = qm.
getSubcribers(
"/publication/" + category);
void sendMail(IConstructor constructor)
static String logMsg(String msg)
static String get(String msg)
Collection< QueueOptions > getSubcribers(String idCategory)