Examples of deleteBGContext()


Examples of org.olat.group.context.BGContextManager.deleteBGContext()

    List allContexts = contextManager.findBGContextsForResource(courseResource, true, true);
    Iterator iter = allContexts.iterator();
    while (iter.hasNext()) {
      BGContext context = (BGContext) iter.next();
      if (context.isDefaultContext()) {
        contextManager.deleteBGContext(context);
      } else {
        // not a default context, only unlink from this course
        contextManager.removeBGContextFromResource(context, courseResource);
      }
    }
View Full Code Here

Examples of org.olat.group.context.BGContextManager.deleteBGContext()

    assertTrue(am.findBusinessGroupsOfAreaAttendedBy(id4, "a1-delete", c1).size() == 1);
    assertTrue(am.findBusinessGroupsOfAreaAttendedBy(id4, "a2-delete", c1).size() == 0);
    assertTrue(am.findBusinessGroupsOfAreaAttendedBy(id4, "a3-delete", c1).size() == 1);
    assertTrue(am.findBusinessGroupsOfAreaAttendedBy(id4, "a4-delete", c1).size() == 0);

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

    bgcm.deleteBGContext(c2);
    // assertNull(DB.getInstance().findObject(BGContextImpl.class,
View Full Code Here

Examples of org.olat.group.context.BGContextManager.deleteBGContext()

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

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

    assertTrue(am.findBGAreasOfBGContext(c1).size() == 0);
    assertNull(am.findBGArea("a1-delete", c1));
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.