public WidgetsNewsController(ISettingService settingService,
                              NewsSettings NewsSettings, IWidgetNewsService widgetNewsService)
 {
     this._settingService    = settingService;
     this._NewsSettings      = NewsSettings;
     this._widgetNewsService = widgetNewsService;
 }
        public NewsController(INewsModelFactory newsModelFactory,
                              INewsService newsService,
                              IWorkContext workContext,
                              IStoreContext storeContext,
                              ILocalizationService localizationService,
                              IWorkflowMessageService workflowMessageService,
                              IWebHelper webHelper,
                              ICustomerActivityService customerActivityService,
                              IStoreMappingService storeMappingService,
                              IPermissionService permissionService,
                              NewsSettings newsSettings,
                              LocalizationSettings localizationSettings,
                              CaptchaSettings captchaSettings)
        {
            this._newsModelFactory       = newsModelFactory;
            this._newsService            = newsService;
            this._workContext            = workContext;
            this._storeContext           = storeContext;
            this._localizationService    = localizationService;
            this._workflowMessageService = workflowMessageService;
            this._webHelper = webHelper;
            this._customerActivityService = customerActivityService;
            this._storeMappingService     = storeMappingService;
            this._permissionService       = permissionService;

            this._newsSettings         = newsSettings;
            this._localizationSettings = localizationSettings;
            this._captchaSettings      = captchaSettings;
        }
Esempio n. 3
0
        public void EnterModelContext(NavigationContext oldContext, NavigationContext newContext)
        {
            // Load settings
            NewsSettings settings = ServiceRegistration.Get <ISettingsManager>().Load <NewsSettings>();

            HasChanges      = false;
            NewFeedBookmark = new FeedBookmarkItem();
            Feeds.Clear();
            lock (settings.FeedsList)
            {
                if (settings.FeedsList.Count == 0)
                {
                    foreach (var feed in NewsSettings.GetDefaultRegionalFeeds())
                    {
                        Feeds.Add(new FeedBookmarkItem {
                            Name = feed.Name, Url = feed.Url
                        });
                    }
                }
                else
                {
                    foreach (var feed in settings.FeedsList)
                    {
                        Feeds.Add(new FeedBookmarkItem {
                            Name = feed.Name, Url = feed.Url
                        });
                    }
                }
            }
        }
Esempio n. 4
0
        public NewsController(INewsService newsService,
                              IWorkContext workContext, IStoreContext storeContext,
                              IPictureService pictureService, ILocalizationService localizationService,
                              IDateTimeHelper dateTimeHelper,
                              IWorkflowMessageService workflowMessageService, IWebHelper webHelper,
                              ICacheManager cacheManager, ICustomerActivityService customerActivityService,
                              IStoreMappingService storeMappingService,
                              MediaSettings mediaSettings, NewsSettings newsSettings,
                              LocalizationSettings localizationSettings, CustomerSettings customerSettings,
                              CaptchaSettings captchaSettings)
        {
            this._newsService            = newsService;
            this._workContext            = workContext;
            this._storeContext           = storeContext;
            this._pictureService         = pictureService;
            this._localizationService    = localizationService;
            this._dateTimeHelper         = dateTimeHelper;
            this._workflowMessageService = workflowMessageService;
            this._webHelper               = webHelper;
            this._cacheManager            = cacheManager;
            this._customerActivityService = customerActivityService;
            this._storeMappingService     = storeMappingService;

            this._mediaSettings        = mediaSettings;
            this._newsSettings         = newsSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings     = customerSettings;
            this._captchaSettings      = captchaSettings;
        }
