Esempio n. 1
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="httpContext">HTTP context</param>
 /// <param name="articleService">Article service</param>
 /// <param name="catalogSettings">Catalog settings</param>
 public RecentlyViewedArticlesService(HttpContextBase httpContext, IArticleService articleService,
                                      ArticleCatalogSettings catalogSettings)
 {
     this._httpContext     = httpContext;
     this._articleService  = articleService;
     this._catalogSettings = catalogSettings;
 }
Esempio n. 2
0
 public ArticleCategoryController(
     IModelTemplateService modelTemplateService,
     ILocalizationService localizationService,
     ILocalizedEntityService localizedEntityService,
     IUserService userService,
     UserSettings userSettings,
     IArticleCategoryService categoryService,
     IUrlRecordService urlRecordService,
     ILanguageService languageService,
     IPictureService pictureService,
     IAclService aclService,
     IUserActivityService userActivityService,
     ISiteService siteService, ISiteMappingService siteMappingService,
     IDateTimeHelper dateTimeHelper,
     IEventPublisher eventPublisher,
     ArticleCatalogSettings catalogSettings,
     IPermissionService permissionService,
     IChannelService channelService,
     IWorkContext workContext,
     ISiteContext siteContext,
     SiteInformationSettings siteSettings)
 {
     this._modelTemplateService   = modelTemplateService;
     this._categoryService        = categoryService;
     this._localizedEntityService = localizedEntityService;
     this._urlRecordService       = urlRecordService;
     this._localizationService    = localizationService;
     this._userService            = userService;
     this._userSettings           = userSettings;
     this._userActivityService    = userActivityService;
     this._aclService             = aclService;
     this._languageService        = languageService;
     this._pictureService         = pictureService;
     this._siteService            = siteService;
     this._siteMappingService     = siteMappingService;
     this._dateTimeHelper         = dateTimeHelper;
     this._eventPublisher         = eventPublisher;
     this._workContext            = workContext;
     this._catalogSettings        = catalogSettings;
     this._permissionService      = permissionService;
     this._channelService         = channelService;
     this._siteContext            = siteContext;
     this._siteSettings           = siteSettings;
 }
Esempio n. 3
0
        public ArticleController(
            ICommonServices services,
            IArticleService articleService,
            IUserContentService userContentService,
            IUserService userService,
            IUserActivityService userActivityService,
            IWorkflowMessageService workflowMessageService,
            IAclService aclService,
            ISiteMappingService siteMappingService,
            ArticleCatalogSettings catalogSettings,
            LocalizationSettings localizationSettings,
            ILocalizationService localizationService,
            ArticleCatalogHelper helper, IArticleTagService articleTagService,
            IRecentlyViewedArticlesService recentlyViewedArticlesService,
            CaptchaSettings captchaSettings,
            IWebHelper webHelper,
            IWorkContext workContext
            )
        {
            this._services               = services;
            this._articleService         = articleService;
            this._userContentService     = userContentService;
            this._userService            = userService;
            this._userActivityService    = userActivityService;
            this._workflowMessageService = workflowMessageService;
            this._aclService             = aclService;
            this._siteMappingService     = siteMappingService;
            this._catalogSettings        = catalogSettings;
            this._localizationSettings   = localizationSettings;
            this._localizationService    = localizationService;
            this._helper                        = helper;
            this._articleTagService             = articleTagService;
            this._recentlyViewedArticlesService = recentlyViewedArticlesService;
            this._workContext                   = workContext;
            this._captchaSettings               = captchaSettings;
            this._webHelper                     = webHelper;

            T = NullLocalizer.Instance;
        }
        public ArticleCatalogController(
            ICommonServices services,
            IClientService clientService,
            IArticleCategoryService articlecategoryService,
            IModelTemplateService modelTemplateService,
            IArticleService articleService, IArticleTagService articlesTagService,
            IPictureService pictureService,
            IGenericAttributeService genericAttributeService,
            IAclService aclService,
            ISiteMappingService siteMappingService,
            MediaSettings mediaSettings,
            ArticleCatalogSettings catalogSettings,
            IRecentlyViewedArticlesService recentlyViewedArticlesService,
            //IFilterService filterService,
            ArticleCatalogHelper helper,
            Lazy <ISearchProvider> searchProvider
            )
        {
            this._services                      = services;
            this._clientService                 = clientService;
            this._articlecategoryService        = articlecategoryService;
            this._articleService                = articleService;
            this._articlesTagService            = articlesTagService;
            this._modelTemplateService          = modelTemplateService;
            this._pictureService                = pictureService;
            this._genericAttributeService       = genericAttributeService;
            this._aclService                    = aclService;
            this._siteMappingService            = siteMappingService;
            this._recentlyViewedArticlesService = recentlyViewedArticlesService;
            //this._filterService = filterService;
            this._mediaSettings   = mediaSettings;
            this._catalogSettings = catalogSettings;

            this._helper         = helper;
            this._searchProvider = searchProvider;
            T = NullLocalizer.Instance;
        }
Esempio n. 5
0
 public static ArticleCatalogSettings ToEntity(this ArticleCatalogSettingsModel model, ArticleCatalogSettings destination)
 {
     return(Mapper.Map(model, destination));
 }
Esempio n. 6
0
 public static ArticleCatalogSettingsModel ToModel(this ArticleCatalogSettings entity)
 {
     return(Mapper.Map <ArticleCatalogSettings, ArticleCatalogSettingsModel>(entity));
 }