public void CreateBackupSchedule(BackupStorageType storageType, IEnumerable <ItemKeyValuePair <string, string> > storageParams, int backupsStored, BackupAjaxHandler.CronParams cronParams, bool backupMail)
 {
     backupHandler.CreateSchedule(storageType, storageParams.ToDictionary(r => r.Key, r => r.Value), backupsStored, cronParams, backupMail);
 }
Esempio n. 2
0
 public void CreateBackupSchedule(BackupStorageType storageType, BackupAjaxHandler.StorageParams storageParams, int backupsStored, BackupAjaxHandler.CronParams cronParams, bool backupMail)
 {
     backupHandler.CreateSchedule(storageType, storageParams, backupsStored, cronParams, backupMail);
 }
Esempio n. 3
0
        public void CreateBackupSchedule(BackupStorageType storageType, [FromQuery] Dictionary <string, string> storageParams, int backupsStored, [FromBody] BackupAjaxHandler.CronParams cronParams, bool backupMail)
        {
            if (CoreBaseSettings.Standalone)
            {
                TenantExtra.DemandControlPanelPermission();
            }

            BackupHandler.CreateSchedule(storageType, storageParams, backupsStored, cronParams, backupMail);
        }
Esempio n. 4
0
        public void CreateBackupSchedule(BackupStorageType storageType, IEnumerable <ItemKeyValuePair <string, string> > storageParams, int backupsStored, BackupAjaxHandler.CronParams cronParams, bool backupMail)
        {
            if (CoreContext.Configuration.Standalone)
            {
                TenantExtra.DemandControlPanelPermission();
            }
            else
            {
                if (!TenantExtra.GetTenantQuota().AutoBackup)
                {
                    throw new SecurityException(Resource.ErrorNotAllowedOption);
                }
            }

            backupHandler.CreateSchedule(storageType, storageParams.ToDictionary(r => r.Key, r => r.Value), backupsStored, cronParams, backupMail);
        }
Esempio n. 5
0
        public void CreateBackupSchedule(BackupStorageType storageType, IEnumerable <ItemKeyValuePair <string, string> > storageParams, int backupsStored, BackupAjaxHandler.CronParams cronParams, bool backupMail)
        {
            if (CoreContext.Configuration.Standalone)
            {
                TenantExtra.DemandControlPanelPermission();
            }

            backupHandler.CreateSchedule(storageType, storageParams.ToDictionary(r => r.Key, r => r.Value), backupsStored, cronParams, backupMail);
        }