Package org.olat.admin.securitygroup.gui

Examples of org.olat.admin.securitygroup.gui.GroupController


    if (hasOwners) {
      boolean requiresOwner = flags.isEnabled(BGConfigFlags.GROUP_OWNER_REQURED);
      // groupcontroller which allows to remove all members depending on
      // configuration.
      ownerGrpCntrllr = new GroupController(ureq, getWindowControl(), true, requiresOwner, enableTablePreferences, currBusinessGroup
          .getOwnerGroup());
      listenTo(ownerGrpCntrllr);
      // add mail templates used when adding and removing users
      MailTemplate ownerAddUserMailTempl = BGMailHelper.createAddParticipantMailTemplate(currBusinessGroup, ureq.getIdentity());
      ownerGrpCntrllr.setAddUserMailTempl(ownerAddUserMailTempl);
      MailTemplate ownerAremoveUserMailTempl = BGMailHelper.createRemoveParticipantMailTemplate(currBusinessGroup, ureq.getIdentity());
      ownerGrpCntrllr.setRemoveUserMailTempl(ownerAremoveUserMailTempl);
      // expose to velocity
      tmp.put("ownerGrpMngmnt", ownerGrpCntrllr.getInitialComponent());
      tmp.contextPut("hasOwnerGrp", Boolean.TRUE);
    } else {
      tmp.contextPut("hasOwnerGrp", Boolean.FALSE);
    }
    // groupcontroller which allows to remove all members
    partipGrpCntrllr = new GroupController(ureq, getWindowControl(), true, false, enableTablePreferences, currBusinessGroup
        .getPartipiciantGroup());
    listenTo(partipGrpCntrllr);
    // add mail templates used when adding and removing users
    MailTemplate partAddUserMailTempl = BGMailHelper.createAddParticipantMailTemplate(currBusinessGroup, ureq.getIdentity());
    partipGrpCntrllr.setAddUserMailTempl(partAddUserMailTempl);
View Full Code Here


      contextEditVC.put("contexteditor", contextEditCtr.getInitialComponent());
      contextEditVC.contextPut("editingAllowed", Boolean.TRUE);
    } else {
      // show who is the owner of this context
      if (contextOwnersCtr != null) contextOwnersCtr.dispose();
      contextOwnersCtr = new GroupController(ureq, getWindowControl(), false, true, false, this.bgContext.getOwnerGroup());
      contextOwnersCtr.addControllerListener(this);
      contextEditVC.put("owners", contextOwnersCtr.getInitialComponent());
      contextEditVC.contextPut("editingAllowed", Boolean.FALSE);
    }
View Full Code Here

    }

    main.put(infopanelVC.getComponentName(), infopanelVC);

    if (groupController != null) groupController.dispose();
    groupController = new GroupController(ureq, getWindowControl(), false, true, false, repositoryEntry.getOwnerGroup());
    main.put("ownertable", groupController.getInitialComponent());

  }
View Full Code Here

        return;
      } else if (cmd.equals(ACTION_GROUPS)) { // edit authors group
        if (!isOwner) throw new OLATSecurityException("Trying to access groupmanagement, but not allowed: user = " + ureq.getIdentity());
        ownerGroup = repositoryEntry.getOwnerGroup();
        if (groupEditController != null) groupEditController.dispose();
        groupEditController = new GroupController(ureq, getWindowControl(), true, true, false, ownerGroup);
        groupEditController.addControllerListener(this);
        VelocityContainer groupContainer = createVelocityContainer("groups")
        groupContainer.put("groupcomp", groupEditController.getInitialComponent());
        CloseableModalController cmc = new CloseableModalController(getWindowControl(), translate("close"), groupContainer);
        cmc.activate();
View Full Code Here

  private void doShowMembers(UserRequest ureq) {
    VelocityContainer membersVc = createVelocityContainer("ownersandmembers");
    // 1. show owners if configured with Owners
    if (flags.isEnabled(BGConfigFlags.GROUP_OWNERS) && bgpm.showOwners()) {
      GroupController gownersC = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getOwnerGroup());
      membersVc.put("owners", gownersC.getInitialComponent());
      membersVc.contextPut("showOwnerGroups", Boolean.TRUE);
    } else {
      membersVc.contextPut("showOwnerGroups", Boolean.FALSE);
    }
    // 2. show participants if configured with Participants
    if (bgpm.showPartips()) {
      GroupController gparticipantsC = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup
          .getPartipiciantGroup());
      membersVc.put("participants", gparticipantsC.getInitialComponent());
      membersVc.contextPut("showPartipsGroups", Boolean.TRUE);
    } else {
      membersVc.contextPut("showPartipsGroups", Boolean.FALSE);
    }
    // 3. show waiting-list if configured
    membersVc.contextPut("hasWaitingList", new Boolean(businessGroup.getWaitingListEnabled()) );
    if (bgpm.showWaitingList()) {
      GroupController waitingListController = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getWaitingGroup());
      membersVc.put("waitingList", waitingListController.getInitialComponent());
      membersVc.contextPut("showWaitingList", Boolean.TRUE);
    } else {
      membersVc.contextPut("showWaitingList", Boolean.FALSE);
    }
    mainPanel.setContent(membersVc);
