Examples of INode


Examples of org.olat.core.util.nodes.INode

  /**
   * @param target
   */
  private void renderLevel(StringOutput target, int level, TreeNode curRoot, List selPath, URLBuilder ubu, AJAXFlags flags, String componentPrefix, TreeNode markedNode) {

    INode curSel = null;
    if (level < selPath.size()) {
      curSel = (INode) selPath.get(level);
    }

    target.append("<ul><li>");
View Full Code Here

Examples of org.olat.core.util.nodes.INode

    if (!visitChildrenFirst) {
      v.visit(node);
    }
    int chdCnt = node.getChildCount();
    for (int i = 0; i < chdCnt; i++) {
      INode chd = node.getChildAt(i);
      doVisit(chd);
    }
    if (visitChildrenFirst) {
      v.visit(node);
    }
View Full Code Here

Examples of org.olat.core.util.nodes.INode

    // par = par.getParent());
    // return (par == sourceTree);
    ICourse course = CourseFactory.getCourseEditSession(ores.getResourceableId());
    if (sourceTree.getIdent().equals(prospectChild.getIdent())) return true;
    for (int i = 0; i < sourceTree.getChildCount(); i++) {
      INode child = sourceTree.getChildAt(i);
      if (checkIfIsChild(prospectChild, course.getEditorTreeModel().getCourseEditorNodeById(child.getIdent()))) return true;
    }
    return false;
  }
View Full Code Here

Examples of org.olat.core.util.nodes.INode

    // add portal
    myPortal = PortalFactory.createPortal("guestportal", getWindowControl(), ureq);
    welcome.put("myPortal", myPortal.getInitialComponent());

    // Activate correct position in menu
    INode firstNode = tm.getRootNode().getChildAt(0);
    olatMenuTree.setSelectedNodeId(firstNode.getIdent());

    columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), olatMenuTree, null, welcome, null);
    listenTo(columnLayoutCtr); // cleanup on dispose
    // add background image to home site
    columnLayoutCtr.addCssClassToMain("o_home");
View Full Code Here

Examples of org.olat.core.util.nodes.INode

      String key = cn.getIdent();
      dg.addVertex(key);
      /*
       * add edge from parent to child. This directed edge represents the visibility accessability inheritance direction.
       */
      INode parent = tmp.getParent();
      if(parent!=null) {
        dg.addVertex(parent.getIdent());
        Edge toParent = def.createEdge( parent.getIdent(),key);
        dg.addEdge(toParent);
      }
    }
View Full Code Here

Examples of org.olat.core.util.nodes.INode

  public void doIndexCourse(SearchResourceContext repositoryResourceContext, ICourse course, CourseNode courseNode, OlatFullIndexer indexWriter) throws IOException,InterruptedException  {
    // loop over all child nodes
    int childCount = courseNode.getChildCount();
    for (int i=0;i<childCount; i++) {
      INode childCourseNode = courseNode.getChildAt(i);
      if (childCourseNode instanceof CourseNode) {
        if (log.isDebug()) log.debug("Analyse CourseNode child ... childCourseNode=" + childCourseNode);
        // go further with resource
        CourseNodeIndexer courseNodeIndexer = CourseNodeIndexerFactory.getInstance().getCourseNodeIndexer( (CourseNode)childCourseNode);
        if (courseNodeIndexer != null) {
          if (log.isDebug()) log.debug("courseNodeIndexer=" + courseNodeIndexer);
           try {
            courseNodeIndexer.doIndex(repositoryResourceContext, course, (CourseNode)childCourseNode, indexWriter);
          } catch (Exception e) {
            log.warn("Can not index course node=" + childCourseNode.getIdent(), e);
          }
        } else {
          if (log.isDebug()) log.debug("No CourseNodeIndexer for " + childCourseNode);       
          // go further, index my child nodes
          doIndexCourse(repositoryResourceContext, course, (CourseNode)childCourseNode, indexWriter);
View Full Code Here

Examples of org.olat.core.util.nodes.INode

    olatMenuTree.setTreeModel(tm);
    olatMenuTree.setSelectedNodeId(tm.getRootNode().getIdent());
    olatMenuTree.addListener(this);

    // Activate correct position in menu
    INode firstChild = tm.getRootNode().getChildAt(0);
    olatMenuTree.setSelectedNodeId(firstChild.getIdent());

    columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), olatMenuTree, null, dmzPanel, "useradminmain");
    columnLayoutCtr.addCssClassToMain("o_loginscreen");
    listenTo(columnLayoutCtr); // for later autodisposing
    putInitialPanel(columnLayoutCtr.getInitialComponent());
View Full Code Here

Examples of org.olat.core.util.nodes.INode

  public UserAdminMainController(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);   
    olatMenuTree = new MenuTree("olatMenuTree");       
    TreeModel tm = buildTreeModel(ureq.getUserSession().getRoles().isOLATAdmin());
    olatMenuTree.setTreeModel(tm);
    INode firstNode = tm.getRootNode().getChildAt(0);
    olatMenuTree.setSelectedNodeId(firstNode.getIdent());
    olatMenuTree.addListener(this);

    // we always start with a search controller
    contentCtr = new UsermanagerUserSearchController(ureq, getWindowControl());
    listenTo(contentCtr); // auto dispose later
View Full Code Here

Examples of org.olat.core.util.nodes.INode

    super(ureq, wControl);   
   
    olatMenuTree = new MenuTree("olatMenuTree");       
    TreeModel tm = buildTreeModel();
    olatMenuTree.setTreeModel(tm);
    INode firstNode = tm.getRootNode().getChildAt(0);
    olatMenuTree.setSelectedNodeId(firstNode.getIdent());
    olatMenuTree.addListener(this);

    String cmd = (String) tm.getRootNode().getUserObject();
    contentCtr = createController(cmd, ureq);
    listenTo(contentCtr); // auto dispose later
View Full Code Here

Examples of org.olat.core.util.nodes.INode

      it.remove();
    }
   
    int childCount = node.getChildCount();
    for(int i = 0; i < childCount; i++) {
      INode n = node.getChildAt(i);
      if(n instanceof CourseNode) {
        doAddQueryListResultsForNodeAndChildren((CourseNode)n, result, groupByKeys);
      }
    }
  }
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.