public ProcessRegistation(
            IMessageService messageService,
            IStoreContext storeContext,
            CustomerSettings customerSettings,
            ICustomerRegistrationService customerRegistrationService,
            IGenericAttributeService genericAttributeService,
            IAuthenticationService authenticationService,
            IWorkflowMessageService workflowMessageService,
            LocalizationSettings localizationSettings,
            IEventPublisher eventPublisher,
            ICustomerAttributeService customerAttributeService,
            ICustomerAttributeParser customerAttributeParser,
            IWorkContext workContext

            )
        {
            _messageService              = messageService;
            _customerSettings            = customerSettings;
            _storeContext                = storeContext;
            _customerRegistrationService = customerRegistrationService;
            _genericAttributeService     = genericAttributeService;
            _authenticationService       = authenticationService;
            _workflowMessageService      = workflowMessageService;
            _localizationSettings        = localizationSettings;
            _eventPublisher              = eventPublisher;
            _customerAttributeService    = customerAttributeService;
            _customerAttributeParser     = customerAttributeParser;

            _workContext = workContext;
        }
 public CustomerActionController(
     ICustomerActionViewModelService customerActionViewModelService,
     ICustomerService customerService,
     ICustomerAttributeService customerAttributeService,
     ICustomerTagService customerTagService,
     ILocalizationService localizationService,
     ICustomerActivityService customerActivityService,
     IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IStoreService storeService,
     IVendorService vendorService,
     ICustomerActionService customerActionService,
     IProductAttributeService productAttributeService,
     ISpecificationAttributeService specificationAttributeService,
     IDateTimeHelper dateTimeHelper)
 {
     _customerActionViewModelService = customerActionViewModelService;
     _customerService = customerService;
     _customerAttributeService = customerAttributeService;
     _customerTagService = customerTagService;
     _localizationService = localizationService;
     _customerActivityService = customerActivityService;
     _productService = productService;
     _categoryService = categoryService;
     _manufacturerService = manufacturerService;
     _storeService = storeService;
     _vendorService = vendorService;
     _customerActionService = customerActionService;
     _productAttributeService = productAttributeService;
     _specificationAttributeService = specificationAttributeService;
     _dateTimeHelper = dateTimeHelper;
 }
Esempio n. 3
0
        public static void SaveCustomerAttribute <TPropType>(this Customer customer, string key, TPropType value,
                                                             ICustomerAttributeService _customerAttributeService)
        {
            if (customer == null || customer.Id == 0)
            {
                throw new ArgumentNullException("customer");
            }

            var props     = _customerAttributeService.GetAttributeByCustomerId(customer.Id);
            var attribute = new CustomerAttribute();

            if (props != null &&
                props.Count > 0 &&
                props.FirstOrDefault(ga =>
                                     ga.Key.Equals(key, StringComparison.InvariantCultureIgnoreCase)) != null)
            {
                attribute = props.FirstOrDefault(ga =>
                                                 ga.Key.Equals(key, StringComparison.InvariantCultureIgnoreCase));

                attribute.Value = value.ToString();
            }
            else
            {
                attribute.CustomerId = customer.Id;
                attribute.Key        = key;
                attribute.Value      = value.ToString();
            }
            _customerAttributeService.SaveAttribute(attribute);
        }
 public CustomerController(ICustomerService customerService,
                           ICustomerViewModelService customerViewModelService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ICustomerReportService customerReportService,
                           ILocalizationService localizationService,
                           CustomerSettings customerSettings,
                           IWorkContext workContext,
                           IExportManager exportManager,
                           ICustomerAttributeParser customerAttributeParser,
                           ICustomerAttributeService customerAttributeService,
                           IAddressAttributeParser addressAttributeParser,
                           IAddressAttributeService addressAttributeService,
                           IWorkflowMessageService workflowMessageService,
                           IDownloadService downloadService)
 {
     this._customerService             = customerService;
     this._customerViewModelService    = customerViewModelService;
     this._genericAttributeService     = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerReportService       = customerReportService;
     this._localizationService         = localizationService;
     this._customerSettings            = customerSettings;
     this._workContext              = workContext;
     this._exportManager            = exportManager;
     this._customerAttributeParser  = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._addressAttributeParser   = addressAttributeParser;
     this._addressAttributeService  = addressAttributeService;
     this._workflowMessageService   = workflowMessageService;
     this._downloadService          = downloadService;
 }
