コード例 #1
0
 public ManageMasterPages()
 {
     serviceLocator     = SharePointServiceLocator.GetCurrent();
     serviceMasterPages = serviceLocator.GetInstance <IMasterPageRepository>();
     cmurl = SPContext.Current.Site.RootWeb.CustomMasterUrl;
     murl  = SPContext.Current.Site.RootWeb.MasterUrl;
 }
コード例 #2
0
ファイル: PageValidator.cs プロジェクト: lulzzz/riverside-cms
 public PageValidator(IImageAnalysisService imageAnalysisService, IMasterPageRepository masterPageRepository, IModelValidator modelValidator, IPageRepository pageRepository)
 {
     _imageAnalysisService = imageAnalysisService;
     _masterPageRepository = masterPageRepository;
     _modelValidator       = modelValidator;
     _pageRepository       = pageRepository;
 }
コード例 #3
0
 public PageService(IImageAnalysisService imageAnalysisService, IMasterPageRepository masterPageRepository, IPageRepository pageRepository, IPageValidator pageValidator, IStorageService storageService)
 {
     _imageAnalysisService = imageAnalysisService;
     _masterPageRepository = masterPageRepository;
     _pageRepository       = pageRepository;
     _pageValidator        = pageValidator;
     _storageService       = storageService;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #7
0
 public MasterPageService(IMasterPageRepository masterPageRepository)
 {
     _masterPageRepository = masterPageRepository;
 }
コード例 #8
0
 public PageViewService(IMasterPageRepository masterPageRepository, IPageRepository pageRepository, IWebRepository webRepository)
 {
     _masterPageRepository = masterPageRepository;
     _pageRepository       = pageRepository;
     _webRepository        = webRepository;
 }
コード例 #9
0
 public PageViewService(IMasterPageRepository masterPageRepository, IPageRepository pageRepository, ITenantService tenantService)
 {
     _masterPageRepository = masterPageRepository;
     _pageRepository       = pageRepository;
     _tenantService        = tenantService;
 }