Esempio n. 5
0
        public GetSitemapHandler(ICacheBase cacheBase,
                                 ICategoryService categoryService,
                                 IBrandService brandService,
                                 IProductService productService,
                                 IPageService pageService,
                                 IBlogService blogService,
                                 IKnowledgebaseService knowledgebaseService,
                                 CommonSettings commonSettings,
                                 BlogSettings blogSettings,
                                 NewsSettings newsSettings,
                                 KnowledgebaseSettings knowledgebaseSettings)
        {
            _cacheBase            = cacheBase;
            _categoryService      = categoryService;
            _brandService         = brandService;
            _productService       = productService;
            _pageService          = pageService;
            _blogService          = blogService;
            _knowledgebaseService = knowledgebaseService;

            _commonSettings        = commonSettings;
            _blogSettings          = blogSettings;
            _newsSettings          = newsSettings;
            _knowledgebaseSettings = knowledgebaseSettings;
        }
 public SitemapGenerator(IStoreContext storeContext,
                         ICategoryService categoryService,
                         IProductService productService,
                         IManufacturerService manufacturerService,
                         ITopicService topicService,
                         CommonSettings commonSettings,
                         IEventPageService eventPageService,
                         ICustomerService customerService,
                         IBusinessPageService businessPageService,
                         BlogSettings blogSettings,
                         NewsSettings newsSettings,
                         ForumSettings forumSettings,
                         SecuritySettings securitySettings, IWorkContext workContext) :
     base(storeContext,
          categoryService,
          productService,
          manufacturerService,
          topicService,
          commonSettings,
          blogSettings,
          newsSettings,
          forumSettings,
          securitySettings)
 {
     _customerService     = customerService;
     _businessPageService = businessPageService;
     _workContext         = workContext;
     _eventPageService    = eventPageService;
 }
Esempio n. 7
0
 public NewsController(INewsService newsService,
                       IWorkContext workContext, IPictureService pictureService, ILocalizationService localizationService,
                       ICustomerContentService customerContentService, IDateTimeHelper dateTimeHelper,
                       IWorkflowMessageService workflowMessageService, IWebHelper webHelper,
                       MediaSettings mediaSettings, NewsSettings newsSettings,
                       LocalizationSettings localizationSettings, CustomerSettings customerSettings,
                       StoreInformationSettings storeInformationSettings, MediaSettings mediaSetting, IExtraContentService extraContentService, ICacheManager cacheManager)
 {
     this._newsService            = newsService;
     this._workContext            = workContext;
     this._pictureService         = pictureService;
     this._localizationService    = localizationService;
     this._customerContentService = customerContentService;
     this._dateTimeHelper         = dateTimeHelper;
     this._workflowMessageService = workflowMessageService;
     this._webHelper                = webHelper;
     this._mediaSettings            = mediaSettings;
     this._newsSettings             = newsSettings;
     this._localizationSettings     = localizationSettings;
     this._customerSettings         = customerSettings;
     this._storeInformationSettings = storeInformationSettings;
     this._mediaSetting             = mediaSetting;
     this._extraContentService      = extraContentService;
     this._cacheManager             = EngineContext.Current.ContainerManager.Resolve <ICacheManager>("nop_cache_static");
 }
Esempio n. 8
0
        public NewsController(
            ICommonServices services,
            INewsService newsService,
            IMediaService mediaService,
            ICustomerContentService customerContentService,
            IDateTimeHelper dateTimeHelper,
            IWebHelper webHelper,
            ICacheManager cacheManager,
            ICustomerActivityService customerActivityService,
            IStoreMappingService storeMappingService,
            IGenericAttributeService genericAttributeService,
            MediaSettings mediaSettings,
            NewsSettings newsSettings,
            LocalizationSettings localizationSettings,
            CustomerSettings customerSettings,
            CaptchaSettings captchaSettings)
        {
            _services                = services;
            _newsService             = newsService;
            _mediaService            = mediaService;
            _customerContentService  = customerContentService;
            _dateTimeHelper          = dateTimeHelper;
            _webHelper               = webHelper;
            _cacheManager            = cacheManager;
            _customerActivityService = customerActivityService;
            _storeMappingService     = storeMappingService;
            _genericAttributeService = genericAttributeService;

            _mediaSettings        = mediaSettings;
            _newsSettings         = newsSettings;
            _localizationSettings = localizationSettings;
            _customerSettings     = customerSettings;
            _captchaSettings      = captchaSettings;
        }
