Exemplo n.º 1
0
 public MediaServicesService(IOrchardServices orchardServices, 
     IShapeFactory shapeFactory, 
     ISiteService siteService, 
     IConfig config, 
     IBlobStorageService blobStorageService, 
     IRepository<EncodedMediaRecord> encodedMediaRepository, 
     IRepository<MediaItemRecord> mediaItemRepository, 
     IRepository<EncodingPresetRecord> encodingPresetRepository, 
     IRepository<ThumbnailRecord> thumbnailRepository,
     IRepository<VideoMediaItemRecord> videoMediaItemRepository,
    IWorkContextAccessor workContextAccessor)
 {
     _config = config;
     _blobStorageService = blobStorageService;
     _encodedMediaRepository = encodedMediaRepository;
     _mediaItemRepository = mediaItemRepository;
     _encodingPresetRepository = encodingPresetRepository;
     _thumbnailRepository = thumbnailRepository;
     _videoMediaItemRepository = videoMediaItemRepository;
     _workContextAccessor = workContextAccessor;
     _orchardServices = orchardServices;
     _shapeFactory = shapeFactory;
     _siteService = siteService;
     _logger = NullLogger.Instance;
 }
        public ContextToken(
            IWorkContextAccessor workContextAccessor)
        {
            _workContextAccessor = workContextAccessor;

            T = NullLocalizer.Instance;
        }
 public AuthorizationFrontendEnginePageHandler(
     IFrontendAuthorizer frontendAuthorizationService,
     IWorkContextAccessor workContextAccessor)
 {
     _frontendAuthorizationService = frontendAuthorizationService;
     _workContextAccessor = workContextAccessor;
 }
 public ResourceFilter(
     IWorkContextAccessor workContextAccessor, 
     IShapeFactory shapeFactory)
 {
     _workContextAccessor = workContextAccessor;
     _shapeFactory = shapeFactory;
 }
Exemplo n.º 5
0
 public SameTermsFilter(ITaxonomyService taxonomyService,
     IWorkContextAccessor workContextAccessor)
 {
     _taxonomyService = taxonomyService;
     _workContextAccessor = workContextAccessor;
     T = NullLocalizer.Instance;
 }
Exemplo n.º 6
0
 public ShippingInfoResolver(
     IContentManager contentManager,
     IWorkContextAccessor workContextAccessor)
 {
     _contentManager = contentManager;
     _workContextAccessor = workContextAccessor;
 }
        public ThumbnailsService(ShellSettings settings, IWorkContextAccessor wca, ICacheManager cacheManager, IMediaService mediaService, ISignals signals, IStorageProvider storageProvider)
        {
            _wca = wca;
            _cacheManager = cacheManager;
            _mediaService = mediaService;
            _signals = signals;
            _storageProvider = storageProvider;
            var appPath = "";
            if (HostingEnvironment.IsHosted)
            {
                appPath = HostingEnvironment.ApplicationVirtualPath;
            }
            if (!appPath.EndsWith("/"))
                appPath = appPath + '/';
            if (!appPath.StartsWith("/"))
                appPath = '/' + appPath;

            _publicPath = appPath + "Media/" + settings.Name + "/";

            var physPath = ThumbnailsCacheMediaPath.Replace('/', Path.DirectorySeparatorChar);
            var parent = Path.GetDirectoryName(physPath);
            var folder = Path.GetFileName(physPath);
            if (_mediaService.GetMediaFolders(parent).All(f => f.Name != folder))
            {
                _mediaService.CreateFolder(parent, folder);
            }
        }
