public QueryElementDriver(IFormsBasedElementServices formsServices, IProjectionManager projectionManager, IContentManager contentManager, ITokenizer tokenizer)
     : base(formsServices)
 {
     _projectionManager = projectionManager;
     _contentManager    = contentManager;
     _tokenizer         = tokenizer;
 }
Esempio n. 2
0
 public AssetPriceHandler(IProjectionManager manager, ILog log, IBranchManager branchManager, IQueryHandler <SingleAssetPriceQuery, SingleAssetPrice> handler)
     : base(manager)
 {
     _log           = log;
     _branchManager = branchManager;
     _handler       = handler;
 }
Esempio n. 3
0
        private void CacheManager(ProjectionType projectionType, IProjectionManager manager)
        {
            Contract.Requires(projectionType != null);
            Contract.Requires(manager != null);

            _managers[projectionType] = manager;
        }
 public NavigationQueryProvider(
     IContentManager contentManager,
     IProjectionManager projectionManager)
 {
     _contentManager    = contentManager;
     _projectionManager = projectionManager;
 }
        public ContentSerializationServices(IOrchardServices orchardServices,
                                            IProjectionManager projectionManager, ITaxonomyService taxonomyService,
                                            ILocalizationService localizationService)
        {
            _orchardServices     = orchardServices;
            _projectionManager   = projectionManager;
            _taxonomyService     = taxonomyService;
            _localizationService = localizationService;
            _markdownFilter      = new MarkdownFilter();

            _skipAlwaysProperties        = new string[] { "ContentItemRecord", "ContentItemVersionRecord" };
            _skipAlwaysPropertiesEndWith = "Proxy";
            _skipFieldProperties         = new string[] { "Storage", "Name", "DisplayName", "Setting" };
            _skipFieldTypes     = new string[] { "FieldDefinition", "PartFieldDefinition" };
            _skipPartNames      = new string[] { "InfosetPart", "FieldIndexPart", "IdentityPart", "UserPart", "UserRolesPart", "AdminMenuPart", "MenuPart" };
            _skipPartProperties = new string[] { };
            _skipPartTypes      = new string[] { "ContentItem", "Zones", "TypeDefinition", "TypePartDefinition", "PartDefinition", "Settings", "Fields", "Record" };

            _basicTypes = new Type[] {
                typeof(string),
                typeof(decimal),
                typeof(float),
                typeof(int),
                typeof(bool),
                typeof(DateTime),
                typeof(Enum)
            };

            processedItems = new List <string>();
        }
Esempio n. 6
0
 public PropertyController(IContentManager contentManager,
                           IProjectionManager projectionManager)
 {
     _contentManager    = contentManager;
     _projectionManager = projectionManager;
     T = NullLocalizer.Instance;
 }
 public QueryPickerPartDriver(IQueryPickerService queryPickerService, IRepository <QueryPartRecord> queryRepository, IProjectionManager projectionManager, IContentManager contentManager)
 {
     _queryPickerService = queryPickerService;
     _queryRepository    = queryRepository;
     _projectionManager  = projectionManager;
     _contentManager     = contentManager;
 }
Esempio n. 8
0
 public QueryElementDriver(IFormManager formManager, IProjectionManager projectionManager, IContentManager contentManager, ITokenizer tokenizer)
     : base(formManager)
 {
     _projectionManager = projectionManager;
     _contentManager    = contentManager;
     _tokenizer         = tokenizer;
 }
Esempio n. 9
0
 public ReferenceController(
     IContentDefinitionManager contentDefinitionManager,
     IProjectionManager projectionManager,
     IContentManager contentManager) {
     _contentDefinitionManager = contentDefinitionManager;
     _projectionManager = projectionManager;
     _contentManager = contentManager;
 }
Esempio n. 10
0
 public HistoryController(IContentManager contentManager,
                          ICompareContentService compareObjectService,
                          IProjectionManager projectionManager)
 {
     _contentManager       = contentManager;
     _compareObjectService = compareObjectService;
     _projectionManager    = projectionManager;
 }
Esempio n. 11
0
 public HistoryController(IContentManager contentManager,
     ICompareContentService compareObjectService, 
     IProjectionManager projectionManager)
 {
     _contentManager = contentManager;
     _compareObjectService = compareObjectService;
     _projectionManager = projectionManager;
 }