Esempio n. 9
0
 public NewsController(CaptchaSettings captchaSettings,
                       ICustomerActivityService customerActivityService,
                       IEventPublisher eventPublisher,
                       ILocalizationService localizationService,
                       INewsModelFactory newsModelFactory,
                       INewsService newsService,
                       IPermissionService permissionService,
                       IStoreContext storeContext,
                       IUrlRecordService urlRecordService,
                       IWebHelper webHelper,
                       IWorkContext workContext,
                       IWorkflowMessageService workflowMessageService,
                       LocalizationSettings localizationSettings,
                       NewsSettings newsSettings)
 {
     this._captchaSettings         = captchaSettings;
     this._customerActivityService = customerActivityService;
     this._eventPublisher          = eventPublisher;
     this._localizationService     = localizationService;
     this._newsModelFactory        = newsModelFactory;
     this._newsService             = newsService;
     this._permissionService       = permissionService;
     this._storeContext            = storeContext;
     this._urlRecordService        = urlRecordService;
     this._webHelper              = webHelper;
     this._workContext            = workContext;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings   = localizationSettings;
     this._newsSettings           = newsSettings;
 }
Esempio n. 10
0
 public SitemapGenerator(
     ICategoryService categoryService,
     IProductService productService,
     IManufacturerService manufacturerService,
     ITopicService topicService,
     IBlogService blogService,
     IPictureService pictureService,
     IKnowledgebaseService knowledgebaseService,
     IWebHelper webHelper,
     CommonSettings commonSettings,
     BlogSettings blogSettings,
     KnowledgebaseSettings knowledgebaseSettings,
     NewsSettings newsSettings,
     ForumSettings forumSettings)
 {
     _categoryService       = categoryService;
     _productService        = productService;
     _manufacturerService   = manufacturerService;
     _topicService          = topicService;
     _blogService           = blogService;
     _pictureService        = pictureService;
     _webHelper             = webHelper;
     _commonSettings        = commonSettings;
     _knowledgebaseService  = knowledgebaseService;
     _knowledgebaseSettings = knowledgebaseSettings;
     _newsSettings          = newsSettings;
     _forumSettings         = forumSettings;
     _blogSettings          = blogSettings;
 }
Esempio n. 11
0
 public NewsRssHeaderLinkViewComponent(NewsSettings newsSettings, IWorkContext workContext, IWebHelper webHelper, IStoreContext storeContext)
 {
     this._newsSettings = newsSettings;
     this._workContext  = workContext;
     this._webHelper    = webHelper;
     this._storeContext = storeContext;
 }
Esempio n. 12
0
        public FooterViewComponent(
            IWorkContext workContext,
            IStoreContext storeContext,
            ITopicService topicService,
            IPermissionService permissionService,
            StoreInformationSettings storeInformationSettings,
            ForumSettings forumSettings,
            CatalogSettings catalogSettings,
            BlogSettings blogSettings,
            KnowledgebaseSettings knowledgebaseSettings,
            NewsSettings newsSettings,
            VendorSettings vendorSettings,
            CommonSettings commonSettings)
        {
            _workContext       = workContext;
            _storeContext      = storeContext;
            _topicService      = topicService;
            _permissionService = permissionService;

            _storeInformationSettings = storeInformationSettings;
            _forumSettings            = forumSettings;
            _catalogSettings          = catalogSettings;
            _blogSettings             = blogSettings;
            _knowledgebaseSettings    = knowledgebaseSettings;
            _newsSettings             = newsSettings;
            _vendorSettings           = vendorSettings;
            _commonSettings           = commonSettings;
        }
