Package org.olat.search.service.indexer.repository.course

Examples of org.olat.search.service.indexer.repository.course.CourseNodeIndexer


    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);       
View Full Code Here


    if (log.isDebug()) log.debug("call mayAccessWholeTreeUp..." );
    boolean mayAccessWholeTreeUp = NavigationHandler.mayAccessWholeTreeUp(nodeEval)
    if (log.isDebug()) log.debug("call mayAccessWholeTreeUp=" + mayAccessWholeTreeUp );
   
    if (mayAccessWholeTreeUp) {
      CourseNodeIndexer courseNodeIndexer = CourseNodeIndexerFactory.getInstance().getCourseNodeIndexer(courseNode);
      return courseNodeIndexer.checkAccess(bcContextEntry, businessControl, identity, roles);   
    } else {
      return false;
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.search.service.indexer.repository.course.CourseNodeIndexer

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.