Package org.olat.group.ui.run

Examples of org.olat.group.ui.run.BusinessGroupMainRunController


   
    String bgTyp = businessGroup.getType();
    if (BusinessGroup.TYPE_BUDDYGROUP.equals(bgTyp)) {
      BGConfigFlags flags = BGConfigFlags.createBuddyGroupDefaultFlags();
      flags.setEnabled(BGConfigFlags.IS_GM_ADMIN, false);
      return new BusinessGroupMainRunController(ureq, bwControl, businessGroup, flags, initialViewIdentifier);
    } else if (BusinessGroup.TYPE_LEARNINGROUP.equals(bgTyp)) {
      BGConfigFlags flags = BGConfigFlags.createLearningGroupDefaultFlags();
      flags.setEnabled(BGConfigFlags.IS_GM_ADMIN, isGMAdmin);
      return new BusinessGroupMainRunController(ureq, bwControl, businessGroup, flags, initialViewIdentifier);
    } else if (BusinessGroup.TYPE_RIGHTGROUP.equals(bgTyp)) {
      BGConfigFlags flags = BGConfigFlags.createRightGroupDefaultFlags();
      flags.setEnabled(BGConfigFlags.IS_GM_ADMIN, isGMAdmin);
      return new BusinessGroupMainRunController(ureq, bwControl, businessGroup, flags, initialViewIdentifier);
    }
    // else
    throw new AssertException("unknown BusinessGroupType::" + bgTyp);
  }
View Full Code Here


   */
  public BusinessGroupMainRunController createRunControllerAsTopNavTab(BusinessGroup businessGroup, UserRequest ureq,
      WindowControl wControl, boolean isGMAdmin, String initialViewIdentifier) {
    String displayName = businessGroup.getName();

    BusinessGroupMainRunController bgMrc = null;

    OLATResourceable ores = businessGroup;
    DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
    //was brasato:: DTabs dts = wControl.getDTabs();
    DTab dt = dts.getDTab(ores);
View Full Code Here

        this.currBusinessGroup = createBuddyGroup(ureq);
        updateGroupListModelAll();
        ChangeManager.changed(ChangeManager.ACTION_CREATE,this.currBusinessGroup);

        // after successfully creating a buddygroup 'launch' it
        BusinessGroupMainRunController groupRunCtr = BGControllerFactory.getInstance().createRunControllerAsTopNavTab(this.currBusinessGroup,
            ureq, getWindowControl(), false, null);
        if (groupRunCtr != null) groupRunCtr.activateAdministrationMode(ureq);
      } else if (event == Event.FAILED_EVENT) {
        this.cmc = new CloseableModalController(getWindowControl(), translate("close"), this.createBuddyGroupController.getInitialComponent(), true, translate("create.form.title"));
        this.cmc.activate();
        listenTo(this.cmc);
      } else if (event == Event.CANCELLED_EVENT) {
View Full Code Here

TOP

Related Classes of org.olat.group.ui.run.BusinessGroupMainRunController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.