Esempio n. 13
0
 public HomeController(
     IPictureService pictureService,
     IContentService contentService,
     INewsService newsService,
     IWorkContext workContext,
     NewsSettings newsSettings,
     ILocalizationService localizationService,
     ICountryService countryService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IWorkflowMessageService workflowMessageService,
     IProductService productService,
     IExportManager exportManager,
     ICacheManager cacheManager
     )
 {
     this._pictureService                = pictureService;
     this._contentService                = contentService;
     this._newsService                   = newsService;
     this._workContext                   = workContext;
     this._newsSettings                  = newsSettings;
     this._localizationService           = localizationService;
     this._countryService                = countryService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._workflowMessageService        = workflowMessageService;
     this._productService                = productService;
     this._exportManager                 = exportManager;
     this._cacheManager                  = EngineContext.Current.ContainerManager.Resolve <ICacheManager>("nop_cache_static");
 }
Esempio n. 14
0
 public NewsModelFactory(CaptchaSettings captchaSettings,
                         CustomerSettings customerSettings,
                         ICustomerService customerService,
                         IDateTimeHelper dateTimeHelper,
                         IGenericAttributeService genericAttributeService,
                         INewsService newsService,
                         IPictureService pictureService,
                         IStaticCacheManager cacheManager,
                         IStoreContext storeContext,
                         IUrlRecordService urlRecordService,
                         IWorkContext workContext,
                         MediaSettings mediaSettings,
                         NewsSettings newsSettings)
 {
     _captchaSettings         = captchaSettings;
     _customerSettings        = customerSettings;
     _customerService         = customerService;
     _dateTimeHelper          = dateTimeHelper;
     _genericAttributeService = genericAttributeService;
     _newsService             = newsService;
     _pictureService          = pictureService;
     _cacheManager            = cacheManager;
     _storeContext            = storeContext;
     _urlRecordService        = urlRecordService;
     _workContext             = workContext;
     _mediaSettings           = mediaSettings;
     _newsSettings            = newsSettings;
 }
Esempio n. 15
0
 public GetSitemapXMLCommandHandler(
     ICategoryService categoryService,
     IProductService productService,
     IBrandService brandService,
     IPageService pageService,
     IBlogService blogService,
     IPictureService pictureService,
     IKnowledgebaseService knowledgebaseService,
     CommonSettings commonSettings,
     BlogSettings blogSettings,
     KnowledgebaseSettings knowledgebaseSettings,
     NewsSettings newsSettings,
     LinkGenerator linkGenerator,
     AppConfig appConfig)
 {
     _categoryService       = categoryService;
     _productService        = productService;
     _brandService          = brandService;
     _pageService           = pageService;
     _blogService           = blogService;
     _pictureService        = pictureService;
     _commonSettings        = commonSettings;
     _knowledgebaseService  = knowledgebaseService;
     _knowledgebaseSettings = knowledgebaseSettings;
     _newsSettings          = newsSettings;
     _blogSettings          = blogSettings;
     _linkGenerator         = linkGenerator;
     _appConfig             = appConfig;
 }
 public WidgetNewsService(INewsService NewsService, NewsSettings NewsSettings, IStaticCacheManager cacheManager, IUrlRecordService urlRecordService)
 {
     this._NewsService      = NewsService;
     this._NewsSettings     = NewsSettings;
     this._cacheManager     = cacheManager;
     this._urlRecordService = urlRecordService;
 }
