Search in sources :

Example 16 with SentReminder

use of org.olat.modules.reminder.SentReminder 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);
}
Also used : Reminder(org.olat.modules.reminder.Reminder) SentReminder(org.olat.modules.reminder.SentReminder) ArrayList(java.util.ArrayList) Identity(org.olat.core.id.Identity) SentReminder(org.olat.modules.reminder.SentReminder) SentReminderRow(org.olat.course.reminder.model.SentReminderRow)

Aggregations

Identity (org.olat.core.id.Identity)16 SentReminder (org.olat.modules.reminder.SentReminder)16 Reminder (org.olat.modules.reminder.Reminder)14 Test (org.junit.Test)12 RepositoryEntry (org.olat.repository.RepositoryEntry)12 SentReminderImpl (org.olat.modules.reminder.model.SentReminderImpl)6 ArrayList (java.util.ArrayList)4 SentReminderRow (org.olat.course.reminder.model.SentReminderRow)4