Search in sources :

Example 1 with TabCreator

use of org.olat.core.gui.components.tabbedpane.TabCreator in project OpenOLAT by OpenOLAT.

the class UserAdminController method initTabbedPane.

/**
 * Initialize the tabbed pane according to the users rights and the system
 * configuration
 * @param identity
 * @param ureq
 */
private void initTabbedPane(Identity identity, UserRequest ureq) {
    // first Initialize the user details tabbed pane
    userTabP = new TabbedPane("userTabP", ureq.getLocale());
    userTabP.addListener(this);
    /**
     *  Determine, whether the user admin is or is not able to edit all fields in user
     *  profile form. The system admin is always able to do so.
     */
    Boolean canEditAllFields = BaseSecurityModule.USERMANAGER_CAN_EDIT_ALL_PROFILE_FIELDS;
    if (securityManager.isIdentityPermittedOnResourceable(identity, Constants.PERMISSION_HASROLE, Constants.ORESOURCE_ADMIN)) {
        canEditAllFields = Boolean.TRUE;
    }
    userProfileCtr = new ProfileAndHomePageEditController(ureq, getWindowControl(), identity, canEditAllFields.booleanValue());
    listenTo(userProfileCtr);
    userTabP.addTab(translate(NLS_EDIT_UPROFILE), userProfileCtr.getInitialComponent());
    userTabP.addTab(translate(NLS_EDIT_UPREFS), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            prefsCtr = new ChangePrefsController(uureq, getWindowControl(), identity);
            listenTo(prefsCtr);
            return prefsCtr.getInitialComponent();
        }
    });
    if (isPasswordChangesAllowed(identity)) {
        userTabP.addTab(translate(NLS_EDIT_UPWD), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                pwdCtr = new UserChangePasswordController(uureq, getWindowControl(), identity);
                listenTo(pwdCtr);
                return pwdCtr.getInitialComponent();
            }
        });
    }
    Boolean canAuth = BaseSecurityModule.USERMANAGER_ACCESS_TO_AUTH;
    if (canAuth.booleanValue() || isOlatAdmin) {
        userTabP.addTab(translate(NLS_EDIT_UAUTH), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                authenticationsCtr = new UserAuthenticationsEditorController(uureq, getWindowControl(), identity);
                listenTo(authenticationsCtr);
                return authenticationsCtr.getInitialComponent();
            }
        });
    }
    Boolean canProp = BaseSecurityModule.USERMANAGER_ACCESS_TO_PROP;
    if (canProp.booleanValue() || isOlatAdmin) {
        userTabP.addTab(translate(NLS_EDIT_UPROP), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                propertiesCtr = new UserPropertiesController(uureq, getWindowControl(), identity);
                listenTo(propertiesCtr);
                return propertiesCtr.getInitialComponent();
            }
        });
    }
    Boolean canStartGroups = BaseSecurityModule.USERMANAGER_CAN_START_GROUPS;
    userTabP.addTab(translate(NLS_VIEW_GROUPS), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            grpCtr = new GroupOverviewController(uureq, getWindowControl(), identity, canStartGroups);
            listenTo(grpCtr);
            return grpCtr.getInitialComponent();
        }
    });
    userTabP.addTab(translate(NLS_VIEW_COURSES), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            courseCtr = new CourseOverviewController(uureq, getWindowControl(), identity);
            listenTo(courseCtr);
            return courseCtr.getInitialComponent();
        }
    });
    if (isOlatAdmin) {
        userTabP.addTab(translate(NLS_VIEW_ACCESS), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                Controller accessCtr = new UserOrderController(uureq, getWindowControl(), identity);
                listenTo(accessCtr);
                return accessCtr.getInitialComponent();
            }
        });
    }
    if (isOlatAdmin) {
        userTabP.addTab(translate(NLS_VIEW_EFF_STATEMENTS), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                efficicencyCtrl = new CertificateAndEfficiencyStatementListController(uureq, getWindowControl(), identity, true);
                listenTo(efficicencyCtrl);
                BreadcrumbedStackedPanel stackPanel = new BreadcrumbedStackedPanel("statements", getTranslator(), efficicencyCtrl);
                stackPanel.pushController(translate(NLS_VIEW_EFF_STATEMENTS), efficicencyCtrl);
                efficicencyCtrl.setBreadcrumbPanel(stackPanel);
                stackPanel.setInvisibleCrumb(1);
                return stackPanel;
            }
        });
    }
    Boolean canSubscriptions = BaseSecurityModule.USERMANAGER_CAN_MODIFY_SUBSCRIPTIONS;
    if (canSubscriptions.booleanValue() || isOlatAdmin) {
        userTabP.addTab(translate(NLS_VIEW_SUBSCRIPTIONS), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                Controller subscriptionsCtr = new NotificationSubscriptionController(uureq, getWindowControl(), identity, true);
                listenTo(subscriptionsCtr);
                return subscriptionsCtr.getInitialComponent();
            }
        });
    }
    userTabP.addTab(translate(NLS_EDIT_UROLES), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            rolesCtr = new SystemRolesAndRightsController(getWindowControl(), uureq, identity);
            listenTo(rolesCtr);
            return rolesCtr.getInitialComponent();
        }
    });
    Boolean canQuota = BaseSecurityModule.USERMANAGER_ACCESS_TO_QUOTA;
    if (canQuota.booleanValue() || isOlatAdmin) {
        userTabP.addTab(translate(NLS_EDIT_UQUOTA), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                String relPath = FolderConfig.getUserHomes() + "/" + identity.getName();
                quotaCtr = QuotaManager.getInstance().getQuotaEditorInstance(uureq, getWindowControl(), relPath);
                return quotaCtr.getInitialComponent();
            }
        });
    }
    if (lectureModule.isEnabled()) {
        userTabP.addTab(translate(NLS_VIEW_LECTURES), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                lecturesCtrl = new ParticipantLecturesOverviewController(uureq, getWindowControl(), identity, true, true, true, true);
                listenTo(lecturesCtrl);
                BreadcrumbedStackedPanel stackPanel = new BreadcrumbedStackedPanel("lectures", getTranslator(), lecturesCtrl);
                stackPanel.pushController(translate(NLS_VIEW_LECTURES), lecturesCtrl);
                lecturesCtrl.setBreadcrumbPanel(stackPanel);
                stackPanel.setInvisibleCrumb(1);
                return stackPanel;
            }
        });
    }
    if (taxonomyModule.isEnabled()) {
        userTabP.addTab(translate(NLS_VIEW_COMPETENCES), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                competencesCtrl = new IdentityCompetencesController(uureq, getWindowControl(), identity);
                listenTo(competencesCtrl);
                BreadcrumbedStackedPanel stackPanel = new BreadcrumbedStackedPanel("competences", getTranslator(), competencesCtrl);
                stackPanel.pushController(translate(NLS_VIEW_COMPETENCES), competencesCtrl);
                competencesCtrl.setBreadcrumbPanel(stackPanel);
                stackPanel.setInvisibleCrumb(1);
                return stackPanel;
            }
        });
    }
    // now push to velocity
    myContent.put("userTabP", userTabP);
}
Also used : CourseOverviewController(org.olat.admin.user.course.CourseOverviewController) UserOrderController(org.olat.resource.accesscontrol.ui.UserOrderController) UserPropertiesController(org.olat.user.UserPropertiesController) TabbedPane(org.olat.core.gui.components.tabbedpane.TabbedPane) ParticipantLecturesOverviewController(org.olat.modules.lecture.ui.ParticipantLecturesOverviewController) NotificationSubscriptionController(org.olat.core.commons.services.notifications.ui.NotificationSubscriptionController) IdentityCompetencesController(org.olat.modules.taxonomy.ui.IdentityCompetencesController) DisplayPortraitController(org.olat.user.DisplayPortraitController) CourseOverviewController(org.olat.admin.user.course.CourseOverviewController) ProfileAndHomePageEditController(org.olat.user.ProfileAndHomePageEditController) GroupOverviewController(org.olat.admin.user.groups.GroupOverviewController) UserPropertiesController(org.olat.user.UserPropertiesController) NotificationSubscriptionController(org.olat.core.commons.services.notifications.ui.NotificationSubscriptionController) ChangePrefsController(org.olat.user.ChangePrefsController) UserOrderController(org.olat.resource.accesscontrol.ui.UserOrderController) Controller(org.olat.core.gui.control.Controller) BasicController(org.olat.core.gui.control.controller.BasicController) CertificateAndEfficiencyStatementListController(org.olat.course.certificate.ui.CertificateAndEfficiencyStatementListController) ParticipantLecturesOverviewController(org.olat.modules.lecture.ui.ParticipantLecturesOverviewController) IdentityCompetencesController(org.olat.modules.taxonomy.ui.IdentityCompetencesController) ProfileAndHomePageEditController(org.olat.user.ProfileAndHomePageEditController) TabCreator(org.olat.core.gui.components.tabbedpane.TabCreator) GroupOverviewController(org.olat.admin.user.groups.GroupOverviewController) ChangePrefsController(org.olat.user.ChangePrefsController) Component(org.olat.core.gui.components.Component) BreadcrumbedStackedPanel(org.olat.core.gui.components.stack.BreadcrumbedStackedPanel) CertificateAndEfficiencyStatementListController(org.olat.course.certificate.ui.CertificateAndEfficiencyStatementListController) UserRequest(org.olat.core.gui.UserRequest)

