Examples of addBGToBGArea()


Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

      Iterator iterator = areas.iterator();
      while (iterator.hasNext()) {
        BGArea area = (BGArea) iterator.next();
        if (areaLookupMap == null) {
          // reference target group to source groups areas
          areaManager.addBGToBGArea(newGroup, area);
        } else {
          // reference target group to mapped group areas
          BGArea mappedArea = (BGArea) areaLookupMap.get(area);
          areaManager.addBGToBGArea(newGroup, mappedArea);
        }
View Full Code Here

Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

          // reference target group to source groups areas
          areaManager.addBGToBGArea(newGroup, area);
        } else {
          // reference target group to mapped group areas
          BGArea mappedArea = (BGArea) areaLookupMap.get(area);
          areaManager.addBGToBGArea(newGroup, mappedArea);
        }
      }
    }
    // 5. copy owners
    if (copyOwners) {
View Full Code Here

Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

        List memberships = group.getChildren(EXPORT_KEY_AREA_RELATION);
        for (Iterator iterator = memberships.iterator(); iterator.hasNext();) {
          Configuration areaRelation = (Configuration) iterator.next();
          BGArea area = am.findBGArea(areaRelation.getValue(), context);
          if (area == null) throw new AssertException("Group-Area-Relationship in export, but area was not created during import.");
          am.addBGToBGArea(newGroup, area);
        }
       
        //get properties
        boolean showOwners = true;
        boolean showParticipants = true;
View Full Code Here

Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

      secm.addIdentityToSecurityGroup(id3, g1.getOwnerGroup());
      // areas
      BGArea a1 = am.createAndPersistBGAreaIfNotExists("a1", "desca1",c1);
      BGArea a2 = am.createAndPersistBGAreaIfNotExists("a2", null, c1);
      BGArea a3 = am.createAndPersistBGAreaIfNotExists("a3", null, c1);
      am.addBGToBGArea(g1, a1);   
      am.addBGToBGArea(g2, a1);
      am.addBGToBGArea(g1, a2)
      am.addBGToBGArea(g2, a3);
     
      // 2) context two: right groups
View Full Code Here

Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

      // areas
      BGArea a1 = am.createAndPersistBGAreaIfNotExists("a1", "desca1",c1);
      BGArea a2 = am.createAndPersistBGAreaIfNotExists("a2", null, c1);
      BGArea a3 = am.createAndPersistBGAreaIfNotExists("a3", null, c1);
      am.addBGToBGArea(g1, a1);   
      am.addBGToBGArea(g2, a1);
      am.addBGToBGArea(g1, a2)
      am.addBGToBGArea(g2, a3);
     
      // 2) context two: right groups
      BGContext c2 = cm.createAndAddBGContextToResource("c2name", course1, BusinessGroup.TYPE_RIGHTGROUP, id2, true);
View Full Code Here

Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

      BGArea a1 = am.createAndPersistBGAreaIfNotExists("a1", "desca1",c1);
      BGArea a2 = am.createAndPersistBGAreaIfNotExists("a2", null, c1);
      BGArea a3 = am.createAndPersistBGAreaIfNotExists("a3", null, c1);
      am.addBGToBGArea(g1, a1);   
      am.addBGToBGArea(g2, a1);
      am.addBGToBGArea(g1, a2)
      am.addBGToBGArea(g2, a3);
     
      // 2) context two: right groups
      BGContext c2 = cm.createAndAddBGContextToResource("c2name", course1, BusinessGroup.TYPE_RIGHTGROUP, id2, true);
      // groups
View Full Code Here

Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

      BGArea a2 = am.createAndPersistBGAreaIfNotExists("a2", null, c1);
      BGArea a3 = am.createAndPersistBGAreaIfNotExists("a3", null, c1);
      am.addBGToBGArea(g1, a1);   
      am.addBGToBGArea(g2, a1);
      am.addBGToBGArea(g1, a2)
      am.addBGToBGArea(g2, a3);
     
      // 2) context two: right groups
      BGContext c2 = cm.createAndAddBGContextToResource("c2name", course1, BusinessGroup.TYPE_RIGHTGROUP, id2, true);
      // groups
      BusinessGroup g3 = bgm.createAndPersistBusinessGroup(BusinessGroup.TYPE_RIGHTGROUP, null, "g3", null, null, null, null/* enableWaitinglist */, null/* enableAutoCloseRanks */, c2);
View Full Code Here

Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

    BGAreaManager am = BGAreaManagerImpl.getInstance();
    BGArea a1 = am.createAndPersistBGAreaIfNotExists("a1-delete", "desca1", c1);
    BGArea a2 = am.createAndPersistBGAreaIfNotExists("a2-delete", null, c1);
    BGArea a3 = am.createAndPersistBGAreaIfNotExists("a3-delete", "desca3", c1);
    BGArea a4 = am.createAndPersistBGAreaIfNotExists("a4-delete", "desca4", c1);
    am.addBGToBGArea(g1, a1);
    am.addBGToBGArea(g2, a1);
    am.addBGToBGArea(g1, a2);
    am.addBGToBGArea(g2, a3);
    am.addBGToBGArea(g1, a4);
    DBFactory.getInstance().closeSession(); // simulate user clicks
View Full Code Here

Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

    BGArea a1 = am.createAndPersistBGAreaIfNotExists("a1-delete", "desca1", c1);
    BGArea a2 = am.createAndPersistBGAreaIfNotExists("a2-delete", null, c1);
    BGArea a3 = am.createAndPersistBGAreaIfNotExists("a3-delete", "desca3", c1);
    BGArea a4 = am.createAndPersistBGAreaIfNotExists("a4-delete", "desca4", c1);
    am.addBGToBGArea(g1, a1);
    am.addBGToBGArea(g2, a1);
    am.addBGToBGArea(g1, a2);
    am.addBGToBGArea(g2, a3);
    am.addBGToBGArea(g1, a4);
    DBFactory.getInstance().closeSession(); // simulate user clicks
View Full Code Here

Examples of org.olat.group.area.BGAreaManager.addBGToBGArea()

    BGArea a2 = am.createAndPersistBGAreaIfNotExists("a2-delete", null, c1);
    BGArea a3 = am.createAndPersistBGAreaIfNotExists("a3-delete", "desca3", c1);
    BGArea a4 = am.createAndPersistBGAreaIfNotExists("a4-delete", "desca4", c1);
    am.addBGToBGArea(g1, a1);
    am.addBGToBGArea(g2, a1);
    am.addBGToBGArea(g1, a2);
    am.addBGToBGArea(g2, a3);
    am.addBGToBGArea(g1, a4);
    DBFactory.getInstance().closeSession(); // simulate user clicks

    // test isIdentityInBGArea
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.