Search in sources :

Example 11 with SearchMembersParams

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

Example 12 with SearchMembersParams

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

the class MembersOverviewController method updateTutors.

private AbstractMemberListController updateTutors(UserRequest ureq) {
    if (tutorsCtrl == null) {
        OLATResourceable ores = OresHelper.createOLATResourceableInstance(SEG_TUTORS_MEMBERS, 0l);
        ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
        SearchMembersParams searchParams = new SearchMembersParams(false, true, false, true, false, false, false);
        String infos = translate("tutors.infos");
        tutorsCtrl = new MemberListWithOriginFilterController(ureq, bwControl, toolbarPanel, repoEntry, coachCourseEnv, searchParams, infos);
        listenTo(tutorsCtrl);
    }
    tutorsCtrl.reloadModel();
    tutorsCtrl.overrideManaged(ureq, overrideManaged);
    mainVC.put("membersCmp", tutorsCtrl.getInitialComponent());
    addToHistory(ureq, tutorsCtrl);
    return tutorsCtrl;
}
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