use of org.olat.modules.vitero.model.StartBookingComparator in project OpenOLAT by OpenOLAT.
the class ViteroBookingsController method loadModel.
protected void loadModel() {
try {
List<ViteroBooking> bookings = viteroManager.getBookings(group, ores, subIdentifier);
List<ViteroBooking> myBookings = viteroManager.getBookingInFutures(getIdentity());
FilterBookings.filterMyFutureBookings(bookings, myBookings);
Collections.sort(bookings, new StartBookingComparator());
TableDataModel<ViteroBooking> tableData = new ViteroBookingDataModel(bookings, myBookings);
tableCtr.setTableDataModel(tableData);
} catch (VmsNotAvailableException e) {
TableDataModel<ViteroBooking> tableData = new ViteroBookingDataModel();
tableCtr.setTableDataModel(tableData);
showError(VmsNotAvailableException.I18N_KEY);
}
}
use of org.olat.modules.vitero.model.StartBookingComparator in project openolat by klemens.
the class ViteroBookingsController method loadModel.
protected void loadModel() {
try {
List<ViteroBooking> bookings = viteroManager.getBookings(group, ores, subIdentifier);
List<ViteroBooking> myBookings = viteroManager.getBookingInFutures(getIdentity());
FilterBookings.filterMyFutureBookings(bookings, myBookings);
Collections.sort(bookings, new StartBookingComparator());
TableDataModel<ViteroBooking> tableData = new ViteroBookingDataModel(bookings, myBookings);
tableCtr.setTableDataModel(tableData);
} catch (VmsNotAvailableException e) {
TableDataModel<ViteroBooking> tableData = new ViteroBookingDataModel();
tableCtr.setTableDataModel(tableData);
showError(VmsNotAvailableException.I18N_KEY);
}
}
Aggregations