Search in sources :

Example 1 with AbstractMemberListController

use of org.olat.group.ui.main.AbstractMemberListController in project OpenOLAT by OpenOLAT.

the class MembersOverviewController method updateWaitingList.

private AbstractMemberListController updateWaitingList(UserRequest ureq) {
    if (waitingCtrl == null) {
        OLATResourceable ores = OresHelper.createOLATResourceableInstance(SEG_WAITING_MEMBERS, 0l);
        ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
        SearchMembersParams searchParams = new SearchMembersParams(false, false, false, false, false, true, false);
        String infos = translate("waiting.infos");
        waitingCtrl = new MemberListController(ureq, bwControl, toolbarPanel, repoEntry, coachCourseEnv, searchParams, infos);
        listenTo(waitingCtrl);
    }
    waitingCtrl.reloadModel();
    waitingCtrl.overrideManaged(ureq, overrideManaged);
    mainVC.put("membersCmp", waitingCtrl.getInitialComponent());
    addToHistory(ureq, waitingCtrl);
    return waitingCtrl;
}
Also used : AbstractMemberListController(org.olat.group.ui.main.AbstractMemberListController) OLATResourceable(org.olat.core.id.OLATResourceable) SearchMembersParams(org.olat.group.ui.main.SearchMembersParams) WindowControl(org.olat.core.gui.control.WindowControl)

Example 2 with AbstractMemberListController

use of org.olat.group.ui.main.AbstractMemberListController in project OpenOLAT by OpenOLAT.

the class MembersOverviewController method updateOwners.

private AbstractMemberListController updateOwners(UserRequest ureq) {
    if (ownersCtrl == null) {
        OLATResourceable ores = OresHelper.createOLATResourceableInstance(SEG_OWNERS_MEMBERS, 0l);
        ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
        SearchMembersParams searchParams = new SearchMembersParams(true, false, false, false, false, false, false);
        String infos = translate("owners.infos");
        ownersCtrl = new MemberListController(ureq, bwControl, toolbarPanel, repoEntry, coachCourseEnv, searchParams, infos);
        listenTo(ownersCtrl);
    }
    ownersCtrl.reloadModel();
    ownersCtrl.overrideManaged(ureq, overrideManaged);
    mainVC.put("membersCmp", ownersCtrl.getInitialComponent());
    addToHistory(ureq, ownersCtrl);
    return ownersCtrl;
}
Also used : AbstractMemberListController(org.olat.group.ui.main.AbstractMemberListController) OLATResourceable(org.olat.core.id.OLATResourceable) SearchMembersParams(org.olat.group.ui.main.SearchMembersParams) WindowControl(org.olat.core.gui.control.WindowControl)

Example 3 with AbstractMemberListController

use of org.olat.group.ui.main.AbstractMemberListController in project openolat by klemens.

the class MembersOverviewController method updateWaitingList.

private AbstractMemberListController updateWaitingList(UserRequest ureq) {
    if (waitingCtrl == null) {
        OLATResourceable ores = OresHelper.createOLATResourceableInstance(SEG_WAITING_MEMBERS, 0l);
        ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
        SearchMembersParams searchParams = new SearchMembersParams(false, false, false, false, false, true, false);
        String infos = translate("waiting.infos");
        waitingCtrl = new MemberListController(ureq, bwControl, toolbarPanel, repoEntry, coachCourseEnv, searchParams, infos);
        listenTo(waitingCtrl);
    }
    waitingCtrl.reloadModel();
    waitingCtrl.overrideManaged(ureq, overrideManaged);
    mainVC.put("membersCmp", waitingCtrl.getInitialComponent());
    addToHistory(ureq, waitingCtrl);
    return waitingCtrl;
}
Also used : AbstractMemberListController(org.olat.group.ui.main.AbstractMemberListController) OLATResourceable(org.olat.core.id.OLATResourceable) SearchMembersParams(org.olat.group.ui.main.SearchMembersParams) WindowControl(org.olat.core.gui.control.WindowControl)

Example 4 with AbstractMemberListController

use of org.olat.group.ui.main.AbstractMemberListController in project openolat by klemens.

the class MembersOverviewController method updateOwners.

private AbstractMemberListController updateOwners(UserRequest ureq) {
    if (ownersCtrl == null) {
        OLATResourceable ores = OresHelper.createOLATResourceableInstance(SEG_OWNERS_MEMBERS, 0l);
        ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
        SearchMembersParams searchParams = new SearchMembersParams(true, false, false, false, false, false, false);
        String infos = translate("owners.infos");
        ownersCtrl = new MemberListController(ureq, bwControl, toolbarPanel, repoEntry, coachCourseEnv, searchParams, infos);
        listenTo(ownersCtrl);
    }
    ownersCtrl.reloadModel();
    ownersCtrl.overrideManaged(ureq, overrideManaged);
    mainVC.put("membersCmp", ownersCtrl.getInitialComponent());
    addToHistory(ureq, ownersCtrl);
    return ownersCtrl;
}
Also used : AbstractMemberListController(org.olat.group.ui.main.AbstractMemberListController) OLATResourceable(org.olat.core.id.OLATResourceable) SearchMembersParams(org.olat.group.ui.main.SearchMembersParams) WindowControl(org.olat.core.gui.control.WindowControl)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)4 OLATResourceable (org.olat.core.id.OLATResourceable)4 AbstractMemberListController (org.olat.group.ui.main.AbstractMemberListController)4 SearchMembersParams (org.olat.group.ui.main.SearchMembersParams)4