Examples of ICourse


Examples of org.olat.course.ICourse

    String q = " from org.olat.group.context.BGContext2Resource as bgcr where bgcr.groupContext = ? and bgcr.resource = ?";
    DBFactory.getInstance().delete(q, new Object[] { bgContext.getKey(), resource.getKey() },
        new Type[] { Hibernate.LONG, Hibernate.LONG });
    // 2) update course context list in this course resource
    if (resource.getResourceableTypeName().equals(CourseModule.getCourseTypeName())) {
      ICourse course = CourseFactory.loadCourse(resource);
      course.getCourseEnvironment().getCourseGroupManager().initGroupContextsList();
    } else if (resource.getResourceableTypeName().equals("junitcourse")) {
      // do nothing when in junit test mode
    } else {
      throw new AssertException("Currently only course resources allowed in resource to context relations.");
    }
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.