Esempio n. 17
0
        public GetSitemapHandler(ICacheManager cacheManager,
                                 ICategoryService categoryService,
                                 IManufacturerService manufacturerService,
                                 IProductService productService,
                                 ITopicService topicService,
                                 IBlogService blogService,
                                 CommonSettings commonSettings,
                                 BlogSettings blogSettings,
                                 ForumSettings forumSettings,
                                 NewsSettings newsSettings,
                                 KnowledgebaseSettings knowledgebaseSettings)
        {
            _cacheManager        = cacheManager;
            _categoryService     = categoryService;
            _manufacturerService = manufacturerService;
            _productService      = productService;
            _topicService        = topicService;
            _blogService         = blogService;

            _commonSettings        = commonSettings;
            _blogSettings          = blogSettings;
            _forumSettings         = forumSettings;
            _newsSettings          = newsSettings;
            _knowledgebaseSettings = knowledgebaseSettings;
        }
Esempio n. 18
0
 public SitemapGenerator(IStoreContext storeContext,
                         ICategoryService categoryService,
                         IProductService productService,
                         IManufacturerService manufacturerService,
                         ITopicService topicService,
                         IWebHelper webHelper,
                         CommonSettings commonSettings,
                         BlogSettings blogSettings,
                         KnowledgebaseSettings knowledgebaseSettings,
                         NewsSettings newsSettings,
                         ForumSettings forumSettings,
                         SecuritySettings securitySettings)
 {
     this._storeContext          = storeContext;
     this._categoryService       = categoryService;
     this._productService        = productService;
     this._manufacturerService   = manufacturerService;
     this._topicService          = topicService;
     this._webHelper             = webHelper;
     this._commonSettings        = commonSettings;
     this._blogSettings          = blogSettings;
     this._knowledgebaseSettings = knowledgebaseSettings;
     this._newsSettings          = newsSettings;
     this._forumSettings         = forumSettings;
     this._securitySettings      = securitySettings;
 }
Esempio n. 19
0
        public NewsCollector()
        {
            NewsSettings settings = ServiceRegistration.Get <ISettingsManager>().Load <NewsSettings>();

            _work = new IntervalWork(RefreshFeeds, TimeSpan.FromMinutes(settings.RefreshInterval));
            ServiceRegistration.Get <IThreadPool>().AddIntervalWork(_work, true);
        }
Esempio n. 20
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="storeContext">Store context</param>
 /// <param name="categoryService">Category service</param>
 /// <param name="productService">Product service</param>
 /// <param name="manufacturerService">Manufacturer service</param>
 /// <param name="topicService">Topic service</param>
 /// <param name="webHelper">Web helper</param>
 /// <param name="urlHelperFactory">URL g=helper factory</param>
 /// <param name="actionContextAccessor">Action context accessor</param>
 /// <param name="commonSettings">Common settings</param>
 /// <param name="blogSettings">Blog settings</param>
 /// <param name="newsSettings">News settings</param>
 /// <param name="forumSettings">Forum settings</param>
 /// <param name="securitySettings">Security settings</param>
 /// <param name="productTagService">Product tag service</param>
 public SitemapGenerator(IStoreContext storeContext,
                         ICategoryService categoryService,
                         IProductService productService,
                         IManufacturerService manufacturerService,
                         ITopicService topicService,
                         IWebHelper webHelper,
                         IUrlHelperFactory urlHelperFactory,
                         IActionContextAccessor actionContextAccessor,
                         CommonSettings commonSettings,
                         BlogSettings blogSettings,
                         NewsSettings newsSettings,
                         ForumSettings forumSettings,
                         SecuritySettings securitySettings,
                         IProductTagService productTagService)
 {
     this._storeContext          = storeContext;
     this._categoryService       = categoryService;
     this._productService        = productService;
     this._manufacturerService   = manufacturerService;
     this._topicService          = topicService;
     this._webHelper             = webHelper;
     this._urlHelperFactory      = urlHelperFactory;
     this._actionContextAccessor = actionContextAccessor;
     this._commonSettings        = commonSettings;
     this._blogSettings          = blogSettings;
     this._newsSettings          = newsSettings;
     this._forumSettings         = forumSettings;
     this._securitySettings      = securitySettings;
     this._productTagService     = productTagService;
 }
