Example #1
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;
        }
Example #2
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;
 }
Example #3
0
 public AdminCommentController(ILog log, IContentItemService<Post> contentItemService, ICommentService commentService, ILocalizationService localizationService, IUserService userService, ISiteService siteService)
     : base(log, localizationService, userService, siteService)
 {
     this.log = log;
      this.commentService = commentService;
      this.contentItemService = contentItemService;
 }
 public AddUsersViewModelFactory(IEmployeeService employeeService, IRolesService rolesService, ISiteService siteService, ISiteGroupService siteGroupService)
 {
     _employeeService = employeeService;
     _rolesService = rolesService;
     _siteService = siteService;
     _siteGroupService = siteGroupService;
 }
 public TaxonomyImportService(ISiteService siteService, IContentManager contentManager, ITaxonomyService taxonomyService, IMembershipService membershipService)
 {
     _siteService = siteService;
     _contentManager = contentManager;
     _taxonomyService = taxonomyService;
     _membershipService = membershipService;
 }
 public ActorsAdminController(ISiteService siteService, IRepository<ActorRecord> actorRepository, IShapeFactory shapeFactory, IOrchardServices orchardServices)
 {
     _siteService = siteService;
     _actorRepository = actorRepository;
     _orchardServices = orchardServices;
     Shape = shapeFactory;
 }
        public SubscriptionController(
            IOrchardServices orchardServices,
            IForumService forumService,
            IThreadService threadService,
            IPostService postService,
            ISiteService siteService,
            IShapeFactory shapeFactory,
            IAuthorizationService authorizationService,
            IAuthenticationService authenticationService,
            ISubscriptionService subscriptionService,
            IThreadLastReadService threadLastReadService
            )
        {
            _orchardServices = orchardServices;
            _forumService = forumService;
            _threadService = threadService;
            _postService = postService;
            _siteService = siteService;
            _subscriptionService = subscriptionService;
            _authorizationService = authorizationService;
            _authenticationService = authenticationService;
            _threadLastReadService = threadLastReadService;

            T = NullLocalizer.Instance;
            Shape = shapeFactory;
        }
Example #8
0
 public AdminController(
     IAuthorizationService authorizationService,
     ITypeFeatureProvider typeFeatureProvider,
     ISession session,
     IStringLocalizer<AdminController> stringLocalizer,
     IHtmlLocalizer<AdminController> htmlLocalizer,
     ISiteService siteService,
     IShapeFactory shapeFactory,
     RoleManager<Role> roleManager,
     IRoleProvider roleProvider,
     INotifier notifier,
     IEnumerable<IPermissionProvider> permissionProviders
     )
 {
     TH = htmlLocalizer;
     _notifier = notifier;
     _roleProvider = roleProvider;
     _typeFeatureProvider = typeFeatureProvider;
     _permissionProviders = permissionProviders;
     _roleManager = roleManager;
     _shapeFactory = shapeFactory;
     _siteService = siteService;
     T = stringLocalizer;
     _authorizationService = authorizationService;
     _session = session;
 }
Example #9
0
 public PublicationService(IOrchardServices orchardServices, IContentManager contentManager, IShapeFactory shapeFactory, ISiteService siteService)
 {
     _orchardServices = orchardServices;
     _contentManager = contentManager;
     _shapeFactory = shapeFactory;
     _siteService = siteService;
 }
        public OwinMiddlewares(ISiteService siteService) {
            Logger = NullLogger.Instance;

            var site = siteService.GetSiteSettings();
            var azureSettings = site.As<AzureSettingsPart>();

            _azureClientId = ((azureSettings.ClientId == null) || (azureSettings.ClientId == string.Empty)) ? 
                "[example: 82692da5-a86f-44c9-9d53-2f88d52b478b]" : azureSettings.ClientId;

            _azureTenant = ((azureSettings.Tenant == null) || (azureSettings.Tenant == string.Empty)) ? 
                "faketenant.com" : azureSettings.Tenant;

            _azureADInstance = ((azureSettings.ADInstance == null) || (azureSettings.ADInstance == string.Empty)) ? 
                "https://login.microsoft.com/{0}" : azureSettings.ADInstance;

            _logoutRedirectUri = ((azureSettings.LogoutRedirectUri == null) || (azureSettings.LogoutRedirectUri == string.Empty)) ? 
                site.BaseUrl : azureSettings.LogoutRedirectUri;

            _azureAppName = ((azureSettings.AppName == null) || (azureSettings.AppName == string.Empty)) ? 
                "[example: MyAppName]" : azureSettings.AppName;

            _sslEnabled = azureSettings.SSLEnabled;

            _azureWebSiteProtectionEnabled = azureSettings.AzureWebSiteProtectionEnabled;
        }
 public AdvancedSitemapService(
     IRepository<SitemapRouteRecord> routeRepository, 
     IRepository<SitemapSettingsRecord> settingsRepository,
     IRepository<SitemapCustomRouteRecord> customRouteRepository,
     IContentManager contentManager,
     ICacheManager cacheManager,
     ISignals signals,
     IClock clock,
     IContentDefinitionManager contentDefinitionManager,
     IEnumerable<ISitemapRouteFilter> routeFilters,
     IEnumerable<ISitemapRouteProvider> routeProviders, 
     ISiteService siteService, 
     IEnumerable<ISpecializedSitemapProvider> specializedSitemapProviders)
 {
     _routeRepository = routeRepository;
     _settingsRepository = settingsRepository;
     _customRouteRepository = customRouteRepository;
     _contentManager = contentManager;
     _cacheManager = cacheManager;
     _signals = signals;
     _clock = clock;
     _contentDefinitionManager = contentDefinitionManager;
     _routeFilters = routeFilters;
     _routeProviders = routeProviders;
     _siteService = siteService;
     _specializedSitemapProviders = specializedSitemapProviders;
 }
