コード例 #1
0
ファイル: Archive.cs プロジェクト: coodream/cms
 internal Archive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     ILinkRepository linkRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     int id,
     string strId,
     int categoryId,
     string title)
     : base(
         contentRep,
         extendRep,
         categoryRep,
         templateRep,
         linkRep,
         id,
         categoryId,
         title
         )
 {
     this.StrId = strId;
     this._archiveRep = archiveRep;
     this._templateRep = templateRep;
 }
コード例 #2
0
ファイル: RenderingService.cs プロジェクト: mr-sandy/kola
 public RenderingService(IContentRepository contentRepository, IWidgetSpecificationRepository widgetSpecificationRepository, IComponentSpecificationLibrary componentLibrary, IPluginContextProvider pluginContextProvider)
 {
     this.contentRepository = contentRepository;
     this.widgetSpecificationRepository = widgetSpecificationRepository;
     this.componentLibrary = componentLibrary;
     this.pluginContextProvider = pluginContextProvider;
 }
コード例 #3
0
		public ThemeServiceImpl(IContentRepository repository)
		{
			if (repository == null)
				throw new ArgumentNullException("repository");

			_repository = repository;
		}
コード例 #4
0
        public HomeControllerTests()
        {
            // Database setup
            var services = new ServiceCollection();
            services.AddEntityFramework()
                    .AddSqlServer()
                    .AddInMemoryDatabase()
                    .AddDbContext<DataDbContext>(options =>
                        options.UseInMemoryDatabase()
                    );

            // Dependencies initializations
            _pageConfiguration = new FakePageConfiguration();

            var optionsBuilder = new DbContextOptionsBuilder<DataDbContext>();
            optionsBuilder.UseInMemoryDatabase();
            _dataDbContext = new DataDbContext(optionsBuilder.Options);

            _contentRepository = new ContentRepository(_dataDbContext);
            _humanReadableContentService = new HumanReadableContentService(_pageConfiguration, _contentRepository);

            _languageManipulationService = new LanguageManipulationService();

            // Controller initialization
            _homeController = new PersonalWebsite.Controllers.HomeController(
                _pageConfiguration,
                _humanReadableContentService,
                _languageManipulationService
            );
        }
コード例 #5
0
 public ImportService(IContentRepository contentRepository, ReferenceConverter referenceConverter, IContentTypeRepository typeRepository, ILogger logger)
 {
     _contentRepository = contentRepository;
     _referenceConverter = referenceConverter;
     _typeRepository = typeRepository;
     _log = logger;
 }
コード例 #6
0
 public HomeController()
 {
     repo = ServiceProvider.Resolve<IContentRepository>();
     posList = (from x in repo.GetPositions()
                select new PositionItem { Index = index++, Value = x.Title })
                                 .ToArray();
 }
コード例 #7
0
        private void PublishChildren(IContentRepository repository, IContent root)
        {
            var children = repository.GetChildren<IContent>(root.ContentLink);

            foreach (IContent content in children)
            {

                try
                {
                    var imageContent = content as ImageData;
                    if (imageContent != null)
                    {
                        var unpublished = imageContent.CreateWritableClone() as ImageData;
                        repository.Save(unpublished, SaveAction.Publish);
                    }
                }
                catch (Exception e)
                {
                    _error.Add(e.Message);
                }
                if (_stopSignaled)
                {
                    break;
                }
                PublishChildren(repository, content);
            }
        }
コード例 #8
0
        private PageReference CreatePageFromJson(PageObject pageObject, PageReference parent, IContentRepository contentRepo)
        {
            BasePage newPage;
            switch (pageObject.Type)
            {
                case 0:
                    ArticlePage aPage = contentRepo.GetDefault<ArticlePage>(parent);
                    aPage.MainBody = pageObject.MainBodyText;
                    newPage = aPage;
                    break;
                case 1:
                    newPage = contentRepo.GetDefault<FolderPage>(parent);
                    break;
                case 2:
                    ListPage lPage = contentRepo.GetDefault<ListPage>(parent);
                    lPage.MainBody = pageObject.MainBodyText;
                    newPage = lPage;
                    break;
                case 3:
                    newPage = contentRepo.GetDefault<PersonPage>(parent);
                    break;
                case 4:
                    newPage = contentRepo.GetDefault<PortalPage>(parent);
                    break;
                default:
                    newPage = contentRepo.GetDefault<ArticlePage>(parent);
                    break;
            }

            newPage.PageName = pageObject.PageName;
            newPage.IntroText = pageObject.IntroText;
            contentRepo.Save(newPage, SaveAction.Publish);
            return newPage.PageLink;
        }
