◆ MyIssuesNotification()
org.turro.dossier.issue.MyIssuesNotification.MyIssuesNotification |
( |
IContact |
contact | ) |
|
◆ addToQueue()
void org.turro.dossier.issue.MyIssuesNotification.addToQueue |
( |
IConstructor |
constructor | ) |
throws EmailException |
Definition at line 86 of file MyIssuesNotification.java.
87 QueueManager qm =
new QueueManager();
88 NotificationCategory nc =
new DossierElephantNotification().getCategory(DossierElephantNotification.MY_ISSUES_NOTIFICATION);
89 if(qm.contactMayWant(contact, nc.getIdCategory())) {
90 WorkloadQuery wq =
new WorkloadQuery(contact);
91 WorkloadSet ws = wq.getResults();
93 IssueStage.ISSUE_STAGE_WORKSHEET,
94 IssueStage.ISSUE_STAGE_DATE_SURPASSED,
95 IssueStage.ISSUE_STAGE_UNRELATED,
96 IssueStage.ISSUE_STAGE_TO_DO));
98 MailMessageTemplate mmt = MailMessageTemplate.of(MailProviders.instance().getProvider(
"Dossier"));
99 mmt.setRoot(
"/issues");
100 mmt.setSubject(getSubject(constructor));
102 ElephantMarker em =
new ElephantMarker(constructor,
true);
103 em.put(
"workloadSet", ws);
104 em.put(
"contact", contact);
105 em.put(
"email", contact.
getConnector(IUser.CONNECTOR_EMAIL));
106 em.put(
"notifier",
this);
107 mmt.setMessage(em,
"myissues", contact);
108 qm.addToQueue(nc, contact, mmt,
null,
"Dossier");
◆ create() [1/3]
String org.turro.dossier.issue.MyIssuesNotification.create |
( |
IConstructor |
constructor, |
|
|
Issue |
issue, |
|
|
IContact |
contact |
|
) |
| throws Exception |
Definition at line 113 of file MyIssuesNotification.java.
114 return create(constructor,
115 DossierEntityInfo.linkForPath(
new Path(DossierPU.getObjectPath(issue)), contact, LinkType.WEB_INTERNAL),
String create(IConstructor constructor, Issue issue, IContact contact)
◆ create() [2/3]
String org.turro.dossier.issue.MyIssuesNotification.create |
( |
IConstructor |
constructor, |
|
|
String |
redir, |
|
|
IContact |
contact |
|
) |
| throws Exception |
◆ create() [3/3]
String org.turro.dossier.issue.MyIssuesNotification.create |
( |
IConstructor |
constructor, |
|
|
String |
redir, |
|
|
String |
email |
|
) |
| throws Exception |
Definition at line 124 of file MyIssuesNotification.java.
125 HashMap<String, String> values =
new HashMap<>();
126 values.put(Actions.USER_PAR, email);
127 values.put(Actions.REDIR_PAR, URLEncoder.encode(redir,
"UTF-8"));
128 return Actions.createAction(values, 7,
false);
◆ createRef() [1/2]
String org.turro.dossier.issue.MyIssuesNotification.createRef |
( |
IConstructor |
constructor, |
|
|
Issue |
issue |
|
) |
| throws Exception |
Definition at line 131 of file MyIssuesNotification.java.
133 DossierEntityInfo.linkForPath(
new Path(DossierPU.getObjectPath(issue)), contact, LinkType.WEB_INTERNAL));
String createRef(IConstructor constructor, Issue issue)
◆ createRef() [2/2]
String org.turro.dossier.issue.MyIssuesNotification.createRef |
( |
IConstructor |
constructor, |
|
|
String |
redir |
|
) |
| throws Exception |
◆ getStage()
◆ sendMailTemplate()
void org.turro.dossier.issue.MyIssuesNotification.sendMailTemplate |
( |
IConstructor |
constructor | ) |
throws EmailException |
Definition at line 59 of file MyIssuesNotification.java.
60 WorkloadQuery wq =
new WorkloadQuery(contact);
61 WorkloadSet ws = wq.getResults();
63 IssueStage.ISSUE_STAGE_WORKSHEET,
64 IssueStage.ISSUE_STAGE_DATE_SURPASSED,
65 IssueStage.ISSUE_STAGE_UNRELATED,
66 IssueStage.ISSUE_STAGE_TO_DO));
68 MailMessagePool pool = MailProviders.instance().getPool(constructor,
"Dossier");
70 MailMessageTemplate mmt = MailMessageTemplate.of(pool.getProvider());
71 mmt.setRoot(
"/issues");
72 mmt.setSubject(getSubject(constructor));
74 ElephantMarker em =
new ElephantMarker(constructor,
true);
75 em.put(
"workloadSet", ws);
76 em.put(
"contact", contact);
77 em.put(
"email", contact.
getConnector(IUser.CONNECTOR_EMAIL));
78 em.put(
"notifier",
this);
79 mmt.setMessage(em,
"myissues", contact);
The documentation for this class was generated from the following file: