Examples of addBGRight()


Examples of org.olat.group.right.BGRightManagerImpl.addBGRight()

    secm.addIdentityToSecurityGroup(id1, g3.getPartipiciantGroup());
    secm.addIdentityToSecurityGroup(id2, g3.getPartipiciantGroup());

    BGRightManagerImpl rm = BGRightManagerImpl.getInstance();
    rm.addBGRight(CourseRights.RIGHT_ARCHIVING, g3);
    rm.addBGRight(CourseRights.RIGHT_COURSEEDITOR, g3);
    DBFactory.getInstance().closeSession(); // simulate user clicks
   
    assertTrue(rm.hasBGRight(CourseRights.RIGHT_ARCHIVING, id1, c2));
    assertFalse(rm.hasBGRight(CourseRights.RIGHT_GROUPMANAGEMENT, id1, c2));
    assertTrue(rm.hasBGRight(CourseRights.RIGHT_ARCHIVING, id2, c2));
View Full Code Here

Examples of org.olat.group.right.BGRightManagerImpl.addBGRight()

    secm.addIdentityToSecurityGroup(id1, g3.getPartipiciantGroup());
    secm.addIdentityToSecurityGroup(id2, g3.getPartipiciantGroup());

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

Examples of org.olat.group.right.BGRightManagerImpl.addBGRight()

    secm.addIdentityToSecurityGroup(id2, g3.getPartipiciantGroup());

    DBFactory.getInstance().closeSession(); // simulate user clicks
    BGRightManagerImpl rm = BGRightManagerImpl.getInstance();
    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);
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.