Esempio n. 21
0
        public static void SaveSettings(string userId, NewsSettings ns)
        {
            Storage storage = new Storage(new DefaultDBUtils());

            ns.Id = storage.GetNewsId(userId);
            Data.Models.NewsSettings nsData = (Data.Models.NewsSettings)ns;
            storage.SaveNewsSettings(nsData);
        }
Esempio n. 22
0
 public PagingController(NewsSettings newsSettings,
                         ISettingService settingService,
                         CatalogSettings catalogSettings)
 {
     this._newsSettings    = newsSettings;
     this._settingService  = settingService;
     this._catalogSettings = catalogSettings;
 }
Esempio n. 23
0
        public CommonController(ICategoryService categoryService, IProductService productService,
                                IManufacturerService manufacturerService, ITopicService topicService,
                                ILanguageService languageService,
                                ICurrencyService currencyService, ILocalizationService localizationService,
                                IWorkContext workContext,
                                IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService,
                                ISitemapGenerator sitemapGenerator, IThemeContext themeContext,
                                IThemeProvider themeProvider, IForumService forumService,
                                IGenericAttributeService genericAttributeService, IWebHelper webHelper,
                                IPermissionService permissionService, IMobileDeviceHelper mobileDeviceHelper,
                                HttpContextBase httpContext, ICacheManager cacheManager,
                                ICustomerActivityService customerActivityService, CustomerSettings customerSettings,
                                TaxSettings taxSettings, CatalogSettings catalogSettings,
                                StoreInformationSettings storeInformationSettings, EmailAccountSettings emailAccountSettings,
                                CommonSettings commonSettings, BlogSettings blogSettings,
                                NewsSettings newsSettings, ForumSettings forumSettings,
                                LocalizationSettings localizationSettings, CaptchaSettings captchaSettings,
                                IBannerService bannerService,
                                IRecentlyViewedProductsService recentlyViewedProductsService,
                                IPictureService pictureService)
        {
            this._categoryService         = categoryService;
            this._productService          = productService;
            this._manufacturerService     = manufacturerService;
            this._topicService            = topicService;
            this._languageService         = languageService;
            this._currencyService         = currencyService;
            this._localizationService     = localizationService;
            this._workContext             = workContext;
            this._queuedEmailService      = queuedEmailService;
            this._emailAccountService     = emailAccountService;
            this._sitemapGenerator        = sitemapGenerator;
            this._themeContext            = themeContext;
            this._themeProvider           = themeProvider;
            this._forumservice            = forumService;
            this._genericAttributeService = genericAttributeService;
            this._webHelper               = webHelper;
            this._permissionService       = permissionService;
            this._mobileDeviceHelper      = mobileDeviceHelper;
            this._httpContext             = httpContext;
            this._cacheManager            = cacheManager;
            this._customerActivityService = customerActivityService;
            this._bannerService           = bannerService;
            this._pictureService          = pictureService;

            this._customerSettings              = customerSettings;
            this._taxSettings                   = taxSettings;
            this._catalogSettings               = catalogSettings;
            this._storeInformationSettings      = storeInformationSettings;
            this._emailAccountSettings          = emailAccountSettings;
            this._commonSettings                = commonSettings;
            this._blogSettings                  = blogSettings;
            this._newsSettings                  = newsSettings;
            this._forumSettings                 = forumSettings;
            this._localizationSettings          = localizationSettings;
            this._captchaSettings               = captchaSettings;
            this._recentlyViewedProductsService = recentlyViewedProductsService;
        }
Esempio n. 24
0
        public NewsApiClient(NewsSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException();
            }

            this.Settings = settings.Copy();
        }