Esempio n. 12
0
 public EventsService(IProjectionManager projectionManager, ITokenizer tokenizer, IWorkContextAccessor workContextAccessor, IOrchardServices orchardServices)
 {
     _orchardServices     = orchardServices;
     _projectionManager   = projectionManager;
     _tokenizer           = tokenizer;
     _workContextAccessor = workContextAccessor;
     _cultureInfo         = new Lazy <CultureInfo>(() => CultureInfo.GetCultureInfo(_workContextAccessor.GetContext().CurrentSite.SiteCulture));
 }
Esempio n. 13
0
 public FilterController(
     IRepository<FilterRecord> filterRepository,
     IProjectionManager projectionManager,
     IFormManager formManager) {
     _filterRepository = filterRepository;
     _projectionManager = projectionManager;
     _formManager = formManager;
 }
        public ProjectionEntry(AggregateRootType aggregateRootType, ProjectionType projectionType, IProjectionManager projectionManager)
            : this(aggregateRootType, projectionType, projectionManager.GetType())
        {
            Contract.Requires(aggregateRootType != null);
            Contract.Requires(projectionType != null);
            Contract.Requires(projectionManager != null);

            ProjectionManager = projectionManager;
        }
Esempio n. 15
0
 public QueryFeedQuery(
     IContentManager contentManager,
     IProjectionManager projectionManager,
     IEnumerable <IHtmlFilter> htmlFilters)
 {
     _contentManager    = contentManager;
     _projectionManager = projectionManager;
     _htmlFilters       = htmlFilters;
 }
Esempio n. 16
0
 public QueryFeedQuery(
     IContentManager contentManager,
     IProjectionManager projectionManager,
     IEnumerable<IHtmlFilter> htmlFilters)
 {
     _contentManager = contentManager;
     _projectionManager = projectionManager;
     _htmlFilters = htmlFilters;
 }
Esempio n. 17
0
 public ReferenceController(
     IContentDefinitionManager contentDefinitionManager,
     IProjectionManager projectionManager,
     IContentManager contentManager)
 {
     _contentDefinitionManager = contentDefinitionManager;
     _projectionManager        = projectionManager;
     _contentManager           = contentManager;
 }
Esempio n. 18
0
 public CalendarPartDriver(IProjectionManager projectionManager, IRepository <QueryPartRecord> queryRepository,
                           IOrchardServices orchardServices, IEventsService eventsService, IRepository <LayoutRecord> layoutRepository)
 {
     T = NullLocalizer.Instance;
     _projectionManager = projectionManager;
     _queryRepository   = queryRepository;
     _eventsService     = eventsService;
     _orchardServices   = orchardServices;
     _layoutRepository  = layoutRepository;
 }
 public DataReportViewerDriver(
     IReportManager reportManger,
     IProjectionManager projectionManager,
     IRepository <ReportRecord> reportRepository)
 {
     this.projectionManager = projectionManager;
     this.reportRepository  = reportRepository;
     this.reportManger      = reportManger;
     T = NullLocalizer.Instance;
 }
Esempio n. 20
0
 public ReferenceFieldDriver(
     IOrchardServices services,
     IContentManager contentManager,
     IProjectionManager projectionManager)
 {
     Services           = services;
     _contentManager    = contentManager;
     _projectionManager = projectionManager;
     T = NullLocalizer.Instance;
 }
 public ColumnDefinitionController(IContentManager iContentManager,
     IOrchardServices orchardServices,
     IProjectionManager projectionManager, 
     ITemplateViewService templateViewService)
 {
     _contentManager = iContentManager;
     Services = orchardServices;
     _projectionManager = projectionManager;
     _templateViewService = templateViewService;
     T = NullLocalizer.Instance;
 }
 public QueryPickerDefault(IOrchardServices services, IContentManager contentManager,
                           ITokenizer tokenizer,
                           IProjectionManager projectionManager,
                           IEnumerable <IFilterProvider> filterProviders,
                           IRepository <QueryPartRecord> queryRepository)
 {
     _services          = services;
     _tokenizer         = tokenizer;
     _contentManager    = contentManager;
     _projectionManager = projectionManager;
     _queryRepository   = queryRepository;
     _filterProviders   = filterProviders;
 }
 public ReportManager(
     IRepository <QueryPartRecord> queryRepository,
     IProjectionManager projectionManager,
     IEnumerable <IGroupByParameterProvider> groupByProviders,
     IContentManager contentManager,
     ITokenizer tokenizer)
 {
     this.queryRepository   = queryRepository;
     this.projectionManager = projectionManager;
     this._tokenizer        = tokenizer;
     this.contentManager    = contentManager;
     this.groupByProviders  = groupByProviders;
 }
