Package com.google.enterprise.connector.sharepoint.state

Examples of com.google.enterprise.connector.sharepoint.state.Folder


   */
  public static Folder createFolder(final String webUrl,
      final String folderName) {
    String folderUrl = webUrl + "/" + folderName;
    String folderId = "" + (int) System.currentTimeMillis();
    return new Folder(folderUrl, folderId);
  }
View Full Code Here


              if (folderPath == null) {
                continue;
              }
              if ((folderLevel != null) && (folderLevel.trim().length() != 0)) {
                if (folderPath.startsWith(folderLevel)) {
                  folders.add(new Folder(folderPath, docId));
                }
              } else {
                folders.add(new Folder(folderPath, docId));
              }
            }
          }
        }
      }
View Full Code Here

            }
          }

          if (isFolder) {
            if (restoredIDs.contains(docId) || renamedIDs.contains(docId)) {
              list.addToChangedFolders(new Folder(relativeURL, docId));
            }
          }
        }

        /*
 
View Full Code Here

    Iterator<Folder> itrChangedFolders = list.getChangedFolders().iterator();
    Set<SPDocument> currentSet = new TreeSet<SPDocument>();

    while (itrChangedFolders.hasNext()
        && currentSet.size() < sharepointClientContext.getBatchHint()) {
      Folder changedFolder = itrChangedFolders.next();
      LOGGER.log(Level.INFO, "Processing renamed/restored folder ["
          + changedFolder + "] ");
      while (currentSet.size() < sharepointClientContext.getBatchHint()) {
        List<SPDocument> currentListItems =
            getListItemsUnderFolderHeirarchy(list, changedFolder);
        int count = currentListItems.size();
        LOGGER.log(Level.FINE, "found " + count
            + " items under folder [" + changedFolder + " ] ");      
        currentSet.addAll(currentListItems);
        if (count == 0) {
          changedFolder.setNextPage(null);
        }
        if (changedFolder.getNextPage() == null) {
          break;
        }
      }
     
      if (changedFolder.getNextPage() == null) {
        itrChangedFolders.remove();
      }
    }
    allItems.addAll(currentSet);
  }
View Full Code Here

    List<Folder> items =
        listsHelper.getSubFoldersRecursively(testList, null, null);
    assertNotNull(items);
    assertEquals(1, items.size());

    Folder folder = items.get(0);
    assertEquals(testListUrl + "/Folder1", folder.getPath());
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.sharepoint.state.Folder

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.