Exemplo n.º 8
0
 public TeeyootMessagingService(IRepository<MailTemplateSubjectRecord> subjectRepository, IRepository<MailChimpSettingsPartRecord> mailChimpSettingsRepository, IContentManager contentManager, IRepository<CampaignRecord> campaignRepository,
     IMailChimpSettingsService settingsService,
     IMessageService messageService,
      INotifier notifier,
     IRepository<OrderRecord> orderRepository,
     IRepository<LinkOrderCampaignProductRecord> ocpRepository,
     IRepository<UserRolesPartRecord> userRolesPartRepository,
     IRepository<PayoutRecord> payoutsRepository,
     IRepository<PaymentInformationRecord> payoutInformRepository,
     IWorkContextAccessor wca,
     IRepository<CampaignProductRecord> campaignProductRepository,
     IRepository<CurrencyRecord> currencyRepository,
     IRepository<BringBackCampaignRecord> backCampaignRepository)
 {
     _mailSubjectService = new MailSubjectService(subjectRepository);
     _mailChimpSettingsRepository = mailChimpSettingsRepository;
     _contentManager = contentManager;
     _messageService = messageService;
     _settingsService = settingsService;
     _notifier = notifier;
     _orderRepository = orderRepository;
     _ocpRepository = ocpRepository;
     _currencyRepository = currencyRepository;
     _campaignRepository = campaignRepository;
     _userRolesPartRepository = userRolesPartRepository;
     _payoutsRepository = payoutsRepository;
     _payoutInformRepository = payoutInformRepository;
     _wca = wca;
     _campaignProductRepository = campaignProductRepository;
     _backCampaignRepository = backCampaignRepository;
 }
        public OutputCacheFilter(
            ICacheManager cacheManager,
            IOutputCacheStorageProvider cacheStorageProvider,
            ITagCache tagCache,
            IDisplayedContentItemHandler displayedContentItemHandler,
            IWorkContextAccessor workContextAccessor,
            IThemeManager themeManager,
            IClock clock,
            ICacheService cacheService,
            ISignals signals,
            ShellSettings shellSettings) {

            _cacheManager = cacheManager;
            _cacheStorageProvider = cacheStorageProvider;
            _tagCache = tagCache;
            _displayedContentItemHandler = displayedContentItemHandler;
            _workContextAccessor = workContextAccessor;
            _themeManager = themeManager;
            _clock = clock;
            _cacheService = cacheService;
            _signals = signals;
            _shellSettings = shellSettings;

            Logger = NullLogger.Instance;
        }
Exemplo n.º 10
0
 public Text(string scope, IWorkContextAccessor workContextAccessor, ILocalizedStringManager localizedStringManager)
 {
     _scope = scope;
     _workContextAccessor = workContextAccessor;
     _localizedStringManager = localizedStringManager;
     Logger = NullLogger.Instance;
 }
 public ContentPickerNavigationProvider(
     IContentDefinitionManager contentDefinitionManager, 
     IWorkContextAccessor workContextAccessor) {
     _contentDefinitionManager = contentDefinitionManager;
     _workContextAccessor = workContextAccessor;
     T = NullLocalizer.Instance;
 }
Exemplo n.º 12
0
 public SweepGenerator(IWorkContextAccessor workContextAccessor) {
     _workContextAccessor = workContextAccessor;
     _timer = new Timer();
     _timer.Elapsed += Elapsed;
     Logger = NullLogger.Instance;
     Interval = TimeSpan.FromMinutes(1);
 }
Exemplo n.º 13
0
        public CampaignController(
            ICampaignService campaignService,
            ITShirtCostService tshirtService,
            IProductService productService,
            IPromotionService promotionService,
            IRepository<CurrencyRecord> currencyRepository,
            IWorkContextAccessor wca,
            INotifier notifier,
            IOrchardServices services,
            ICookieCultureService cookieCultureService,
            ICountryService countryService)
        {
            _currencyRepository = currencyRepository;
            Services = services;
            _tshirtService = tshirtService;
            _productService = productService;
            _campaignService = campaignService;
            _promotionService = promotionService;
            _wca = wca;
            _notifier = notifier;
            Logger = NullLogger.Instance;

            _cookieCultureService = cookieCultureService;
            //var culture = _wca.GetContext().CurrentCulture.Trim();
            _cultureUsed = _wca.GetContext().CurrentCulture.Trim();
            //cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
            _countryService = countryService;
        }