Esempio n. 24
0
 public LayoutController(
     IOrchardServices services,
     IFormManager formManager,
     IShapeFactory shapeFactory,
     IProjectionManager projectionManager,
     IRepository<LayoutRecord> repository,
     IQueryService queryService) {
     Services = services;
     _formManager = formManager;
     _projectionManager = projectionManager;
     _repository = repository;
     _queryService = queryService;
     Shape = shapeFactory;
 }
 public HighlightsGroupDriver(IHighlightsService HighlightsService, ICultureManager cultureManager, IContentManager contentManager, IProjectionManager projectionManager,
                              ITransactionManager transactions, IHttpContextAccessor httpContextAccessor, IWorkContextAccessor workContext, IShapeFactory shapeFactory,
                              IOrchardServices orchardServices)
 {
     _HighlightsService   = HighlightsService;
     _contentManager      = contentManager;
     _transactions        = transactions;
     _cultureManager      = cultureManager;
     _httpContextAccessor = httpContextAccessor;
     _workContext         = workContext;
     _shapeFactory        = shapeFactory;
     _projectionManager   = projectionManager;
     _orchardServices     = orchardServices;
 }
Esempio n. 26
0
 public JobFeatureEventhandler(IMenuService menuService,
                               IContentManager contentManager,
                               IQueryService queryService,
                               IWidgetsService widgetsService,
                               ITaxonomyService taxonomyService,
                               IProjectionManager projectionManager)
 {
     _menuService       = menuService;
     _contentManager    = contentManager;
     _queryService      = queryService;
     _widgetsService    = widgetsService;
     _taxonomyService   = taxonomyService;
     _projectionManager = projectionManager;
 }
Esempio n. 27
0
        public Migrations(IMenuService menuService,
                          IContentManager contentManager,
                          IQueryService queryService,
                          IWidgetsService widgetsService,
                          ITaxonomyService taxonomyService,
                            IProjectionManager projectionManager) {

            _menuService = menuService;
            _contentManager = contentManager;
            _queryService = queryService;
            _widgetsService = widgetsService;
            _taxonomyService = taxonomyService;
            _projectionManager = projectionManager;
        }
Esempio n. 28
0
 public CommonController(
     IContentManager iContentManager,
     IOrchardServices orchardServices,
     IProjectionManager projectionManager,
     ITokenizer tokenizer,
     IRepository<FilterRecord> filterRepository,
     IRepository<FilterGroupRecord> filterGroupRepository) {
     _contentManager = iContentManager;
     Services = orchardServices;
     _projectionManager = projectionManager;
     _tokenizer = tokenizer;
     _filterRepository = filterRepository;
     _filterGroupRepository = filterGroupRepository;
 }
Esempio n. 29
0
 public Migrations(IMenuService menuService,
                   IContentManager contentManager,
                   IQueryService queryService,
                   IWidgetsService widgetsService,
                   ITaxonomyService taxonomyService,
                   IProjectionManager projectionManager)
 {
     _menuService       = menuService;
     _contentManager    = contentManager;
     _queryService      = queryService;
     _widgetsService    = widgetsService;
     _taxonomyService   = taxonomyService;
     _projectionManager = projectionManager;
 }
 public JobFeatureEventhandler(IMenuService menuService,
                   IContentManager contentManager,
                   IQueryService queryService,
                   IWidgetsService widgetsService,
                   ITaxonomyService taxonomyService,
                     IProjectionManager projectionManager)
 {
     _menuService = menuService;
     _contentManager = contentManager;
     _queryService = queryService;
     _widgetsService = widgetsService;
     _taxonomyService = taxonomyService;
     _projectionManager = projectionManager;
 }
Esempio n. 31
0
        public JsonFeedService(IOrchardServices services,
            IProjectionManager projectionManager,
            IEnumerable<IHtmlFilter> htmlFilters,
            ITokenizer tokenizer,
            IWorkContextAccessor workContextAccessor,
            IDisplayHelperFactory displayHelperFactory)
        {
            this.tokenizer = tokenizer;
            this.displayHelperFactory = displayHelperFactory;
            this.workContextAccessor = workContextAccessor;
            Services = services;

            _projectionManager = projectionManager;
            _htmlFilters = htmlFilters;
        }