Esempio n. 5
0
        public void SetIdDefaults
        (
            IWorkContext workContext,
            ICustomerService customerService,
            ICustomerAttributeService customerAttributeService,
            CaptchaSettings captchaSettings,
            FormCollection form
        )
        {
            bool showCaptcha = captchaSettings.Enabled; //&& captchaSettings.ShowOnContactUsPage;

            this.DisplayCaptcha = showCaptcha;

            SelfIdentificationViewModel self =
                Utilities.SelfIdentificationViewModel(workContext, customerService, customerAttributeService, showCaptcha);

            self.RequestEmail       = true;
            self.RequestPassword    = true;
            self.RequestPhoneNumber = true;

            _identificationViewModel = self;

            this.IsPrayerCoordinatorRequest = false;
            this.Member          = self.Member;
            this.CurrentCustomer = self.Customer;
            this.EzLinkRequest   = false;
        }
Esempio n. 6
0
 public CustomerAttributeParser(
     ICustomerAttributeService customerAttributeService,
     ILocalizationService localizationService)
 {
     this._customerAttributeService = customerAttributeService;
     this._localizationService      = localizationService;
 }
Esempio n. 7
0
        /// <summary>
        /// 获取用户的属性值
        /// </summary>
        /// <typeparam name="TPropType"></typeparam>
        /// <param name="customer"></param>
        /// <param name="key"></param>
        /// <param name="_customerAttributeService"></param>
        /// <returns></returns>
        public static TPropType GetCustomerAttributeValue <TPropType>(this Customer customer, string key,
                                                                      ICustomerAttributeService _customerAttributeService)
        {
            if (customer == null)
            {
                throw new ArgumentNullException("customer");
            }

            var props = _customerAttributeService.GetAttributeByCustomerId(customer.Id);

            if (props == null)
            {
                return(default(TPropType));
            }
            if (props.Count == 0)
            {
                return(default(TPropType));
            }

            var prop = props.FirstOrDefault(ga =>
                                            ga.Key.Equals(key, StringComparison.InvariantCultureIgnoreCase)); //should be culture invariant

            if (prop == null || string.IsNullOrEmpty(prop.Value))
            {
                return(default(TPropType));
            }

            return(CommonHelper.To <TPropType>(prop.Value));
        }
 public CustomerReminderController(
     ICustomerReminderViewModelService customerReminderViewModelService,
     ICustomerService customerService,
     ICustomerAttributeService customerAttributeService,
     ICustomerTagService customerTagService,
     ILocalizationService localizationService,
     IManufacturerService manufacturerService,
     IStoreService storeService,
     IVendorService vendorService,
     ICustomerReminderService customerReminderService,
     IEmailAccountService emailAccountService,
     IDateTimeHelper dateTimeHelper)
 {
     _customerReminderViewModelService = customerReminderViewModelService;
     _customerService          = customerService;
     _customerAttributeService = customerAttributeService;
     _customerTagService       = customerTagService;
     _localizationService      = localizationService;
     _manufacturerService      = manufacturerService;
     _storeService             = storeService;
     _vendorService            = vendorService;
     _customerReminderService  = customerReminderService;
     _emailAccountService      = emailAccountService;
     _dateTimeHelper           = dateTimeHelper;
 }
