public CreateFileController(IAuthManager authManager, ICreateManager createManager, ISiteRepository siteRepository, ITemplateRepository templateRepository) { _authManager = authManager; _createManager = createManager; _siteRepository = siteRepository; _templateRepository = templateRepository; }
public ChannelsLayerCreateController(IAuthManager authManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository) { _authManager = authManager; _createManager = createManager; _siteRepository = siteRepository; _channelRepository = channelRepository; }
public CreateSpecialController(IAuthManager authManager, ICreateManager createManager, ISiteRepository siteRepository, ISpecialRepository specialRepository) { _authManager = authManager; _createManager = createManager; _siteRepository = siteRepository; _specialRepository = specialRepository; }
public TemplatesEditorController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, ISiteRepository siteRepository, ITemplateRepository templateRepository) { _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _siteRepository = siteRepository; _templateRepository = templateRepository; }
public ContentsLayerTaxisController(IAuthManager authManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository) { _authManager = authManager; _createManager = createManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; }
public TemplatesSpecialController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, ISiteRepository siteRepository, ISpecialRepository specialRepository) { _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _siteRepository = siteRepository; _specialRepository = specialRepository; }
public ActionsTriggerController(ICreateManager createManager, IPathManager pathManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository) { _createManager = createManager; _pathManager = pathManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; }
public SettingsCreateRuleController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository) { _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; }
public CreatePageController(IAuthManager authManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, ITemplateRepository templateRepository) { _authManager = authManager; _createManager = createManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; _templateRepository = templateRepository; }
public ChannelsController(IAuthManager authManager, ICreateManager createManager, IAccessTokenRepository accessTokenRepository, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository) { _authManager = authManager; _createManager = createManager; _accessTokenRepository = accessTokenRepository; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; }
public TemplatesController(ISettingsManager settingsManager, IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository, ITemplateRepository templateRepository) { _settingsManager = settingsManager; _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _templateRepository = templateRepository; }
public ContentsLayerWordController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IErrorLogRepository errorLogRepository) { _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; _errorLogRepository = errorLogRepository; }
public ContentsLayerImportController(ICacheManager cacheManager, IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IDatabaseManager databaseManager, ISiteRepository siteRepository, IChannelRepository channelRepository) { _cacheManager = cacheManager; _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _databaseManager = databaseManager; _siteRepository = siteRepository; _channelRepository = channelRepository; }
public ContentsLayerWordController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, ITableStyleRepository tableStyleRepository) { _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; _tableStyleRepository = tableStyleRepository; }
public TemplatesEditorController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IParseManager parseManager, ISiteRepository siteRepository, ITemplateRepository templateRepository, IChannelRepository channelRepository, IContentRepository contentRepository) { _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _parseManager = parseManager; _siteRepository = siteRepository; _templateRepository = templateRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; }
public ContentsLayerCopyController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository) { _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _databaseManager = databaseManager; _pluginManager = pluginManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; }
public SitesAddController(ICacheManager <CacheUtils.Process> cacheManager, ISettingsManager settingsManager, IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IDatabaseManager databaseManager, ISiteRepository siteRepository, IContentRepository contentRepository, IAdministratorRepository administratorRepository) { _cacheManager = cacheManager; _settingsManager = settingsManager; _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _databaseManager = databaseManager; _siteRepository = siteRepository; _contentRepository = contentRepository; _administratorRepository = administratorRepository; }
public ContentsSearchController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IDatabaseManager databaseManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository) { _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _databaseManager = databaseManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; _contentGroupRepository = contentGroupRepository; _contentTagRepository = contentTagRepository; }
public ContentsController(IAuthManager authManager, ICreateManager createManager, IParseManager parseManager, IDatabaseManager databaseManager, IPathManager pathManager, IAccessTokenRepository accessTokenRepository, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentCheckRepository contentCheckRepository) { _authManager = authManager; _createManager = createManager; _parseManager = parseManager; _databaseManager = databaseManager; _pathManager = pathManager; _accessTokenRepository = accessTokenRepository; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; _contentCheckRepository = contentCheckRepository; }
public ChannelsController(ICacheManager <CacheUtils.Process> cacheManager, IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IDatabaseManager databaseManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IChannelGroupRepository channelGroupRepository, ITemplateRepository templateRepository, ITableStyleRepository tableStyleRepository) { _cacheManager = cacheManager; _authManager = authManager; _pathManager = pathManager; _createManager = createManager; _databaseManager = databaseManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; _channelGroupRepository = channelGroupRepository; _templateRepository = templateRepository; _tableStyleRepository = tableStyleRepository; }
public EditorController(IAuthManager authManager, ICreateManager createManager, IPathManager pathManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository, ITableStyleRepository tableStyleRepository, IContentCheckRepository contentCheckRepository) { _authManager = authManager; _createManager = createManager; _pathManager = pathManager; _databaseManager = databaseManager; _pluginManager = pluginManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; _contentGroupRepository = contentGroupRepository; _contentTagRepository = contentTagRepository; _tableStyleRepository = tableStyleRepository; _contentCheckRepository = contentCheckRepository; }
public CreateJob(ISettingsManager settingsManager, IDatabaseManager databaseManager, ICreateManager createManager) { _settingsManager = settingsManager; _databaseManager = databaseManager; _createManager = createManager; _options = new OptionSet { { "d|directory=", "Site directory name", v => _directory = v }, { "h|help", "Display help", v => _isHelp = v != null } }; }
public EditorController(ISettingsManager settingsManager, IAuthManager authManager, ICreateManager createManager, IPathManager pathManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ICensorManager censorManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository, ITableStyleRepository tableStyleRepository, ITemplateRepository templateRepository, IContentCheckRepository contentCheckRepository, ITranslateRepository translateRepository, IStatRepository statRepository) { _settingsManager = settingsManager; _authManager = authManager; _createManager = createManager; _pathManager = pathManager; _databaseManager = databaseManager; _pluginManager = pluginManager; _censorManager = censorManager; _siteRepository = siteRepository; _channelRepository = channelRepository; _contentRepository = contentRepository; _contentGroupRepository = contentGroupRepository; _contentTagRepository = contentTagRepository; _tableStyleRepository = tableStyleRepository; _templateRepository = templateRepository; _contentCheckRepository = contentCheckRepository; _translateRepository = translateRepository; _statRepository = statRepository; }
public CreateStatusController(IAuthManager authManager, ICreateManager createManager) { _authManager = authManager; _createManager = createManager; }
public CreateStatusController(ICreateManager createManager) { _createManager = createManager; }
public static async Task TranslateAsync(IPathManager pathManager, IDatabaseManager databaseManager, IPluginManager pluginManager, Site site, int channelId, int contentId, int targetSiteId, int targetChannelId, TranslateType translateType, ICreateManager createManager, int adminId) { if (site == null || channelId <= 0 || contentId <= 0 || targetSiteId <= 0 || targetChannelId <= 0) { return; } var targetSite = await databaseManager.SiteRepository.GetAsync(targetSiteId); var targetChannelInfo = await databaseManager.ChannelRepository.GetAsync(targetChannelId); var channel = await databaseManager.ChannelRepository.GetAsync(channelId); var contentInfo = await databaseManager.ContentRepository.GetAsync(site, channel, contentId); if (contentInfo == null) { return; } contentInfo = contentInfo.Clone <Content>(); if (translateType == TranslateType.Copy) { await pathManager.MoveFileByContentAsync(site, targetSite, contentInfo); contentInfo.SiteId = targetSiteId; contentInfo.SourceId = contentInfo.ChannelId; contentInfo.ChannelId = targetChannelId; contentInfo.Taxis = 0; var theContentId = await databaseManager.ContentRepository.InsertAsync(targetSite, targetChannelInfo, contentInfo); var handlers = pluginManager.GetExtensions <PluginContentHandler>(); foreach (var handler in handlers) { try { handler.OnTranslated(site.Id, channel.Id, contentId, targetSiteId, targetChannelId, theContentId); await handler.OnTranslatedAsync(site.Id, channel.Id, contentId, targetSiteId, targetChannelId, theContentId); } catch (Exception ex) { await databaseManager.ErrorLogRepository.AddErrorLogAsync(ex); } } //foreach (var plugin in oldPluginManager.GetPlugins()) //{ // try // { // plugin.OnContentTranslateCompleted(new ContentTranslateEventArgs(site.Id, channel.Id, contentId, targetSiteId, targetChannelId, theContentId)); // } // catch (Exception ex) // { // await databaseManager.ErrorLogRepository.AddErrorLogAsync(plugin.PluginId, ex, nameof(plugin.OnContentTranslateCompleted)); // } //} await createManager.CreateContentAsync(targetSite.Id, contentInfo.ChannelId, theContentId); await createManager.TriggerContentChangedEventAsync(targetSite.Id, contentInfo.ChannelId); } else if (translateType == TranslateType.Cut) { await pathManager.MoveFileByContentAsync(site, targetSite, contentInfo); contentInfo.SiteId = targetSiteId; contentInfo.SourceId = contentInfo.ChannelId; contentInfo.ChannelId = targetChannelId; contentInfo.Taxis = 0; var newContentId = await databaseManager.ContentRepository.InsertAsync(targetSite, targetChannelInfo, contentInfo); var handlers = pluginManager.GetExtensions <PluginContentHandler>(); foreach (var handler in handlers) { try { handler.OnTranslated(site.Id, channel.Id, contentId, targetSiteId, targetChannelId, newContentId); await handler.OnTranslatedAsync(site.Id, channel.Id, contentId, targetSiteId, targetChannelId, newContentId); } catch (Exception ex) { await databaseManager.ErrorLogRepository.AddErrorLogAsync(ex); } } //foreach (var plugin in oldPluginManager.GetPlugins()) //{ // try // { // plugin.OnContentTranslateCompleted(new ContentTranslateEventArgs(site.Id, channel.Id, contentId, targetSiteId, targetChannelId, newContentId)); // } // catch (Exception ex) // { // await databaseManager.ErrorLogRepository.AddErrorLogAsync(plugin.PluginId, ex, nameof(plugin.OnContentTranslateCompleted)); // } //} await databaseManager.ContentRepository.TrashContentAsync(site, channel, contentId, adminId); //await databaseManager.ContentRepository.DeleteAsync(oldPluginManager, pluginManager, site, channel, contentId); //GlobalSettings.ContentRepository.DeleteContents(site.Id, tableName, TranslateUtils.ToIntList(contentId), channelId); await createManager.CreateContentAsync(targetSite.Id, contentInfo.ChannelId, newContentId); await createManager.TriggerContentChangedEventAsync(targetSite.Id, contentInfo.ChannelId); } else if (translateType == TranslateType.Reference) { if (contentInfo.ReferenceId != 0) { return; } contentInfo.SiteId = targetSiteId; contentInfo.SourceId = contentInfo.ChannelId; contentInfo.ChannelId = targetChannelId; contentInfo.ReferenceId = contentId; contentInfo.Taxis = 0; int theContentId = await databaseManager.ContentRepository.InsertAsync(targetSite, targetChannelInfo, contentInfo); await createManager.CreateContentAsync(targetSite.Id, contentInfo.ChannelId, theContentId); await createManager.TriggerContentChangedEventAsync(targetSite.Id, contentInfo.ChannelId); } }