use of org.nuxeo.drive.service.SynchronizationRoots in project nuxeo-drive-server by nuxeo.
the class NuxeoDriveManagerImpl method computeSynchronizationRoots.
protected Map<String, SynchronizationRoots> computeSynchronizationRoots(String query, Principal principal) {
Map<String, SynchronizationRoots> syncRoots = new HashMap<String, SynchronizationRoots>();
RepositoryManager repositoryManager = Framework.getService(RepositoryManager.class);
for (String repositoryName : repositoryManager.getRepositoryNames()) {
try (CloseableCoreSession session = CoreInstance.openCoreSession(repositoryName, principal)) {
syncRoots.putAll(queryAndFetchSynchronizationRoots(session, query));
}
}
return syncRoots;
}
Aggregations