Example 2 with TabCreator

use of org.olat.core.gui.components.tabbedpane.TabCreator in project OpenOLAT by OpenOLAT.

the class TaxonomyLevelOverviewController method initTabPane.

private void initTabPane() {
    tabPane.addTab(translate("taxonomy.level.competences"), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            competencesCtrl = new TaxonomyLevelCompetenceController(uureq, getWindowControl(), taxonomyLevel);
            listenTo(competencesCtrl);
            return competencesCtrl.getInitialComponent();
        }
    });
    tabPane.addTab(translate("taxonomy.level.relations"), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            relationsCtrl = new TaxonomyLevelRelationsController(uureq, getWindowControl(), taxonomyLevel);
            listenTo(relationsCtrl);
            return relationsCtrl.getInitialComponent();
        }
    });
}
Also used : TabCreator(org.olat.core.gui.components.tabbedpane.TabCreator) Component(org.olat.core.gui.components.Component) UserRequest(org.olat.core.gui.UserRequest)

Example 3 with TabCreator

use of org.olat.core.gui.components.tabbedpane.TabCreator in project openolat by klemens.

the class TaxonomyLevelOverviewController method initTabPane.

private void initTabPane() {
    tabPane.addTab(translate("taxonomy.level.competences"), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            competencesCtrl = new TaxonomyLevelCompetenceController(uureq, getWindowControl(), taxonomyLevel);
            listenTo(competencesCtrl);
            return competencesCtrl.getInitialComponent();
        }
    });
    tabPane.addTab(translate("taxonomy.level.relations"), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            relationsCtrl = new TaxonomyLevelRelationsController(uureq, getWindowControl(), taxonomyLevel);
            listenTo(relationsCtrl);
            return relationsCtrl.getInitialComponent();
        }
    });
}
Also used : TabCreator(org.olat.core.gui.components.tabbedpane.TabCreator) Component(org.olat.core.gui.components.Component) UserRequest(org.olat.core.gui.UserRequest)

