コード例 #1
0
 public ContentModelUsageCommand(IContentModelUsage modelUsage, IContentTypeRepository typeRepository)
 {
     _modelUsage     = modelUsage;
     _typeRepository = typeRepository;
     UseDictionary   = false;
     ListContent     = false;
 }
コード例 #2
0
        public TypesCounter()
        {
            IsStoppable = false;

            _contentTypeRepository = ServiceLocator.Current.GetInstance <IContentTypeRepository>();
            _contentModelUsage     = ServiceLocator.Current.GetInstance <IContentModelUsage>();
            _contentRepository     = ServiceLocator.Current.GetInstance <IContentRepository>();
            _localizationService   = LocalizationService.Current;
        }
コード例 #3
0
 public ContentFinderFinder(
     IContentLoader contentLoader,
     IContentTypeRepository contentTypeRepository,
     IContentModelUsage contentModelUsage)
 {
     _contentLoader         = contentLoader;
     _contentTypeRepository = contentTypeRepository;
     _contentModelUsage     = contentModelUsage;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AddonInitializer"/> class.
 /// </summary>
 /// <param name="contentRepository">The content repository.</param>
 /// <param name="contentTypeRepository">The content type repository.</param>
 /// <param name="contentModelUsage">The content model usage.</param>
 /// <param name="languageSelectorFactory">The language selector factory.</param>
 /// <param name="configurationProvider">The configuration provider.</param>
 public AddonInitializer(IContentRepository contentRepository, IContentTypeRepository contentTypeRepository,
                         IContentModelUsage contentModelUsage, LanguageSelectorFactory languageSelectorFactory,
                         IConfigurationProvider configurationProvider)
 {
     _contentRepository       = contentRepository;
     _contentTypeRepository   = contentTypeRepository;
     _contentModelUsage       = contentModelUsage;
     _languageSelectorFactory = languageSelectorFactory;
     _configurationProvider   = configurationProvider;
 }
コード例 #5
0
 public EpiFormDataExport(Guid formTypeId, int homePageId)
 {
     _formTypeId            = formTypeId;
     _homePage              = new ContentReference(homePageId);
     _contentTypeRepository = ServiceLocator.Current.GetInstance <IContentTypeRepository>();
     _contentModelUsage     = ServiceLocator.Current.GetInstance <IContentModelUsage>();
     _permanentStorate      = ServiceLocator.Current.GetInstance <IPermanentStorage>();
     _contentLoader         = ServiceLocator.Current.GetInstance <IContentLoader>();
     _contentRepository     = ServiceLocator.Current.GetInstance <IContentRepository>();
     _formContentType       = _contentTypeRepository.Load(_formTypeId);
 }
コード例 #6
0
 public CmsAuditor(IContentTypeRepository contentTypeRepository, IContentModelUsage contentModelUsage,
                   IContentRepository contentRepository, ISiteDefinitionResolver siteDefinitionResolver,
                   ISiteDefinitionRepository siteDefinitionRepository, IVisitorGroupRepository vgRepo, IScheduledJobRepository scheduledJobRepo)
 {
     _contentTypeRepository    = contentTypeRepository;
     _contentModelUsage        = contentModelUsage;
     _contentRepository        = contentRepository;
     _siteDefinitionResolver   = siteDefinitionResolver;
     _siteDefinitionRepository = siteDefinitionRepository;
     _vgRepo           = vgRepo;
     _scheduledJobRepo = scheduledJobRepo;
 }
コード例 #7
0
 public InaccessibleContentLocator()
 {
     _contentTypeRepository = ServiceLocator.Current.GetInstance <IContentTypeRepository>();
     _contentModelUsage     = ServiceLocator.Current.GetInstance <IContentModelUsage>();
     _contentRepository     = ServiceLocator.Current.GetInstance <IContentRepository>();
 }
コード例 #8
0
 public ExportImportEpiFormSubmissionDataController(IContentTypeRepository contentTypeRepository, IContentModelUsage contentModelUsage)
 {
     _contentTypeRepository = contentTypeRepository;
     _contentModelUsage     = contentModelUsage;
 }