View Full Code Here

  private VelocityContainer doCreateTabOwners(UserRequest ureq) {
    this.tabOwnersVC = createVelocityContainer("tab_owners");
    if (this.ownerCtr != null) {
      removeAsListenerAndDispose(this.ownerCtr);
    }
    this.ownerCtr = new GroupController(ureq, getWindowControl(), true, true, false, this.groupContext.getOwnerGroup());
    listenTo(this.ownerCtr);
    this.tabOwnersVC.put("owners", this.ownerCtr.getInitialComponent());
    return this.tabOwnersVC;
  }
View Full Code Here

    accountManagementFormVC = this.createVelocityContainer("account_management");
    String groupName = translate("account.manager.groupname", node.getShortTitle());
    String groupDescription = translate("account.manager.groupdescription", node.getShortTitle());
    accountManagerGroup = ProjectBrokerManagerFactory.getProjectGroupManager().getAccountManagerGroupFor(cpm, node, course, groupName, groupDescription, ureq.getIdentity());
    if (accountManagerGroup != null) {
      accountManagerGroupController = new GroupController(ureq, getWindowControl(), true, false, true, accountManagerGroup.getPartipiciantGroup());
      listenTo(accountManagerGroupController);
      // add mail templates used when adding and removing users
      MailTemplate ownerAddUserMailTempl = BGMailHelper.createAddParticipantMailTemplate(accountManagerGroup, ureq.getIdentity());
      accountManagerGroupController.setAddUserMailTempl(ownerAddUserMailTempl);
      MailTemplate ownerAremoveUserMailTempl = BGMailHelper.createRemoveParticipantMailTemplate(accountManagerGroup, ureq.getIdentity());
View Full Code Here

    this.projectBrokerModuleConfiguration = projectBrokerModuleConfiguration;
   
    VelocityContainer myContent = createVelocityContainer("projectgroup_management");

    // Project Leader Management
    projectLeaderController = new GroupController(ureq, getWindowControl(), true, true, true, project.getProjectLeaderGroup());
    listenTo(projectLeaderController);
    myContent.put("projectLeaderController", projectLeaderController.getInitialComponent());

    // Project Member Management
    projectMemberController = new GroupController(ureq, getWindowControl(), true, false, true, project.getProjectParticipantGroup());
    listenTo(projectMemberController);
    myContent.put("projectMemberController", projectMemberController.getInitialComponent());
    // add mail templates used when adding and removing users
    MailTemplate partAddUserMailTempl = ProjectBrokerManagerFactory.getProjectBrokerEmailer().createAddParticipantMailTemplate(project, ureq.getIdentity(), this.getTranslator());
    projectMemberController.setAddUserMailTempl(partAddUserMailTempl);
View Full Code Here

          currentCatalogEntry.setOwnerGroup(secGroup);
          cm.saveCatalogEntry(currentCatalogEntry);
        }
        boolean keepAtLeastOne = currentCatalogEntryLevel == 0;
        removeAsListenerAndDispose(groupController);
        groupController = new GroupController(ureq, getWindowControl(), true, keepAtLeastOne, false, secGroup);
        listenTo(groupController);
        // open form in dialog
        removeAsListenerAndDispose(cmc);
        cmc = new CloseableModalController(getWindowControl(), "close", groupController.getInitialComponent(), true, translate("tools.edit.catalog.category.ownergroup"));
        listenTo(cmc);
View Full Code Here

TOP

Related Classes of org.olat.admin.securitygroup.gui.GroupController

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.