use of org.olat.modules.reminder.Reminder 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);
}
use of org.olat.modules.reminder.Reminder in project openolat by klemens.
the class CourseReminderLogsController method doOpenReminder.
private void doOpenReminder(UserRequest ureq, SentReminderRow row) {
removeAsListenerAndDispose(reminderEditCtrl);
Reminder reminder = reminderService.loadByKey(row.getReminderKey());
reminderEditCtrl = new CourseReminderEditController(ureq, getWindowControl(), reminder);
listenTo(reminderEditCtrl);
toolbarPanel.pushController(translate("edit.reminder"), reminderEditCtrl);
}
Aggregations