◆ MailToControl()
org.turro.mail.zul.MailToControl.MailToControl |
( |
| ) |
|
Definition at line 119 of file MailToControl.java.
120 Executions.createComponents(
"/WEB-INF/_zul/bs/comps/mailTo/mailToControl.zul",
this,
null);
121 Selectors.wireComponents(
this,
this,
false);
122 Selectors.wireEventListeners(
this,
this);
◆ afterCompose()
void org.turro.mail.zul.MailToControl.afterCompose |
( |
| ) |
|
◆ onSend()
void org.turro.mail.zul.MailToControl.onSend |
( |
| ) |
|
Definition at line 71 of file MailToControl.java.
73 IContact cfrom = Contacts.getContact(from.
getEntity());
78 .put(
"iee", Entities.getController(entity.
getEntity()))
79 .put(
"subject", subject.getValue())
80 .put(
"text", wikiText.
getHtml())
81 .sendTemplate(
"mailTo", subject.getValue());
82 Clients.showNotification(I_.get(
"Comment was sent..."));
83 }
catch (EmailException ex) {
84 Logger.getLogger(
MailToControl.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
AssistantSet getAssistants()
◆ onSendTest()
void org.turro.mail.zul.MailToControl.onSendTest |
( |
| ) |
|
Definition at line 89 of file MailToControl.java.
90 ContactList contacts =
new ContactList();
91 contacts.add(Authentication.getIContact());
92 MailRecipients.selectRecipients(contacts,
new Command() {
94 public Object execute(Context context) {
95 MailRecipients mr = (MailRecipients) context.get(
"component");
96 Collection<IContact> emails = mr.getRecipients();
99 IContact cfrom = Contacts.getContact(from.
getEntity());
100 HashMap args =
new HashMap();
101 MailSenders.getPool()
105 .put(
"iee", Entities.getController(entity.
getEntity()))
106 .put(
"subject", subject.getValue())
107 .put(
"text", wikiText.
getHtml())
108 .sendTemplate(
"mailTo", subject.getValue());
109 Clients.showNotification(I_.get(
"Comment was sent..."));
110 }
catch (EmailException ex) {
111 Logger.getLogger(
MailToControl.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
The documentation for this class was generated from the following file: