Search in sources :

Example 1 with Reminder

use of org.olat.modules.reminder.Reminder in project OpenOLAT by OpenOLAT.

the class CourseReminderListController method doDuplicate.

private void doDuplicate(ReminderRow row) {
    Reminder reminder = reminderManager.loadByKey(row.getKey());
    reminderManager.duplicate(reminder, getIdentity());
    updateModel();
}
Also used : Reminder(org.olat.modules.reminder.Reminder)

Example 2 with Reminder

use of org.olat.modules.reminder.Reminder in project OpenOLAT by OpenOLAT.

the class CourseReminderListController method doSend.

private void doSend(ReminderRow row) {
    Reminder reminder = reminderManager.loadByKey(row.getKey());
    reminderManager.sendReminder(reminder);
    updateModel();
}
Also used : Reminder(org.olat.modules.reminder.Reminder)

Example 3 with Reminder

use of org.olat.modules.reminder.Reminder in project OpenOLAT by OpenOLAT.

the class CourseReminderListController method doAddReminder.

private void doAddReminder(UserRequest ureq) {
    removeAsListenerAndDispose(reminderEditCtrl);
    Reminder newReminder = reminderManager.createReminder(repositoryEntry, getIdentity());
    reminderEditCtrl = new CourseReminderEditController(ureq, getWindowControl(), newReminder);
    listenTo(reminderEditCtrl);
    toolbarPanel.pushController(translate("new.reminder"), reminderEditCtrl);
}
Also used : Reminder(org.olat.modules.reminder.Reminder)

Example 4 with Reminder

use of org.olat.modules.reminder.Reminder in project OpenOLAT by OpenOLAT.

the class CourseReminderListController method doEdit.

private void doEdit(UserRequest ureq, ReminderRow row) {
    removeAsListenerAndDispose(reminderEditCtrl);
    Reminder reminder = reminderManager.loadByKey(row.getKey());
    reminderEditCtrl = new CourseReminderEditController(ureq, getWindowControl(), reminder);
    listenTo(reminderEditCtrl);
    toolbarPanel.pushController(translate("edit.reminder"), reminderEditCtrl);
}
Also used : Reminder(org.olat.modules.reminder.Reminder)

Example 5 with Reminder

use of org.olat.modules.reminder.Reminder in project OpenOLAT by OpenOLAT.

the class ReminderDAO method delete.

public int delete(RepositoryEntry entry) {
    int rowsDeleted = 0;
    List<Reminder> reminders = getReminders(entry);
    for (Reminder reminder : reminders) {
        rowsDeleted += delete(reminder);
    }
    return rowsDeleted;
}
Also used : Reminder(org.olat.modules.reminder.Reminder) SentReminder(org.olat.modules.reminder.SentReminder)

Aggregations

Reminder (org.olat.modules.reminder.Reminder)62 SentReminder (org.olat.modules.reminder.SentReminder)46 Identity (org.olat.core.id.Identity)32 Test (org.junit.Test)26 RepositoryEntry (org.olat.repository.RepositoryEntry)26 SentReminderImpl (org.olat.modules.reminder.model.SentReminderImpl)10 Date (java.util.Date)8 ImportExportReminder (org.olat.modules.reminder.model.ImportExportReminder)6 File (java.io.File)4 ParseException (java.text.ParseException)4 ArrayList (java.util.ArrayList)4 MailerResult (org.olat.core.util.mail.MailerResult)4 ReminderModule (org.olat.modules.reminder.ReminderModule)4 ReminderRule (org.olat.modules.reminder.ReminderRule)4 ReminderService (org.olat.modules.reminder.ReminderService)4 RuleSPI (org.olat.modules.reminder.RuleSPI)4 ImportExportReminders (org.olat.modules.reminder.model.ImportExportReminders)4 ReminderRules (org.olat.modules.reminder.model.ReminderRules)4 FileInputStream (java.io.FileInputStream)2 FileOutputStream (java.io.FileOutputStream)2