Package org.olat.repository

Examples of org.olat.repository.RepositoryEntryStatus


  public void doIndex(SearchResourceContext parentResourceContext, Object parentObject, OlatFullIndexer indexWriter) {
    RepositoryEntry repositoryEntry = (RepositoryEntry) parentObject;
    if (log.isDebug()) log.debug("Analyse Course... repositoryEntry=" + repositoryEntry);
    try {
      RepositoryEntryStatus status = RepositoryManager.getInstance().createRepositoryEntryStatus(repositoryEntry.getStatusCode());
      if(status.isClosed()) {
        if(log.isDebug()) log.debug("Course not indexed because it's closed: repositoryEntry=" + repositoryEntry);
        return;
      }

      ICourse course = CourseFactory.loadCourse(repositoryEntry.getOlatResource());
View Full Code Here

TOP

Related Classes of org.olat.repository.RepositoryEntryStatus

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.