Esempio n. 25
0
        public CommonController(
            ICommonServices services,
            ITopicService topicService,
            Lazy <ILanguageService> languageService,
            Lazy <ICurrencyService> currencyService,
            IThemeContext themeContext,
            Lazy <IThemeRegistry> themeRegistry,
            Lazy <IForumService> forumService,
            Lazy <IGenericAttributeService> genericAttributeService,
            Lazy <IMobileDeviceHelper> mobileDeviceHelper,
            Lazy <IUrlRecordService> urlRecordService,
            IPageAssetsBuilder pageAssetsBuilder,
            Lazy <IPictureService> pictureService,
            Lazy <IManufacturerService> manufacturerService,
            CustomerSettings customerSettings,
            PrivacySettings privacySettings,
            TaxSettings taxSettings,
            CatalogSettings catalogSettings,
            ShoppingCartSettings shoppingCartSettings,
            EmailAccountSettings emailAccountSettings,
            CommonSettings commonSettings,
            NewsSettings newsSettings,
            BlogSettings blogSettings,
            ForumSettings forumSettings,
            LocalizationSettings localizationSettings,
            Lazy <SocialSettings> socialSettings,
            ThemeSettings themeSettings,
            IBreadcrumb breadcrumb)
        {
            _services                = services;
            _topicService            = topicService;
            _languageService         = languageService;
            _currencyService         = currencyService;
            _themeContext            = themeContext;
            _themeRegistry           = themeRegistry;
            _forumservice            = forumService;
            _genericAttributeService = genericAttributeService;
            _urlRecordService        = urlRecordService;
            _pageAssetsBuilder       = pageAssetsBuilder;
            _pictureService          = pictureService;
            _manufacturerService     = manufacturerService;

            _customerSettings     = customerSettings;
            _privacySettings      = privacySettings;
            _taxSettings          = taxSettings;
            _catalogSettings      = catalogSettings;
            _shoppingCartSettings = shoppingCartSettings;
            _commonSettings       = commonSettings;
            _newsSettings         = newsSettings;
            _blogSettings         = blogSettings;
            _forumSettings        = forumSettings;
            _localizationSettings = localizationSettings;
            _socialSettings       = socialSettings;
            _themeSettings        = themeSettings;

            _breadcrumb = breadcrumb;
        }
Esempio n. 26
0
        public NeCategoryController(NccSettingsService nccSettingsService, ILoggerFactory factory, NeCategoryService neCategoryService, NccUserService nccUserService)
        {
            _logger         = factory.CreateLogger <NeCategoryController>();
            nccNewsSettings = new NewsSettings();

            _nccSettingsService = nccSettingsService;
            _neCategoryService  = neCategoryService;
            _nccUserService     = nccUserService;
            nccNewsSettings     = _nccSettingsService.GetByKey <NewsSettings>() ?? new NewsSettings();
        }
 public WidgetsNewsController(ISettingService settingService,
                              NewsSettings NewsSettings, ILocalizationService localizationService,
                              INotificationService notificationService, IPermissionService permissionService)
 {
     this._settingService      = settingService;
     this._NewsSettings        = NewsSettings;
     this._localizationService = localizationService;
     this._notificationService = notificationService;
     this._permissionService   = permissionService;
 }