Esempio n. 9
0
        public void PostProcessing
        (
            RegistrationViewModel model,
            FormCollection form,
            IWorkContext workContext,
            ICustomerService customerService,
            ICustomerAttributeService customerAttributeService,
            CaptchaSettings captchaSettings
        )
        {
            SetIdDefaults(workContext, customerService, customerAttributeService, captchaSettings, form);
            SelfIdentificationViewModel self = model.SelfIdentificationViewModel;

            if (self.Member || form == null)
            {
                return;
            }

            // pick up form values
            self.FirstName                     = form["FirstName"];
            self.LastName                      = form["LastName"];
            self.Email                         = form["Email"];
            self.ConfirmEmail                  = form["ConfirmEmail"];
            self.Password                      = form["Password"];
            self.ConfirmPassword               = form["ConfirmPassword"];
            self.Option                        = form["SelectedAnswer"];
            self.Phone                         = form["Phone"];
            self.PrayerCoordinatorEmail        = form["PrayerCoordinatorEmail"];
            self.PrayerCoordinatorConfirmEmail = form["PrayerCoordinatorConfirmEmail"];
        }
 public CustomerModelFactory(AddressSettings addressSettings,
                             CaptchaSettings captchaSettings,
                             CatalogSettings catalogSettings,
                             CommonSettings commonSettings,
                             CustomerSettings customerSettings,
                             DateTimeSettings dateTimeSettings,
                             ExternalAuthenticationSettings externalAuthenticationSettings,
                             ForumSettings forumSettings,
                             GdprSettings gdprSettings,
                             IAddressModelFactory addressModelFactory,
                             ICountryService countryService,
                             ICustomerAttributeParser customerAttributeParser,
                             ICustomerAttributeService customerAttributeService,
                             IDateTimeHelper dateTimeHelper,
                             IDownloadService downloadService,
                             IExternalAuthenticationService externalAuthenticationService,
                             IGdprService gdprService,
                             IGenericAttributeService genericAttributeService,
                             ILocalizationService localizationService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             IPictureService pictureService,
                             IStateProvinceService stateProvinceService,
                             IStoreContext storeContext,
                             IStoreMappingService storeMappingService,
                             IUrlRecordService urlRecordService,
                             IWorkContext workContext,
                             MediaSettings mediaSettings,
                             SecuritySettings securitySettings,
                             VendorSettings vendorSettings)
 {
     this._addressSettings  = addressSettings;
     this._captchaSettings  = captchaSettings;
     this._catalogSettings  = catalogSettings;
     this._commonSettings   = commonSettings;
     this._customerSettings = customerSettings;
     this._dateTimeSettings = dateTimeSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._forumSettings                 = forumSettings;
     this._gdprSettings                  = gdprSettings;
     this._addressModelFactory           = addressModelFactory;
     this._countryService                = countryService;
     this._customerAttributeParser       = customerAttributeParser;
     this._customerAttributeService      = customerAttributeService;
     this._dateTimeHelper                = dateTimeHelper;
     this._downloadService               = downloadService;
     this._externalAuthenticationService = externalAuthenticationService;
     this._gdprService                   = gdprService;
     this._genericAttributeService       = genericAttributeService;
     this._localizationService           = localizationService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._pictureService                = pictureService;
     this._stateProvinceService          = stateProvinceService;
     this._storeContext                  = storeContext;
     this._storeMappingService           = storeMappingService;
     this._urlRecordService              = urlRecordService;
     this._workContext                   = workContext;
     this._mediaSettings                 = mediaSettings;
     this._securitySettings              = securitySettings;
     this._vendorSettings                = vendorSettings;
 }
Esempio n. 11
0
 public RewardController(IOrderService orderService,
                         ICacheManager cacheManager,
                         IProductService productService,
                         ISettingService settingService,
                         ICustomerAttributeService customerAttributeService,
                         ICustomerService customerService,
                         IShopppingCartService cartService,
                         ICustomerAddressService addressService,
                         IProductAttributeService attributeService,
                         IPaymentRecordService recordService,
                         ICustomerRewardService rewardService,
                         IProductImagesService imageService,
                         IUnitOfWorkManager unitOfWorkManager)
 {
     this._orderService             = orderService;
     this._cacheManager             = cacheManager;
     this._productService           = productService;
     this._settingService           = settingService;
     this._customerAttributeService = customerAttributeService;
     this._cartService       = cartService;
     this._customerService   = customerService;
     this._addressService    = addressService;
     this._attributeService  = attributeService;
     this._recordService     = recordService;
     this._rewardService     = rewardService;
     this._imageService      = imageService;
     this._unitOfWorkManager = unitOfWorkManager;
 }
 public CustomerReminderController(
     ICustomerReminderViewModelService customerReminderViewModelService,
     ICustomerService customerService,
     IGroupService groupService,
     ICustomerAttributeService customerAttributeService,
     ICustomerTagService customerTagService,
     ITranslationService translationService,
     ICollectionService collectionService,
     IStoreService storeService,
     IVendorService vendorService,
     ICustomerReminderService customerReminderService,
     IEmailAccountService emailAccountService,
     IDateTimeService dateTimeService)
 {
     _customerReminderViewModelService = customerReminderViewModelService;
     _customerService          = customerService;
     _groupService             = groupService;
     _customerAttributeService = customerAttributeService;
     _customerTagService       = customerTagService;
     _translationService       = translationService;
     _collectionService        = collectionService;
     _storeService             = storeService;
     _vendorService            = vendorService;
     _customerReminderService  = customerReminderService;
     _emailAccountService      = emailAccountService;
     _dateTimeService          = dateTimeService;
 }