Esempio n. 32
0
 public ProjectionService(
     IOrchardServices services,
     IProjectionManager projectionManager,
     IContentManager contentManager,
     IFormManager formManager,
     IEnumerable<IFieldToPropertyStateProvider> fieldToPropertyStateProviders,
     IContentDefinitionManager contentDefinitionManager) {
     _projectionManager = projectionManager;
     _contentManager = contentManager;
     _formManager = formManager;
     _fieldToPropertyStateProviders = fieldToPropertyStateProviders;
     Services = services;
     _contentDefinitionManager = contentDefinitionManager;
     T = NullLocalizer.Instance;
 }
Esempio n. 33
0
 public LayoutController(
     IOrchardServices services,
     IFormManager formManager,
     IShapeFactory shapeFactory,
     IProjectionManager projectionManager,
     IRepository <LayoutRecord> repository,
     IQueryService queryService)
 {
     Services           = services;
     _formManager       = formManager;
     _projectionManager = projectionManager;
     _repository        = repository;
     _queryService      = queryService;
     Shape = shapeFactory;
 }
Esempio n. 34
0
 public ProjectionService(
     IOrchardServices services,
     IProjectionManager projectionManager,
     IContentManager contentManager,
     IFormManager formManager,
     ILayoutPropertyService layoutPropertyService,
     IContentDefinitionManager contentDefinitionManager) {
     _projectionManager = projectionManager;
     _contentManager = contentManager;
     _formManager = formManager;
     Services = services;
     _layoutPropertyService = layoutPropertyService;
     _contentDefinitionManager = contentDefinitionManager;
     T = NullLocalizer.Instance;
 }
Esempio n. 35
0
 public ProjectionService(
     IOrchardServices services,
     IProjectionManager projectionManager,
     IContentManager contentManager,
     IFormManager formManager,
     IEnumerable <IFieldToPropertyStateProvider> fieldToPropertyStateProviders,
     IContentDefinitionManager contentDefinitionManager)
 {
     _projectionManager             = projectionManager;
     _contentManager                = contentManager;
     _formManager                   = formManager;
     _fieldToPropertyStateProviders = fieldToPropertyStateProviders;
     Services = services;
     _contentDefinitionManager = contentDefinitionManager;
     T = NullLocalizer.Instance;
 }
Esempio n. 36
0
 public ProjectionElementDriver(
     IFormManager formManager,
     IProjectionManager projectionManager,
     IOrchardServices services,
     IRepository <LayoutRecord> layoutRepository,
     ITokenizer tokenizer,
     IDisplayHelperFactory displayHelperFactory)
     : base(formManager)
 {
     _projectionManager    = projectionManager;
     _contentManager       = services.ContentManager;
     _services             = services;
     _layoutRepository     = layoutRepository;
     _tokenizer            = tokenizer;
     _displayHelperFactory = displayHelperFactory;
 }
Esempio n. 37
0
 public UserQueryAdminController(
     IOrchardServices orchardServices,
     INotifier notifier,
     IContentManager contentManager,
     IQueryService queryService,
     IProjectionManager projectionManager,
     IShapeFactory shapeFactory)
 {
     _orchardServices = orchardServices;
     _contentManager  = contentManager;
     _notifier        = notifier;
     T                  = NullLocalizer.Instance;
     _queryService      = queryService;
     _projectionManager = projectionManager;
     Shape              = shapeFactory;
 }
 public SortCriterionController(
     IOrchardServices services,
     IFormManager formManager,
     IShapeFactory shapeFactory,
     IProjectionManager projectionManager,
     IRepository<SortCriterionRecord> repository,
     IQueryService queryService,
     ISortService sortService) {
     Services = services;
     _formManager = formManager;
     _projectionManager = projectionManager;
     _repository = repository;
     _queryService = queryService;
     _sortService = sortService;
     Shape = shapeFactory;
 }
Esempio n. 39
0
 public FilterController(
     IOrchardServices services,
     IFormManager formManager,
     IShapeFactory shapeFactory,
     IProjectionManager projectionManager,
     IRepository<FilterRecord> repository,
     IRepository<FilterGroupRecord> groupRepository,
     IQueryService queryService) {
     Services = services;
     _formManager = formManager;
     _projectionManager = projectionManager;
     _repository = repository;
     _groupRepository = groupRepository;
     _queryService = queryService;
     Shape = shapeFactory;
 }
