18 package org.turro.dossier.issue;
20 import java.net.URLEncoder;
21 import java.util.EnumSet;
22 import java.util.HashMap;
23 import org.apache.commons.mail.EmailException;
24 import org.turro.action.Actions;
25 import org.turro.action.LinkType;
26 import org.turro.action.queue.NotificationCategory;
27 import org.turro.dossier.command.DossierEntityInfo;
28 import org.turro.dossier.db.DossierPU;
29 import org.turro.dossier.entity.Issue;
30 import org.turro.dossier.util.DossierElephantNotification;
31 import org.turro.dossier.workload.WorkloadItem;
32 import org.turro.dossier.workload.WorkloadQuery;
33 import org.turro.dossier.workload.WorkloadSet;
34 import org.turro.dossier.zul.issue.IssueStage;
35 import org.turro.elephant.context.ElephantContext;
36 import org.turro.elephant.context.IConstructor;
37 import org.turro.elephant.security.IUser;
38 import org.turro.i18n.I_;
39 import org.turro.mail.message.MailMessageTemplate;
40 import org.turro.mail.pool.MailMessagePool;
41 import org.turro.mail.provider.MailProviders;
42 import org.turro.mail.queue.QueueManager;
43 import org.turro.marker.ElephantMarker;
44 import org.turro.path.Path;
45 import org.turro.plugin.contacts.IContact;
56 this.contact = contact;
75 em.
put(
"workloadSet", ws);
76 em.
put(
"contact", contact);
78 em.
put(
"notifier",
this);
103 em.
put(
"workloadSet", ws);
104 em.
put(
"contact", contact);
106 em.
put(
"notifier",
this);
108 qm.
addToQueue(nc, contact, mmt,
null,
"Dossier");
114 return create(constructor,
120 return create(constructor, redir,
125 HashMap<String, String> values =
new HashMap<>();
127 values.put(
Actions.REDIR_PAR, URLEncoder.encode(redir,
"UTF-8"));
137 return "{liveref:" + redir +
"}";
static String createAction(String email, String redir)
static final String USER_PAR
static String linkForPath(Path path, IContact contact, LinkType type)
static String getObjectPath(Object object)
MyIssuesNotification(IContact contact)
IssueStage getStage(WorkloadItem item)
String createRef(IConstructor constructor, Issue issue)
String createRef(IConstructor constructor, String redir)
String create(IConstructor constructor, Issue issue, IContact contact)
String create(IConstructor constructor, String redir, String email)
void sendMailTemplate(IConstructor constructor)
void addToQueue(IConstructor constructor)
String create(IConstructor constructor, String redir, IContact contact)
NotificationCategory getCategory(String id)
static IssueStage getStage(WorkloadItem item)
void keep(EnumSet< IssueStage > set)
static String getSiteName()
static String get(String msg)
void setMessage(ElephantMarker marker, IContact contact)
static MailMessageTemplate of(MailProvider provider)
void setRoot(String root)
Email addTo(String email, String name)
void setSubject(String subject)
MailMessage addToPool(String from, String to, String cc, String subject, String message)
MailProvider getProvider()
MailProvider getProvider(String name)
static MailProviders instance()
MailMessagePool getPool(IConstructor constructor, String name)
MailItem addToQueue(NotificationCategory category, IContact contact, MailMessage mmt, String reason, String poolName)
boolean contactMayWant(IContact contact, String idCategory)
Object put(Object key, Object value)
ISSUE_STAGE_DATE_SURPASSED
static final String CONNECTOR_EMAIL