Esempio n. 13
0
 public CustomerActionController(
     ICustomerActionViewModelService customerActionViewModelService,
     ICustomerService customerService,
     ICustomerAttributeService customerAttributeService,
     ICustomerTagService customerTagService,
     ILocalizationService localizationService,
     ICustomerActivityService customerActivityService,
     IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IStoreService storeService,
     IVendorService vendorService,
     ICustomerActionService customerActionService,
     IProductAttributeService productAttributeService,
     ISpecificationAttributeService specificationAttributeService)
 {
     this._customerActionViewModelService = customerActionViewModelService;
     this._customerService               = customerService;
     this._customerAttributeService      = customerAttributeService;
     this._customerTagService            = customerTagService;
     this._localizationService           = localizationService;
     this._customerActivityService       = customerActivityService;
     this._productService                = productService;
     this._categoryService               = categoryService;
     this._manufacturerService           = manufacturerService;
     this._storeService                  = storeService;
     this._vendorService                 = vendorService;
     this._customerActionService         = customerActionService;
     this._productAttributeService       = productAttributeService;
     this._specificationAttributeService = specificationAttributeService;
 }
 public CustomerActionController(
     ICustomerActionViewModelService customerActionViewModelService,
     ICustomerService customerService,
     IGroupService groupService,
     ICustomerAttributeService customerAttributeService,
     ICustomerTagService customerTagService,
     ITranslationService translationService,
     ICustomerActivityService customerActivityService,
     IProductService productService,
     ICategoryService categoryService,
     ICollectionService collectionService,
     IStoreService storeService,
     IVendorService vendorService,
     ICustomerActionService customerActionService,
     IProductAttributeService productAttributeService,
     ISpecificationAttributeService specificationAttributeService,
     IDateTimeService dateTimeService)
 {
     _customerActionViewModelService = customerActionViewModelService;
     _customerService               = customerService;
     _groupService                  = groupService;
     _customerAttributeService      = customerAttributeService;
     _customerTagService            = customerTagService;
     _translationService            = translationService;
     _customerActivityService       = customerActivityService;
     _productService                = productService;
     _categoryService               = categoryService;
     _collectionService             = collectionService;
     _storeService                  = storeService;
     _vendorService                 = vendorService;
     _customerActionService         = customerActionService;
     _productAttributeService       = productAttributeService;
     _specificationAttributeService = specificationAttributeService;
     _dateTimeService               = dateTimeService;
 }
Esempio n. 15
0
 public CustomerAttributeViewModelService(ICustomerAttributeService customerAttributeService,
                                          ILocalizationService localizationService,
                                          IWorkContext workContext)
 {
     _customerAttributeService = customerAttributeService;
     _localizationService      = localizationService;
     _workContext = workContext;
 }
Esempio n. 16
0
 public CustomerAttributeModelFactory(ICustomerAttributeService customerAttributeService,
                                      ILocalizationService localizationService,
                                      ILocalizedModelFactory localizedModelFactory)
 {
     _customerAttributeService = customerAttributeService;
     _localizationService      = localizationService;
     _localizedModelFactory    = localizedModelFactory;
 }
 public CustomerAttributeFormatter(ICustomerAttributeParser customerAttributeParser,
                                   ICustomerAttributeService customerAttributeService,
                                   IWorkContext workContext)
 {
     this._customerAttributeParser  = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._workContext = workContext;
 }
 public CustomerAttributeViewModelService(ICustomerAttributeService customerAttributeService,
                                          ITranslationService translationService,
                                          IWorkContext workContext)
 {
     _customerAttributeService = customerAttributeService;
     _translationService       = translationService;
     _workContext = workContext;
 }
