Search in sources :

Example 1 with MembersManagementMainController

use of org.olat.course.member.MembersManagementMainController in project OpenOLAT by OpenOLAT.

the class CourseRuntimeController method doMembers.

@Override
protected Activateable2 doMembers(UserRequest ureq) {
    if (delayedClose == Delayed.members || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_GROUPMANAGEMENT) || hasCourseRight(CourseRights.RIGHT_MEMBERMANAGEMENT)) {
            removeCustomCSS();
            if (currentToolCtr instanceof MembersManagementMainController) {
                ((MembersManagementMainController) currentToolCtr).activate(ureq, null, null);
            } else {
                WindowControl bwControl = getSubWindowControl("MembersMgmt");
                MembersManagementMainController ctrl = new MembersManagementMainController(ureq, addToHistory(ureq, bwControl), toolbarPanel, getRepositoryEntry(), getUserCourseEnvironment(), reSecurity.isEntryAdmin(), hasCourseRight(CourseRights.RIGHT_GROUPMANAGEMENT), hasCourseRight(CourseRights.RIGHT_MEMBERMANAGEMENT));
                listenTo(ctrl);
                membersCtrl = pushController(ureq, translate("command.opensimplegroupmngt"), ctrl);
                setActiveTool(membersLink);
                currentToolCtr = membersCtrl;
            }
        }
    } else {
        delayedClose = Delayed.members;
    }
    return membersCtrl;
}
Also used : WindowControl(org.olat.core.gui.control.WindowControl) MembersManagementMainController(org.olat.course.member.MembersManagementMainController)

Example 2 with MembersManagementMainController

use of org.olat.course.member.MembersManagementMainController in project openolat by klemens.

the class CourseRuntimeController method doMembers.

@Override
protected Activateable2 doMembers(UserRequest ureq) {
    if (delayedClose == Delayed.members || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_GROUPMANAGEMENT) || hasCourseRight(CourseRights.RIGHT_MEMBERMANAGEMENT)) {
            removeCustomCSS();
            if (currentToolCtr instanceof MembersManagementMainController) {
                ((MembersManagementMainController) currentToolCtr).activate(ureq, null, null);
            } else {
                WindowControl bwControl = getSubWindowControl("MembersMgmt");
                MembersManagementMainController ctrl = new MembersManagementMainController(ureq, addToHistory(ureq, bwControl), toolbarPanel, getRepositoryEntry(), getUserCourseEnvironment(), reSecurity.isEntryAdmin(), hasCourseRight(CourseRights.RIGHT_GROUPMANAGEMENT), hasCourseRight(CourseRights.RIGHT_MEMBERMANAGEMENT));
                listenTo(ctrl);
                membersCtrl = pushController(ureq, translate("command.opensimplegroupmngt"), ctrl);
                setActiveTool(membersLink);
                currentToolCtr = membersCtrl;
            }
        }
    } else {
        delayedClose = Delayed.members;
    }
    return membersCtrl;
}
Also used : WindowControl(org.olat.core.gui.control.WindowControl) MembersManagementMainController(org.olat.course.member.MembersManagementMainController)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)2 MembersManagementMainController (org.olat.course.member.MembersManagementMainController)2