use of org.olat.modules.vitero.model.ViteroGroup in project openolat by klemens.
the class ViteroManager method convert.
private final ViteroGroup convert(Completegrouptype groupType) {
ViteroGroup vg = new ViteroGroup();
vg.setGroupId(groupType.getId());
vg.setName(groupType.getName());
int numOfParticipants = groupType.getParticipant() == null ? 0 : groupType.getParticipant().size();
vg.setNumOfParticipants(numOfParticipants);
return vg;
}
use of org.olat.modules.vitero.model.ViteroGroup in project openolat by klemens.
the class ViteroBookingsAdminController method openInfoBox.
protected void openInfoBox(UserRequest ureq, ViteroBooking booking) {
removeAsListenerAndDispose(infoController);
removeAsListenerAndDispose(cmc);
try {
ViteroGroup group = viteroManager.getGroup(booking.getGroupId());
infoController = new ViteroAdminBookingInfosController(ureq, getWindowControl(), booking, group);
listenTo(infoController);
cmc = new CloseableModalController(getWindowControl(), translate("close"), infoController.getInitialComponent(), true, translate("booking.raw.title"));
listenTo(cmc);
cmc.activate();
} catch (VmsNotAvailableException e) {
showError(VmsNotAvailableException.I18N_KEY);
}
}
use of org.olat.modules.vitero.model.ViteroGroup in project OpenOLAT by OpenOLAT.
the class ViteroManager method convert.
private final ViteroGroup convert(Completegrouptype groupType) {
ViteroGroup vg = new ViteroGroup();
vg.setGroupId(groupType.getId());
vg.setName(groupType.getName());
int numOfParticipants = groupType.getParticipant() == null ? 0 : groupType.getParticipant().size();
vg.setNumOfParticipants(numOfParticipants);
return vg;
}
use of org.olat.modules.vitero.model.ViteroGroup in project OpenOLAT by OpenOLAT.
the class ViteroBookingsAdminController method openInfoBox.
protected void openInfoBox(UserRequest ureq, ViteroBooking booking) {
removeAsListenerAndDispose(infoController);
removeAsListenerAndDispose(cmc);
try {
ViteroGroup group = viteroManager.getGroup(booking.getGroupId());
infoController = new ViteroAdminBookingInfosController(ureq, getWindowControl(), booking, group);
listenTo(infoController);
cmc = new CloseableModalController(getWindowControl(), translate("close"), infoController.getInitialComponent(), true, translate("booking.raw.title"));
listenTo(cmc);
cmc.activate();
} catch (VmsNotAvailableException e) {
showError(VmsNotAvailableException.I18N_KEY);
}
}
Aggregations