Esempio n. 19
0
 public CustomerAttributeParser(ICustomerAttributeService customerAttributeService, ILocalizationService localizationService, IWorkContext workContext, ILanguageService languageService, ILocalizedEntityService localizedEntityService)
 {
     this._customerAttributeService = customerAttributeService;
     this._localizationService      = localizationService;
     this._workContext            = workContext;
     this._languageService        = languageService;
     this._localizedEntityService = localizedEntityService;
 }
 public CustomerModelFactory(IAddressModelFactory addressModelFactory,
                             IDateTimeHelper dateTimeHelper,
                             DateTimeSettings dateTimeSettings,
                             TaxSettings taxSettings,
                             ILocalizationService localizationService,
                             IWorkContext workContext,
                             IStoreContext storeContext,
                             IStoreMappingService storeMappingService,
                             ICustomerAttributeParser customerAttributeParser,
                             ICustomerAttributeService customerAttributeService,
                             IGenericAttributeService genericAttributeService,
                             RewardPointsSettings rewardPointsSettings,
                             CustomerSettings customerSettings,
                             AddressSettings addressSettings,
                             OrderSettings orderSettings,
                             ICountryService countryService,
                             IStateProvinceService stateProvinceService,
                             IOrderService orderService,
                             IPictureService pictureService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             IOpenAuthenticationService openAuthenticationService,
                             IDownloadService downloadService,
                             MediaSettings mediaSettings,
                             CaptchaSettings captchaSettings,
                             SecuritySettings securitySettings,
                             ExternalAuthenticationSettings externalAuthenticationSettings,
                             CatalogSettings catalogSettings
                             )
 {
     this._addressModelFactory            = addressModelFactory;
     this._dateTimeHelper                 = dateTimeHelper;
     this._dateTimeSettings               = dateTimeSettings;
     this._taxSettings                    = taxSettings;
     this._localizationService            = localizationService;
     this._workContext                    = workContext;
     this._storeContext                   = storeContext;
     this._storeMappingService            = storeMappingService;
     this._customerAttributeParser        = customerAttributeParser;
     this._customerAttributeService       = customerAttributeService;
     this._genericAttributeService        = genericAttributeService;
     this._rewardPointsSettings           = rewardPointsSettings;
     this._customerSettings               = customerSettings;
     this._addressSettings                = addressSettings;
     this._orderSettings                  = orderSettings;
     this._countryService                 = countryService;
     this._stateProvinceService           = stateProvinceService;
     this._orderService                   = orderService;
     this._pictureService                 = pictureService;
     this._newsLetterSubscriptionService  = newsLetterSubscriptionService;
     this._openAuthenticationService      = openAuthenticationService;
     this._downloadService                = downloadService;
     this._mediaSettings                  = mediaSettings;
     this._captchaSettings                = captchaSettings;
     this._securitySettings               = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._catalogSettings                = catalogSettings;
 }
Esempio n. 21
0
 public CustomersController(ICustomerService customerService, ICustomerReportService customerReportService, ICustomerRegistrationService customerRegistrationService,
                            ICustomerAttributeService customerAttributeService, ICustomerAttributeParser customerAttributeParser)
 {
     this._customerService             = customerService;
     this._customerReportService       = customerReportService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerAttributeService    = customerAttributeService;
     this._customerAttributeParser     = customerAttributeParser;
 }
Esempio n. 22
0
 public GetCustomerAttributes(IMapperProvider mapperProvider, IEncryptionProvider encryptionProvider,
                              ICustomerAttributeService customerAttributeService, ICrmCacheProvider cacheProvider,
                              IAttributeService attributeService)
     : base(mapperProvider, encryptionProvider)
 {
     _customerAttributeService = customerAttributeService;
     _cacheProvider            = cacheProvider;
     _attributeService         = attributeService;
 }
