01: package ru.emdev.EmForge.messages;
02:
03: import java.util.HashMap;
04: import java.util.Map;
05:
06: import ru.emdev.EmForge.email.velocity.BaseVelocityEmailImpl;
07: import ru.emdev.EmForge.security.RegActivationController;
08: import ru.emdev.EmForge.util.Helper;
09:
10: public class RegNotificationEmailImpl extends BaseVelocityEmailImpl
11: implements RegNotificationEmail {
12: protected String m_notificationCode;
13:
14: public void setNotificationCode(String i_notificationCode) {
15: m_notificationCode = i_notificationCode;
16: }
17:
18: @Override
19: public Map<String, Object> getModel() {
20: Map<String, Object> model = new HashMap<String, Object>();
21:
22: String actLink = Helper.concatUrl(getApplicationPath(),
23: RegActivationController.PAGE_NAME + "?"
24: + RegActivationController.CODE_ATTR + "="
25: + m_notificationCode);
26:
27: model.put("actLink", actLink);
28: return model;
29: }
30:
31: }
|