use of org.olat.resource.accesscontrol.provider.auto.AdvanceOrder in project openolat by klemens.
the class AdvanceOrderController method doDeleteAdvanceOrderIfConfirmed.
private void doDeleteAdvanceOrderIfConfirmed(Event event) {
if (DialogBoxUIFactory.isYesEvent(event) || DialogBoxUIFactory.isOkEvent(event)) {
AdvanceOrder advanceOrder = (AdvanceOrder) confirmDeleteDialogCtrl.getUserObject();
autoAccessManager.deleteAdvanceOrder(advanceOrder);
loadModel();
}
}
use of org.olat.resource.accesscontrol.provider.auto.AdvanceOrder in project openolat by klemens.
the class AdvanceOrderController method doConfirmDelete.
private void doConfirmDelete(UserRequest ureq, AdvanceOrderRow row) {
AdvanceOrder advanceOrder = row.getAdvanceOrder();
String title = translate("confirm.delete.advanceOrder.title");
String message = translate("confirm.delete.advanceOrder");
confirmDeleteDialogCtrl = activateYesNoDialog(ureq, title, message, confirmDeleteDialogCtrl);
confirmDeleteDialogCtrl.setUserObject(advanceOrder);
}
use of org.olat.resource.accesscontrol.provider.auto.AdvanceOrder in project OpenOLAT by OpenOLAT.
the class AdvanceOrderController method doDeleteAdvanceOrderIfConfirmed.
private void doDeleteAdvanceOrderIfConfirmed(Event event) {
if (DialogBoxUIFactory.isYesEvent(event) || DialogBoxUIFactory.isOkEvent(event)) {
AdvanceOrder advanceOrder = (AdvanceOrder) confirmDeleteDialogCtrl.getUserObject();
autoAccessManager.deleteAdvanceOrder(advanceOrder);
loadModel();
}
}
use of org.olat.resource.accesscontrol.provider.auto.AdvanceOrder in project OpenOLAT by OpenOLAT.
the class AdvanceOrderController method doConfirmDelete.
private void doConfirmDelete(UserRequest ureq, AdvanceOrderRow row) {
AdvanceOrder advanceOrder = row.getAdvanceOrder();
String title = translate("confirm.delete.advanceOrder.title");
String message = translate("confirm.delete.advanceOrder");
confirmDeleteDialogCtrl = activateYesNoDialog(ureq, title, message, confirmDeleteDialogCtrl);
confirmDeleteDialogCtrl.setUserObject(advanceOrder);
}
use of org.olat.resource.accesscontrol.provider.auto.AdvanceOrder in project OpenOLAT by OpenOLAT.
the class AdvanceOrderController method loadModel.
private void loadModel() {
Collection<AdvanceOrder> advanceOrders = autoAccessManager.loadPendingAdvanceOrders(identity);
List<AdvanceOrderRow> rows = new ArrayList<>(advanceOrders.size());
for (AdvanceOrder advanceOrder : advanceOrders) {
rows.add(new AdvanceOrderRow(advanceOrder));
}
dataModel.setObjects(rows);
tableEl.reset(true, true, true);
}
Aggregations