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; }
public Indexer( ICoreIndexer coreIndexer, IElasticSearchSettings elasticSearchSettings, ISiteDefinitionRepository siteDefinitionRepository, IContentLoader contentLoader, ContentAssetHelper contentAssetHelper) { _coreIndexer = coreIndexer; _elasticSearchSettings = elasticSearchSettings; _siteDefinitionRepository = siteDefinitionRepository; _contentLoader = contentLoader; _contentAssetHelper = contentAssetHelper; }
public CreateBlock( ContentType contentType, ContentReference parent, string name, IContentRepository repository, ContentAssetHelper helper) { ContentType = contentType; Parent = parent; Name = name; _repository = repository; _helper = helper; }
public UploadFile( string name, string file, ContentType contentType, ContentReference parent, CultureInfo language, ContentAssetHelper helper, IContentRepository repository, IBlobFactory blobFactory ) { Name = name; File = file; ContentType = contentType; Parent = parent; Language = language; _helper = helper; _repository = repository; _blobFactory = blobFactory; Validate(); }
public ImportAssetCommand(IContentRepository contentRepository, IContentTypeRepository contentTypeRepository, ContentMediaResolver contentMediaResolver, IBlobFactory blobFactory, ContentAssetHelper contentAssetHelper) { _repo = contentRepository; _trepo = contentTypeRepository; _mresolver = contentMediaResolver; _blobFactory = blobFactory; _contentAssetHelper = contentAssetHelper; }
static BlockHelper() { _repo = ServiceLocator.Current.GetInstance <IContentRepository>(); _contentLoader = ServiceLocator.Current.GetInstance <IContentLoader>(); _contentAssetHelper = ServiceLocator.Current.GetInstance <ContentAssetHelper>(); }
private static void DeleteContentInAssetFolders(IEnumerable <ContentReference> contentReferences, ContentAssetHelper assetHelper, IContentRepository repo, StringBuilder sb, IBlobFactory blobFactory) { foreach (ContentReference reference in contentReferences) { ContentAssetFolder folder = assetHelper.GetAssetFolder(reference); if (folder != null && folder.ContentLink != null) { var folderContents = repo.GetDescendents(folder.ContentLink); DeleteBlobs(folderContents, repo, sb, blobFactory); } } }
private static void DeleteContentInAssetFolders(IEnumerable<ContentReference> contentReferences, ContentAssetHelper assetHelper, IContentRepository repo, StringBuilder sb, BlobFactory blobFactory) { foreach (ContentReference reference in contentReferences) { ContentAssetFolder folder = assetHelper.GetAssetFolder(reference); if (folder != null && folder.ContentLink != null) { var folderContents = repo.GetDescendents(folder.ContentLink); DeleteBlobs(folderContents, repo, sb, blobFactory); } } }
public ReviewController(ReferenceConverter referenceConverter, IContentRepository contentRepository, ContentAssetHelper contentAssetHelper) { _referenceConverter = referenceConverter; _contentRepository = contentRepository; _contentAssetHelper = contentAssetHelper; }
public FixturesCode(IEpiServerDependencies epiServerDependencies, ContentAssetHelper contentAssetHelper) { _epiServerDependencies = epiServerDependencies; _contentAssetHelper = contentAssetHelper; }
public FixturesCode(IEpiServerDependencies epiServerDependencies, ContentAssetHelper contentAssetHelper) { _epiServerDependencies = epiServerDependencies; _contentAssetHelper = contentAssetHelper; }
static PageReferenceExtensions() { _repo = ServiceLocator.Current.GetInstance <IContentRepository>(); _contentAssetHelper = ServiceLocator.Current.GetInstance <ContentAssetHelper>(); }