◆ ConvocationSender() [1/2]
org.turro.zul.convocation.ConvocationSender.ConvocationSender |
( |
Convocation |
entity, |
|
|
IContact |
contact |
|
) |
| |
◆ ConvocationSender() [2/2]
◆ createAttendantQrCode()
String org.turro.zul.convocation.ConvocationSender.createAttendantQrCode |
( |
IContact |
contact, |
|
|
Convocation |
convocation |
|
) |
| |
Definition at line 205 of file ConvocationSender.java.
206 return ConvocationCtrl.createAttendantQrCodeURL(Application.getApplication().getConstructor(), contact, convocation);
◆ doSend()
void org.turro.zul.convocation.ConvocationSender.doSend |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.mail.queue.QueuedSender.
Definition at line 89 of file ConvocationSender.java.
90 final List<File> tmpFiles =
new ArrayList<>();
91 MailMessagePool pool = MailProviders.instance().getGeneric(Application.getApplication().getConstructor());
93 String organizerEmail =
null;
97 organizerEmail = c.getValue();
100 if(contact !=
null) {
101 createMail(
new Assistant(contact, entity), tmpFiles, organizerEmail, pool);
103 IAgreements agreements = Plugins.loadImplementation(IAgreements.class,
"agreements");
104 NotificationCategory nc = Notifications.getCategory(GenericElephantNotification.GENERIC_NOTIFICATION);
105 for(Assistant assistant : assistants) {
106 agreements.setContact(assistant.contact);
107 if(agreements.canSendEmails(nc)) {
108 createMail(assistant, tmpFiles, organizerEmail, pool);
112 pool.sendPool((m) -> {
113 for(File f : tmpFiles) {
117 SystemLogger.getInstance().doLog(SystemLogType.LOG_INFO, entity,
"sent", organizerEmail);
◆ getAsAssistants()
Definition at line 209 of file ConvocationSender.java.
210 AssistantSet assistants =
new AssistantSet();
211 for(Attendee att : convocation.getAttendees()) {
212 assistants.addContact(att.getIContact(), convocation);
The documentation for this class was generated from the following file: