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();
}
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();
}
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);
}
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);
}
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;
}
Aggregations