public ProductEditorCommandController(
     // base dependencies
     IContentDefinitionService contentDefinitionService,
     IProductService productService,
     IReadOnlyArticleService articleService,
     EditorSchemaService editorSchemaService,
     EditorDataService editorDataService,
     EditorPartialContentService editorPartialContentService,
     EditorLocaleService editorLocaleService,
     // self dependencies
     IFieldService fieldService,
     IProductUpdateService productUpdateService,
     CloneBatchAction cloneBatchAction,
     DeleteAction deleteAction,
     PublishAction publishAction)
     : base(contentDefinitionService,
         productService,
         articleService,
         editorSchemaService,
         editorDataService,
         editorPartialContentService,
         editorLocaleService)
 {
     _fieldService = fieldService;
     _productUpdateService = productUpdateService;
     _cloneBatchAction = cloneBatchAction;
     _deleteAction = deleteAction;
     _publishAction = publishAction;
 }
 public ProductEditorQueryController(
     // base dependencies
     IContentDefinitionService contentDefinitionService,
     IProductService productService,
     IReadOnlyArticleService articleService,
     EditorSchemaService editorSchemaService,
     EditorDataService editorDataService,
     EditorPartialContentService editorPartialContentService,
     EditorLocaleService editorLocaleService,
     // self dependencies
     PublicationStatusService publicationStatusService,
     EditorPreloadingService editorPreloadingService,
     EditorCustomActionService editorCustomActionService)
     : base(contentDefinitionService,
            productService,
            articleService,
            editorSchemaService,
            editorDataService,
            editorPartialContentService,
            editorLocaleService)
 {
     _publicationStatusService  = publicationStatusService;
     _editorPreloadingService   = editorPreloadingService;
     _editorCustomActionService = editorCustomActionService;
 }
Esempio n. 3
0
 public EditorPreloadingService(
     FieldService fieldService,
     IReadOnlyArticleService articleService,
     IProductService productService,
     EditorDataService editorDataService)
 {
     _fieldService      = fieldService;
     _articleService    = articleService;
     _productService    = productService;
     _editorDataService = editorDataService;
 }
 public ProductEditorController(
     IContentDefinitionService contentDefinitionService,
     IProductService productService,
     IReadOnlyArticleService articleService,
     EditorSchemaService editorSchemaService,
     EditorDataService editorDataService,
     EditorPartialContentService editorPartialContentService,
     EditorLocaleService editorLocaleService)
 {
     _contentDefinitionService    = contentDefinitionService;
     _productService              = productService;
     _articleService              = articleService;
     _editorSchemaService         = editorSchemaService;
     _editorDataService           = editorDataService;
     _editorPartialContentService = editorPartialContentService;
     _editorLocaleService         = editorLocaleService;
 }
Esempio n. 5
0
        public EditorSchemaService(
            IConnectionProvider connectionProvider,
            IReadOnlyArticleService articleService,
            ContentService contentService,
            FieldService fieldService,
            VirtualFieldContextService virtualFieldContextService,
            EditorPreloadingService editorPreloadingService)
        {
            var customer = connectionProvider.GetCustomer();

            _dbConnector                = new DBConnector(customer.ConnectionString, customer.DatabaseType);
            _articleService             = articleService;
            _contentService             = contentService;
            _fieldService               = fieldService;
            _virtualFieldContextService = virtualFieldContextService;
            _editorPreloadingService    = editorPreloadingService;
        }
Esempio n. 6
0
 public LocalSystemCachedLoader(IContentDefinitionService definitionService,
                                VersionedCacheProviderBase cacheProvider,
                                ICacheItemWatcher cacheItemWatcher,
                                IReadOnlyArticleService articleService,
                                IFieldService fieldService,
                                ISettingsService settingsService,
                                IList <IConsumerMonitoringService> consumerMonitoringServices,
                                IArticleFormatter formatter, IConnectionProvider connectionProvider) : base(definitionService,
                                                                                                            cacheProvider, cacheItemWatcher, articleService, fieldService, settingsService, consumerMonitoringServices, formatter, connectionProvider)
 {
     DataDirectory = AppDomain.CurrentDomain.GetData("DataDirectory") as string;
     if (DataDirectory == null)
     {
         throw new InvalidOperationException("Должен быть определен DataDirectory");
     }
     ArchiveFiles = true;
 }
Esempio n. 7
0
 public GetArticlesQuery(IReadOnlyArticleService articleService, IMapper mapper)
 {
     this.articleService = articleService;
     this.mapper         = mapper;
 }