Package org.olat.group.properties

Examples of org.olat.group.properties.BusinessGroupPropertyManager


      ProjectBrokerManagerFactory.getProjectBrokerManager().deleteGroupDataFor(businessGroupTodelete);
      // 1) Delete all group properties
      CollaborationTools ct = CollaborationToolsFactory.getInstance().getOrCreateCollaborationTools(businessGroupTodelete);
      ct.deleteTools(businessGroupTodelete);// deletes everything concerning properties&collabTools
      // 1.b)delete display member property
      BusinessGroupPropertyManager bgpm = new BusinessGroupPropertyManager(businessGroupTodelete);
      bgpm.deleteDisplayMembers();
      // 2) Delete the group areas
      if (BusinessGroup.TYPE_LEARNINGROUP.equals(type)) {
        BGAreaManagerImpl.getInstance().deleteBGtoAreaRelations(businessGroupTodelete);
      }
      // 3) Delete the group object itself on the database
View Full Code Here


      String oldNews = oldTools.lookupNews();
      newTools.saveNews(oldNews);
    }
    // 3. copy member visibility
    if (copyMemberVisibility) {
      BusinessGroupPropertyManager bgpm = new BusinessGroupPropertyManager(newGroup);
      bgpm.copyConfigurationFromGroup(sourceBusinessGroup);
    }
    // 4. copy areas
    if (copyAreas) {
      BGAreaManager areaManager = BGAreaManagerImpl.getInstance();
      List areas = areaManager.findBGAreasOfBusinessGroup(sourceBusinessGroup);
View Full Code Here

      BGArea areaRelation = (BGArea) iterator.next();
      MutableConfiguration newGroupAreaRel = newGroup.addChild(EXPORT_KEY_AREA_RELATION);
      newGroupAreaRel.setValue(areaRelation.getName());
    }
    //export properties
    BusinessGroupPropertyManager bgPropertyManager = new BusinessGroupPropertyManager(group);
    boolean showOwners = bgPropertyManager.showOwners();
    boolean showParticipants = bgPropertyManager.showPartips();
    boolean showWaitingList = bgPropertyManager.showWaitingList();
   
    newGroup.addAttribute(EXPORT_KEY_SHOW_OWNERS, showOwners);   
    newGroup.addAttribute(EXPORT_KEY_SHOW_PARTICIPANTS, showParticipants);   
    newGroup.addAttribute(EXPORT_KEY_SHOW_WAITING_LIST, showWaitingList);   
  }
View Full Code Here

          showParticipants = Boolean.valueOf(group.getAttribute(EXPORT_KEY_SHOW_PARTICIPANTS));
        }
        if(group.getAttribute(EXPORT_KEY_SHOW_WAITING_LIST)!=null) {
          showWaitingList = Boolean.valueOf(group.getAttribute(EXPORT_KEY_SHOW_WAITING_LIST));
        }
        BusinessGroupPropertyManager bgPropertyManager = new BusinessGroupPropertyManager(newGroup);
        bgPropertyManager.updateDisplayMembers(showOwners, showParticipants, showWaitingList);
      }
    }
  }
View Full Code Here

    securityManager.addIdentityToSecurityGroup(identity, ownerGroup);

    // per default all collaboration-tools are disabled

    // group members visibility
    BusinessGroupPropertyManager bgpm = new BusinessGroupPropertyManager(businessgroup);
    bgpm.createAndPersistDisplayMembers(true, false, false);
    return businessgroup;
  }
View Full Code Here

  public void event(UserRequest ureq, Component source, Event event) {
    if (source == this.dmsForm) {
      // event.getCommand().equals(Form.EVENT_VALIDATION_OK
      // this is always true in this case, because there is no
      // validation to be done.
      BusinessGroupPropertyManager bgpm = new BusinessGroupPropertyManager(currBusinessGroup);
      bgpm.updateDisplayMembers(dmsForm.getShowOwners(), dmsForm.getShowPartipiciants(), dmsForm.getShowWaitingList());
      bgpm = null;
      // notify current active users of this business group
      BusinessGroupModifiedEvent.fireModifiedGroupEvents(BusinessGroupModifiedEvent.CONFIGURATION_MODIFIED_EVENT, currBusinessGroup, null);
      // do loggin
      ThreadLocalUserActivityLogger.log(GroupLoggingAction.GROUP_CONFIGURATION_CHANGED, getClass());
View Full Code Here

    }

    // per default all collaboration-tools are disabled

    // group members visibility
    BusinessGroupPropertyManager bgpm = new BusinessGroupPropertyManager(businessgroup);
    bgpm.createAndPersistDisplayMembers(true, false, false);
    return businessgroup;
  }
View Full Code Here

    }

    // per default all collaboration-tools are disabled

    // group members visibility
    BusinessGroupPropertyManager bgpm = new BusinessGroupPropertyManager(businessgroup);
    bgpm.createAndPersistDisplayMembers(false, true, false);
    return businessgroup;
  }
View Full Code Here

    //
    VelocityContainer tmp = createVelocityContainer("tab_bgGrpMngmnt");
    // Member Display Form, allows to enable/disable that others partips see
    // partips and/or owners
    //
    BusinessGroupPropertyManager bgpm = new BusinessGroupPropertyManager(currBusinessGroup);
    // configure the form with checkboxes for owners and/or partips according
    // the booleans
    dmsForm = new DisplayMemberSwitchForm("dmsForm", getTranslator(), hasOwners, hasPartips, hasWaitingList);
    // set if the checkboxes are checked or not.
    if (hasOwners) dmsForm.setShowOwnersChecked(bgpm.showOwners());
    if (hasPartips) dmsForm.setShowPartipsChecked(bgpm.showPartips());
    if (hasWaitingList) dmsForm.setShowWaitingListChecked(bgpm.showWaitingList());
    bgpm = null;
    dmsForm.addListener(this);
    tmp.put("displayMembers", dmsForm);
    boolean enableTablePreferences = flags.isEnabled(BGConfigFlags.ADMIN_SEE_ALL_USER_DATA);
View Full Code Here

  public BusinessGroupMainRunController(UserRequest ureq, WindowControl control, BusinessGroup currBusinessGroup, BGConfigFlags flags,
      String initialViewIdentifier) {
    super(ureq, control);
    addLoggingResourceable(LoggingResourceable.wrap(currBusinessGroup));
    ThreadLocalUserActivityLogger.log(GroupLoggingAction.GROUP_OPEN, getClass());
    this.bgpm = new BusinessGroupPropertyManager(currBusinessGroup);
    this.flags = flags;
    this.businessGroup = currBusinessGroup;
    this.identity = ureq.getIdentity();
    this.userSession = ureq.getUserSession();
    this.assessmentEventOres = OresHelper.createOLATResourceableType(AssessmentEvent.class);
View Full Code Here

TOP

Related Classes of org.olat.group.properties.BusinessGroupPropertyManager

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.