public ContentModelUsageCommand(IContentModelUsage modelUsage, IContentTypeRepository typeRepository) { _modelUsage = modelUsage; _typeRepository = typeRepository; UseDictionary = false; ListContent = false; }
public TypesCounter() { IsStoppable = false; _contentTypeRepository = ServiceLocator.Current.GetInstance <IContentTypeRepository>(); _contentModelUsage = ServiceLocator.Current.GetInstance <IContentModelUsage>(); _contentRepository = ServiceLocator.Current.GetInstance <IContentRepository>(); _localizationService = LocalizationService.Current; }
public ContentFinderFinder( IContentLoader contentLoader, IContentTypeRepository contentTypeRepository, IContentModelUsage contentModelUsage) { _contentLoader = contentLoader; _contentTypeRepository = contentTypeRepository; _contentModelUsage = contentModelUsage; }
/// <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; }
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); }
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; }
public InaccessibleContentLocator() { _contentTypeRepository = ServiceLocator.Current.GetInstance <IContentTypeRepository>(); _contentModelUsage = ServiceLocator.Current.GetInstance <IContentModelUsage>(); _contentRepository = ServiceLocator.Current.GetInstance <IContentRepository>(); }
public ExportImportEpiFormSubmissionDataController(IContentTypeRepository contentTypeRepository, IContentModelUsage contentModelUsage) { _contentTypeRepository = contentTypeRepository; _contentModelUsage = contentModelUsage; }