コード例 #9
0
		public ThemeServiceImpl(IContentRepository repository, string tempPath)
		{
			if (repository == null)
				throw new ArgumentNullException("repository");

			_repository = repository;
			_tempPath = HostingEnvironment.MapPath("~/App_Data/Uploads/");
		}
コード例 #10
0
ファイル: ContentController.cs プロジェクト: nubiancc/frapid
        public ContentController(IContentRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.ContentRepository = repository;
        }
コード例 #11
0
 private static string PageUrl(this UrlHelper urlHelper, PageReference pageLink, object routeValues, IContentRepository contentRepository)
 {
     if (contentRepository == null)
         contentRepository = ServiceLocator.Current.GetInstance<IContentRepository>();
     if (PageReference.IsNullOrEmpty(pageLink))
         return string.Empty;
     PageData page = contentRepository.Get<PageData>((ContentReference)pageLink);
     return UrlExtensions.PageUrl(urlHelper, page, routeValues);
 }
コード例 #12
0
 public PageRatingController()
 {
     _reviewService = ServiceLocator.Current.GetInstance<IReviewService>();
     _loader = ServiceLocator.Current.GetInstance<IContentLoader>();
     contentAssetHelper = ServiceLocator.Current.GetInstance<ContentAssetHelper>();
     _repository = ServiceLocator.Current.GetInstance<IContentRepository>();
     _urlResolver = ServiceLocator.Current.GetInstance<UrlResolver>();
     //_logger = logger;
 }
コード例 #13
0
ファイル: TagFactory.cs プロジェクト: Siim/AlloyDemoKit
        protected PageData FindParentByPageType(PageData pd, Type pagetype, IContentRepository contentLocator)
        {
            if (pd is BlogStartPage)
            {
                return pd;
            }
            return FindParentByPageType(contentLocator.Get<PageData>(pd.ParentLink), pagetype, contentLocator);

        }
コード例 #14
0
ファイル: TagsModule.cs プロジェクト: Sebbe/Tags
        public void Initialize(InitializationEngine context)
        {
            this._tagService = ServiceLocator.Current.GetInstance<ITagService>();
            this._contentTypeRepository = ServiceLocator.Current.GetInstance<IContentTypeRepository>();
            this._contentRepository = ServiceLocator.Current.GetInstance<IContentRepository>();
            this._contentVersionRepository = ServiceLocator.Current.GetInstance<IContentVersionRepository>();
            this._contentEvents = ServiceLocator.Current.GetInstance<IContentEvents>();

            this._contentEvents.PublishedContent += OnPublishedContent;
        }
コード例 #15
0
 protected SitemapXmlGenerator(ISitemapRepository sitemapRepository, IContentRepository contentRepository, UrlResolver urlResolver, SiteDefinitionRepository siteDefinitionRepository, ILanguageBranchRepository languageBranchRepository)
 {
     this.SitemapRepository = sitemapRepository;
     this.ContentRepository = contentRepository;
     this.UrlResolver = urlResolver;
     this.SiteDefinitionRepository = siteDefinitionRepository;
     this.LanguageBranchRepository = languageBranchRepository;
     this.EnabledLanguages = this.LanguageBranchRepository.ListEnabled();
     this._urlSet = new HashSet<string>();
 }
コード例 #16
0
ファイル: ArchiveService.cs プロジェクト: coodream/cms
 public ArchiveService(
     IContentRepository contentRep,
     ISiteRepository siteRep,
     IExtendFieldRepository extendRep
     )
 {
     this._contentRep = contentRep;
     this._siteRep = siteRep;
     this._extendRep = extendRep;
 }
コード例 #17
0
 public PageDataIndexer(ILanguageBranchRepository languageBranchRepository,IElasticClient elasticClient,
     CmsElasticSearchOptions options, IContentRepository contentRepository, IIndexableTypeMapperResolver indexableTypeMapperResolver, ILogger logger)
 {
     LanguageBranchRepository = languageBranchRepository;
     ElasticClient = elasticClient;
     Options = options;
     _contentRepository = contentRepository;
     _indexableTypeMapperResolver = indexableTypeMapperResolver;
     _logger = logger;
 }