Esempio n. 23
0
        public async Task SetUp()
        {
            _customerModelFactory = GetService <ICustomerModelFactory>();
            _customer             = await GetService <IWorkContext>().GetCurrentCustomerAsync();

            _customerAttributeService = GetService <ICustomerAttributeService>();

            _customerAttributes = new[]
            {
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.Checkboxes, Name = "Test customer attribute 1"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.ColorSquares, Name = "Test customer attribute 2"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.Datepicker, Name = "Test customer attribute 3"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.DropdownList, Name = "Test customer attribute 4"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.FileUpload, Name = "Test customer attribute 5"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.ImageSquares, Name = "Test customer attribute 6"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.MultilineTextbox, Name = "Test customer attribute 7"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.RadioList, Name = "Test customer attribute 8"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.ReadonlyCheckboxes, Name = "Test customer attribute 9"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.TextBox, Name = "Test customer attribute 10"
                }
            };

            foreach (var customerAttribute in _customerAttributes)
            {
                await _customerAttributeService.InsertCustomerAttributeAsync(customerAttribute);
            }
        }
Esempio n. 24
0
 public CustomerAttributeController(ICustomerAttributeService customerAttributeService,
                                    ICustomerAttributeViewModelService customerAttributeViewModelService,
                                    ILanguageService languageService,
                                    ILocalizationService localizationService)
 {
     this._customerAttributeService          = customerAttributeService;
     this._customerAttributeViewModelService = customerAttributeViewModelService;
     this._languageService     = languageService;
     this._localizationService = localizationService;
 }
 public CustomerAttributeFormatter(ICustomerAttributeParser customerAttributeParser,
                                   ICustomerAttributeService customerAttributeService, ILanguageService languageService, ILocalizedEntityService localizedEntityService,
                                   IWorkContext workContext)
 {
     this._customerAttributeParser  = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._languageService          = languageService;
     this._localizedEntityService   = localizedEntityService;
     this._workContext = workContext;
 }
Esempio n. 26
0
 public CustomerAttributeFormatter(ICustomerAttributeParser customerAttributeParser,
                                   ICustomerAttributeService customerAttributeService,
                                   ILocalizationService localizationService,
                                   IWorkContext workContext)
 {
     _customerAttributeParser  = customerAttributeParser;
     _customerAttributeService = customerAttributeService;
     _localizationService      = localizationService;
     _workContext = workContext;
 }
Esempio n. 27
0
 public CustomerAttributeModelFactory(ICustomerAttributeService customerAttributeService,
                                      ILocalizationService localizationService,
                                      ILocalizedModelFactory localizedModelFactory,
                                      IWorkContext workContext)
 {
     this._customerAttributeService = customerAttributeService;
     this._localizationService      = localizationService;
     this._localizedModelFactory    = localizedModelFactory;
     this._workContext = workContext;
 }
Esempio n. 28
0
 public CustomerAttributeController(ICustomerAttributeService customerAttributeService,
                                    ICustomerAttributeViewModelService customerAttributeViewModelService,
                                    ILanguageService languageService,
                                    ITranslationService translationService)
 {
     _customerAttributeService          = customerAttributeService;
     _customerAttributeViewModelService = customerAttributeViewModelService;
     _languageService    = languageService;
     _translationService = translationService;
 }
 public GenericAttributeEventConsumer(
     ICustomerService customerService,
     ICustomerAttributeService customerAttributeService,
     ICustomerAttributeParser customerAttributeParser,
     IGenericAttributeService genericAttributeService)
 {
     this._customerService          = customerService;
     this._customerAttributeService = customerAttributeService;
     this._customerAttributeParser  = customerAttributeParser;
     this._genericAttributeService  = genericAttributeService;
 }
