public PagesController(IPageService pageService, IPageTemplateService pageTemplateService, IClientNavigationService clientNavigationService, IBodyTemplateService bodyTemplateService) { _pageService = pageService; _pageTemplateService = pageTemplateService; _clientNavigationService = clientNavigationService; _bodyTemplateService = bodyTemplateService; }
public WebFrameworkServiceBinder( IDomainService domainService, IClientAssetConfigService clientAssetConfigService, IClientAssetService clientAssetService, IClientAssetTypeService clientAssetTypeService, IPageService pageService, IPageTemplateService pageTemplateService, IPageTemplateZoneMapService pageTemplateZoneMapService, IPageZoneService pageZoneService, IPartService partService, IPartTypeService partTypeService, ISeoDecoratorService seoDecoratorService, IUserService userService, IPartContainerService partContainerService) { this.domainService = domainService; this.clientAssetConfigService = clientAssetConfigService; this.clientAssetService = clientAssetService; this.clientAssetTypeService = clientAssetTypeService; this.pageService = pageService; this.pageTemplateService = pageTemplateService; this.pageTemplateZoneMapService = pageTemplateZoneMapService; this.pageZoneService = pageZoneService; this.partService = partService; this.partTypeService = partTypeService; this.seoDecoratorService = seoDecoratorService; this.userService = userService; this.partContainerService = partContainerService; }
/// <summary> /// Initializes a new instance of the <see cref="WebFrameworkController"/> class. /// </summary> /// <param name="domainService"> /// The domain service. /// </param> /// <param name="clientAssetTypeService"> </param> /// <param name="pageService"> /// The page service. /// </param> /// <param name="pageTemplateService"> /// The page template service. /// </param> /// <param name="pageTemplateZoneMapService"> /// The page template zone map service. /// </param> /// <param name="pageZoneService"> /// The page zone service. /// </param> /// <param name="partService"> /// The part service. /// </param> /// <param name="partTypeService"> /// The part type service. /// </param> /// <param name="seoDecoratorService"> /// The seo decorator service. /// </param> /// <param name="userService"> /// The user service. /// </param> /// <param name="clientAssetConfigService"> </param> /// <param name="clientAssetService"> </param> /// <param name="partContainerService"> </param> public WebFrameworkController( IDomainService domainService, IClientAssetConfigService clientAssetConfigService, IClientAssetService clientAssetService, IClientAssetTypeService clientAssetTypeService, IPageService pageService, IPageTemplateService pageTemplateService, IPageTemplateZoneMapService pageTemplateZoneMapService, IPageZoneService pageZoneService, IPartService partService, IPartTypeService partTypeService, ISeoDecoratorService seoDecoratorService, IUserService userService, IPartContainerService partContainerService) { this.modelBinder = new WebFrameworkServiceBinder( domainService, clientAssetConfigService, clientAssetService, clientAssetTypeService, pageService, pageTemplateService, pageTemplateZoneMapService, pageZoneService, partService, partTypeService, seoDecoratorService, userService, partContainerService); }
/// <summary> /// Check if file exist in physical path or not, if not search in db template /// </summary> /// <param name="virtualPath"></param> /// <returns></returns> public override bool FileExists(string virtualPath) { _pageTemplateService = HostContainer.GetInstance <IPageTemplateService>(); if (virtualPath.IsDBTemplateMaster()) { return(_pageTemplateService.IsPageTemplateExisted(virtualPath)); } return(base.FileExists(virtualPath)); }
protected override void PostFixtureSetup() { _unitOfWorkMock = new Mock <IUnitOfWork>(); _dbContextMock = new Mock <IDbContext>(); _unitOfWorkMock.Setup(x => x.Context).Returns(_dbContextMock.Object); _pageNodeServiceMock = new Mock <IPageNodeService>(); _propertyTemplateServiceMock = new Mock <IPagePropertyTemplateService>(); _pageTemplateService = new PageTemplateService(_unitOfWorkMock.Object, _pageNodeServiceMock.Object, _propertyTemplateServiceMock.Object); }
public TemplateEngine(IUnitOfWork unitOfWork, ISectionTemplateService sectionTemplateService, IPageTemplateService pageTemplateService, IPagePropertyTemplateService propertyTemplateService) { _unitOfWork = unitOfWork; _sectionTemplateService = sectionTemplateService; _pageTemplateService = pageTemplateService; _propertyTemplateService = propertyTemplateService; }
public InsertPopupViewModel(int templateId, int?languageId, string assemblingType, bool presentationOrCodeBehind, bool isContainer, bool isForm, int?contentId, int?pageId, IPageTemplateService service) { Functions = HighlightedTAreaToolbarHelper.FunctionsAsListItems(languageId, assemblingType, presentationOrCodeBehind, isContainer); ContainerProps = HighlightedTAreaToolbarHelper.ContainerInfoPropertiesAsListItems(languageId, assemblingType, presentationOrCodeBehind); IsContainer = isContainer; IsForm = isForm; _templateId = templateId; _service = service; _pageId = pageId; _contentId = contentId; InitDdls(); }
/// <summary> /// Initializes a new instance of the <see cref="PageDefinitionServiceBinder"/> class. /// </summary> /// <param name="pageService"> /// The page service. /// </param> /// <param name="pageTemplateService"> /// The page template service. /// </param> public PageDefinitionServiceBinder( IPageService pageService, IPageTemplateService pageTemplateService, IPageTemplateZoneMapService templateZoneMapService, IPartService partService, IPartTypeService partTypeService) { this.pageService = pageService; this.pageTemplateService = pageTemplateService; this.templateZoneMapService = templateZoneMapService; this.partService = partService; this.partTypeService = partTypeService; }
public void SetupFixture() { Container = new Container(); Container.Register(new List <IRegistry> { new CmsIocModule(), new ServicesNinjectModule(), new DataNinectModule() }); UnitOfWork = Container.Resolve <IUnitOfWork>(); SectionTemplateService = Container.Resolve <ISectionTemplateService>(); PageTemplateService = Container.Resolve <IPageTemplateService>(); SectionNodeService = Container.Resolve <ISectionNodeService>(); PageNodeService = Container.Resolve <IPageNodeService>(); PropertyTemplateService = Container.Resolve <IPagePropertyTemplateService>(); PropertyService = Container.Resolve <IPagePropertyService>(); PostFixtureSetup(); }
public void SetupFixture() { _container = new Container(); _container.Register(new List <IRegistry> { new CmsIocModule(), new ServicesNinjectModule(), new DataNinectModule() }); _unitOfWork = _container.Resolve <IUnitOfWork>(); _dbContext = _container.Resolve <IDbContext>(); _sectionTemplateService = _container.Resolve <ISectionTemplateService>(); _pageTemplateService = _container.Resolve <IPageTemplateService>(); _templateEngine = _container.Resolve <ITemplateEngine>(); _assembly = Assembly.GetExecutingAssembly(); DeleteAllSectionTemplates(); }
/// <summary> /// Initializes a new instance of the <see cref="CmsPageManagerController"/> class. /// </summary> /// <param name="pageService"> /// The page service. /// </param> /// <param name="pageTemplateService"> /// The page Template Service. /// </param> /// <param name="pageControllerActionService"> /// The page Controller Action Service. /// </param> /// <param name="partTypeService"> /// The part Type Service. /// </param> /// <param name="partService"> /// The part Service. /// </param> /// <param name="seoDecoratorService">the seo decorator service</param> public CmsPageManagerController( IPageService pageService, IPageTemplateService pageTemplateService, IPageControllerActionService pageControllerActionService, IPartTypeService partTypeService, IPartService partService, ISeoDecoratorService seoDecoratorService, IRoleService roleService, IRolePageRestrictionService rolePageRestrictionService) { this.pageService = pageService; this.seoDecoratorService = seoDecoratorService; this.pageTemplateService = pageTemplateService; this.pageControllerActionService = pageControllerActionService; this.partTypeService = partTypeService; this.partService = partService; this.seoDecoratorService = seoDecoratorService; this.roleService = roleService; this.rolePageRestrictionService = rolePageRestrictionService; this.ViewBag.AddInfo = "AdditionalInfo"; }
public PageManageModel() { _pageService = HostContainer.GetInstance <IPageService>(); _bodyTemplateService = HostContainer.GetInstance <IBodyTemplateService>(); _pageTemplateService = HostContainer.GetInstance <IPageTemplateService>(); _fileTemplateService = HostContainer.GetInstance <IFileTemplateService>(); var styleService = HostContainer.GetInstance <IStyleService>(); var socialMediaTokenService = HostContainer.GetInstance <ISocialMediaTokenService>(); int position; int relativePageId; var relativePages = _pageService.GetRelativePages(out position, out relativePageId); StatusList = _pageService.GetStatus(); Parents = _pageService.GetPossibleParents(); PageTemplates = _pageTemplateService.GetPageTemplateSelectList(); FileTemplates = _fileTemplateService.GetFileTemplates(); Positions = EnumUtilities.GenerateSelectListItems <PageEnums.PagePosition>(); PageSecurityModels = _pageService.GetPageSecurities(); BodyTemplates = _bodyTemplateService.GetBodyTemplates(); IncludedStyles = styleService.GetIncludedStyles(); Position = position; RelativePageId = relativePageId; RelativePages = relativePages; IncludeInSiteNavigation = true; DisableNavigationCascade = false; Log = new SubscriptionLogManageModel(); Notify = new NotificationInitializeModel(NotificationEnums.NotificationModule.Page, new NotificationPageParameterModel { Id = -1 }); SocialMessages = socialMediaTokenService.GetAvailableSocialMediaMessageModels(); SEOScoring = new SEOScoringModel(); }
public FileTemplatesController(IFileTemplateService fileTemplateService, IPageTemplateService pageTemplateService) { _fileTemplateService = fileTemplateService; _pageTemplateService = pageTemplateService; }
public PageTemplateController(IPageTemplateService pageTemplateService) { _pageTemplateService = pageTemplateService; }
/// <summary> /// Initializes a new instance of the <see cref="CmsPageManagerServiceBinder"/> class. /// </summary> /// <param name="pageService"> /// The page service. /// </param> /// <param name="pageTemplateService"> /// The page template service. /// </param> public CmsDashboardServiceBinder(IPageService pageService, IPageTemplateService pageTemplateService) { this.pageService = pageService; this.pageTemplateService = pageTemplateService; }
internal static PageTemplateViewModel Create(BLL.PageTemplate template, string tabId, int parentId, IPageTemplateService pageTemplateService) { var model = Create <PageTemplateViewModel>(template, tabId, parentId); model._service = pageTemplateService; return(model); }
public void Cleanup() { service = null; }
public FileTemplateManageModel() { _pageTemplateService = HostContainer.GetInstance <IPageTemplateService>(); PageTemplates = _pageTemplateService.GetPageTemplateSelectListForFileTemplate(); }
public PageTemplatesController(IPageTemplateService pageTemplateService) { this.pageTemplateService = pageTemplateService; }
public void Init() { TestHarness.ResetDatabase(); service = new PageTemplateService(TestHarness.GetPortalContext()); }
/// <summary> /// Initializes a new instance of the <see cref="PageServiceBinder"/> class. /// </summary> /// <param name="pageService"> /// The page service. /// </param> /// <param name="pageTemplateService"> /// The page template service. /// </param> public PageServiceBinder(IPageService pageService, IPageTemplateService pageTemplateService) { this.pageService = pageService; this.pageTemplateService = pageTemplateService; }
public PageTemplateManageModel() { _pageTemplateService = HostContainer.GetInstance <IPageTemplateService>(); Content = EzCMSContants.RenderBody; Parents = _pageTemplateService.GetPossibleParents(); }
/// <summary> /// Get file template from virtual path /// </summary> /// <param name="virtualPath"></param> /// <returns></returns> private PageTemplate FindTemplate(string virtualPath) { _pageTemplateService = HostContainer.GetInstance <IPageTemplateService>(); return(_pageTemplateService.FindTemplate(virtualPath)); }
public SectionTemplateService(IUnitOfWork unitOfWork, IPageTemplateService pageTemplateService) { _unitOfWork = unitOfWork; _pageTemplateService = pageTemplateService; }
public static SearchInFormatsViewModel Create(string tabId, int parentId, int siteId, IPageTemplateService service, int?templateId = null, int?pageId = null) { var model = Create <SearchInFormatsViewModel>(tabId, parentId); model._service = service; model.PageId = pageId; model.TemplateId = templateId; model.SiteId = siteId; return(model); }
public static SearchInObjectsViewModel Create(string tabId, int parentId, int siteId, IPageTemplateService service) { var model = Create <SearchInObjectsViewModel>(tabId, parentId); model._service = service; model.SiteId = siteId; return(model); }