Package org.olat.group.area

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


    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
    assertTrue(am.isIdentityInBGArea(id1, "a1-delete", c1));
View Full Code Here


    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
    assertTrue(am.isIdentityInBGArea(id1, "a1-delete", c1));
    assertTrue(am.isIdentityInBGArea(id1, "a2-delete", c1));
View Full Code Here

    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

    BGContext c1copy = bgcm.copyAndAddBGContextToResource(c1.getName(), course1, c1);
View Full Code Here

    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

    BGContext c1copy = bgcm.copyAndAddBGContextToResource(c1.getName(), course1, c1);
    DBFactory.getInstance().closeSession(); // simulate user clicks
View Full Code Here

    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

    BGContext c1copy = bgcm.copyAndAddBGContextToResource(c1.getName(), course1, c1);
    DBFactory.getInstance().closeSession(); // simulate user clicks
    try {
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.