コード例 #18
0
 public InstagramQuery(
     IContentQueryHelper queryHelper,
     IContentRepository contentRepository,
     SearchProvidersManager searchProvidersManager,
     LanguageSelectorFactory languageSelectorFactory)
     : base(contentRepository, queryHelper)
 {
     _contentRepository = contentRepository;
     _searchProvidersManager = searchProvidersManager;
     _languageSelectorFactory = languageSelectorFactory;
 }
コード例 #19
0
 public RelatedPagesNotQuery(
     IContentQueryHelper queryHelper,
     IContentRepository contentRepository,
     SearchProvidersManager searchProvidersManager,
     LanguageSelectorFactory languageSelectorFactory)
     : base(ServiceLocator.Current.GetInstance<IContentRepository>(),queryHelper)
 {
     _contentRepository = contentRepository;
     _searchProvidersManager = searchProvidersManager;
     _languageSelectorFactory = languageSelectorFactory;
 }
コード例 #20
0
		public PagesServiceImpl(IContentRepository repository, IBlobStorageProvider blobProvider, string tempPath)
		{
			if (repository == null)
				throw new ArgumentNullException("repository");

			if (blobProvider == null)
				throw new ArgumentNullException("blobProvider");

			_repository = repository;
			_blobProvider = blobProvider;
			_tempPath = HostingEnvironment.MapPath("~/App_Data/Uploads/");
		}
コード例 #21
0
 public EntryImporter(IContentRepository contentRepository,
     ReferenceConverter referenceConverter, IContentTypeRepository typeRepository,
     ILogger logger, UrlResolver urlResolver,
     IWarehouseRepository warehouseRepository,
     IWarehouseInventoryService inventoryService,
     IPriceService priceService)
     : base(contentRepository, referenceConverter, typeRepository, logger)
 {
     _urlResolver = urlResolver;
     _warehouseRepository = warehouseRepository;
     _inventoryService = inventoryService;
     _priceService = priceService;
 }
コード例 #22
0
        private static string GetTypeSpecificCssClasses(ContentAreaItem contentAreaItem, IContentRepository contentRepository)
        {
            var content = contentAreaItem.GetContent(contentRepository);
            var cssClass = content == null ? String.Empty : content.GetOriginalType().Name.ToLowerInvariant();

            var customClassContent = content as ICustomCssInContentArea;
            if (customClassContent != null && !string.IsNullOrWhiteSpace(customClassContent.ContentAreaCssClass))
            {
                cssClass += string.Format("{0}", customClassContent.ContentAreaCssClass);
            }

            return cssClass;
        }
コード例 #23
0
ファイル: ArchiveRepository.cs プロジェクト: AntonWong/cms
 public ArchiveRepository(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository templateRep,
     ICategoryRepository categoryRep,
     ILinkRepository linkRep
     )
 {
     this._contentRep = contentRep;
     this._extendRep = extendRep;
     this._templateRep = templateRep;
     this._categoryRep = categoryRep;
     this._linkRep = linkRep;
 }
コード例 #24
0
ファイル: BaseArchiveRepository.cs プロジェクト: coodream/cms
 /// <summary>
 /// 
 /// </summary>
 /// <param name="contentRep"></param>
 /// <param name="archiveRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="categoryRep"></param>
 /// <param name="templateRep"></param>
 /// <param name="linkRep"></param>
 /// <param name="id"></param>
 /// <param name="strId"></param>
 /// <param name="categoryId"></param>
 /// <param name="title"></param>
 /// <returns></returns>
 public IArchive CreateArchive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     ILinkRepository linkRep,
     int id,
     string strId,
     int categoryId,
     string title)
 {
     return new Archive(contentRep, archiveRep, linkRep, extendRep, categoryRep, templateRep, id, strId, categoryId, title);
 }
コード例 #25
0
ファイル: ContentController.cs プロジェクト: umerlone/frapid
        protected override void Initialize(HttpControllerContext context)
        {
            base.Initialize(context);

            if (this.ContentRepository == null)
            {
                this.ContentRepository = new Frapid.WebsiteBuilder.DataAccess.Content
                {
                    _Catalog = this.MetaUser.Catalog,
                    _LoginId = this.MetaUser.LoginId,
                    _UserId = this.MetaUser.UserId
                };
            }
        }
