Examples of findBGArea()


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

        // get memberships
        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
View Full Code Here

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

    List groups = new ArrayList();
    BGAreaManager areaManager = BGAreaManagerImpl.getInstance();
    Iterator iterator = learningGroupContexts.iterator();
    while (iterator.hasNext()) {
      BGContext bgContext = (BGContext) iterator.next();
      BGArea area = areaManager.findBGArea(areaName, bgContext);
      if (area != null) {
        List areaGroups = areaManager.findBusinessGroupsOfArea(area);
        groups.addAll(areaGroups);
      }
    }
View Full Code Here

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

    bgcm.deleteBGContext(c2);
    // assertNull(DB.getInstance().findObject(BGContextImpl.class,
    // c2.getKey()));

    assertTrue(am.findBGAreasOfBGContext(c1).size() == 0);
    assertNull(am.findBGArea("a1-delete", c1));
    assertTrue(am.findBGAreasOfBusinessGroup(g1).size() == 0);
    assertTrue(am.findBGAreasOfBGContext(c2).size() == 0);
    assertNull(am.findBGArea("a2-delete", c1));
    assertTrue(am.findBusinessGroupsOfArea(a1).size() == 0);
    assertTrue(am.findBusinessGroupsOfArea(a2).size() == 0);
View Full Code Here

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

    assertTrue(am.findBGAreasOfBGContext(c1).size() == 0);
    assertNull(am.findBGArea("a1-delete", c1));
    assertTrue(am.findBGAreasOfBusinessGroup(g1).size() == 0);
    assertTrue(am.findBGAreasOfBGContext(c2).size() == 0);
    assertNull(am.findBGArea("a2-delete", c1));
    assertTrue(am.findBusinessGroupsOfArea(a1).size() == 0);
    assertTrue(am.findBusinessGroupsOfArea(a2).size() == 0);
    assertFalse(rm.hasBGRight(CourseRights.RIGHT_ARCHIVING, id1, c2));
    assertFalse(rm.hasBGRight(CourseRights.RIGHT_GROUPMANAGEMENT, id1, c2));
    assertFalse(rm.hasBGRight(CourseRights.RIGHT_ARCHIVING, id2, c2));
View Full Code Here

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

      // ok, passed
    }
    DBFactory.getInstance().closeSession(); // simulate user clicks

    assertTrue(am.findBGAreasOfBGContext(c1copy).size() == 2);
    assertNotNull(am.findBGArea("a1-copy", c1));
    assertNotNull(am.findBGArea("a2-copy", c1));
    assertNotNull(bgcm.findGroupOfBGContext(g1.getName(), c1copy));
    assertNotNull(bgcm.findGroupOfBGContext(g2.getName(), c1copy));
    assertTrue(bgcm.getGroupsOfBGContext(c1copy).size() == 2);
  }
View Full Code Here

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

    }
    DBFactory.getInstance().closeSession(); // simulate user clicks

    assertTrue(am.findBGAreasOfBGContext(c1copy).size() == 2);
    assertNotNull(am.findBGArea("a1-copy", c1));
    assertNotNull(am.findBGArea("a2-copy", c1));
    assertNotNull(bgcm.findGroupOfBGContext(g1.getName(), c1copy));
    assertNotNull(bgcm.findGroupOfBGContext(g2.getName(), c1copy));
    assertTrue(bgcm.getGroupsOfBGContext(c1copy).size() == 2);
  }
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.