Examples of queryByTypeLimitAccess()


Examples of org.olat.repository.RepositoryManager.queryByTypeLimitAccess()

      String firstItem = publiclyReadableFolders.get(0);
      // If the first value in the list is '*', list all resource folders.
      if (firstItem != null && firstItem.equals("*")) {
        // fake role that represents normally logged in user
        Roles registeredUserRole = new Roles(false, false, false, false, false, false);
        List<RepositoryEntry> allEntries = (List<RepositoryEntry>) repoManager.queryByTypeLimitAccess(SharedFolderFileResource.TYPE_NAME,
            registeredUserRole);
        for (RepositoryEntry entry : allEntries) {
          addReadonlyFolder(rootContainer, entry, sfm, addedEntries);
        }
      } else {
View Full Code Here

Examples of org.olat.repository.RepositoryManager.queryByTypeLimitAccess()

    log.info("Starting synchronisation of LearningGroups with IM server");
    RepositoryManager rm = RepositoryManager.getInstance();
    BGContextManager contextManager = BGContextManagerImpl.getInstance();
    //pull as admin
    Roles roles = new Roles(true, true, true, true, false, true);
    List<RepositoryEntry> allCourses = rm.queryByTypeLimitAccess(CourseModule.getCourseTypeName(), roles);
    int counter = 0;
    for (Iterator<RepositoryEntry> iterator = allCourses.iterator(); iterator.hasNext();) {
      RepositoryEntry entry = iterator.next();
      ICourse course = null;
      try{
View Full Code Here

Examples of org.olat.repository.RepositoryManager.queryByTypeLimitAccess()

   * @param type
   * @param ureq
   */
  void doSearchByTypeLimitAccess(String type, UserRequest ureq) {
    RepositoryManager rm = RepositoryManager.getInstance();
    List entries = rm.queryByTypeLimitAccess(type, ureq);
    repoTableModel.setEntries(entries);
    tableCtr.modelChanged();
    displaySearchResults(ureq);
  }

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.