public ManageMasterPages()
 {
     serviceLocator     = SharePointServiceLocator.GetCurrent();
     serviceMasterPages = serviceLocator.GetInstance <IMasterPageRepository>();
     cmurl = SPContext.Current.Site.RootWeb.CustomMasterUrl;
     murl  = SPContext.Current.Site.RootWeb.MasterUrl;
 }
Example #2
0
 public PageValidator(IImageAnalysisService imageAnalysisService, IMasterPageRepository masterPageRepository, IModelValidator modelValidator, IPageRepository pageRepository)
 {
     _imageAnalysisService = imageAnalysisService;
     _masterPageRepository = masterPageRepository;
     _modelValidator       = modelValidator;
     _pageRepository       = pageRepository;
 }
Example #3
0
 public PageService(IImageAnalysisService imageAnalysisService, IMasterPageRepository masterPageRepository, IPageRepository pageRepository, IPageValidator pageValidator, IStorageService storageService)
 {
     _imageAnalysisService = imageAnalysisService;
     _masterPageRepository = masterPageRepository;
     _pageRepository       = pageRepository;
     _pageValidator        = pageValidator;
     _storageService       = storageService;
 }
Example #4
0
 /// <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;
 }
Example #5
0
 /// <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;
 }
Example #6
0
 /// <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;
 }
Example #8
0
 public PageViewService(IMasterPageRepository masterPageRepository, IPageRepository pageRepository, IWebRepository webRepository)
 {
     _masterPageRepository = masterPageRepository;
     _pageRepository       = pageRepository;
     _webRepository        = webRepository;
 }
Example #9
0
 public PageViewService(IMasterPageRepository masterPageRepository, IPageRepository pageRepository, ITenantService tenantService)
 {
     _masterPageRepository = masterPageRepository;
     _pageRepository       = pageRepository;
     _tenantService        = tenantService;
 }