Esempio n. 28
0
        public CommonController(
            ITopicService topicService,
            Lazy <ILanguageService> languageService,
            Lazy <ICurrencyService> currencyService,
            IThemeContext themeContext,
            Lazy <IThemeRegistry> themeRegistry,
            Lazy <IForumService> forumService,
            Lazy <IGenericAttributeService> genericAttributeService,
            Lazy <IMobileDeviceHelper> mobileDeviceHelper,
            CustomerSettings customerSettings,
            TaxSettings taxSettings,
            CatalogSettings catalogSettings,
            EmailAccountSettings emailAccountSettings,
            CommonSettings commonSettings,
            NewsSettings newsSettings,
            BlogSettings blogSettings,
            ForumSettings forumSettings,
            LocalizationSettings localizationSettings,
            Lazy <SecuritySettings> securitySettings,
            IOrderTotalCalculationService orderTotalCalculationService,
            IPriceFormatter priceFormatter,
            ThemeSettings themeSettings,
            IPageAssetsBuilder pageAssetsBuilder,
            Lazy <IPictureService> pictureService,
            ICommonServices services)
        {
            this._topicService            = topicService;
            this._languageService         = languageService;
            this._currencyService         = currencyService;
            this._themeContext            = themeContext;
            this._themeRegistry           = themeRegistry;
            this._forumservice            = forumService;
            this._genericAttributeService = genericAttributeService;
            this._mobileDeviceHelper      = mobileDeviceHelper;

            this._customerSettings     = customerSettings;
            this._taxSettings          = taxSettings;
            this._catalogSettings      = catalogSettings;
            this._commonSettings       = commonSettings;
            this._newsSettings         = newsSettings;
            this._blogSettings         = blogSettings;
            this._forumSettings        = forumSettings;
            this._localizationSettings = localizationSettings;
            this._securitySettings     = securitySettings;

            this._orderTotalCalculationService = orderTotalCalculationService;
            this._priceFormatter = priceFormatter;

            this._themeSettings     = themeSettings;
            this._pageAssetsBuilder = pageAssetsBuilder;
            this._pictureService    = pictureService;
            this._services          = services;

            T = NullLocalizer.Instance;
        }
Esempio n. 29
0
 public CommonModelFactory(ICategoryService categoryService,
                           IProductService productService,
                           IDestinationService destinationService,
                           ITopicService topicService,
                           ILanguageService languageService,
                           ICurrencyService currencyService,
                           ILocalizationService localizationService,
                           IWorkContext workContext,
                           IStoreContext storeContext,
                           ISitemapGenerator sitemapGenerator,
                           IThemeContext themeContext,
                           IThemeProvider themeProvider,
                           IGenericAttributeService genericAttributeService,
                           IWebHelper webHelper,
                           IPermissionService permissionService,
                           ICacheManager cacheManager,
                           IPageHeadBuilder pageHeadBuilder,
                           IPictureService pictureService,
                           HttpContextBase httpContext,
                           CatalogSettings catalogSettings,
                           StoreInformationSettings storeInformationSettings,
                           CommonSettings commonSettings,
                           BlogSettings blogSettings,
                           NewsSettings newsSettings,
                           LocalizationSettings localizationSettings,
                           CaptchaSettings captchaSettings
                           )
 {
     this._categoryService         = categoryService;
     this._productService          = productService;
     this._destinationService      = destinationService;
     this._topicService            = topicService;
     this._languageService         = languageService;
     this._currencyService         = currencyService;
     this._localizationService     = localizationService;
     this._workContext             = workContext;
     this._storeContext            = storeContext;
     this._sitemapGenerator        = sitemapGenerator;
     this._themeContext            = themeContext;
     this._themeProvider           = themeProvider;
     this._genericAttributeService = genericAttributeService;
     this._webHelper                = webHelper;
     this._permissionService        = permissionService;
     this._cacheManager             = cacheManager;
     this._pageHeadBuilder          = pageHeadBuilder;
     this._pictureService           = pictureService;
     this._httpContext              = httpContext;
     this._catalogSettings          = catalogSettings;
     this._storeInformationSettings = storeInformationSettings;
     this._commonSettings           = commonSettings;
     this._blogSettings             = blogSettings;
     this._newsSettings             = newsSettings;
     this._localizationSettings     = localizationSettings;
     this._captchaSettings          = captchaSettings;
 }
Esempio n. 30
0
 List <string> GetConfiguredFeedUrls()
 {
     lock (_settings.Settings.FeedsList)
     {
         if (_settings.Settings.FeedsList.Count == 0)
         {
             return(NewsSettings.GetDefaultRegionalFeeds().Select(f => f.Url).ToList());
         }
         return(_settings.Settings.FeedsList.Select(f => f.Url).ToList());
     }
 }