Package org.olat.course.nodes

Examples of org.olat.course.nodes.BCCourseNode


   */
  private void addFolderBuildingBlocks(MergeSource BCNodesContainer, CourseNode courseNode) {
    for (int i = 0; i < courseNode.getChildCount(); i++) {
      CourseNode child = (CourseNode) courseNode.getChildAt(i);
      if (child instanceof BCCourseNode) {
        BCCourseNode bcNode = (BCCourseNode) child;
        // add folder not to merge source. Use name and node id to have unique name
        String path = BCCourseNode.getFoldernodePathRelToFolderBase(getCourseEnvironment(), bcNode);
        OlatRootFolderImpl rootFolder = new OlatRootFolderImpl(path, null);
        String folderName = bcNode.getShortTitle() + " (" + bcNode.getIdent() + ")";
        OlatNamedContainerImpl BCFolder = new OlatNamedContainerImpl(folderName, rootFolder);
        BCNodesContainer.addContainer(BCFolder);       
      }
      // recursion for all childrenØ
      addFolderBuildingBlocks(BCNodesContainer, child);
View Full Code Here


public class BCCourseNodeConfiguration implements CourseNodeConfiguration, OLATExtension {

  private static final String PACKAGE = Util.getPackageName(CourseNodeConfiguration.class);

  public CourseNode getInstance() {
    return new BCCourseNode();
  }
View Full Code Here

TOP

Related Classes of org.olat.course.nodes.BCCourseNode

Copyright © 2018 www.massapicom. 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.