Example 4 with TabCreator

use of org.olat.core.gui.components.tabbedpane.TabCreator in project openolat by klemens.

the class UserAdminController method initTabbedPane.

/**
 * Initialize the tabbed pane according to the users rights and the system
 * configuration
 * @param identity
 * @param ureq
 */
private void initTabbedPane(Identity identity, UserRequest ureq) {
    // first Initialize the user details tabbed pane
    userTabP = new TabbedPane("userTabP", ureq.getLocale());
    userTabP.addListener(this);
    /**
     *  Determine, whether the user admin is or is not able to edit all fields in user
     *  profile form. The system admin is always able to do so.
     */
    Boolean canEditAllFields = BaseSecurityModule.USERMANAGER_CAN_EDIT_ALL_PROFILE_FIELDS;
    if (securityManager.isIdentityPermittedOnResourceable(identity, Constants.PERMISSION_HASROLE, Constants.ORESOURCE_ADMIN)) {
        canEditAllFields = Boolean.TRUE;
    }
    userProfileCtr = new ProfileAndHomePageEditController(ureq, getWindowControl(), identity, canEditAllFields.booleanValue());
    listenTo(userProfileCtr);
    userTabP.addTab(translate(NLS_EDIT_UPROFILE), userProfileCtr.getInitialComponent());
    userTabP.addTab(translate(NLS_EDIT_UPREFS), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            prefsCtr = new ChangePrefsController(uureq, getWindowControl(), identity);
            listenTo(prefsCtr);
            return prefsCtr.getInitialComponent();
        }
    });
    if (isPasswordChangesAllowed(identity)) {
        userTabP.addTab(translate(NLS_EDIT_UPWD), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                pwdCtr = new UserChangePasswordController(uureq, getWindowControl(), identity);
                listenTo(pwdCtr);
                return pwdCtr.getInitialComponent();
            }
        });
    }
    Boolean canAuth = BaseSecurityModule.USERMANAGER_ACCESS_TO_AUTH;
    if (canAuth.booleanValue() || isOlatAdmin) {
        userTabP.addTab(translate(NLS_EDIT_UAUTH), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                authenticationsCtr = new UserAuthenticationsEditorController(uureq, getWindowControl(), identity);
                listenTo(authenticationsCtr);
                return authenticationsCtr.getInitialComponent();
            }
        });
    }
    Boolean canProp = BaseSecurityModule.USERMANAGER_ACCESS_TO_PROP;
    if (canProp.booleanValue() || isOlatAdmin) {
        userTabP.addTab(translate(NLS_EDIT_UPROP), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                propertiesCtr = new UserPropertiesController(uureq, getWindowControl(), identity);
                listenTo(propertiesCtr);
                return propertiesCtr.getInitialComponent();
            }
        });
    }
    Boolean canStartGroups = BaseSecurityModule.USERMANAGER_CAN_START_GROUPS;
    userTabP.addTab(translate(NLS_VIEW_GROUPS), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            grpCtr = new GroupOverviewController(uureq, getWindowControl(), identity, canStartGroups);
            listenTo(grpCtr);
            return grpCtr.getInitialComponent();
        }
    });
    userTabP.addTab(translate(NLS_VIEW_COURSES), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            courseCtr = new CourseOverviewController(uureq, getWindowControl(), identity);
            listenTo(courseCtr);
            return courseCtr.getInitialComponent();
        }
    });
    if (isOlatAdmin) {
        userTabP.addTab(translate(NLS_VIEW_ACCESS), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                Controller accessCtr = new UserOrderController(uureq, getWindowControl(), identity);
                listenTo(accessCtr);
                return accessCtr.getInitialComponent();
            }
        });
    }
    if (isOlatAdmin) {
        userTabP.addTab(translate(NLS_VIEW_EFF_STATEMENTS), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                efficicencyCtrl = new CertificateAndEfficiencyStatementListController(uureq, getWindowControl(), identity, true);
                listenTo(efficicencyCtrl);
                BreadcrumbedStackedPanel stackPanel = new BreadcrumbedStackedPanel("statements", getTranslator(), efficicencyCtrl);
                stackPanel.pushController(translate(NLS_VIEW_EFF_STATEMENTS), efficicencyCtrl);
                efficicencyCtrl.setBreadcrumbPanel(stackPanel);
                stackPanel.setInvisibleCrumb(1);
                return stackPanel;
            }
        });
    }
    Boolean canSubscriptions = BaseSecurityModule.USERMANAGER_CAN_MODIFY_SUBSCRIPTIONS;
    if (canSubscriptions.booleanValue() || isOlatAdmin) {
        userTabP.addTab(translate(NLS_VIEW_SUBSCRIPTIONS), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                Controller subscriptionsCtr = new NotificationSubscriptionController(uureq, getWindowControl(), identity, true);
                listenTo(subscriptionsCtr);
                return subscriptionsCtr.getInitialComponent();
            }
        });
    }
    userTabP.addTab(translate(NLS_EDIT_UROLES), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            rolesCtr = new SystemRolesAndRightsController(getWindowControl(), uureq, identity);
            listenTo(rolesCtr);
            return rolesCtr.getInitialComponent();
        }
    });
    Boolean canQuota = BaseSecurityModule.USERMANAGER_ACCESS_TO_QUOTA;
    if (canQuota.booleanValue() || isOlatAdmin) {
        userTabP.addTab(translate(NLS_EDIT_UQUOTA), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                String relPath = FolderConfig.getUserHomes() + "/" + identity.getName();
                quotaCtr = QuotaManager.getInstance().getQuotaEditorInstance(uureq, getWindowControl(), relPath);
                return quotaCtr.getInitialComponent();
            }
        });
    }
    if (lectureModule.isEnabled()) {
        userTabP.addTab(translate(NLS_VIEW_LECTURES), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                lecturesCtrl = new ParticipantLecturesOverviewController(uureq, getWindowControl(), identity, true, true, true, true);
                listenTo(lecturesCtrl);
                BreadcrumbedStackedPanel stackPanel = new BreadcrumbedStackedPanel("lectures", getTranslator(), lecturesCtrl);
                stackPanel.pushController(translate(NLS_VIEW_LECTURES), lecturesCtrl);
                lecturesCtrl.setBreadcrumbPanel(stackPanel);
                stackPanel.setInvisibleCrumb(1);
                return stackPanel;
            }
        });
    }
    if (taxonomyModule.isEnabled()) {
        userTabP.addTab(translate(NLS_VIEW_COMPETENCES), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                competencesCtrl = new IdentityCompetencesController(uureq, getWindowControl(), identity);
                listenTo(competencesCtrl);
                BreadcrumbedStackedPanel stackPanel = new BreadcrumbedStackedPanel("competences", getTranslator(), competencesCtrl);
                stackPanel.pushController(translate(NLS_VIEW_COMPETENCES), competencesCtrl);
                competencesCtrl.setBreadcrumbPanel(stackPanel);
                stackPanel.setInvisibleCrumb(1);
                return stackPanel;
            }
        });
    }
    // now push to velocity
    myContent.put("userTabP", userTabP);
}
Also used : CourseOverviewController(org.olat.admin.user.course.CourseOverviewController) UserOrderController(org.olat.resource.accesscontrol.ui.UserOrderController) UserPropertiesController(org.olat.user.UserPropertiesController) TabbedPane(org.olat.core.gui.components.tabbedpane.TabbedPane) ParticipantLecturesOverviewController(org.olat.modules.lecture.ui.ParticipantLecturesOverviewController) NotificationSubscriptionController(org.olat.core.commons.services.notifications.ui.NotificationSubscriptionController) IdentityCompetencesController(org.olat.modules.taxonomy.ui.IdentityCompetencesController) DisplayPortraitController(org.olat.user.DisplayPortraitController) CourseOverviewController(org.olat.admin.user.course.CourseOverviewController) ProfileAndHomePageEditController(org.olat.user.ProfileAndHomePageEditController) GroupOverviewController(org.olat.admin.user.groups.GroupOverviewController) UserPropertiesController(org.olat.user.UserPropertiesController) NotificationSubscriptionController(org.olat.core.commons.services.notifications.ui.NotificationSubscriptionController) ChangePrefsController(org.olat.user.ChangePrefsController) UserOrderController(org.olat.resource.accesscontrol.ui.UserOrderController) Controller(org.olat.core.gui.control.Controller) BasicController(org.olat.core.gui.control.controller.BasicController) CertificateAndEfficiencyStatementListController(org.olat.course.certificate.ui.CertificateAndEfficiencyStatementListController) ParticipantLecturesOverviewController(org.olat.modules.lecture.ui.ParticipantLecturesOverviewController) IdentityCompetencesController(org.olat.modules.taxonomy.ui.IdentityCompetencesController) ProfileAndHomePageEditController(org.olat.user.ProfileAndHomePageEditController) TabCreator(org.olat.core.gui.components.tabbedpane.TabCreator) GroupOverviewController(org.olat.admin.user.groups.GroupOverviewController) ChangePrefsController(org.olat.user.ChangePrefsController) Component(org.olat.core.gui.components.Component) BreadcrumbedStackedPanel(org.olat.core.gui.components.stack.BreadcrumbedStackedPanel) CertificateAndEfficiencyStatementListController(org.olat.course.certificate.ui.CertificateAndEfficiencyStatementListController) UserRequest(org.olat.core.gui.UserRequest)

