Examples of BGArea


Examples of org.olat.group.area.BGArea

      Object item = itemIterator.next();
      if (item instanceof BusinessGroup) {
        BusinessGroup group = (BusinessGroup) item;
        entryList.add(new OrganisationalEntity(group.getKey(), group.getName()));
      } else if (item instanceof BGArea) {
        BGArea area = (BGArea) item;
        entryList.add(new OrganisationalEntity(area.getKey(), area.getName()));
      }
    }
    return entryList;
  }
View Full Code Here

Examples of org.olat.group.area.BGArea

    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.BGArea

    List areas = getAllAreasFromAllContexts();
    List areaNames = new ArrayList();

    Iterator iter = areas.iterator();
    while (iter.hasNext()) {
      BGArea area = (BGArea) iter.next();
      String areaName = area.getName();
      if (!areaNames.contains(areaName)) areaNames.add(areaName.trim());
    }

    return areaNames;
  }
View Full Code Here

Examples of org.olat.group.area.BGArea

    assertTrue(rm.hasBGRight(CourseRights.RIGHT_ARCHIVING, id2, c2));
    assertFalse(rm.hasBGRight(CourseRights.RIGHT_ARCHIVING, id3, c2));

    DBFactory.getInstance().closeSession(); // simulate user clicks
    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);
View Full Code Here

Examples of org.olat.group.area.BGArea

    rm.addBGRight(CourseRights.RIGHT_ARCHIVING, g3);
    rm.addBGRight(CourseRights.RIGHT_COURSEEDITOR, g3);

    DBFactory.getInstance().closeSession(); // simulate user clicks
    BGAreaManager am = BGAreaManagerImpl.getInstance();
    BGArea a1 = am.createAndPersistBGAreaIfNotExists("a1-copy", "desca1", c1);
    BGArea a2 = am.createAndPersistBGAreaIfNotExists("a2-copy", null, c1);
    am.addBGToBGArea(g1, a1);
    am.addBGToBGArea(g2, a1);
    am.addBGToBGArea(g1, a2);
    DBFactory.getInstance().closeSession(); // simulate user clicks
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.