コード例 #26
0
ファイル: ContentController.cs プロジェクト: nubiancc/frapid
        public ContentController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.To<long>();
            this._UserId = AppUsers.GetCurrent().View.UserId.To<int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To<int>();
            this._Catalog = AppUsers.GetCatalog();

            this.ContentRepository = new Frapid.WebsiteBuilder.DataAccess.Content
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
コード例 #27
0
        public HumanReadableContentService(
            IPageConfiguration pageConfiguration,
            IContentRepository contentRespository)
        {
            if(pageConfiguration == null)
            {
                throw new ArgumentNullException(nameof(pageConfiguration));
            }

            if(contentRespository == null)
            {
                throw new ArgumentNullException(nameof(contentRespository));
            }
            _contentRepository = contentRespository;
            _pageConfiguration = pageConfiguration;
        }
コード例 #28
0
 /// <summary>
 /// Initializes a new instance of the ContentService class.
 /// </summary>
 /// <param name="contentRepository">Instance of content repository</param>
 /// <param name="blobDataRepository">Instance of Blob data repository</param>
 /// <param name="tagRepository">Instance of tagRepository</param>
 /// <param name="communityRepository">Instance of community repository</param>
 /// <param name="userRepository">Instance of User repository</param>
 public ContentService(
     IContentRepository contentRepository,
     IBlobDataRepository blobDataRepository,
     IRepositoryBase<Tag> tagRepository,
     ICommunityRepository communityRepository,
     IUserRepository userRepository,
     IRepositoryBase<OffensiveContent> offensiveContentRepository)
     : base(communityRepository, userRepository)
 {
     this._contentRepository = contentRepository;
     this._blobDataRepository = blobDataRepository;
     this._tagRepository = tagRepository;
     this._communityRepository = communityRepository;
     this._userRepository = userRepository;
     this._offensiveContentRepository = offensiveContentRepository;
 }
コード例 #29
0
        public MarkdownBaseController(IConfig config, 
            IMarkdownToHtml markdownToHtml,
            IContentRepository contentRepo,
            GitHelper gitHelper,
            IPathHelper pathHelper
            )
        {
            if (config == null) { throw new ArgumentNullException("config"); }
            if (markdownToHtml == null) { throw new ArgumentNullException("markdownToHtml"); }
            if (contentRepo == null) { throw new ArgumentNullException("contentRepo"); }

            this.Config = config;
            this.MarkdownToHtml = markdownToHtml;
            this.ContentRepo = contentRepo;
            this.PathHelper = pathHelper;
            this.GitHelper = gitHelper;
        }
コード例 #30
0
ファイル: BaseContent.cs プロジェクト: AntonWong/cms
        public BaseContent(
            IContentRepository contentRep,
            IExtendFieldRepository extendRep,
            ICategoryRepository categoryRep,
            ITemplateRepository templateRep,
            ILinkRepository linkRep,
            int id,
            int categoryId,
            string title)
        {
            this._contentRep = contentRep;
            this._linkRep = linkRep;
            this._extendRep = extendRep;
            this._categoryRep = categoryRep;
            this._templateRep = templateRep;

            this.ID = id;
            this._category = this._categoryRep.CreateCategory(categoryId, null);
            this.Title = title;
            this.ID = id;
        }
コード例 #31
0
 public ContentController(ContentService contentService, IContentRepository contentRepository)
 {
     ContentService    = contentService;
     ContentRepository = contentRepository;
 }
コード例 #32
0
 public StandardSitemapXmlGenerator(ISitemapRepository sitemapRepository, IContentRepository contentRepository, UrlResolver urlResolver, ISiteDefinitionRepository siteDefinitionRepository, ILanguageBranchRepository languageBranchRepository, IContentFilter contentFilter) : base(sitemapRepository, contentRepository, urlResolver, siteDefinitionRepository, languageBranchRepository, contentFilter)
 {
 }
コード例 #33
0
 public CommentManager(ICacheManager cacheManager, IPathManager pathManager, IPluginManager pluginManager, ISmsManager smsManager, IMailManager mailManager, ISettingsRepository settingsRepository, ITableStyleRepository tableStyleRepository, IContentRepository contentRepository, ICommentRepository commentRepository)
 {
     _cacheManager         = cacheManager;
     _pathManager          = pathManager;
     _pluginManager        = pluginManager;
     _smsManager           = smsManager;
     _mailManager          = mailManager;
     _settingsRepository   = settingsRepository;
     _tableStyleRepository = tableStyleRepository;
     _contentRepository    = contentRepository;
     _commentRepository    = commentRepository;
 }
