use of org.olat.modules.reminder.Reminder in project openolat by klemens.
the class CourseSendReminderListController method doResend.
private void doResend(SentReminderRow row) {
Reminder reloadedReminder = reminderService.loadByKey(row.getReminderKey());
Identity id = securityManager.loadIdentityByKey(row.getIdentityKey());
List<Identity> identitiesToRemind = Collections.singletonList(id);
MailerResult result = reminderService.sendReminder(reloadedReminder, identitiesToRemind);
if (result.getReturnCode() != MailerResult.OK) {
MailHelper.printErrorsAndWarnings(result, getWindowControl(), false, getLocale());
} else {
showInfo("reminder.resend");
}
updateModel();
}
use of org.olat.modules.reminder.Reminder in project openolat by klemens.
the class CourseReminderListController method doDelete.
private void doDelete(ReminderRow row) {
Reminder reminder = reminderManager.loadByKey(row.getKey());
reminderManager.delete(reminder);
updateModel();
}
use of org.olat.modules.reminder.Reminder in project openolat by klemens.
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 klemens.
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 klemens.
the class CourseReminderListController method doSendReminderList.
private void doSendReminderList(UserRequest ureq, Long reminderKey) {
removeAsListenerAndDispose(sendReminderListCtrl);
OLATResourceable ores = OresHelper.createOLATResourceableInstance("SentReminders", reminderKey);
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
Reminder reminder = reminderManager.loadByKey(reminderKey);
sendReminderListCtrl = new CourseSendReminderListController(ureq, bwControl, reminder);
listenTo(sendReminderListCtrl);
addToHistory(ureq, sendReminderListCtrl);
toolbarPanel.pushController(translate("send.reminder"), sendReminderListCtrl);
}
Aggregations