Esempio n. 30
0
 public CustomerModelFactory(AddressSettings addressSettings,
                             CustomerSettings customerSettings,
                             DateTimeSettings dateTimeSettings,
                             GdprSettings gdprSettings,
                             IAclSupportedModelFactory aclSupportedModelFactory,
                             IAddressAttributeFormatter addressAttributeFormatter,
                             IAddressAttributeModelFactory addressAttributeModelFactory,
                             IBaseAdminModelFactory baseAdminModelFactory,
                             ICustomerActivityService customerActivityService,
                             ICustomerAttributeParser customerAttributeParser,
                             ICustomerAttributeService customerAttributeService,
                             ICustomerService customerService,
                             IDateTimeHelper dateTimeHelper,
                             IExternalAuthenticationService externalAuthenticationService,
                             IGdprService gdprService,
                             IGenericAttributeService genericAttributeService,
                             IGeoLookupService geoLookupService,
                             ILocalizationService localizationService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             IPictureService pictureService,
                             IPriceCalculationService priceCalculationService,
                             IPriceFormatter priceFormatter,
                             IStoreContext storeContext,
                             IStoreService storeService,
                             MediaSettings mediaSettings,
                             TaxSettings taxSettings)
 {
     this._addressSettings               = addressSettings;
     this._customerSettings              = customerSettings;
     this._dateTimeSettings              = dateTimeSettings;
     this._gdprSettings                  = gdprSettings;
     this._aclSupportedModelFactory      = aclSupportedModelFactory;
     this._addressAttributeFormatter     = addressAttributeFormatter;
     this._addressAttributeModelFactory  = addressAttributeModelFactory;
     this._baseAdminModelFactory         = baseAdminModelFactory;
     this._customerActivityService       = customerActivityService;
     this._customerAttributeParser       = customerAttributeParser;
     this._customerAttributeService      = customerAttributeService;
     this._customerService               = customerService;
     this._dateTimeHelper                = dateTimeHelper;
     this._externalAuthenticationService = externalAuthenticationService;
     this._gdprService                   = gdprService;
     this._genericAttributeService       = genericAttributeService;
     this._geoLookupService              = geoLookupService;
     this._localizationService           = localizationService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._pictureService                = pictureService;
     this._priceCalculationService       = priceCalculationService;
     this._priceFormatter                = priceFormatter;
     this._storeContext                  = storeContext;
     this._storeService                  = storeService;
     this._mediaSettings                 = mediaSettings;
     this._taxSettings                   = taxSettings;
 }
 public CustomerAttributeController(ICustomerAttributeService customerAttributeService,
     ILanguageService languageService, 
     ILocalizationService localizationService,
     IWorkContext workContext,
     IPermissionService permissionService)
 {
     this._customerAttributeService = customerAttributeService;
     this._languageService = languageService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._permissionService = permissionService;
 }
 public AccountController(IAuthenticationService authenticationService,
     IDateTimeHelper dateTimeHelper,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     ICustomerService customerService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ITaxService taxService,
     RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings,
     AddressSettings addressSettings,
     ForumSettings forumSettings,
     OrderSettings orderSettings,
     IAddressService addressService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IOrderService orderService,
     IPictureService pictureService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IShoppingCartService shoppingCartService,
     IOpenAuthenticationService openAuthenticationService,
     IDownloadService downloadService,
     IWebHelper webHelper,
     ICustomerActivityService customerActivityService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     MediaSettings mediaSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings,
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IMultitenantService vendorService,
     IGroupDealService groupDealService,
     ICategoryService categoryService,
     IVendorAddressService vendorAddressService,
     IProductService productService,
     IStoreService storeService,
     StoreInformationSettings storeInformationSettings)
 {
     this._authenticationService = authenticationService;
     this._dateTimeHelper = dateTimeHelper;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._storeMappingService = storeMappingService;
     this._customerService = customerService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._taxService = taxService;
     this._rewardPointsSettings = rewardPointsSettings;
     this._customerSettings = customerSettings;
     this._addressSettings = addressSettings;
     this._forumSettings = forumSettings;
     this._orderSettings = orderSettings;
     this._addressService = addressService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._orderService = orderService;
     this._pictureService = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._shoppingCartService = shoppingCartService;
     this._openAuthenticationService = openAuthenticationService;
     this._downloadService = downloadService;
     this._webHelper = webHelper;
     this._customerActivityService = customerActivityService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._mediaSettings = mediaSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._categories = new System.Collections.Generic.List<DTOs.Category>();
     this._vendorService = vendorService;
     this._groupDealService = groupDealService;
     this._categoryService = categoryService;
     this._vendorAddressService = vendorAddressService;
     this._productService = productService;
     this._storeService = storeService;
     this._storeInformationSettings = storeInformationSettings;
 }
