Package org.olat.resource.references

Examples of org.olat.resource.references.ReferenceManager.addReference()


      // update references
      ReferenceManager refM = ReferenceManager.getInstance();
      List refs = refM.getReferences(sourceCourse);
      for (Iterator iter = refs.iterator(); iter.hasNext();) {
        ReferenceImpl ref = (ReferenceImpl) iter.next();
        refM.addReference(targetCourse, ref.getTarget(), ref.getUserdata());
      }
      CourseGroupManager sourceCgm = sourceCourse.getCourseEnvironment().getCourseGroupManager();
      CourseGroupManager targetCgm = targetCourse.getCourseEnvironment().getCourseGroupManager();
      targetCgm.createCourseGroupmanagementAsCopy(sourceCgm, sourceCourse.getCourseTitle());
    }
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.