Example 5 with TabCreator

use of org.olat.core.gui.components.tabbedpane.TabCreator in project OpenOLAT by OpenOLAT.

the class BusinessGroupEditController method setAllTabs.

/**
 * Learning areas and and course rights should only appear when at least one course is associated.</br>
 * <ul><li>
 * a) No courses associated and user is not author</br>
 * Description, Tools, Members, Publishing and booking
 * </li><li>
 * b) No course associated and user is author:</br>
 * Description, Tools, Members, Courses, Publishing and booking
 * </li><li>
 * c) With courses associated:</br>
 * Description, Tools, Members, Courses, Learning areas, Course rights, Publishing and booking
 *
 * @param ureq
 */
private void setAllTabs(UserRequest ureq) {
    hasResources = businessGroupService.hasResources(currBusinessGroup);
    tabAccessCtrl = getAccessController(ureq);
    int currentSelectedPane = tabbedPane.getSelectedPane();
    tabbedPane.removeAll();
    editDetailsController.setAllowWaitingList(tabAccessCtrl == null || !tabAccessCtrl.isPaymentMethodInUse());
    tabbedPane.addTab(translate("group.edit.tab.details"), editDetailsController.getInitialComponent());
    tabbedPane.addTab(translate("group.edit.tab.collabtools"), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            collaborationToolsController = new BusinessGroupToolsController(uureq, getWindowControl(), currBusinessGroup);
            listenTo(collaborationToolsController);
            return collaborationToolsController.getInitialComponent();
        }
    });
    membersTab = tabbedPane.addTab(translate("group.edit.tab.members"), new TabCreator() {

        @Override
        public Component create(UserRequest uureq) {
            if (membersController == null) {
                membersController = new BusinessGroupMembersController(uureq, getWindowControl(), toolbarPanel, currBusinessGroup);
                listenTo(membersController);
            } else {
                membersController.updateBusinessGroup(currBusinessGroup);
            }
            return membersController.getInitialComponent();
        }
    });
    // resources (optional)
    Roles roles = ureq.getUserSession().getRoles();
    boolean resourceEnabled = roles.isOLATAdmin() || roles.isGroupManager() || roles.isAuthor() || hasResources;
    if (resourceEnabled) {
        tabbedPane.addTab(translate("group.edit.tab.resources"), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                if (resourceController == null) {
                    resourceController = new BusinessGroupEditResourceController(uureq, getWindowControl(), currBusinessGroup);
                    listenTo(resourceController);
                }
                return resourceController.getInitialComponent();
            }
        });
    } else {
        removeAsListenerAndDispose(resourceController);
        resourceController = null;
    }
    if (tabAccessCtrl != null) {
        tabbedPane.addTab(translate("group.edit.tab.accesscontrol"), new TabCreator() {

            @Override
            public Component create(UserRequest uureq) {
                return tabAccessCtrl.getInitialComponent();
            }
        });
    }
    if (currentSelectedPane > 0) {
        tabbedPane.setSelectedPane(ureq, currentSelectedPane);
    }
}
Also used : TabCreator(org.olat.core.gui.components.tabbedpane.TabCreator) Roles(org.olat.core.id.Roles) Component(org.olat.core.gui.components.Component) UserRequest(org.olat.core.gui.UserRequest)

