Beispiel #1
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="cacheManager">Cache manager</param>
        /// <param name="categoryRepository">Category repository</param>
        /// <param name="productCategoryRepository">ProductCategory repository</param>
        /// <param name="productRepository">Product repository</param>
        /// <param name="aclRepository">ACL record repository</param>
        /// <param name="siteMappingRepository">Site mapping repository</param>
        /// <param name="workContext">Work context</param>
        /// <param name="siteContext">Site context</param>
        /// <param name="eventPublisher">Event publisher</param>
        public CategoryService(ICacheManager cacheManager,
                               IRepository <Category> categoryRepository,
                               IRepository <ProductCategory> productCategoryRepository,
                               IRepository <Product> productRepository,
                               IRepository <AclRecord> aclRepository,
                               IRepository <SiteMapping> siteMappingRepository,
                               IWorkContext workContext,
                               ISiteContext siteContext,
                               IEventPublisher eventPublisher,
                               ISiteMappingService siteMappingService,
                               IAclService aclService,
                               Lazy <IEnumerable <ICategoryNavigationFilter> > navigationFilters)
        {
            this._cacheManager              = cacheManager;
            this._categoryRepository        = categoryRepository;
            this._productCategoryRepository = productCategoryRepository;
            this._productRepository         = productRepository;
            this._aclRepository             = aclRepository;
            this._siteMappingRepository     = siteMappingRepository;
            this._workContext        = workContext;
            this._siteContext        = siteContext;
            this._eventPublisher     = eventPublisher;
            this._siteMappingService = siteMappingService;
            this._aclService         = aclService;
            this._navigationFilters  = navigationFilters;

            this.QuerySettings = DbQuerySettings.Default;
        }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="siteMappingRepository">Site mapping repository</param>
 /// <param name="languageService">Language service</param>
 /// <param name="localizedEntityService">Localized entity service</param>
 /// <param name="siteMappingService">Site mapping service</param>
 /// <param name="messageTemplateRepository">Message template repository</param>
 /// <param name="catalogSettings">Catalog settings</param>
 /// <param name="eventPublisher">Event publisher</param>
 public MessageTemplateService(ICacheManager cacheManager,
                               IRepository <SiteMapping> siteMappingRepository,
                               ISiteMappingService siteMappingService,
                               IRepository <MessageTemplate> messageTemplateRepository,
                               IEventPublisher eventPublisher)
 {
     this._cacheManager              = cacheManager;
     this._siteMappingRepository     = siteMappingRepository;
     this._siteMappingService        = siteMappingService;
     this._messageTemplateRepository = messageTemplateRepository;
     this._eventPublisher            = eventPublisher;
 }
Beispiel #3
0
 public RegionalContentController(IRegionalContentService regionalContentService, ILanguageService languageService,
                                  ILocalizedEntityService localizedEntityService, ILocalizationService localizationService,
                                  IPermissionService permissionService, ISiteService siteService, IPictureService pictureService,
                                  ISiteMappingService siteMappingService)
 {
     this._pictureService         = pictureService;
     this._regionalContentService = regionalContentService;
     this._languageService        = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService    = localizationService;
     this._permissionService      = permissionService;
     this._siteService            = siteService;
     this._siteMappingService     = siteMappingService;
 }
Beispiel #4
0
 public LinkController(ILinkService linkService, ILanguageService languageService,
                       ILocalizedEntityService localizedEntityService, ILocalizationService localizationService,
                       IPermissionService permissionService, ISiteService siteService, IPictureService pictureService,
                       ISiteMappingService siteMappingService)
 {
     this._pictureService         = pictureService;
     this._linkService            = linkService;
     this._languageService        = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService    = localizationService;
     this._permissionService      = permissionService;
     this._siteService            = siteService;
     this._siteMappingService     = siteMappingService;
 }
Beispiel #5
0
 public PollController(IPollService pollService, ILanguageService languageService,
                       IDateTimeHelper dateTimeHelper, ILocalizationService localizationService,
                       IPermissionService permissionService, AdminAreaSettings adminAreaSettings,
                       ISiteService siteService,
                       ISiteMappingService siteMappingService)
 {
     this._pollService         = pollService;
     this._languageService     = languageService;
     this._dateTimeHelper      = dateTimeHelper;
     this._localizationService = localizationService;
     this._permissionService   = permissionService;
     this._adminAreaSettings   = adminAreaSettings;
     this._siteService         = siteService;
     this._siteMappingService  = siteMappingService;
 }