Esempio n. 40
0
        public AdminController(
            IOrchardServices services,
            IShapeFactory shapeFactory,
            ISiteService siteService,
            IQueryService queryService,
            IProjectionManager projectionManager)
        {
            _services          = services;
            _siteService       = siteService;
            _queryService      = queryService;
            _projectionManager = projectionManager;
            Services           = services;

            T     = NullLocalizer.Instance;
            Shape = shapeFactory;
        }
        public CustomSortAdminController(
            ISiteService siteService,
            ICustomSortService sortService,
            IProjectionManager projectionManager,
            IContentManager contentManager,
            IOrchardServices services,
            IShapeFactory shapeFactory) {

            _siteService = siteService;
            _sortService = sortService;
            _projectionManager = projectionManager;
            _contentManager = contentManager;
            _services = services;

            Shape = shapeFactory;
            T = NullLocalizer.Instance;
        }
Esempio n. 42
0
 public EntityController(
     IContentManager iContentManager,
     IOrchardServices orchardServices,
     IProjectionManager projectionManager,
     ITokenizer tokenizer,
     IGridService gridService,
     IRepository <FilterRecord> filterRepository,
     IRepository <FilterGroupRecord> filterGroupRepository)
 {
     _contentManager        = iContentManager;
     Services               = orchardServices;
     _projectionManager     = projectionManager;
     _tokenizer             = tokenizer;
     _gridService           = gridService;
     _filterRepository      = filterRepository;
     _filterGroupRepository = filterGroupRepository;
 }
 public SortCriterionController(
     IOrchardServices services,
     IFormManager formManager,
     IShapeFactory shapeFactory,
     IProjectionManager projectionManager,
     IRepository <SortCriterionRecord> repository,
     IQueryService queryService,
     ISortService sortService)
 {
     Services           = services;
     _formManager       = formManager;
     _projectionManager = projectionManager;
     _repository        = repository;
     _queryService      = queryService;
     _sortService       = sortService;
     Shape = shapeFactory;
 }
 public FilterController(
     IOrchardServices services,
     IFormManager formManager,
     IShapeFactory shapeFactory,
     IProjectionManager projectionManager,
     IRepository <FilterRecord> repository,
     IRepository <FilterGroupRecord> groupRepository,
     IQueryService queryService)
 {
     Services           = services;
     _formManager       = formManager;
     _projectionManager = projectionManager;
     _repository        = repository;
     _groupRepository   = groupRepository;
     _queryService      = queryService;
     Shape = shapeFactory;
 }
Esempio n. 45
0
        public CustomSortAdminController(
            ISiteService siteService,
            ICustomSortService sortService,
            IProjectionManager projectionManager,
            IContentManager contentManager,
            IOrchardServices services,
            IShapeFactory shapeFactory)
        {
            _siteService       = siteService;
            _sortService       = sortService;
            _projectionManager = projectionManager;
            _contentManager    = contentManager;
            _services          = services;

            Shape = shapeFactory;
            T     = NullLocalizer.Instance;
        }
Esempio n. 46
0
 public PropertyController(IContentManager contentManager,
     IProjectionManager projectionManager) {
     _contentManager = contentManager;
     _projectionManager = projectionManager;
     T = NullLocalizer.Instance;
 }
Esempio n. 47
0
 public FilterController(IProjectionManager projectionManager) {
     _projectionManager = projectionManager;
 }
Esempio n. 48
0
 public SchedulingService(IOrchardServices orchardServices, IProjectionManager projectionManager, IScheduledTaskManager scheduledTaskManager) {
     _orchardServices = orchardServices;
     _projectionManager = projectionManager;
     _scheduledTaskManager = scheduledTaskManager;
 }
Esempio n. 49
0
 public CalendarService(IProjectionManager projectionManager, IEnumerable<ICalendarProvider> calendarProviders) {
     _projectionManager = projectionManager;
     _calendarProviders = calendarProviders;
 }
Esempio n. 50
0
 public ViewModelController(IProjectionService projectionService, 
     IContentManager contentManager, IProjectionManager projectionManager) {
     _projectionService = projectionService;
     _contentManager = contentManager;
     _projectionManager = projectionManager;
 }
Esempio n. 51
0
 public CompareContentService(IProjectionManager projectionManager) {
     _projectionManager = projectionManager;
 }
Esempio n. 52
0
 public NavigationQueryProvider(
     IContentManager contentManager,
     IProjectionManager projectionManager) {
     _contentManager = contentManager;
     _projectionManager = projectionManager;
 }