Search in sources :

Example 1 with ViteroGroup

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;
}
Also used : ViteroGroup(org.olat.modules.vitero.model.ViteroGroup)

Example 2 with ViteroGroup

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);
    }
}
Also used : ViteroGroup(org.olat.modules.vitero.model.ViteroGroup) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) VmsNotAvailableException(org.olat.modules.vitero.manager.VmsNotAvailableException)

Example 3 with ViteroGroup

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;
}
Also used : ViteroGroup(org.olat.modules.vitero.model.ViteroGroup)

Example 4 with ViteroGroup

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);
    }
}
Also used : ViteroGroup(org.olat.modules.vitero.model.ViteroGroup) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) VmsNotAvailableException(org.olat.modules.vitero.manager.VmsNotAvailableException)

Aggregations

ViteroGroup (org.olat.modules.vitero.model.ViteroGroup)4 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)2 VmsNotAvailableException (org.olat.modules.vitero.manager.VmsNotAvailableException)2