コード例 #34
0
 public SubscriptionJob(IContentRepository contentRepository, LocalizationService localizationService, Gosso.EpiserverLegacy.DataAccess.Internal.SubscriptionDB subscriptionDataAccess, SiteDefinitionResolver siteDefinitionResolver, IUserImpersonation userImpersonation)
     : this(contentRepository, localizationService, subscriptionDataAccess, (ISiteDefinitionResolver)siteDefinitionResolver, ServiceLocator.Current.GetInstance <ILanguageBranchRepository>(), userImpersonation)
 {
 }
コード例 #35
0
        private static string GetTypeSpecificCssClasses(ContentAreaItem contentAreaItem, IContentRepository contentRepository)
        {
            var content  = contentAreaItem.GetContent();
            var cssClass = content == null ? String.Empty : content.GetOriginalType().Name.ToLowerInvariant();

            var customClassContent = content as ICustomCssInContentArea;

            if (customClassContent != null && !string.IsNullOrWhiteSpace(customClassContent.ContentAreaCssClass))
            {
                cssClass += string.Format(" {0}", customClassContent.ContentAreaCssClass);
            }

            return(cssClass);
        }
コード例 #36
0
 public ContentServices(IContentRepository Repository, IUnitOfWork unitOfWork)
 {
     this._Repository = Repository;
     this._unitOfWork = unitOfWork;
 }
コード例 #37
0
 public GenericPaymentController(IContentRepository contentRepository, IOrderRepository orderRepository)
 {
     _contentRepository = contentRepository;
     _orderRepository   = orderRepository;
     _siteConfiguration = SiteConfiguration.Current();
 }
コード例 #38
0
        public ConvertData(IAssetUrlGenerator assetUrlGenerator, IAssetRepository assetRepository, IContentRepository contentRepository)
        {
            Guard.NotNull(assetUrlGenerator);
            Guard.NotNull(assetRepository);
            Guard.NotNull(contentRepository);

            this.assetUrlGenerator = assetUrlGenerator;
            this.assetRepository   = assetRepository;
            this.contentRepository = contentRepository;
        }
コード例 #39
0
 public PropertyService(IContentLoader contentLoader, IContentRepository contentRepository)
 {
     _contentLoader     = contentLoader;
     _contentRepository = contentRepository;
 }
コード例 #40
0
ファイル: ChannelsController.cs プロジェクト: oushaonan/cms
 public ChannelsController(ICacheManager <CacheUtils.Process> cacheManager, IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IChannelGroupRepository channelGroupRepository, ITemplateRepository templateRepository, ITableStyleRepository tableStyleRepository)
 {
     _cacheManager           = cacheManager;
     _authManager            = authManager;
     _pathManager            = pathManager;
     _createManager          = createManager;
     _databaseManager        = databaseManager;
     _pluginManager          = pluginManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _channelGroupRepository = channelGroupRepository;
     _templateRepository     = templateRepository;
     _tableStyleRepository   = tableStyleRepository;
 }
コード例 #41
0
 public ImageRepository(IContentRepository contentRepository, IBlobFactory blobFactory)
 {
     _contentRepository = contentRepository;
     _blobFactory       = blobFactory;
 }
コード例 #42
0
 public ContentsLayerAddController(IAuthManager authManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository)
 {
     _authManager       = authManager;
     _createManager     = createManager;
     _siteRepository    = siteRepository;
     _channelRepository = channelRepository;
     _contentRepository = contentRepository;
 }
コード例 #43
0
 public TemplatesEditorController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IParseManager parseManager, ISiteRepository siteRepository, ITemplateRepository templateRepository, IChannelRepository channelRepository, IContentRepository contentRepository)
 {
     _authManager        = authManager;
     _pathManager        = pathManager;
     _createManager      = createManager;
     _parseManager       = parseManager;
     _siteRepository     = siteRepository;
     _templateRepository = templateRepository;
     _channelRepository  = channelRepository;
     _contentRepository  = contentRepository;
 }
コード例 #44
0
 public AddPaymentMethods(IContentRepository contentRepository,
                          ReferenceConverter referenceConverter,
                          IMarketService marketService) : base(contentRepository, referenceConverter, marketService)
 {
 }