Exemplo n.º 14
0
 public SiteThemeService(IExtensionManager extensionManager, IWorkContextAccessor workContextAccessor)
 {
     _extensionManager = extensionManager;
     _workContextAccessor = workContextAccessor;
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
Exemplo n.º 15
0
        public PlacementService(
            IContentManager contentManager,
            ISiteThemeService siteThemeService,
            IExtensionManager extensionManager,
            IShapeFactory shapeFactory,
            IShapeTableLocator shapeTableLocator,
            RequestContext requestContext,
            IEnumerable<IContentPartDriver> contentPartDrivers,
            IEnumerable<IContentFieldDriver> contentFieldDrivers,
            IVirtualPathProvider virtualPathProvider,
            IWorkContextAccessor workContextAccessor
            )
        {
            _contentManager = contentManager;
            _siteThemeService = siteThemeService;
            _extensionManager = extensionManager;
            _shapeFactory = shapeFactory;
            _shapeTableLocator = shapeTableLocator;
            _requestContext = requestContext;
            _contentPartDrivers = contentPartDrivers;
            _contentFieldDrivers = contentFieldDrivers;
            _virtualPathProvider = virtualPathProvider;
            _workContextAccessor = workContextAccessor;

            Logger = NullLogger.Instance;
        }
Exemplo n.º 16
0
        public BlogPartHandler(IRepository<BlogPartRecord> repository, IWorkContextAccessor workContextAccessor, IEnumerable<IHomePageProvider> homePageProviders, IBlogPathConstraint blogPathConstraint)
        {
            _workContextAccessor = workContextAccessor;
            _blogPathConstraint = blogPathConstraint;
            _routableHomePageProvider = homePageProviders.SingleOrDefault(p => p.GetProviderName() == RoutableHomePageProvider.Name);
            Filters.Add(StorageFilter.For(repository));

            Action<PublishContentContext, RoutePart> publishedHandler = (context, route) => {
                if (route.Is<BlogPart>()) {
                    if (route.ContentItem.Id != 0 && route.PromoteToHomePage)
                        _blogPathConstraint.AddPath("");
                }
                else if (route.ContentItem.Id != 0 && route.PromoteToHomePage) {
                    _blogPathConstraint.RemovePath("");
                }
            };

            OnPublished<RoutePart>(publishedHandler);
            OnUnpublished<RoutePart>(publishedHandler);

            OnGetDisplayShape<BlogPart>((context, blog) => {
                context.Shape.Description = blog.Description;
                context.Shape.PostCount = blog.PostCount;
            });
        }
Exemplo n.º 17
0
 public MenuConnectorHandler(
     IWorkContextAccessor workContextAccessor,
     RequestContext requestContext
     ) {
         _workContextAccessor = workContextAccessor;
         _requestContext = requestContext;
 }
        public NotEqualIdFilter(IContentManager cms, IWorkContextAccessor work)
        {
            _cms = cms;
            _work = work;

            T = NullLocalizer.Instance;
        }
 public PatternBasedBreadcrumbsProvider(
     IPatternService patterns, 
     IWorkContextAccessor accessor)
 {
     _patterns = patterns;
     _accessor = accessor;
 }
Exemplo n.º 20
0
        public Authorizer(IAuthorizationService authorizationService, IWorkContextAccessor workContextAccessor)
        {
            _authorizationService = authorizationService;
            _workContextAccessor = workContextAccessor;

            T = NullLocalizer.Instance;
        }
Exemplo n.º 21
0
 public CustomerResolver(
     ICustomersService customersService,
     IWorkContextAccessor workContextAccessor)
 {
     _customersService = customersService;
     _workContextAccessor = workContextAccessor;
 }
 public GlobalSetupShellEventHandler(
     ShellSettings shellSettings,
     IWorkContextAccessor wca)
 {
     _shellSettings = shellSettings;
     _wca = wca;
 }
Exemplo n.º 23
0
 public ShippingOptionResolver(
     IShippingService shippingService,
     IWorkContextAccessor workContextAccessor)
 {
     _shippingService = shippingService;
     _workContextAccessor = workContextAccessor;
 }
Exemplo n.º 24
0
        // GET: Home

        public HomeController(
            IRepository<CurrencyRecord> currencyRepository,
            IRepository<OrderStatusRecord> orderStatusRepository,
            IOrderService orderService,
            ICampaignService campaignService,
            IShapeFactory shapeFactory,
            IContentManager contentManager,
            ISiteService siteService,
            IPayoutService payoutService,
            INotifier notifierService,
            ITeeyootMessagingService teeyootMessagingService,
            IWorkContextAccessor workContextAccessor)
        {
            _currencyRepository = currencyRepository;
            _orderStatusRepository = orderStatusRepository;
            _orderService = orderService;
            _campaignService = campaignService;
            _contentManager = contentManager;
            _siteService = siteService;
            _payoutService = payoutService;
            _notifierService = notifierService;
            _teeyootMessagingService = teeyootMessagingService;
            Shape = shapeFactory;

            T = NullLocalizer.Instance;
            _workContextAccessor = workContextAccessor;
        }
Exemplo n.º 25
0
 public SlickService(IWorkContextAccessor wca, ICacheManager cacheManager, ISignals signals, IMediaLibraryService mediaService)
 {
     _wca = wca;
     _cacheManager = cacheManager;
     _signals = signals;
     _mediaService = mediaService;
 }
 public CultureService(IWorkContextAccessor workContextAccessor, IOrchardServices orchardServices, ICultureManager cultureManager, ILocalizationService localizationService)
 {
     _orchardServices = orchardServices;
     _cultureManager = cultureManager;
     //_workContextAccessor = workContextAccessor;
     _localizationService = localizationService;
 }
        public MissingSettingsBanner(IOrchardServices orchardServices, IWorkContextAccessor workContextAccessor)
        {
            _orchardServices = orchardServices;
            _workContext = workContextAccessor.GetContext();

            T = NullLocalizer.Instance;
        }
Exemplo n.º 28
0
 public AdminMenu(IAuthorizationService authorizationService, IWorkContextAccessor workContextAccessor
     , IOrchardServices orchardServices)
 {
     _authorizationService = authorizationService;
     _workContextAccessor = workContextAccessor;
     _orchardServices = orchardServices;
 }
 public ShadowCultureManager(IRepository<CultureRecord> cultureRepository, 
                              IEnumerable<ICultureSelector> cultureSelectors, 
                              ISignals signals, 
                              IWorkContextAccessor workContextAccessor) {
     _workContextAccessor = workContextAccessor;
     _underlyingCultureManager = new DefaultCultureManager(cultureRepository, cultureSelectors, signals, workContextAccessor);
 }
        public RolesBasedAuthorizationService(IRoleService roleService, IWorkContextAccessor workContextAccessor, IAuthorizationServiceEventHandler authorizationServiceEventHandler) {
            _roleService = roleService;
            _workContextAccessor = workContextAccessor;
            _authorizationServiceEventHandler = authorizationServiceEventHandler;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
 public DesignerPreviewController(IWorkContextAccessor workContextAccessor, IStorefrontUrlBuilder urlBuilder)
     : base(workContextAccessor, urlBuilder)
 {
 }
 public DistributedShellStarter(IMessageBus messageBus, IWorkContextAccessor workContextAccessor)
 {
     _messageBus          = messageBus;
     _workContextAccessor = workContextAccessor;
 }
 public StaticContentController(IWorkContextAccessor workContextAccessor, IStorefrontUrlBuilder urlBuilder)
     : base(workContextAccessor, urlBuilder)
 {
 }
 public VendorController(IWorkContextAccessor workContextAccessor, IStorefrontUrlBuilder urlBuilder, IMemberService customerService, ICatalogService catalogService)
     : base(workContextAccessor, urlBuilder)
 {
     _customerService = customerService;
     _catalogService  = catalogService;
 }
 public CulturePickerServices(IOrchardServices orchardServices, IWorkContextAccessor workContextAccessor)
 {
     _orchardServices     = orchardServices;
     _workContextAccessor = workContextAccessor;
 }
 public PersistentCartLocalStorageSettings(IWorkContextAccessor wca)
 {
     _wca = wca;
 }
Exemplo n.º 37
0
        public DataMigrationNotificationProvider(IDataMigrationManager dataMigrationManager, IWorkContextAccessor workContextAccessor)
        {
            _dataMigrationManager = dataMigrationManager;
            _workContext          = workContextAccessor.GetContext();

            T = NullLocalizer.Instance;
        }
Exemplo n.º 38
0
 public ApiSubscriptionController(IWorkContextAccessor workContextAccessor, IStorefrontUrlBuilder urlBuilder, ISubscriptionService subscriptionService)
     : base(workContextAccessor, urlBuilder)
 {
     _subscriptionService = subscriptionService;
 }
Exemplo n.º 39
0
 public ShopifyCompatibilityController(IWorkContextAccessor workContextAccesor, IStorefrontUrlBuilder urlBuilder, ICartBuilder cartBuilder, ICatalogService catalogService)
     : base(workContextAccesor, urlBuilder)
 {
     _cartBuilder    = cartBuilder;
     _catalogService = catalogService;
 }
Exemplo n.º 40
0
 public DeveiceFilter(IWorkContextAccessor workContextAccessor)
 {
     T = NullLocalizer.Instance;
     _workContextAccessor = workContextAccessor;
     _cultureInfo         = new Lazy <CultureInfo>(() => CultureInfo.GetCultureInfo(_workContextAccessor.GetContext().CurrentSite.SiteCulture));
 }
Exemplo n.º 41
0
 public InventoryBySKUProductInventoryService(
     IWorkContextAccessor workContextAccessor,
     IContentManager contentManager)
     : base(workContextAccessor, contentManager)
 {
 }
Exemplo n.º 42
0
 public CurrentCultureFilter(IWorkContextAccessor workContextAccessor, ICultureManager cultureManager)
 {
     _workContextAccessor = workContextAccessor;
     _cultureManager      = cultureManager;
     T = NullLocalizer.Instance;
 }
 public WithTagsRuleProvider(IWorkContextAccessor workContextAccessor)
 {
     _workContextAccessor = workContextAccessor;
 }
 public UserAgentThemeSelectionRule(IWorkContextAccessor workContextAccessor)
 {
     _workContextAccessor = workContextAccessor;
 }
Exemplo n.º 45
0
 public SlideController(IWorkContextAccessor workContextAccessor, ISlideService service)
     : base(workContextAccessor, service)
 {
 }
Exemplo n.º 46
0
 public ShoppingCart(IWorkContextAccessor workContextAccessor, IContentManager contentManager)
 {
     _workContextAccessor = workContextAccessor;
     _contentManager      = contentManager;
 }
 public void Setup()
 {
     Wca    = new StubWorkContextAccessor("http://foo.com");
     Filter = new RelativeUrlHtmlFilter(Wca);
 }
 public OpenGraphMetaTagsPartSettingsEvent(IWorkContextAccessor workContextAccessor)
 {
     _workContextAccessor = workContextAccessor;
 }
Exemplo n.º 49
0
 public RouteValuesAlternatesProvider(IWorkContextAccessor workContextAccessor)
 {
     mWorkContextAccessor = workContextAccessor;
 }
 public ApiOrderController(IWorkContextAccessor workContextAccessor, IStorefrontUrlBuilder urlBuilder, IOrderModule orderApi, IStoreModule storeApi)
     : base(workContextAccessor, urlBuilder)
 {
     _orderApi = orderApi;
     _storeApi = storeApi;
 }
 public WidgetsContainerPartDriver(ISiteThemeService siteThemeService, IWidgetsService widgetsService, IVirtualPathProvider virtualPathProvider, IShapeFactory shapeFactory, IWidgetManager widgetManager, IWorkContextAccessor wca, IContentManager contentManager, IOrchardServices services, ILocalizationService localizationService, ICultureManager cultureManager)
 {
     _siteThemeService    = siteThemeService;
     _widgetsService      = widgetsService;
     _virtualPathProvider = virtualPathProvider;
     New                  = shapeFactory;
     _widgetManager       = widgetManager;
     _wca                 = wca;
     _contentManager      = contentManager;
     _services            = services;
     _localizationService = localizationService;
     _cultureManager      = cultureManager;
 }
Exemplo n.º 52
0
 public ImageGalleryDriver(IImageGalleryService imageGalleryService, IThumbnailService thumbnailService, IWorkContextAccessor workContextAccessor) {
     _thumbnailService = thumbnailService;
     _workContextAccessor = workContextAccessor;
     _imageGalleryService = imageGalleryService;
 }
Exemplo n.º 53
0
 public LocalizableMainMenuNavigationFilter(ICultureManager cultureManager, IWorkContextAccessor workContextAccessor)
 {
     _cultureManager      = cultureManager;
     _workContextAccessor = workContextAccessor;
 }
 public LocalizationPartDriver(IContentManager contentManager, IWorkContextAccessor workContext)
 {
     _contentManager = contentManager;
     _workContext    = workContext;
 }
 public ClientHostAddressAccessor(IWorkContextAccessor wca)
 {
     _wca = wca;
 }
Exemplo n.º 56
0
 public ProductController(IWorkContextAccessor workContextAccessor) : base(workContextAccessor)
 {
 }
Exemplo n.º 57
0
 public LanguageThemeSelector(IWorkContextAccessor workContextAccessor)
 {
     this.workContextAccessor = workContextAccessor;
 }
Exemplo n.º 58
0
 public UserIsApprovedActivity(IWorkContextAccessor workContextAccessor)
 {
     _workContextAccessor = workContextAccessor;
     T = NullLocalizer.Instance;
 }