Examples of needsReferenceToARepositoryEntry()


Examples of org.olat.course.nodes.CourseNode.needsReferenceToARepositoryEntry()

      CourseNode cn = cetn.getCourseNode();
      /*
       * for those coursenodes which need a reference to a repository entry to
       * function properly, check that the reference is valid
       */
      if (cn.needsReferenceToARepositoryEntry()) {
        RepositoryEntry referencedEntry = cn.getReferencedRepositoryEntry();
        if (referencedEntry == null) {
          cetnDamaged.add(new StatusDescription(ValidationStatus.ERROR, "pbl.error.refs", "pbl.error.refs", new String[] { cetn.getTitle()
              + "(id:" + cetn.getIdent() + " )" }, PACKAGE));
        }
View Full Code Here

Examples of org.olat.course.nodes.CourseNode.needsReferenceToARepositoryEntry()

   * @param currentNode
   */
  private static void registerReferences(ICourse course, CourseNode currentNode) {
    for (int i = 0; i < currentNode.getChildCount(); i++) {
      CourseNode childNode = (CourseNode)currentNode.getChildAt(i);
      if (childNode.needsReferenceToARepositoryEntry()) {
        ReferenceManager.getInstance().addReference(course,
          childNode.getReferencedRepositoryEntry().getOlatResource(), childNode.getIdent());
      }
      registerReferences(course, childNode);
    }
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.