Package org.olat.group.context

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


    DBFactory.getInstance().closeSession(); // simulate user clicks
    cm.removeBGContextFromResource(c1, course1);
    assertTrue(cm.findBGContextsForResource(course1, true, true).size() == 2);
    assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_LEARNINGROUP, true, true).size() == 1);
    assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_RIGHTGROUP, true, true).size() == 1);

    DBFactory.getInstance().closeSession(); // simulate user clicks
    // cm.removeAllBGContextsFromResource(course1);
    CourseGroupManager cgm = PersistingCourseGroupManager.getInstance(course1);
    cgm.deleteCourseGroupmanagement();
View Full Code Here


    DBFactory.getInstance().closeSession(); // simulate user clicks
    // cm.removeAllBGContextsFromResource(course1);
    CourseGroupManager cgm = PersistingCourseGroupManager.getInstance(course1);
    cgm.deleteCourseGroupmanagement();
    assertTrue(cm.findBGContextsForResource(course1, true, true).size() == 0);
    assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_LEARNINGROUP, true, true).size() == 0);
    assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_RIGHTGROUP, true, true).size() == 0);
  }
 
  public void testRemoveBGFromArea() {
View Full Code Here

    DBFactory.getInstance().closeSession(); // simulate user clicks
    // cm.removeAllBGContextsFromResource(course1);
    CourseGroupManager cgm = PersistingCourseGroupManager.getInstance(course1);
    cgm.deleteCourseGroupmanagement();
    assertTrue(cm.findBGContextsForResource(course1, true, true).size() == 0);
    assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_LEARNINGROUP, true, true).size() == 0);
    assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_RIGHTGROUP, true, true).size() == 0);
  }
 
  public void testRemoveBGFromArea() {
    BGContextManager cm = BGContextManagerImpl.getInstance();
View Full Code Here

    // cm.removeAllBGContextsFromResource(course1);
    CourseGroupManager cgm = PersistingCourseGroupManager.getInstance(course1);
    cgm.deleteCourseGroupmanagement();
    assertTrue(cm.findBGContextsForResource(course1, true, true).size() == 0);
    assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_LEARNINGROUP, true, true).size() == 0);
    assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_RIGHTGROUP, true, true).size() == 0);
  }
 
  public void testRemoveBGFromArea() {
    BGContextManager cm = BGContextManagerImpl.getInstance();
    BGContext bgContext = cm.createAndAddBGContextToResource("c2name", course1, BusinessGroup.TYPE_LEARNINGROUP, null, true);
View Full Code Here

  }
 
  public void testRemoveBGFromArea() {
    BGContextManager cm = BGContextManagerImpl.getInstance();
    BGContext bgContext = cm.createAndAddBGContextToResource("c2name", course1, BusinessGroup.TYPE_LEARNINGROUP, null, true);
    assertEquals( 1,cm.findBGContextsForResource(course1, true, true).size() );
    cm.removeBGContextFromResource(bgContext, course1);
    assertEquals( 0,cm.findBGContextsForResource(course1, true, true).size() );
  }

}
View Full Code Here

  public void testRemoveBGFromArea() {
    BGContextManager cm = BGContextManagerImpl.getInstance();
    BGContext bgContext = cm.createAndAddBGContextToResource("c2name", course1, BusinessGroup.TYPE_LEARNINGROUP, null, true);
    assertEquals( 1,cm.findBGContextsForResource(course1, true, true).size() );
    cm.removeBGContextFromResource(bgContext, course1);
    assertEquals( 0,cm.findBGContextsForResource(course1, true, true).size() );
  }

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