Beispiel #6
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="httpContextAccessor">HTTP context accessor</param>
 /// <param name="currencySettings">Currency settings</param>
 /// <param name="authenticationService">Authentication service</param>
 /// <param name="currencyService">Currency service</param>
 /// <param name="userService">User service</param>
 /// <param name="genericAttributeService">Generic attribute service</param>
 /// <param name="languageService">Language service</param>
 /// <param name="siteContext">Site context</param>
 /// <param name="siteMappingService">Site mapping service</param>
 /// <param name="userAgentHelper">User gent helper</param>
 /// <param name="vendorService">Vendor service</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="taxSettings">Tax settings</param>
 public WebWorkContext(IHttpContextAccessor httpContextAccessor,
                       IAuthenticationService authenticationService,
                       IUserService userService,
                       IGenericAttributeService genericAttributeService,
                       ISiteContext siteContext,
                       ISiteMappingService siteMappingService,
                       IUserAgentHelper userAgentHelper)
 {
     this._httpContextAccessor     = httpContextAccessor;
     this._authenticationService   = authenticationService;
     this._userService             = userService;
     this._genericAttributeService = genericAttributeService;
     this._siteContext             = siteContext;
     this._siteMappingService      = siteMappingService;
     this._userAgentHelper         = userAgentHelper;
 }
Beispiel #7
0
 public ModelTemplateController(ILanguageService languageService,
                                IModelTemplateService modelTemplateService, IUrlRecordService urlRecordService,
                                ILocalizedEntityService localizedEntityService, ILocalizationService localizationService,
                                IPermissionService permissionService, ISiteService storeService,
                                ISiteMappingService storeMappingService, IEventPublisher eventPublisher)
 {
     this._modelTemplateService   = modelTemplateService;
     this._languageService        = languageService;
     this._localizedEntityService = localizedEntityService;
     this._urlRecordService       = urlRecordService;
     this._localizationService    = localizationService;
     this._permissionService      = permissionService;
     this._storeService           = storeService;
     this._storeMappingService    = storeMappingService;
     this._eventPublisher         = eventPublisher;
 }
Beispiel #8
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="currencyRepository">Currency repository</param>
 /// <param name="siteMappingRepository">Site mapping repository</param>
 /// <param name="currencySettings">Currency settings</param>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="eventPublisher">Event published</param>
 public CurrencyService(ICacheManager cacheManager,
                        IRepository <Currency> currencyRepository,
                        ISiteMappingService siteMappingService,
                        CurrencySettings currencySettings,
                        IPluginFinder pluginFinder,
                        IEventPublisher eventPublisher,
                        IProviderManager providerManager)
 {
     this._cacheManager       = cacheManager;
     this._currencyRepository = currencyRepository;
     this._siteMappingService = siteMappingService;
     this._currencySettings   = currencySettings;
     this._pluginFinder       = pluginFinder;
     this._eventPublisher     = eventPublisher;
     this._providerManager    = providerManager;
 }
Beispiel #9
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;
 }
 public MessageTemplateController(IMessageTemplateService messageTemplateService,
                                  IEmailAccountService emailAccountService, ILanguageService languageService,
                                  ILocalizedEntityService localizedEntityService,
                                  ILocalizationService localizationService, IMessageTokenProvider messageTokenProvider,
                                  IPermissionService permissionService, ISiteService siteService,
                                  ISiteMappingService siteMappingService,
                                  EmailAccountSettings emailAccountSettings)
 {
     this._messageTemplateService = messageTemplateService;
     this._emailAccountService    = emailAccountService;
     this._languageService        = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService    = localizationService;
     this._messageTokenProvider   = messageTokenProvider;
     this._permissionService      = permissionService;
     this._siteService            = siteService;
     this._siteMappingService     = siteMappingService;
     this._emailAccountSettings   = emailAccountSettings;
 }