Esempio n. 33
0
 public CustomerController(IAuthenticationService authenticationService,
     IDateTimeHelper dateTimeHelper,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     ICustomerService customerService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ITaxService taxService,
     RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings,
     AddressSettings addressSettings,
     ForumSettings forumSettings,
     OrderSettings orderSettings,
     IAddressService addressService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IOrderService orderService,
     IPictureService pictureService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IShoppingCartService shoppingCartService,
     IOpenAuthenticationService openAuthenticationService,
     IDownloadService downloadService,
     IWebHelper webHelper,
     ICustomerActivityService customerActivityService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IReturnRequestService returnRequestService,
     IEventPublisher eventPublisher,
     MediaSettings mediaSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings,
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     StoreInformationSettings storeInformationSettings)
 {
     this._authenticationService = authenticationService;
     this._dateTimeHelper = dateTimeHelper;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._storeMappingService = storeMappingService;
     this._customerService = customerService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._taxService = taxService;
     this._rewardPointsSettings = rewardPointsSettings;
     this._customerSettings = customerSettings;
     this._addressSettings = addressSettings;
     this._forumSettings = forumSettings;
     this._orderSettings = orderSettings;
     this._addressService = addressService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._orderService = orderService;
     this._pictureService = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._shoppingCartService = shoppingCartService;
     this._openAuthenticationService = openAuthenticationService;
     this._downloadService = downloadService;
     this._webHelper = webHelper;
     this._customerActivityService = customerActivityService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._returnRequestService = returnRequestService;
     this._eventPublisher = eventPublisher;
     this._mediaSettings = mediaSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._storeInformationSettings = storeInformationSettings;
 }
Esempio n. 34
0
 public CustomerController(ICustomerService customerService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerReportService customerReportService, 
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService, 
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings, 
     RewardPointsSettings rewardPointsSettings,
     ICountryService countryService, 
     IStateProvinceService stateProvinceService, 
     IAddressService addressService,
     CustomerSettings customerSettings,
     ITaxService taxService, 
     IWorkContext workContext,
     IVendorService vendorService,
     IStoreContext storeContext,
     IPriceFormatter priceFormatter,
     IOrderService orderService, 
     IExportManager exportManager,
     ICustomerActivityService customerActivityService,
     IPriceCalculationService priceCalculationService,
     IPermissionService permissionService, 
     IQueuedEmailService queuedEmailService,
     EmailAccountSettings emailAccountSettings,
     IEmailAccountService emailAccountService, 
     ForumSettings forumSettings,
     IForumService forumService, 
     IOpenAuthenticationService openAuthenticationService,
     AddressSettings addressSettings,
     IStoreService storeService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter)
 {
     this._customerService = customerService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerReportService = customerReportService;
     this._dateTimeHelper = dateTimeHelper;
     this._localizationService = localizationService;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._addressService = addressService;
     this._customerSettings = customerSettings;
     this._taxService = taxService;
     this._workContext = workContext;
     this._vendorService = vendorService;
     this._storeContext = storeContext;
     this._priceFormatter = priceFormatter;
     this._orderService = orderService;
     this._exportManager = exportManager;
     this._customerActivityService = customerActivityService;
     this._priceCalculationService = priceCalculationService;
     this._permissionService = permissionService;
     this._queuedEmailService = queuedEmailService;
     this._emailAccountSettings = emailAccountSettings;
     this._emailAccountService = emailAccountService;
     this._forumSettings = forumSettings;
     this._forumService = forumService;
     this._openAuthenticationService = openAuthenticationService;
     this._addressSettings = addressSettings;
     this._storeService = storeService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
 }
Esempio n. 35
0
 public CustomerAttributeParser(ICustomerAttributeService customerAttributeService,
     ILocalizationService localizationService)
 {
     this._customerAttributeService = customerAttributeService;
     this._localizationService = localizationService;
 }