예제 #1
0
        public SitePublisher
        (
            ConnectDbContext connectDb,
            ConnectCoreOptions coreOptions,
            IdentityDbContext identityDb,
            SiteTemplateManager templateManager,
            PageMasterManager masterPageManager,
            PageManager pageManager,
            ContentManager contentManager,
            ClientManager clientManager,
            IFolderManager <FileDocument> folderManager
        )
        {
            _connectDb         = connectDb;
            _identityDb        = identityDb;
            _templateManager   = templateManager;
            _contentManager    = contentManager;
            _clientManager     = clientManager;
            _folderManager     = folderManager;
            _pageManager       = pageManager;
            _masterPageManager = masterPageManager;
            _coreOptions       = coreOptions;

            _defaultDataFolder = _coreOptions.FileSystemRoot + "\\data\\json\\seeddata";
        }
예제 #2
0
 public PageMasterManager(ContentManager contentManager, SiteTemplateManager templateManager, ConnectDbContext dbContext, ConnectCoreOptions coreOptions)
 {
     _db              = dbContext;
     _contentManager  = contentManager;
     _templateManager = templateManager;
     _coreOptions     = coreOptions;
 }
예제 #3
0
 public SiteManager
 (
     ConnectDbContext dbContext,
     TenantManager oidcTenantManager,
     DirectoryManager oidcDirectoryManager,
     SecurityPoolManager oidcPoolManager,
     SiteTemplateManager templateManager,
     ClientManager clientManager,
     ConnectCoreOptions coreOptions
 )
 {
     _db = dbContext;
     _templateManager      = templateManager;
     _oidcTenantManager    = oidcTenantManager;
     _oidcDirectoryManager = oidcDirectoryManager;
     _oidcPoolManager      = oidcPoolManager;
     _clientManager        = clientManager;
     _coreOptions          = coreOptions;
 }
예제 #4
0
        public SiteTemplateExporter
        (
            ConnectDbContext connectDb,
            ConnectCoreOptions coreOptions,
            ContentManager contentManager,
            WidgetProvider widgetProvider,
            SiteManager siteManager,
            SiteTemplateManager templateManager,
            PageMasterManager masterPageManager,
            PageManager pageManger,
            DbLogService logger
        )
        {
            _connectDb         = connectDb;
            _coreOptions       = coreOptions;
            _contentManager    = contentManager;
            _siteManager       = siteManager;
            _widgetProvider    = widgetProvider;
            _templateManager   = templateManager;
            _masterPageManager = masterPageManager;
            _pageManager       = pageManger;
            _logger            = logger;

            _exportRootFolder = Path.Combine(_coreOptions.FileSystemRoot, _coreOptions.TemplateExportPath.Replace("/", @"\"));

            _masterPageMap = new Dictionary <string, SiteTemplateMasterPage>();
            _pageMap       = new Dictionary <string, SiteTemplatePage>();

            _jsonSettings = new JsonSerializerSettings
            {
                Formatting            = Formatting.Indented,
                ContractResolver      = new CamelCasePropertyNamesContractResolver(),
                ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
                NullValueHandling     = NullValueHandling.Ignore,
            };
        }
예제 #5
0
 public ProductManager(ConnectDbContext dbContext, ConnectCoreOptions options, SiteTemplateManager templateManager)
 {
     _db              = dbContext;
     _options         = options;
     _templateManager = templateManager;
 }