Beispiel #11
0
 public LanguageController(ILanguageService languageService,
                           ILocalizationService localizationService,
                           ISiteService siteService,
                           ISiteMappingService siteMappingService,
                           IPermissionService permissionService,
                           IWebHelper webHelper,
                           AdminAreaSettings adminAreaSettings,
                           IPluginFinder pluginFinder,
                           ICountryService countryService,
                           ICommonServices services)
 {
     this._localizationService = localizationService;
     this._languageService     = languageService;
     this._siteService         = siteService;
     this._siteMappingService  = siteMappingService;
     this._permissionService   = permissionService;
     this._webHelper           = webHelper;
     this._adminAreaSettings   = adminAreaSettings;
     this._pluginFinder        = pluginFinder;
     this._countryService      = countryService;
     this._services            = services;
 }
Beispiel #12
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;
        }
Beispiel #13
0
        public ClientController(IClientService clientService,

                                ISiteService storeService, ISiteMappingService storeMappingService,
                                IUrlRecordService urlRecordService, IPictureService pictureService,
                                ILanguageService languageService, ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
                                IWorkContext workContext, IDateTimeHelper dateTimeHelper,
                                IUserActivityService userActivityService, IPermissionService permissionService,
                                AdminAreaSettings adminAreaSettings)
        {
            this._clientService          = clientService;
            this._storeService           = storeService;
            this._storeMappingService    = storeMappingService;
            this._urlRecordService       = urlRecordService;
            this._pictureService         = pictureService;
            this._languageService        = languageService;
            this._localizationService    = localizationService;
            this._localizedEntityService = localizedEntityService;
            this._workContext            = workContext;
            this._userActivityService    = userActivityService;
            this._permissionService      = permissionService;
            this._adminAreaSettings      = adminAreaSettings;
            this._dateTimeHelper         = dateTimeHelper;
        }
Beispiel #14
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="categoryRepository">ArticleCategory repository</param>
 /// <param name="articleArticleCategoryRepository">ProductArticleCategory repository</param>
 /// <param name="articleRepository">Product repository</param>
 /// <param name="aclRepository">ACL record repository</param>
 /// <param name="siteMappingRepository">Site mapping repository</param>
 /// <param name="workContext">Work context</param>
 /// <param name="siteContext">Site context</param>
 /// <param name="eventPublisher">Event publisher</param>
 public ArticleCategoryService(ICacheManager cacheManager,
                               IRepository <ArticleCategory> categoryRepository,
                               IRepository <Article> articleRepository,
                               IRepository <SiteMapping> siteMappingRepository,
                               IRepository <AclRecord> aclRepository,
                               IWorkContext workContext,
                               ISiteContext siteContext,
                               IEventPublisher eventPublisher,
                               IAclService aclService,
                               ISiteMappingService siteMappingService)
 {
     this._cacheManager          = cacheManager;
     this._categoryRepository    = categoryRepository;
     this._articleRepository     = articleRepository;
     this._siteMappingRepository = siteMappingRepository;
     this._aclRepository         = aclRepository;
     this._workContext           = workContext;
     this._siteContext           = siteContext;
     this._eventPublisher        = eventPublisher;
     this._siteMappingService    = siteMappingService;
     this._aclService            = aclService;
     this.QuerySettings          = DbQuerySettings.Default;
 }
Beispiel #15
0
 public CopyProductService(IProductService productService,
                           IProductAttributeService productAttributeService, ILanguageService languageService,
                           ILocalizedEntityService localizedEntityService, IPictureService pictureService,
                           ICategoryService categoryService, IManufacturerService manufacturerService,
                           ISpecificationAttributeService specificationAttributeService, IDownloadService downloadService,
                           IProductAttributeParser productAttributeParser, IUrlRecordService urlRecordService,
                           ISiteMappingService siteMappingService,
                           ILocalizationService localizationService)
 {
     this._productService                = productService;
     this._productAttributeService       = productAttributeService;
     this._languageService               = languageService;
     this._localizedEntityService        = localizedEntityService;
     this._pictureService                = pictureService;
     this._categoryService               = categoryService;
     this._manufacturerService           = manufacturerService;
     this._specificationAttributeService = specificationAttributeService;
     this._downloadService               = downloadService;
     this._productAttributeParser        = productAttributeParser;
     this._urlRecordService              = urlRecordService;
     this._siteMappingService            = siteMappingService;
     this._localizationService           = localizationService;
 }
        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;
        }
Beispiel #17
0
 public SiteMappingSupportedModelFactory(ISiteMappingService siteMappingService,
                                         ISiteService siteService)
 {
     this._siteMappingService = siteMappingService;
     this._siteService        = siteService;
 }