public File <int> CopyFile(string fileId, int toFolderId) { var moved = CrossDao.PerformCrossDaoFileCopy( fileId, this, OneDriveDaoSelector.ConvertId, toFolderId, FileDao, r => r, false); return(moved); }
public Folder <int> CopyFolder(string folderId, int toFolderId, CancellationToken?cancellationToken) { var moved = CrossDao.PerformCrossDaoFolderCopy( folderId, this, DropboxDaoSelector.GetFileDao(folderId), DropboxDaoSelector.ConvertId, toFolderId, FolderDao, FileDao, r => r, false, cancellationToken); return(moved); }
public int MoveFolder(string folderId, int toFolderId, CancellationToken?cancellationToken) { var moved = CrossDao.PerformCrossDaoFolderCopy( folderId, this, GoogleDriveDaoSelector.GetFileDao(folderId), GoogleDriveDaoSelector.ConvertId, toFolderId, FolderDao, FileDao, r => r, true, cancellationToken); return(moved.ID); }
public int MoveFile(string fileId, int toFolderId) { var moved = CrossDao.PerformCrossDaoFileCopy( fileId, this, OneDriveDaoSelector.ConvertId, toFolderId, FileDao, r => r, true); return(moved.ID); }
public ProviderTagDao( IServiceProvider serviceProvider, TenantManager tenantManager, SecurityDao <string> securityDao, TagDao <string> tagDao, CrossDao crossDao) : base(serviceProvider, tenantManager, securityDao, tagDao, crossDao) { }
public BoxFileDao( IServiceProvider serviceProvider, UserManager userManager, TenantManager tenantManager, TenantUtil tenantUtil, DbContextManager <FilesDbContext> dbContextManager, SetupInfo setupInfo, IOptionsMonitor <ILog> monitor, FileUtility fileUtility, CrossDao crossDao, BoxDaoSelector boxDaoSelector, IFileDao <int> fileDao) : base(serviceProvider, userManager, tenantManager, tenantUtil, dbContextManager, setupInfo, monitor, fileUtility) { CrossDao = crossDao; BoxDaoSelector = boxDaoSelector; FileDao = fileDao; }
public SharePointFileDao( IServiceProvider serviceProvider, UserManager userManager, TenantManager tenantManager, TenantUtil tenantUtil, DbContextManager <FilesDbContext> dbContextManager, SetupInfo setupInfo, IOptionsMonitor <ILog> monitor, FileUtility fileUtility, CrossDao crossDao, SharePointDaoSelector sharePointDaoSelector, IFileDao <int> fileDao, TempPath tempPath) : base(serviceProvider, userManager, tenantManager, tenantUtil, dbContextManager, setupInfo, monitor, fileUtility, tempPath) { CrossDao = crossDao; SharePointDaoSelector = sharePointDaoSelector; FileDao = fileDao; }
public GoogleDriveFolderDao( IServiceProvider serviceProvider, UserManager userManager, TenantManager tenantManager, TenantUtil tenantUtil, DbContextManager <FilesDbContext> dbContextManager, SetupInfo setupInfo, IOptionsMonitor <ILog> monitor, FileUtility fileUtility, CrossDao crossDao, GoogleDriveDaoSelector googleDriveDaoSelector, IFileDao <int> fileDao, IFolderDao <int> folderDao ) : base(serviceProvider, userManager, tenantManager, tenantUtil, dbContextManager, setupInfo, monitor, fileUtility) { CrossDao = crossDao; GoogleDriveDaoSelector = googleDriveDaoSelector; FileDao = fileDao; FolderDao = folderDao; }
public DropboxFolderDao( IServiceProvider serviceProvider, UserManager userManager, TenantManager tenantManager, TenantUtil tenantUtil, DbContextManager <FilesDbContext> dbContextManager, SetupInfo setupInfo, IOptionsMonitor <ILog> monitor, FileUtility fileUtility, CrossDao crossDao, DropboxDaoSelector dropboxDaoSelector, IFileDao <int> fileDao, IFolderDao <int> folderDao, TempPath tempPath) : base(serviceProvider, userManager, tenantManager, tenantUtil, dbContextManager, setupInfo, monitor, fileUtility, tempPath) { CrossDao = crossDao; DropboxDaoSelector = dropboxDaoSelector; FileDao = fileDao; FolderDao = folderDao; }
public FolderDao( FactoryIndexer <FoldersWrapper> factoryIndexer, UserManager userManager, DbContextManager <FilesDbContext> dbContextManager, TenantManager tenantManager, TenantUtil tenantUtil, SetupInfo setupInfo, TenantExtra tenantExtra, TenantStatisticsProvider tenantStatisticProvider, CoreBaseSettings coreBaseSettings, CoreConfiguration coreConfiguration, SettingsManager settingsManager, AuthContext authContext, IServiceProvider serviceProvider, GlobalSpace globalSpace, IDaoFactory daoFactory, ProviderFolderDao providerFolderDao, CrossDao crossDao) : base( dbContextManager, userManager, tenantManager, tenantUtil, setupInfo, tenantExtra, tenantStatisticProvider, coreBaseSettings, coreConfiguration, settingsManager, authContext, serviceProvider) { FactoryIndexer = factoryIndexer; GlobalSpace = globalSpace; DaoFactory = daoFactory; ProviderFolderDao = providerFolderDao; CrossDao = crossDao; }
public ProviderDaoBase( IServiceProvider serviceProvider, TenantManager tenantManager, SecurityDao <string> securityDao, TagDao <string> tagDao, CrossDao crossDao) { ServiceProvider = serviceProvider; SecurityDao = securityDao; TagDao = tagDao; CrossDao = crossDao; TenantID = tenantManager.GetCurrentTenant().TenantId; Selectors = new List <IDaoSelector> { //Fill in selectors ServiceProvider.GetService <SharpBoxDaoSelector>(), ServiceProvider.GetService <SharePointDaoSelector>(), ServiceProvider.GetService <GoogleDriveDaoSelector>(), ServiceProvider.GetService <BoxDaoSelector>(), ServiceProvider.GetService <DropboxDaoSelector>(), ServiceProvider.GetService <OneDriveDaoSelector>() }; }