Exemple #1
0
 public StringResourceAdminService(IStringResourceProvider provider, SiteSettings siteSettings,
                                   ISession session)
 {
     _provider     = provider;
     _siteSettings = siteSettings;
     _session      = session;
 }
Exemple #2
0
 public CustomerRemoval()
 {
     DataRetentionService = DependencyResolver.Current
                            .GetService <IDataRetentionService>();
     StringResourceProvider = DependencyResolver.Current
                              .GetService <IStringResourceProvider>();
 }
 public CommentsUIService(CommentingSettings settings, IGetWebpageCommentingInfo getWebpageCommentingInfo, ISession session, IStringResourceProvider stringResourceProvider)
 {
     _settings = settings;
     _getWebpageCommentingInfo = getWebpageCommentingInfo;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
 public UserAccountController(IUserManagementService userManagementService, IPasswordManagementService passwordManagementService, IAuthorisationService authorisationService, IStringResourceProvider stringResourceProvider)
 {
     _userManagementService     = userManagementService;
     _passwordManagementService = passwordManagementService;
     _authorisationService      = authorisationService;
     _stringResourceProvider    = stringResourceProvider;
 }
 public StringResourceAdminService(IStringResourceProvider provider, SiteSettings siteSettings, 
     ISession session)
 {
     _provider = provider;
     _siteSettings = siteSettings;
     _session = session;
 }
Exemple #6
0
 public PerformWarehousedStockBulkUpdate(IStatelessSession statelessSession, Site site,
                                         IStringResourceProvider stringResourceProvider)
 {
     _statelessSession       = statelessSession;
     _site                   = site;
     _stringResourceProvider = stringResourceProvider;
 }
 public UpdatePasswordService(IPasswordManagementService passwordManagementService, 
     ISession session, IStringResourceProvider stringResourceProvider)
 {
     _passwordManagementService = passwordManagementService;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
Exemple #8
0
 public CommentsUIService(CommentingSettings settings, IGetWebpageCommentingInfo getWebpageCommentingInfo, ISession session, IStringResourceProvider stringResourceProvider)
 {
     _settings = settings;
     _getWebpageCommentingInfo = getWebpageCommentingInfo;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
 public CommentingUserAccountController(IUniqueUsernameService uniqueUsernameService, IUniquePageService uniquePageService, ICommentInfoUiService commentInfoUiService, IStringResourceProvider stringResourceProvider)
 {
     _uniqueUsernameService = uniqueUsernameService;
     _uniquePageService = uniquePageService;
     _commentInfoUiService = commentInfoUiService;
     _stringResourceProvider = stringResourceProvider;
 }
 public PerformWarehousedStockBulkUpdate(IStatelessSession statelessSession, Site site,
     IStringResourceProvider stringResourceProvider)
 {
     _statelessSession = statelessSession;
     _site = site;
     _stringResourceProvider = stringResourceProvider;
 }
 public MoveWebpageAdminService(IRepository <Webpage> webpageRepository, IStringResourceProvider resourceProvider, IWebpageUrlService webpageUrlService, ICreateUpdateUrlBatch createUpdateUrlBatch)
 {
     _webpageRepository    = webpageRepository;
     _resourceProvider     = resourceProvider;
     _webpageUrlService    = webpageUrlService;
     _createUpdateUrlBatch = createUpdateUrlBatch;
 }
Exemple #12
0
    public override void SetModel(IAccountModel model, IStringResourceProvider stringResourceProvider)
    {
        base.SetModel(model, stringResourceProvider);

        this.Model.LostPasswordSent += new LostPasswordSentHandler(AccountModel_LostPasswordSent);
        this.Model.PasswordChanged  += new PasswordChangedHandler(AccountModel_PasswordChanged);
    }
Exemple #13
0
 public PerformSimpleBulkUpdate(IStatelessSession statelessSession, Site site, IStringResourceProvider stringResourceProvider)
 {
     _statelessSession       = statelessSession;
     _site                   = site;
     _stringResourceProvider = stringResourceProvider;
     _variantsToUpdate       = new HashSet <ProductVariant>();
 }
 public UpdatePasswordService(IPasswordManagementService passwordManagementService,
                              ISession session, IStringResourceProvider stringResourceProvider)
 {
     _passwordManagementService = passwordManagementService;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
Exemple #15
0
 public TestSmtpSettings(IGetSmtpClient getSmtpClient, ErrorSignal errorSignal, IStringResourceProvider resourceProvider, Site site)
 {
     _getSmtpClient    = getSmtpClient;
     _errorSignal      = errorSignal;
     _resourceProvider = resourceProvider;
     _site             = site;
 }
 public GetEcommerceUserLinks(IUniquePageService uniquePageService,
                              IStringResourceProvider stringResourceProvider, IGetUserAccountLinks getUserAccountLinks)
 {
     _uniquePageService      = uniquePageService;
     _stringResourceProvider = stringResourceProvider;
     _getUserAccountLinks    = getUserAccountLinks;
 }
 public PerformSimpleBulkUpdate(IStatelessSession statelessSession, Site site, IStringResourceProvider stringResourceProvider)
 {
     _statelessSession = statelessSession;
     _site = site;
     _stringResourceProvider = stringResourceProvider;
     _variantsToUpdate = new HashSet<ProductVariant>();
 }
Exemple #18
0
 public CommentingUserAccountController(IUniqueUsernameService uniqueUsernameService, IUniquePageService uniquePageService, ICommentInfoUiService commentInfoUiService, IStringResourceProvider stringResourceProvider)
 {
     _uniqueUsernameService  = uniqueUsernameService;
     _uniquePageService      = uniquePageService;
     _commentInfoUiService   = commentInfoUiService;
     _stringResourceProvider = stringResourceProvider;
 }
 public StockReportAdminService(
     IStringResourceProvider stringResourceProvider, EcommerceSettings ecommerceSettings,
     IGetStockExportData getStockExportData)
 {
     _stringResourceProvider = stringResourceProvider;
     _ecommerceSettings = ecommerceSettings;
     _getStockExportData = getStockExportData;
 }
Exemple #20
0
 public LowStockReportAdminService(IGetLowStockQuery getLowStockQuery,
                                   IStringResourceProvider stringResourceProvider,
                                   IGetStockReportFile getStockReportFile)
 {
     _getLowStockQuery       = getLowStockQuery;
     _stringResourceProvider = stringResourceProvider;
     _getStockReportFile     = getStockReportFile;
 }
Exemple #21
0
 public GiftCardUIService(ISession session, ICartManager cartManager, CartModel cart,
                          IStringResourceProvider stringResourceProvider)
 {
     _session                = session;
     _cartManager            = cartManager;
     _cart                   = cart;
     _stringResourceProvider = stringResourceProvider;
 }
 public ExternalLoginController(IAuthenticationManager authenticationManager,
                                IExternalLoginService externalLoginService, IUniquePageService uniquePageService, IStringResourceProvider stringResourceProvider)
 {
     _authenticationManager  = authenticationManager;
     _externalLoginService   = externalLoginService;
     _uniquePageService      = uniquePageService;
     _stringResourceProvider = stringResourceProvider;
 }
 public LowStockReportAdminService(IGetLowStockQuery getLowStockQuery,
     IStringResourceProvider stringResourceProvider,
     IGetStockReportFile getStockReportFile)
 {
     _getLowStockQuery = getLowStockQuery;
     _stringResourceProvider = stringResourceProvider;
     _getStockReportFile = getStockReportFile;
 }
 public StockReportAdminService(
     IStringResourceProvider stringResourceProvider, EcommerceSettings ecommerceSettings,
     IGetStockExportData getStockExportData)
 {
     _stringResourceProvider = stringResourceProvider;
     _ecommerceSettings      = ecommerceSettings;
     _getStockExportData     = getStockExportData;
 }
Exemple #25
0
 public PaymentNotRequiredUIService(IUniquePageService uniquePageService, CartModel cartModel,
                                    IStringResourceProvider stringResourceProvider, IOrderPlacementService orderPlacementService)
 {
     _uniquePageService      = uniquePageService;
     _cartModel              = cartModel;
     _stringResourceProvider = stringResourceProvider;
     _orderPlacementService  = orderPlacementService;
 }
 public PaymentNotRequiredUIService(IUniquePageService uniquePageService, CartModel cartModel,
     IStringResourceProvider stringResourceProvider, IOrderPlacementService orderPlacementService)
 {
     _uniquePageService = uniquePageService;
     _cartModel = cartModel;
     _stringResourceProvider = stringResourceProvider;
     _orderPlacementService = orderPlacementService;
 }
Exemple #27
0
 public LoginController(IResetPasswordService resetPasswordService, IUniquePageService uniquePageService,
                        ILoginService loginService, IStringResourceProvider stringResourceProvider, IUserLookup userLookup)
 {
     _resetPasswordService   = resetPasswordService;
     _uniquePageService      = uniquePageService;
     _loginService           = loginService;
     _stringResourceProvider = stringResourceProvider;
     _userLookup             = userLookup;
 }
 public GetProductCardModel(ISession session, IProductVariantAvailabilityService productVariantAvailabilityService, IStringResourceProvider stringResourceProvider, 
     EcommerceSettings ecommerceSettings, ProductReviewSettings productReviewSettings)
 {
     _session = session;
     _productVariantAvailabilityService = productVariantAvailabilityService;
     _stringResourceProvider = stringResourceProvider;
     _ecommerceSettings = ecommerceSettings;
     _productReviewSettings = productReviewSettings;
 }
Exemple #29
0
 public GetProductCardModel(ISession session, IProductVariantAvailabilityService productVariantAvailabilityService, IStringResourceProvider stringResourceProvider,
                            EcommerceSettings ecommerceSettings, ProductReviewSettings productReviewSettings)
 {
     _session = session;
     _productVariantAvailabilityService = productVariantAvailabilityService;
     _stringResourceProvider            = stringResourceProvider;
     _ecommerceSettings     = ecommerceSettings;
     _productReviewSettings = productReviewSettings;
 }
Exemple #30
0
    public override void SetModel(IAccountModel model, IStringResourceProvider stringResourceProvider)
    {
        base.SetModel(model, stringResourceProvider);

        this.BillingAddressUKEditView.SetModel(this.Model.BillingAddress, this.StringResourceProvider);
        this.BillingAddressUSEditView.SetModel(this.Model.BillingAddress, this.StringResourceProvider);
        this.BillingAddressStaticView.SetModel(this.Model.BillingAddress, this.StringResourceProvider);
        this.AddressBookView.SetModel(this.Model, this.StringResourceProvider);
    }
Exemple #31
0
 public AdminWebpageSearchService(ISearcher <Webpage, AdminWebpageIndexDefinition> documentSearcher,
                                  IGetBreadcrumbs getBreadcrumbs, ISession session, Site site, IStringResourceProvider stringResourceProvider)
 {
     _documentSearcher       = documentSearcher;
     _getBreadcrumbs         = getBreadcrumbs;
     _session                = session;
     _site                   = site;
     _stringResourceProvider = stringResourceProvider;
 }
 public AdminWebpageSearchService(ISearcher<Webpage, AdminWebpageIndexDefinition> documentSearcher,
     IGetBreadcrumbs getBreadcrumbs, ISession session, Site site, IStringResourceProvider stringResourceProvider)
 {
     _documentSearcher = documentSearcher;
     _getBreadcrumbs = getBreadcrumbs;
     _session = session;
     _site = site;
     _stringResourceProvider = stringResourceProvider;
 }
 public ContactUsController(NoticeProvider noticeProvider,
                            IStringResourceProvider stringResourceProvider,
                            CaptchaVerificationProvider captchaVerificationProvider)
 {
     NoticeProvider              = noticeProvider;
     StringResourceProvider      = stringResourceProvider;
     CaptchaVerificationProvider = captchaVerificationProvider;
     Settings        = new ContactUsSettings();
     CaptchaSettings = new CaptchaSettings();
 }
Exemple #34
0
 public FileAdminService(IFileService fileService, ISession session,
                         IStringResourceProvider stringResourceProvider, IDocumentService documentService,
                         MediaSettings mediaSettings)
 {
     _fileService            = fileService;
     _session                = session;
     _stringResourceProvider = stringResourceProvider;
     _documentService        = documentService;
     _mediaSettings          = mediaSettings;
 }
Exemple #35
0
 public LoginController(IUserService userService, IResetPasswordService resetPasswordService, IAuthorisationService authorisationService, IUniquePageService uniquePageService,
                        ILoginService loginService, IStringResourceProvider stringResourceProvider)
 {
     _userService            = userService;
     _resetPasswordService   = resetPasswordService;
     _authorisationService   = authorisationService;
     _uniquePageService      = uniquePageService;
     _loginService           = loginService;
     _stringResourceProvider = stringResourceProvider;
 }
Exemple #36
0
 public FileAdminService(IFileService fileService, ISession session,
     IStringResourceProvider stringResourceProvider, IDocumentService documentService,
     MediaSettings mediaSettings)
 {
     _fileService = fileService;
     _session = session;
     _stringResourceProvider = stringResourceProvider;
     _documentService = documentService;
     _mediaSettings = mediaSettings;
 }
    public override void SetModel(IPaymentModel model, IStringResourceProvider stringResourceProvider)
    {
        base.SetModel(model, stringResourceProvider);

        this.BillingAddressChoice.SetModel(model.AccountModel, this.StringResourceProvider);

        CodPaymentView.SetModel(null, this.StringResourceProvider);
        CreditCardPaymentForm.SetModel(null, this.StringResourceProvider);
        SecureNetPaymentView.SetModel(null, this.StringResourceProvider);
        TwoCheckoutPaymentView.SetModel(null, this.StringResourceProvider);
        CheckPaymentView.SetModel(null, this.StringResourceProvider);
        RequestQuoteView.SetModel(null, this.StringResourceProvider);
        PayPalPaymentView.SetModel(null, this.StringResourceProvider);
        PurchaseOrderPaymentView.SetModel(null, this.StringResourceProvider);
        PayPalExpressView.SetModel(null, this.StringResourceProvider);
        MicroPayPaymentView.SetModel(null, this.StringResourceProvider);
        CheckOutByAmazonPaymentView.SetModel(null, this.StringResourceProvider);
        PayPalEmbeddedCheckoutPaymentView.SetModel(null, this.StringResourceProvider);
        MoneybookersQuickCheckoutPaymentView.SetModel(null, this.StringResourceProvider);
        ECheckPaymentView.SetModel(null, this.StringResourceProvider);
        WorldPayPaymentView.SetModel(null, this.StringResourceProvider);

        foreach (var paymentModel in this.Model.PaymentMethods)
        {
            var paymentView = FindPaymentMethodView(paymentModel.Key);
            if (paymentView != null)
            {
                paymentView.SetModel(paymentModel.Value, this.StringResourceProvider);
                ((IPaymentMethodView)paymentView).PaymentFormSubmitted += OPCControls_PaymentFormAndBillingAddress_PaymentFormSubmitted;
            }

            if (paymentModel.Value.PaymentType == PaymentType.SecureNet)
            {
                SecureNetPaymentView.ExistingCreditCardSelected += (o, e) => CreditCardPaymentForm.Hide();
                SecureNetPaymentView.NewCreditCardSelected      += (o, e) =>
                {
                    CreditCardPaymentForm.Initialize();
                    CreditCardPaymentForm.Show();
                    CreditCardPaymentForm.BindView();
                };

                Model.ProcessingPayment += (o, e) =>
                {
                    if (!(e.PaymentMethod is CreditCardPaymentModel) && !(e.PaymentMethod is SecureNetPaymentModel))
                    {
                        return;
                    }

                    ((SecureNetPaymentModel)paymentModel.Value).SwitchPaymentMethod();
                };
            }
        }

        this.ActivatePaymentView();
    }
Exemple #38
0
        public override void InitHelpers()
        {
            base.InitHelpers();

            if (CurrentRequestData.DatabaseIsInstalled)
            {
                _kernel = MrCMSApplication.Get <IKernel>();
                _stringResourceProvider = MrCMSApplication.Get <IStringResourceProvider>();
                GetCurrentLayout        = MrCMSApplication.Get <IGetCurrentLayout>();
            }
        }
Exemple #39
0
 public FileAdminService(IFileService fileService, ISession session,
                         IStringResourceProvider stringResourceProvider, IRepository <MediaCategory> mediaCategoryRepository,
                         MediaSettings mediaSettings, IGetDocumentsByParent <MediaCategory> getDocumentsByParent)
 {
     _fileService             = fileService;
     _session                 = session;
     _stringResourceProvider  = stringResourceProvider;
     _mediaCategoryRepository = mediaCategoryRepository;
     _mediaSettings           = mediaSettings;
     _getDocumentsByParent    = getDocumentsByParent;
 }
 public LoginController(IResetPasswordService resetPasswordService, IUniquePageService uniquePageService,
                        ILoginService loginService, IStringResourceProvider stringResourceProvider, IUserLookup userLookup,
                        ILogUserIn logUserIn, ISetVerifiedUserData setVerifiedUserData)
 {
     _resetPasswordService   = resetPasswordService;
     _uniquePageService      = uniquePageService;
     _loginService           = loginService;
     _stringResourceProvider = stringResourceProvider;
     _userLookup             = userLookup;
     _logUserIn           = logUserIn;
     _setVerifiedUserData = setVerifiedUserData;
 }
Exemple #41
0
 public SagePayPiController(
     NoticeProvider noticeProvider,
     IPaymentOptionProvider paymentOptionProvider,
     IPersistedCheckoutContextProvider persistedCheckoutContextProvider,
     IStringResourceProvider stringResourceProvider,
     AppConfigProvider appConfigProvider)
 {
     NoticeProvider                   = noticeProvider;
     PaymentOptionProvider            = paymentOptionProvider;
     PersistedCheckoutContextProvider = persistedCheckoutContextProvider;
     StringResourceProvider           = stringResourceProvider;
     AppConfigProvider                = appConfigProvider;
 }
 public ExternalLoginController(IAuthenticationManager authenticationManager,
                                IExternalLoginService externalLoginService, IUniquePageService uniquePageService, IStringResourceProvider stringResourceProvider,
                                IGetVerifiedUserResult getVerifiedUserResult,
                                ILogUserIn logUserIn, ISetVerifiedUserData setVerifiedUserData)
 {
     _authenticationManager  = authenticationManager;
     _externalLoginService   = externalLoginService;
     _uniquePageService      = uniquePageService;
     _stringResourceProvider = stringResourceProvider;
     _getVerifiedUserResult  = getVerifiedUserResult;
     _logUserIn           = logUserIn;
     _setVerifiedUserData = setVerifiedUserData;
 }
Exemple #43
0
 public GetValidDiscounts(ISession session, ICartDiscountApplicationService cartDiscountApplicationService, IStringResourceProvider stringResourceProvider)
 {
     _session = session;
     _cartDiscountApplicationService = cartDiscountApplicationService;
     _stringResourceProvider = stringResourceProvider;
 }
 public OrderExportService(ISession session, IStringResourceProvider stringResourceProvider)
 {
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
 public WarehouseAdminService(ISession session, IStringResourceProvider stringResourceProvider)
 {
     _session = session;
     _stringResourceProvider = stringResourceProvider;
 }
 public StringResourceUpdateService(IStringResourceProvider provider, ISession session)
 {
     _provider = provider;
     _session = session;
 }
Exemple #47
0
 public AllImagesHaveAltTags(IStringResourceProvider stringResourceProvider)
 {
     _stringResourceProvider = stringResourceProvider;
 }