Search in sources :

Example 1 with GTACoachedGroupListController

use of org.olat.course.nodes.gta.ui.GTACoachedGroupListController in project OpenOLAT by OpenOLAT.

the class GTACourseNode method getCoachedGroupListController.

public GTACoachedGroupListController getCoachedGroupListController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, UserCourseEnvironment coachCourseEnv, boolean admin, List<BusinessGroup> coachedGroups) {
    List<BusinessGroup> groups;
    CourseGroupManager gm = coachCourseEnv.getCourseEnvironment().getCourseGroupManager();
    if (admin) {
        groups = gm.getAllBusinessGroups();
    } else {
        groups = coachedGroups;
    }
    groups = CoreSpringFactory.getImpl(GTAManager.class).filterBusinessGroups(groups, this);
    return new GTACoachedGroupListController(ureq, wControl, stackPanel, coachCourseEnv, this, groups);
}
Also used : CourseGroupManager(org.olat.course.groupsandrights.CourseGroupManager) BusinessGroup(org.olat.group.BusinessGroup) GTACoachedGroupListController(org.olat.course.nodes.gta.ui.GTACoachedGroupListController)

Example 2 with GTACoachedGroupListController

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

the class GTACourseNode method getCoachedGroupListController.

public GTACoachedGroupListController getCoachedGroupListController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, UserCourseEnvironment coachCourseEnv, boolean admin, List<BusinessGroup> coachedGroups) {
    List<BusinessGroup> groups;
    CourseGroupManager gm = coachCourseEnv.getCourseEnvironment().getCourseGroupManager();
    if (admin) {
        groups = gm.getAllBusinessGroups();
    } else {
        groups = coachedGroups;
    }
    groups = CoreSpringFactory.getImpl(GTAManager.class).filterBusinessGroups(groups, this);
    return new GTACoachedGroupListController(ureq, wControl, stackPanel, coachCourseEnv, this, groups);
}
Also used : CourseGroupManager(org.olat.course.groupsandrights.CourseGroupManager) BusinessGroup(org.olat.group.BusinessGroup) GTACoachedGroupListController(org.olat.course.nodes.gta.ui.GTACoachedGroupListController)

Aggregations

CourseGroupManager (org.olat.course.groupsandrights.CourseGroupManager)2 GTACoachedGroupListController (org.olat.course.nodes.gta.ui.GTACoachedGroupListController)2 BusinessGroup (org.olat.group.BusinessGroup)2