Esempio n. 1
0
        public File <int> CopyFile(string fileId, int toFolderId)
        {
            var moved = CrossDao.PerformCrossDaoFileCopy(
                fileId, this, OneDriveDaoSelector.ConvertId,
                toFolderId, FileDao, r => r,
                false);

            return(moved);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 4
0
        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)
 {
 }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
 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;
 }
Esempio n. 8
0
 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;
 }
Esempio n. 9
0
 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;
 }
Esempio n. 10
0
 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;
 }
Esempio n. 11
0
        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>()
            };
        }