public AdminController(
            IEnumerable <IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IDataMigrationManager dataMigraitonManager,
            IFeatureManager featureManager,
            ISiteThemeService siteThemeService,
            IExtensionManager extensionManager,
            ShellDescriptor shellDescriptor,
            IPreviewTheme previewTheme,
            IThemeService themeService,
            IReportsCoordinator reportsCoordinator)
        {
            Services = services;

            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _dataMigrationManager         = dataMigraitonManager;
            _siteThemeService             = siteThemeService;
            _extensionManager             = extensionManager;
            _shellDescriptor    = shellDescriptor;
            _featureManager     = featureManager;
            _previewTheme       = previewTheme;
            _themeService       = themeService;
            _reportsCoordinator = reportsCoordinator;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public AdminController(
            IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IDataMigrationManager dataMigraitonManager,
            IFeatureManager featureManager,
            ISiteThemeService siteThemeService,
            IExtensionManager extensionManager,
            ShellDescriptor shellDescriptor,
            IPreviewTheme previewTheme, 
            IThemeService themeService,
            IReportsCoordinator reportsCoordinator) {
            Services = services;

            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _dataMigrationManager = dataMigraitonManager;
            _siteThemeService = siteThemeService;
            _extensionManager = extensionManager;
            _shellDescriptor = shellDescriptor;
            _featureManager = featureManager;
            _previewTheme = previewTheme;
            _themeService = themeService;
            _reportsCoordinator = reportsCoordinator;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public AdminController(
            IEnumerable <IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IReportsCoordinator reportsCoordinator,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
            IRecipeHarvester recipeHarvester,
            IRecipeManager recipeManager,
            ShellDescriptor shellDescriptor,
            ShellSettings shellSettings,
            IShapeFactory shapeFactory)
        {
            Services = services;
            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _moduleService        = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _reportsCoordinator   = reportsCoordinator;
            _extensionManager     = extensionManager;
            _featureManager       = featureManager;
            _recipeHarvester      = recipeHarvester;
            _recipeManager        = recipeManager;
            _shellDescriptor      = shellDescriptor;
            _shellSettings        = shellSettings;
            Shape = shapeFactory;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public AdminController(
            IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IReportsCoordinator reportsCoordinator,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
            IRecipeHarvester recipeHarvester,
            IRecipeManager recipeManager,
            ShellDescriptor shellDescriptor,
            ShellSettings shellSettings,
            IShapeFactory shapeFactory)
        {
            Services = services;
            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _moduleService = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _reportsCoordinator = reportsCoordinator;
            _extensionManager = extensionManager;
            _featureManager = featureManager;
            _recipeHarvester = recipeHarvester;
            _recipeManager = recipeManager;
            _shellDescriptor = shellDescriptor;
            _shellSettings = shellSettings;
            Shape = shapeFactory;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
 public SchedulerTask(IRepository<ScheduleRecord> repository, 
     IClock clock,
     IRulesManager rulesManager,
     IReportsCoordinator reportsCoordinator)
 {
     _repository = repository;            
     _clock = clock;
     _rulesManager = rulesManager;
     _reportsCoordinator = reportsCoordinator;
 }
        public ScheduledTaskExecutor(IClock clock, 
            IEnumerable<IScheduledTask> scheduledTasks,
            IReportsCoordinator reportsCoordinator)
        {
            _clock = clock;
            _scheduledTasks = scheduledTasks ?? Enumerable.Empty<IScheduledTask>();
            _reportsCoordinator = reportsCoordinator;

            _schedules = new Dictionary<Type, ValueOrError<CrontabSchedule>>();
            CreateSchedules();
        }
 public SchemaUpdateService(
     IDynamicAssemblyBuilder dynamicAssemblyBuilder,
     ISessionFactoryHolder sessionFactoryHolder,
     ShellSettings shellSettings,
     ISessionLocator sessionLocator,
     IEnumerable<ICommandInterpreter> commandInterpreters,
     IReportsCoordinator reportsCoordinator) {
     _dynamicAssemblyBuilder = dynamicAssemblyBuilder;
     _sessionFactoryHolder = sessionFactoryHolder;
     var interpreter = new DefaultDataMigrationInterpreter(shellSettings, sessionLocator, commandInterpreters, sessionFactoryHolder, reportsCoordinator);
     _schemaBuilder = new SchemaBuilder(interpreter, "", s => s.Replace(".", "_"));
 }
 public SchemaBuilderFactory(
     ShellSettings shellSettings,
     IReportsCoordinator reportsCoordinator,
     ISessionFactoryHolderFactory sessionFactoryHolderFactory,
     ISessionLocator sessionLocator,
     ISessionFactoryHolder sessionFactoryHolder)
 {
     _shellSettings = shellSettings;
     _reportsCoordinator = reportsCoordinator;
     _sessionFactoryHolderFactory = sessionFactoryHolderFactory;
     _sessionLocator = sessionLocator;
     _sessionFactoryHolder = sessionFactoryHolder;
 }
Exemple #9
0
 public SchemaBuilderFactory(
     ShellSettings shellSettings,
     IReportsCoordinator reportsCoordinator,
     ISessionFactoryHolderFactory sessionFactoryHolderFactory,
     ISessionLocator sessionLocator,
     ISessionFactoryHolder sessionFactoryHolder)
 {
     _shellSettings               = shellSettings;
     _reportsCoordinator          = reportsCoordinator;
     _sessionFactoryHolderFactory = sessionFactoryHolderFactory;
     _sessionLocator              = sessionLocator;
     _sessionFactoryHolder        = sessionFactoryHolder;
 }
Exemple #10
0
        public SchemaUpdateService(
            IDynamicAssemblyBuilder dynamicAssemblyBuilder,
            ISessionFactoryHolder sessionFactoryHolder,
            ShellSettings shellSettings,
            ISessionLocator sessionLocator,
            IEnumerable <ICommandInterpreter> commandInterpreters,
            IReportsCoordinator reportsCoordinator)
        {
            _dynamicAssemblyBuilder = dynamicAssemblyBuilder;
            _sessionFactoryHolder   = sessionFactoryHolder;
            var interpreter = new DefaultDataMigrationInterpreter(shellSettings, sessionLocator, commandInterpreters, sessionFactoryHolder, reportsCoordinator);

            _schemaBuilder = new SchemaBuilder(interpreter, "", s => s.Replace(".", "_"));
        }
 public RouteController(
     IContentDefinitionManager contentDefinitionManager,
     IOrchardServices orchardServices,
     ISessionFactoryHolder sessionFactoryHolder,
     ShellSettings shellSettings,
     IAutorouteService autorouteService,
     IReportsCoordinator reportsCoordinator) {
     _contentDefinitionManager = contentDefinitionManager;
     _orchardServices = orchardServices;
     _sessionFactoryHolder = sessionFactoryHolder;
     _shellSettings = shellSettings;
     _autorouteService = autorouteService;
     _reportsCoordinator = reportsCoordinator;
 }
        public AdminController(
            IEnumerable<Orchard.Modules.Events.IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IReportsCoordinator reportsCoordinator,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
            IRecipeHarvester recipeHarvester,
            IRecipeManager recipeManager,
            ShellDescriptor shellDescriptor,
            ShellSettings shellSettings,
            IShapeFactory shapeFactory,
            IPackageService packageService,
            IMimeTypeProvider mimeTypeProvider,
            ISiteThemeService siteThemeService,
            IThemeService themeService)
        {
            Services = services;
            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _moduleService = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _reportsCoordinator = reportsCoordinator;
            _extensionManager = extensionManager;
            _featureManager = featureManager;
            _recipeHarvester = recipeHarvester;
            _recipeManager = recipeManager;
            _shellDescriptor = shellDescriptor;
            _shellSettings = shellSettings;
            Shape = shapeFactory;
            _packageService = packageService;
            _mimeTypeProvider = mimeTypeProvider;

            _siteThemeService = siteThemeService;
            _themeService = themeService;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            _tempPackageStoragePath = new Lazy<string>(() =>
            {
                var path = HostingEnvironment.MapPath("~/App_Data/Packages");
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }
                return path;
            });
        }
        public AdminController(
            IEnumerable <Orchard.Modules.Events.IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IReportsCoordinator reportsCoordinator,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
            IRecipeHarvester recipeHarvester,
            IRecipeManager recipeManager,
            ShellDescriptor shellDescriptor,
            ShellSettings shellSettings,
            IShapeFactory shapeFactory,
            IPackageService packageService,
            IMimeTypeProvider mimeTypeProvider,
            ISiteThemeService siteThemeService,
            IThemeService themeService)
        {
            Services = services;
            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _moduleService        = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _reportsCoordinator   = reportsCoordinator;
            _extensionManager     = extensionManager;
            _featureManager       = featureManager;
            _recipeHarvester      = recipeHarvester;
            _recipeManager        = recipeManager;
            _shellDescriptor      = shellDescriptor;
            _shellSettings        = shellSettings;
            Shape             = shapeFactory;
            _packageService   = packageService;
            _mimeTypeProvider = mimeTypeProvider;

            _siteThemeService = siteThemeService;
            _themeService     = themeService;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            _tempPackageStoragePath = new Lazy <string>(() =>
            {
                var path = HostingEnvironment.MapPath("~/App_Data/Packages");
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }
                return(path);
            });
        }
Exemple #14
0
 public RouteController(
     IContentDefinitionManager contentDefinitionManager,
     IOrchardServices orchardServices,
     ISessionFactoryHolder sessionFactoryHolder,
     ShellSettings shellSettings,
     IAutorouteService autorouteService,
     IReportsCoordinator reportsCoordinator)
 {
     _contentDefinitionManager = contentDefinitionManager;
     _orchardServices          = orchardServices;
     _sessionFactoryHolder     = sessionFactoryHolder;
     _shellSettings            = shellSettings;
     _autorouteService         = autorouteService;
     _reportsCoordinator       = reportsCoordinator;
 }
        public DefaultDataMigrationInterpreter(
            ShellSettings shellSettings,
            ISessionLocator sessionLocator,
            IEnumerable <ICommandInterpreter> commandInterpreters,
            ISessionFactoryHolder sessionFactoryHolder,
            IReportsCoordinator reportsCoordinator)
        {
            _shellSettings        = shellSettings;
            _sessionLocator       = sessionLocator;
            _commandInterpreters  = commandInterpreters;
            _sqlStatements        = new List <string>();
            _sessionFactoryHolder = sessionFactoryHolder;
            _reportsCoordinator   = reportsCoordinator;

            Logger       = NullLogger.Instance;
            T            = NullLocalizer.Instance;
            _dialectLazy = new Lazy <Dialect>(() => Dialect.GetDialect(sessionFactoryHolder.GetConfiguration().Properties));
        }
 public SiteResetTaskExecutor(
     IThemeService themeService, 
     ISiteThemeService siteThemeService,
     ISessionFactoryHolder sessionFactoryHolder,
     IVirtualPathProvider virtualPathProvider,
     ShellSettings shellSettings,
     ISessionLocator sessionLocator,
     IEnumerable<ICommandInterpreter> commandInterpreters,
     IReportsCoordinator reportsCoordinator)
 {
     _themeService = themeService;
     _siteThemeService = siteThemeService;
     _virtualPathProvider = virtualPathProvider;
     _sessionFactoryHolder = sessionFactoryHolder;
     var interpreter = new Coevery.Core.Services.DefaultDataMigrationInterpreter(shellSettings, sessionLocator, commandInterpreters, sessionFactoryHolder, reportsCoordinator);
     _schemaBuilder = new SchemaBuilder(interpreter, "", s => s.Replace(".", "_"));
     Logger=NullLogger.Instance;
 }
        public SiteResetTaskExecutor(
            IThemeService themeService,
            ISiteThemeService siteThemeService,
            ISessionFactoryHolder sessionFactoryHolder,
            IVirtualPathProvider virtualPathProvider,
            ShellSettings shellSettings,
            ISessionLocator sessionLocator,
            IEnumerable <ICommandInterpreter> commandInterpreters,
            IReportsCoordinator reportsCoordinator)
        {
            _themeService         = themeService;
            _siteThemeService     = siteThemeService;
            _virtualPathProvider  = virtualPathProvider;
            _sessionFactoryHolder = sessionFactoryHolder;
            var interpreter = new Coevery.Core.Services.DefaultDataMigrationInterpreter(shellSettings, sessionLocator, commandInterpreters, sessionFactoryHolder, reportsCoordinator);

            _schemaBuilder = new SchemaBuilder(interpreter, "", s => s.Replace(".", "_"));
            Logger         = NullLogger.Instance;
        }
        public GalleryUpdatesController(
            ShellSettings shellSettings,
            IOrchardServices services,
            IPackagingSourceManager packagingSourceManager,
            INotifier notifier,
            IPackageUpdateService packageUpdateService,
            IBackgroundPackageUpdateStatus backgroundPackageUpdateStatus,
            IReportsCoordinator reportsCoordinator,
            IReportsManager reportsManager,
            IShapeFactory shapeFactory)
        {
            _shellSettings                 = shellSettings;
            _packagingSourceManager        = packagingSourceManager;
            _packageUpdateService          = packageUpdateService;
            _backgroundPackageUpdateStatus = backgroundPackageUpdateStatus;

            Services = services;
            Shape    = shapeFactory;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public AdminController(
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IReportsCoordinator reportsCoordinator,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
            ShellDescriptor shellDescriptor,
            IShapeFactory shapeFactory)
        {
            Services              = services;
            _moduleService        = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _reportsCoordinator   = reportsCoordinator;
            _extensionManager     = extensionManager;
            _featureManager       = featureManager;
            _shellDescriptor      = shellDescriptor;
            Shape = shapeFactory;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public AdminController(          
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IReportsCoordinator reportsCoordinator,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,                    
            ShellDescriptor shellDescriptor,
            IShapeFactory shapeFactory)
        {
            Services = services;
            _moduleService = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _reportsCoordinator = reportsCoordinator;
            _extensionManager = extensionManager;
            _featureManager = featureManager;
            _shellDescriptor = shellDescriptor;
            Shape = shapeFactory;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public GalleryUpdatesController(
            ShellSettings shellSettings,
            IOrchardServices services,
            IPackagingSourceManager packagingSourceManager,
            INotifier notifier,
            IPackageUpdateService packageUpdateService,
            IBackgroundPackageUpdateStatus backgroundPackageUpdateStatus,
            IReportsCoordinator reportsCoordinator,
            IReportsManager reportsManager,
            IShapeFactory shapeFactory)
        {
            _shellSettings = shellSettings;
            _packagingSourceManager = packagingSourceManager;
            _packageUpdateService = packageUpdateService;
            _backgroundPackageUpdateStatus = backgroundPackageUpdateStatus;

            Services = services;
            Shape = shapeFactory;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
 public static void Warning(this IReportsCoordinator reportCoordinator, string reportKey, string message)
 {
     reportCoordinator.Add(reportKey, ReportEntryType.Warning, message);
 }
 public RegisterReports(IReportsCoordinator reportsCoordinator)
 {
     _reportsCoordinator = reportsCoordinator;
 }
 public static void Information(this IReportsCoordinator reportCoordinator, string reportKey, string message)
 {
     reportCoordinator.Add(reportKey, ReportEntryType.Information, message);
 }