Examples of loadBusinessGroup()


Examples of org.olat.group.BusinessGroupManager.loadBusinessGroup()

  }

  private BusinessGroup doCopyGroup() {
    BusinessGroupManager groupManager = BusinessGroupManagerImpl.getInstance();
    // reload original group to prevent context proxy problems
    this.originalGroup = groupManager.loadBusinessGroup(this.originalGroup);
    BGContext bgContext = this.originalGroup.getGroupContext();
    String bgName = this.groupController.getGroupName();
    String bgDesc = this.groupController.getGroupDescription();
    Integer bgMax = this.groupController.getGroupMax();
    Integer bgMin = this.groupController.getGroupMin();
View Full Code Here

Examples of org.olat.group.BusinessGroupManager.loadBusinessGroup()

  }

  private BusinessGroup doCopyGroup(String newGroupName, Integer max) {
    BusinessGroupManager groupManager = BusinessGroupManagerImpl.getInstance();
    // reload original group to prevent context proxy problems
    this.originalGroup = groupManager.loadBusinessGroup(this.originalGroup);
    BGContext bgContext = this.originalGroup.getGroupContext();
    boolean copyAreas = (flags.isEnabled(BGConfigFlags.AREAS) && copyForm.isCopyAreas());

    BusinessGroup newGroup = groupManager.copyBusinessGroup(this.originalGroup, newGroupName, this.originalGroup.getDescription(), null, max, bgContext, null, copyAreas,
        copyForm.isCopyTools(), copyForm.isCopyRights(), copyForm.isCopyOwners(), copyForm.isCopyParticipants(), copyForm
View Full Code Here

Examples of org.olat.group.BusinessGroupManager.loadBusinessGroup()

        String actionid = te.getActionId();
        int rowid = te.getRowId();
        BusinessGroup currBusinessGroup = tableDataModel.getBusinessGroupAtRow(rowid);
        if (actionid.equals(TABLE_ACTION_LAUNCH)) {
          BusinessGroupManager bgm = BusinessGroupManagerImpl.getInstance();
          currBusinessGroup = bgm.loadBusinessGroup(currBusinessGroup.getKey(), false);
          if (currBusinessGroup==null) {
            //group seems to be removed meanwhile, reload table and show error
            showError("group.removed");
            buildTableController(ureq, wControl);
            vc.put("table.groups", tblCtr.getInitialComponent())
View Full Code Here

Examples of org.olat.group.BusinessGroupManager.loadBusinessGroup()

    if (cmd.indexOf(CMD_START_GROUP_PREFIX) == 0) {
      // launch the group in a new top nav tab
      String groupIdent = cmd.substring(CMD_START_GROUP_PREFIX.length());
      Long groupKey = new Long(Long.parseLong(groupIdent));
      BusinessGroupManager groupManager = BusinessGroupManagerImpl.getInstance();
      BusinessGroup group = groupManager.loadBusinessGroup(groupKey, false);
      // check if the group still exists and the user is really in this group
      // (security, changed group)
      if (group != null && groupManager.isIdentityInBusinessGroup(ureq.getIdentity(), group)) {
        Manager securityManager = ManagerFactory.getManager();
        boolean isCoach = securityManager.isIdentityInSecurityGroup(ureq.getIdentity(), group.getOwnerGroup());
View Full Code Here

Examples of org.olat.group.BusinessGroupManager.loadBusinessGroup()

      return BGControllerFactory.getInstance().createBuddyGroupMainController(ureq, wControl, initialViewIdentifier);

    } else if (OresHelper.isOfType(olatResourceable, BusinessGroup.class)) {
      if (roles.isGuestOnly()) throw new OLATSecurityException("Tried to launch a BusinessGroup, but is in guest group " + roles);
      BusinessGroupManager bgm = BusinessGroupManagerImpl.getInstance();
      BusinessGroup bg = bgm.loadBusinessGroup(olatResourceable.getResourceableId(), exceptIfNoneFound);
      boolean isOlatAdmin = ureq.getUserSession().getRoles().isOLATAdmin();
      // check if allowed to start (must be member or admin)
      if (isOlatAdmin || bgm.isIdentityInBusinessGroup(ureq.getIdentity(), bg)) { 
        // only olatadmins or admins of this group can administer this group
        return BGControllerFactory.getInstance().createRunControllerFor(ureq, wControl, bg, isOlatAdmin,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.