public ManageMasterPages() { serviceLocator = SharePointServiceLocator.GetCurrent(); serviceMasterPages = serviceLocator.GetInstance <IMasterPageRepository>(); cmurl = SPContext.Current.Site.RootWeb.CustomMasterUrl; murl = SPContext.Current.Site.RootWeb.MasterUrl; }
public PageValidator(IImageAnalysisService imageAnalysisService, IMasterPageRepository masterPageRepository, IModelValidator modelValidator, IPageRepository pageRepository) { _imageAnalysisService = imageAnalysisService; _masterPageRepository = masterPageRepository; _modelValidator = modelValidator; _pageRepository = pageRepository; }
public PageService(IImageAnalysisService imageAnalysisService, IMasterPageRepository masterPageRepository, IPageRepository pageRepository, IPageValidator pageValidator, IStorageService storageService) { _imageAnalysisService = imageAnalysisService; _masterPageRepository = masterPageRepository; _pageRepository = pageRepository; _pageValidator = pageValidator; _storageService = storageService; }
/// <summary> /// Constructor sets dependent components. /// </summary> /// <param name="elementService">Used to retrieve, update and delete elements.</param> /// <param name="masterPageRepository">Master page repository.</param> /// <param name="masterPageValidator">Master page validator.</param> /// <param name="pageRepository">Page repository.</param> /// <param name="unitOfWorkFactory">For the creation of units of work to ensure transactional integrity.</param> public MasterPageService(IElementService elementService, IMasterPageRepository masterPageRepository, IMasterPageValidator masterPageValidator, IPageRepository pageRepository, IUnitOfWorkFactory unitOfWorkFactory) { _elementService = elementService; _masterPageRepository = masterPageRepository; _masterPageValidator = masterPageValidator; _pageRepository = pageRepository; _unitOfWorkFactory = unitOfWorkFactory; }
/// <summary> /// Constructor sets dependent components. /// </summary> /// <param name="elementService">For element interactions.</param> /// <param name="imageAnalysisService">Used to retrieve image properties from uploaded files and resize images.</param> /// <param name="masterPageRepository">Master page repository.</param> /// <param name="masterPageService">Master page service.</param> /// <param name="pageRepository">Page repository.</param> /// <param name="pageValidator">Page validator.</param> /// <param name="unitOfWorkFactory">Unit of work factory.</param> /// <param name="uploadService">For the management of uploads.</param> public PageService(IElementService elementService, IImageAnalysisService imageAnalysisService, IMasterPageRepository masterPageRepository, IMasterPageService masterPageService, IPageRepository pageRepository, IPageValidator pageValidator, IUnitOfWorkFactory unitOfWorkFactory, IUploadService uploadService) { _elementService = elementService; _imageAnalysisService = imageAnalysisService; _masterPageRepository = masterPageRepository; _masterPageService = masterPageService; _pageRepository = pageRepository; _pageValidator = pageValidator; _unitOfWorkFactory = unitOfWorkFactory; _uploadService = uploadService; }
/// <summary> /// Constructor sets dependent components. /// </summary> /// <param name="domainRepository">Domain repository.</param> /// <param name="elementService">Element service.</param> /// <param name="masterPageRepository">Master page repository.</param> /// <param name="pageService">Page service.</param> /// <param name="unitOfWorkFactory">Unit of work factory.</param> /// <param name="templateRepository">Template repository.</param> /// <param name="tenantRepository">Used to get new tenant identifier when website created.</param> /// <param name="webRepository">Web repository.</param> /// <param name="webValidator">Validates create, update and delete actions.</param> public WebService(IDomainRepository domainRepository, IElementService elementService, IMasterPageRepository masterPageRepository, IPageService pageService, IUnitOfWorkFactory unitOfWorkFactory, ITemplateRepository templateRepository, ITenantRepository tenantRepository, IWebRepository webRepository, IWebValidator webValidator) { _domainRepository = domainRepository; _elementService = elementService; _masterPageRepository = masterPageRepository; _pageService = pageService; _unitOfWorkFactory = unitOfWorkFactory; _templateRepository = templateRepository; _tenantRepository = tenantRepository; _webRepository = webRepository; _webValidator = webValidator; }
public MasterPageService(IMasterPageRepository masterPageRepository) { _masterPageRepository = masterPageRepository; }
public PageViewService(IMasterPageRepository masterPageRepository, IPageRepository pageRepository, IWebRepository webRepository) { _masterPageRepository = masterPageRepository; _pageRepository = pageRepository; _webRepository = webRepository; }
public PageViewService(IMasterPageRepository masterPageRepository, IPageRepository pageRepository, ITenantService tenantService) { _masterPageRepository = masterPageRepository; _pageRepository = pageRepository; _tenantService = tenantService; }