Example #12
0
        public ShellForm(IKernel kernel)
        {
            Asserter.AssertIsNotNull(kernel, "kernel");

            _kernel = kernel;
            _applicationService = _kernel.Get<IApplicationService>();
            _storageService = _kernel.Get<IStorageService>();
            _settingsService = _kernel.Get<ISettingsService>();
            _siteService = _kernel.Get<ISiteService>();
            _controller = _kernel.Get<ShellController>();

            Asserter.AssertIsNotNull(_applicationService, "_applicationService");
            Asserter.AssertIsNotNull(_storageService, "_storageService");
            Asserter.AssertIsNotNull(_settingsService, "_settingsService");
            Asserter.AssertIsNotNull(_siteService, "_siteService");

            InitializeComponent();

            _siteService.Register(SiteNames.ContentSite, contentPanel);
            _siteService.Register(SiteNames.NavigationSite, navigationPanel);
            _siteService.Register(SiteNames.ContentActionsSite, contentActionPanel);

            SetStyle(ControlStyles.OptimizedDoubleBuffer |
                     ControlStyles.AllPaintingInWmPaint |
                     ControlStyles.ResizeRedraw, true);
        }
Example #13
0
        public AdminUserController(
            IRepository<RoleRecord> roleRepository,
            IOrderService orderService,
            ICampaignService campaignService,
            IRepository<CurrencyRecord> currencyRepository,
            IMembershipService membershipService,
            ShellSettings shellSettings,
            IOrchardServices services,
            IUserService userService,
            ISiteService siteService,
            IShapeFactory shapeFactory)
        {
            _roleRepository = roleRepository;
            _orderService = orderService;
            _campaignService = campaignService;
            _currencyRepository = currencyRepository;
            _membershipService = membershipService;
            _shellSettings = shellSettings;
            Services = services;
            _siteService = siteService;
            _userService = userService;

            T = NullLocalizer.Instance;
            Shape = shapeFactory;
        }
 public SettingsRecipeHandler(ISiteService siteService, IContentManager contentManager, Lazy<IEnumerable<IContentHandler>> handlers) {
     _siteService = siteService;
     _contentManager = contentManager;
     _handlers = handlers;
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
 public AnalyticsScriptInjectingFilter(
     ISiteService siteService,
     IResourceManager resourceManager)
 {
     _siteService = siteService;
     _resourceManager = resourceManager;
 }
 public FacebookSuiteService(
     IHttpContextAccessor httpContextAccessor,
     ISiteService siteService)
 {
     _httpContextAccessor = httpContextAccessor;
     _siteService = siteService;
 }
Example #17
0
 public SettingsStep(
     ISiteService siteService,
     ILoggerFactory logger,
     IStringLocalizer<ISiteService> localizer) : base(logger, localizer)
 {
     _siteService = siteService;
 }
Example #18
0
 public WikiPageController(IOrchardServices orchardServices, 
     IRepository<WikiPageAttachmentRecord> repoWikiAttachment,
     ITagService tagService,
     IAuthorizationService authorizationService,
     INotifier notifier,
     ISiteService siteService,
     ISearchService searchService,
     IShapeFactory shapeFactory,
     IWikiPageService wikiPageService,
     IMediaService mediaService
    ){
     _orchardServices = orchardServices;
     _repoWikiAttachment = repoWikiAttachment;
     _tagService = tagService;
     _authorizationService = authorizationService;
     _notifier = notifier;
     _searchService = searchService;
     _siteService = siteService;
     _wikiPageService = wikiPageService;
     _mediaService = mediaService;
     Logger = NullLogger.Instance;
     Shape = shapeFactory;
    
     
 }
Example #19
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="log"></param>
        /// <param name="localizationService"></param>
        /// <param name="siteService"></param>
        /// <param name="userService"></param>
        /// <param name="contentItemService"></param>
        /// <param name="contentItemServiceForPage"></param>
        /// <param name="commentService"></param>
        /// <param name="categoryService"></param>
        /// <param name="tagService"></param>
        /// <param name="searchService"></param>
        /// <param name="widgetService"></param>
        /// <param name="messageService"></param>
        protected ContentControllerBase( ILog log, 
                                       ILocalizationService localizationService,
                                       ISiteService siteService,
                                       IUserService userService,
                                       IContentItemService<Post> contentItemService,
                                       IContentItemService<Page> contentItemServiceForPage,
                                       ICommentService commentService,
                                       ICategoryService categoryService,
                                       ITagService tagService,
                                       ISearchService searchService,
                                       IWidgetService widgetService,
                                       IMessageService messageService)
        {
            this.log = log;
             this.localizationService = IoC.Resolve<ILocalizationService>();
             this.userService = IoC.Resolve<IUserService>();
             this.siteService = IoC.Resolve<ISiteService>();
             this.categoryService = IoC.Resolve<ICategoryService>();
             this.tagService = IoC.Resolve<ITagService>();
             this.contentItemService = contentItemService;
             this.contentItemServiceForPage = contentItemServiceForPage;
             this.commentService = commentService;
             this.searchService = searchService;
             this.widgetService = widgetService;
             this.messageService = messageService;

             registeredWidgetComponents = new List<IWidgetComponent>();

             currentCulture = Thread.CurrentThread.CurrentUICulture;
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 public Install()
 {
     this._commonDao = IoC.Resolve<ICommonDao>();
     this._siteService = IoC.Resolve<ISiteService>();
     this._moduleLoader = IoC.Resolve<ModuleLoader>();
     this._fileService = IoC.Resolve<IFileService>();
 }
Example #21
0
 public MenuCommands(IWidgetsService widgetsService, ISiteService siteService, IMembershipService membershipService, IAdvancedMenuService menuService)
 {
     _widgetsService = widgetsService;
     _siteService = siteService;
     _membershipService = membershipService;
     _menuService = menuService;
 }
Example #22
0
 public Migrations(IContentManager contentManager
     , ISiteService siteService, IOrchardServices orchardServices)
 {
     _contentManager = contentManager;
     _siteService = siteService;
     _orchardServices = orchardServices;
 }
 public UserEventHandler(
     IFacebookConnectService facebookConnectService,
     ISiteService siteService)
 {
     _facebookConnectService = facebookConnectService;
     _siteService = siteService;
 }
 public ReportPostAdminController(
     IOrchardServices orchardServices,
     IForumService forumService,
     IThreadService threadService,
     IPostService postService,
     ISiteService siteService,
     IShapeFactory shapeFactory,
     IAuthorizationService authorizationService,
     IAuthenticationService authenticationService,
     ISubscriptionService subscriptionService,
     IReportPostService reportPostService,
     ICountersService countersService
     )
 {
     _orchardServices = orchardServices;
     _forumService = forumService;
     _threadService = threadService;
     _postService = postService;
     _siteService = siteService;
     _subscriptionService = subscriptionService;
     _authorizationService = authorizationService;
     _authenticationService = authenticationService;
     _reportPostService = reportPostService;
     _countersService = countersService;
     T = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
Example #25
0
 public EpisodeController(ISiteService siteService, IEpisodeService episodeService, IUserService userService)
     : base(siteService, episodeService)
 {
     this._siteService = siteService;
     this._episodeService = episodeService;
     this._userService = userService;
 }
 public ContainerFlattener(
     IShapeOutputGenerator shapeOutputGenerator,
     ISiteService siteService)
 {
     _shapeOutputGenerator = shapeOutputGenerator;
     _siteService = siteService;
 }
 public TelemetrySettingsAccessor(
     IAppConfigurationAccessor appConfigurationAccessor,
     ISiteService siteService)
 {
     _appConfigurationAccessor = appConfigurationAccessor;
     _siteService = siteService;
 }
 public LiveCheckController(
     IClientService clientService,
     ISiteService siteService)
 {
     _clientService = clientService;
     _siteService = siteService;
 }
Example #29
0
        public AdminController(
            IContentManager contentManager,
            IContentItemDisplayManager contentItemDisplayManager,
            IContentDefinitionManager contentDefinitionManager,
            ISiteService siteService,
            INotifier notifier,
            ISession session,
            IShapeFactory shapeFactory,
            ILogger<AdminController> logger,
            IHtmlLocalizer<AdminController> localizer,
            IAuthorizationService authorizationService,
            IEnumerable<IContentAdminFilter> contentAdminFilters
            )
        {
            _contentAdminFilters = contentAdminFilters;
            _authorizationService = authorizationService;
            _notifier = notifier;
            _contentItemDisplayManager = contentItemDisplayManager;
            _session = session;
            _siteService = siteService;
            _contentManager = contentManager;
            _contentDefinitionManager = contentDefinitionManager;

            T = localizer;
            New = shapeFactory;
            Logger = logger;
        }
 public SystemConfigurationController(ILog log, ISystemConfigurationService systemConfigurationService, IFeatureService featureService, ILocalizationService localizationService, IUserService userService, ISiteService siteService)
     : base(log, localizationService, userService, siteService)
 {
     this.log = log;
      this.systemConfigurationService = systemConfigurationService;
      this.featureService = featureService;
 }
 public ScriptsMiddleware(RequestDelegate next, ISiteService siteService)
 {
     _next        = next;
     _siteService = siteService;
 }