Search in sources :

Example 6 with SelectBusinessGroupEvent

use of org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent in project openolat by klemens.

the class GTACoachSelectionController method event.

@Override
protected void event(UserRequest ureq, Controller source, Event event) {
    if (groupListCtrl == source) {
        if (event instanceof SelectBusinessGroupEvent) {
            SelectBusinessGroupEvent selectEvent = (SelectBusinessGroupEvent) event;
            doSelectBusinessGroup(ureq, selectEvent.getBusinessGroup());
            backLink.setVisible(true);
        }
    } else if (participantListCtrl == source) {
        if (event instanceof SelectIdentityEvent) {
            SelectIdentityEvent selectEvent = (SelectIdentityEvent) event;
            Identity selectedIdentity = securityManager.loadIdentityByKey(selectEvent.getIdentityKey());
            doSelectParticipant(ureq, selectedIdentity);
            backLink.setVisible(true);
        }
    }
    super.event(ureq, source, event);
}
Also used : SelectIdentityEvent(org.olat.course.nodes.gta.ui.events.SelectIdentityEvent) SelectBusinessGroupEvent(org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent) Identity(org.olat.core.id.Identity)

Aggregations

SelectBusinessGroupEvent (org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent)6 Identity (org.olat.core.id.Identity)2 SelectIdentityEvent (org.olat.course.nodes.gta.ui.events.SelectIdentityEvent)2