Search in sources :

Example 1 with SearchMembersParams

use of org.olat.group.ui.main.SearchMembersParams 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 SearchMembersParams

use of org.olat.group.ui.main.SearchMembersParams 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 SearchMembersParams

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

the class MembersOverviewController method updateAllMembers.

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

Example 4 with SearchMembersParams

use of org.olat.group.ui.main.SearchMembersParams 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 5 with SearchMembersParams

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

the class MembersOverviewController method updateParticipants.

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

Aggregations

SearchMembersParams (org.olat.group.ui.main.SearchMembersParams)12 WindowControl (org.olat.core.gui.control.WindowControl)10 OLATResourceable (org.olat.core.id.OLATResourceable)10 AbstractMemberListController (org.olat.group.ui.main.AbstractMemberListController)4 HashMap (java.util.HashMap)2 FormItem (org.olat.core.gui.components.form.flexible.FormItem)2 UserPropertyHandler (org.olat.user.propertyhandlers.UserPropertyHandler)2