Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
d306cbb1
Commit
d306cbb1
authored
Jul 23, 2020
by
ls1947
Browse files
just use event map instead of new map
parent
6e7e4f78
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-service/src/main/java/edu/kit/scc/webreg/event/TokenEventMailExecutor.java
View file @
d306cbb1
...
...
@@ -11,7 +11,6 @@
package
edu.kit.scc.webreg.event
;
import
java.util.HashMap
;
import
java.util.Map
;
import
javax.naming.InitialContext
;
import
javax.naming.NamingException
;
...
...
@@ -48,11 +47,8 @@ public class TokenEventMailExecutor extends
TemplateMailService
templateMailService
=
(
TemplateMailService
)
ic
.
lookup
(
"global/bwreg/bwreg-service/TemplateMailServiceImpl!edu.kit.scc.webreg.service.mail.TemplateMailService"
);
HashMap
<
String
,
Object
>
eventMap
=
getEvent
().
getEntity
();
Map
<
String
,
Object
>
context
=
new
HashMap
<
String
,
Object
>();
context
.
put
(
"serial"
,
eventMap
.
get
(
"serial"
));
context
.
put
(
"user"
,
eventMap
.
get
(
"user"
));
templateMailService
.
sendMail
(
templateName
,
context
,
true
);
templateMailService
.
sendMail
(
templateName
,
eventMap
,
true
);
}
catch
(
NamingException
e
)
{
logger
.
warn
(
"Could not send email: {}"
,
e
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment