use of org.olat.course.reminder.model.SentReminderRow in project OpenOLAT by OpenOLAT.
the class CourseReminderLogsController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (source == tableEl) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
SentReminderRow row = tableModel.getObject(se.getIndex());
if ("reminder".equals(cmd)) {
doOpenReminder(ureq, row);
} else if ("resend".equals(cmd)) {
doResend(row);
}
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.course.reminder.model.SentReminderRow in project openolat by klemens.
the class CourseSendReminderListController method updateModel.
private void updateModel() {
List<SentReminder> sentReminders = reminderService.getSentReminders(reminder);
List<SentReminderRow> rows = new ArrayList<>(sentReminders.size());
for (SentReminder sentReminder : sentReminders) {
Identity identity = sentReminder.getIdentity();
SentReminderRow row = new SentReminderRow(reminder, sentReminder, identity, userPropertyHandlers, getLocale());
rows.add(row);
}
tableModel.setObjects(rows);
tableEl.reset();
}
use of org.olat.course.reminder.model.SentReminderRow in project openolat by klemens.
the class CourseReminderLogsController method updateModel.
protected void updateModel() {
List<SentReminder> sentReminders = reminderService.getSentReminders(repositoryEntry);
List<SentReminderRow> rows = new ArrayList<>(sentReminders.size());
for (SentReminder sentReminder : sentReminders) {
Identity identity = sentReminder.getIdentity();
Reminder reminder = sentReminder.getReminder();
SentReminderRow row = new SentReminderRow(reminder, sentReminder, identity, userPropertyHandlers, getLocale());
rows.add(row);
}
tableModel.setObjects(rows);
tableEl.reset();
tableEl.setVisible(rows.size() > 0);
}
Aggregations