コード例 #45
0
ファイル: RepositoryTests.cs プロジェクト: rbell/NeuCMS
 public void Setup()
 {
     _repository = new RepositoryFactory().UseEmbeddedRavenDB().ContentRepository();
 }
コード例 #46
0
 public ContentController(IContentRepository contentRepository)
 {
     _contentRepository = contentRepository;
 }
コード例 #47
0
 public FileBlobRepository(IContentRepository contentRepository, IContentTypeRepository contentTypeRepository)
 {
     _contentRepository     = contentRepository;
     _contentTypeRepository = contentTypeRepository;
 }
コード例 #48
0
 public SettingsContentController(IAuthManager authManager, ICensorManager censorManager, ISiteRepository siteRepository, IContentRepository contentRepository)
 {
     _authManager       = authManager;
     _censorManager     = censorManager;
     _siteRepository    = siteRepository;
     _contentRepository = contentRepository;
 }
コード例 #49
0
 public OrderService(IContentRepository contentRepository)
 {
     _contentRepository = contentRepository;
 }
コード例 #50
0
ファイル: EditorController.cs プロジェクト: ooyuan1984/cms-1
 public EditorController(ISettingsManager settingsManager, IAuthManager authManager, ICreateManager createManager, IPathManager pathManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ICensorManager censorManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository, ITableStyleRepository tableStyleRepository, ITemplateRepository templateRepository, IContentCheckRepository contentCheckRepository, ITranslateRepository translateRepository, IStatRepository statRepository)
 {
     _settingsManager        = settingsManager;
     _authManager            = authManager;
     _createManager          = createManager;
     _pathManager            = pathManager;
     _databaseManager        = databaseManager;
     _pluginManager          = pluginManager;
     _censorManager          = censorManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
     _contentTagRepository   = contentTagRepository;
     _tableStyleRepository   = tableStyleRepository;
     _templateRepository     = templateRepository;
     _contentCheckRepository = contentCheckRepository;
     _translateRepository    = translateRepository;
     _statRepository         = statRepository;
 }
コード例 #51
0
 public RecommendedProductsService(IContentRepository contentRepository, ReferenceConverter referenceConverter)
 {
     _contentRepository  = contentRepository;
     _referenceConverter = referenceConverter;
 }
コード例 #52
0
ファイル: ContentsController.cs プロジェクト: apphost/sscms
 public ContentsController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository)
 {
     _authManager            = authManager;
     _pathManager            = pathManager;
     _createManager          = createManager;
     _databaseManager        = databaseManager;
     _pluginManager          = pluginManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
     _contentTagRepository   = contentTagRepository;
 }
コード例 #53
0
ファイル: ContentService.cs プロジェクト: caizhiyuan/Floo
 public ContentService(IContentRepository contentStorage)
 {
     _contentStorage = contentStorage;
 }
コード例 #54
0
 public ImportMoviesScheduledJob(IContentLoader contentLoader, ReferenceConverter referenceConverter, IContentRepository contentRepository, IRelationRepository relationRepository, IImageRepository imageRepository, IPriceDetailService priceDetailService, IMarketService marketService)
 {
     _contentLoader      = contentLoader;
     _referenceConverter = referenceConverter;
     _contentRepository  = contentRepository;
     _relationRepository = relationRepository;
     _imageRepository    = imageRepository;
     IsStoppable         = true;
     _movieDbClient      = new MovieDbClient();
     _priceDetailService = priceDetailService;
     _marketService      = marketService;
 }
コード例 #55
0
 public HitsController(IContentRepository contentRepository, IHitsManager hitsManager)
 {
     _contentRepository = contentRepository;
     _hitsManager       = hitsManager;
 }
コード例 #56
0
 public AccountController(IContentRepository contentRepository, UrlResolver urlResolver)
 {
     _contentRepository = contentRepository;
     _urlResolver       = urlResolver;
 }
コード例 #57
0
 public ContentRepositoryTestHarness()
 {
     _fixture          = new Fixture();
     ContentRepository = new ContentRepository(RequestContext);
 }
コード例 #58
0
 public ContentsLayerGroupController(IAuthManager authManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository)
 {
     _authManager            = authManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
 }
コード例 #59
0
 public ContentsController()
 {
     _context = new StorehouseDBContext();
     _repo    = new ContentRepository(_context);
 }
コード例 #60
0
 public BlogPostDisplayModelMapper(
     IContentRepository contentRepository
     )
 {
     _contentRepository = contentRepository;
 }