Aggregations

UserRequest (org.olat.core.gui.UserRequest)6 Component (org.olat.core.gui.components.Component)6 TabCreator (org.olat.core.gui.components.tabbedpane.TabCreator)6 CourseOverviewController (org.olat.admin.user.course.CourseOverviewController)2 GroupOverviewController (org.olat.admin.user.groups.GroupOverviewController)2 NotificationSubscriptionController (org.olat.core.commons.services.notifications.ui.NotificationSubscriptionController)2 BreadcrumbedStackedPanel (org.olat.core.gui.components.stack.BreadcrumbedStackedPanel)2 TabbedPane (org.olat.core.gui.components.tabbedpane.TabbedPane)2 Controller (org.olat.core.gui.control.Controller)2 BasicController (org.olat.core.gui.control.controller.BasicController)2 Roles (org.olat.core.id.Roles)2 CertificateAndEfficiencyStatementListController (org.olat.course.certificate.ui.CertificateAndEfficiencyStatementListController)2 ParticipantLecturesOverviewController (org.olat.modules.lecture.ui.ParticipantLecturesOverviewController)2 IdentityCompetencesController (org.olat.modules.taxonomy.ui.IdentityCompetencesController)2 UserOrderController (org.olat.resource.accesscontrol.ui.UserOrderController)2 ChangePrefsController (org.olat.user.ChangePrefsController)2 DisplayPortraitController (org.olat.user.DisplayPortraitController)2 ProfileAndHomePageEditController (org.olat.user.ProfileAndHomePageEditController)2 UserPropertiesController (org.olat.user.UserPropertiesController)2