/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> public void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver templatePlaceholderResolver) { foreach (ConditionRendererDispatcher curElementRenderer in _elementRenderes.Values) { curElementRenderer.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); } }
/// <summary> /// Constructor /// </summary> /// <param name="exportTemplatePlaceholderResolver">Export template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="taleDbAccess">Dialog database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="languageKeyGenerator">Language key generator</param> /// <param name="dialogParser">Dialog Parser</param> /// <param name="dialogFunctionGenerator">Dialog Function Generator</param> /// <param name="dialogRenderer">Dialog Renderer</param> /// <param name="dailyRoutineFunctionNameGenerator">Daily routine function name generator</param> /// <param name="dailyRoutineFunctionRenderer">Daily routine function renderer</param> /// <param name="exportSnippetFunctionRenderer">Export snippet function renderer</param> /// <param name="stateMachineFunctionNameGenerator">State machine function name generator</param> /// <param name="stateMachineFunctionRenderer">State machine function renderer</param> /// <param name="languageKeyDbAccess">Language key Database access</param> /// <param name="localizerFactory">Localizer Factory</param> public ScribanExportTemplatePlaceholderRenderingEngine(IExportTemplatePlaceholderResolver exportTemplatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ITaleDbAccess taleDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IScribanLanguageKeyGenerator languageKeyGenerator, IExportDialogParser dialogParser, IExportDialogFunctionGenerator dialogFunctionGenerator, IExportDialogRenderer dialogRenderer, IDailyRoutineFunctionNameGenerator dailyRoutineFunctionNameGenerator, IDailyRoutineFunctionRenderer dailyRoutineFunctionRenderer, IExportSnippetFunctionRenderer exportSnippetFunctionRenderer, IStateMachineFunctionNameGenerator stateMachineFunctionNameGenerator, IStateMachineFunctionRenderer stateMachineFunctionRenderer, ILanguageKeyDbAccess languageKeyDbAccess, IStringLocalizerFactory localizerFactory) { _exportCachedDbAccess = exportCachedDbAccess; _localizerFactory = localizerFactory; _exportValueCollectors = new List <IScribanExportValueCollector> { new NpcExportValueCollector(exportTemplatePlaceholderResolver, exportCachedDbAccess, defaultTemplateProvider, languageKeyGenerator, localizerFactory), new ItemExportValueCollector(exportTemplatePlaceholderResolver, exportCachedDbAccess, defaultTemplateProvider, languageKeyGenerator, localizerFactory), new SkillExportValueCollector(exportTemplatePlaceholderResolver, exportCachedDbAccess, defaultTemplateProvider, languageKeyGenerator, localizerFactory), new AttributeListValueCollector(exportCachedDbAccess, languageKeyGenerator, localizerFactory), new InventoryValueCollector(exportCachedDbAccess, languageKeyGenerator, localizerFactory), new NpcSkillValueCollector(exportCachedDbAccess, languageKeyGenerator, localizerFactory), new DialogValueCollector(exportTemplatePlaceholderResolver, exportCachedDbAccess, defaultTemplateProvider, taleDbAccess, languageKeyGenerator, dialogParser, dialogFunctionGenerator, dialogRenderer, localizerFactory), new DialogFunctionValueCollector(localizerFactory), new NpcDailyRoutineExportValueCollector(exportTemplatePlaceholderResolver, exportCachedDbAccess, dailyRoutineFunctionNameGenerator, dailyRoutineFunctionRenderer, defaultTemplateProvider, localizerFactory), new NpcStateMachineExportValueCollector(exportTemplatePlaceholderResolver, exportCachedDbAccess, stateMachineFunctionNameGenerator, stateMachineFunctionRenderer, defaultTemplateProvider, localizerFactory), new StateMachineFunctionValueCollector(localizerFactory), new DailyRoutineEventListValueCollector(exportCachedDbAccess, dailyRoutineFunctionNameGenerator, localizerFactory), new DailyRoutineFunctionValueCollector(localizerFactory), new DailyRoutineFunctionListValueCollector(exportTemplatePlaceholderResolver, exportCachedDbAccess, defaultTemplateProvider, localizerFactory), new ExportSnippetValueCollector(exportTemplatePlaceholderResolver, exportCachedDbAccess, exportSnippetFunctionRenderer, defaultTemplateProvider, localizerFactory), new ExportSnippetFunctionValueCollector(localizerFactory), new LanguageKeyValueCollector(exportCachedDbAccess, languageKeyDbAccess, localizerFactory) }; }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="exportTemplateDbAccess">Export Template Db Access</param> /// <param name="exportSettingsDbAccess">Export Settings Db Access</param> /// <param name="projectDbAccess">Project Db Access</param> /// <param name="npcDbAccess">Npc Db Access</param> /// <param name="npcTemplateDbAccess">Npc Template Db Access</param> /// <param name="dialogDbAccess">Dialog Db Access</param> /// <param name="itemDbAccess">Item Db Access</param> /// <param name="itemTemplateDbAccess">Item Template Db Access</param> /// <param name="skillDbAccess">Skill Db Access</param> /// <param name="skillTemplateDbAccess">Skill Template Db Access</param> /// <param name="templatePlaceholderResolver">Template Placeholder Resolver</param> /// <param name="dialogFunctionDbAccess">Dialog Function Db Access</param> /// <param name="dialogFunctionGenerationConditionProvider">Dialog Function Generation Condition Provider</param> /// <param name="languageKeyDbAccess">Language Key Db Access</param> /// <param name="timelineService">Timeline Service</param> /// <param name="userManager">User Manager</param> /// <param name="logger">Logger</param> /// <param name="localizerFactory">Localizer Factory</param> public ExportApiController(IExportDefaultTemplateProvider defaultTemplateProvider, IExportTemplateDbAccess exportTemplateDbAccess, IExportSettingsDbAccess exportSettingsDbAccess, IProjectDbAccess projectDbAccess, IKortistoNpcDbAccess npcDbAccess, IKortistoNpcTemplateDbAccess npcTemplateDbAccess, ITaleDbAccess dialogDbAccess, IStyrItemDbAccess itemDbAccess, IStyrItemTemplateDbAccess itemTemplateDbAccess, IEvneSkillDbAccess skillDbAccess, IEvneSkillTemplateDbAccess skillTemplateDbAccess, IExportTemplatePlaceholderResolver templatePlaceholderResolver, IDialogFunctionGenerationConditionDbAccess dialogFunctionDbAccess, IDialogFunctionGenerationConditionProvider dialogFunctionGenerationConditionProvider, ILanguageKeyDbAccess languageKeyDbAccess, ITimelineService timelineService, UserManager <GoNorthUser> userManager, ILogger <ExportApiController> logger, IStringLocalizerFactory localizerFactory) { _defaultTemplateProvider = defaultTemplateProvider; _exportTemplateDbAccess = exportTemplateDbAccess; _exportSettingsDbAccess = exportSettingsDbAccess; _projectDbAccess = projectDbAccess; _npcDbAccess = npcDbAccess; _npcTemplateDbAccess = npcTemplateDbAccess; _dialogDbAccess = dialogDbAccess; _itemDbAccess = itemDbAccess; _itemTemplateDbAccess = itemTemplateDbAccess; _skillDbAccess = skillDbAccess; _skillTemplateDbAccess = skillTemplateDbAccess; _templatePlaceholderResolver = templatePlaceholderResolver; _dialogFunctionDbAccess = dialogFunctionDbAccess; _dialogFunctionGenerationConditionProvider = dialogFunctionGenerationConditionProvider; _languageKeyDbAccess = languageKeyDbAccess; _timelineService = timelineService; _userManager = userManager; _logger = logger; _localizer = localizerFactory.Create(this.GetType()); _exporters = new Dictionary <string, IObjectExporter>(); _exporters.Add("script", new ScriptExporter(templatePlaceholderResolver, projectDbAccess, exportSettingsDbAccess)); _exporters.Add("json", new JsonExporter()); _exporters.Add("languagefile", new LanguageExporter(templatePlaceholderResolver, defaultTemplateProvider, projectDbAccess, exportSettingsDbAccess)); }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> public override void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver templatePlaceholderResolver) { foreach (ActionRendererDispatcher curActionRenderer in _actionRenderes.Values) { curActionRenderer.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); } }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> public void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver templatePlaceholderResolver) { foreach (IConditionElementRenderer curRenderer in _renderers.Values) { curRenderer.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); } }
/// <summary> /// Constructor /// </summary> /// <param name="placeholderResolver">Placeholder Resolver</param> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="languageKeyDbAccess">Language Key Db Access</param> /// <param name="taleDbAccess">Dialog Db Access</param> /// <param name="dialogParser">Dialog Parser</param> /// <param name="dialogFunctionGenerator">Dialog Function Generator</param> /// <param name="dialogRenderer">Dialog Renderer</param> /// <param name="legacyDailyRoutineEventPlaceholderResolver">Legacy daily routine event placeholder resolver</param> /// <param name="legacyDailyRoutineEventContentPlaceholderResolver">Legacy Daily routine event content placeholder resolver</param> /// <param name="dailyRoutineFunctionRenderer">Daily routine function renderer</param> /// <param name="nodeGraphExporter">Node Graph Exporter</param> /// <param name="snippetFunctionRenderer">Export Snippet Function renderer</param> /// <param name="localizerFactory">Localizer Factory</param> public LegacyExportTemplatePlaceholderRenderingEngine(IExportTemplatePlaceholderResolver placeholderResolver, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, ILanguageKeyDbAccess languageKeyDbAccess, ITaleDbAccess taleDbAccess, IExportDialogParser dialogParser, IExportDialogFunctionGenerator dialogFunctionGenerator, IExportDialogRenderer dialogRenderer, ILegacyDailyRoutineEventPlaceholderResolver legacyDailyRoutineEventPlaceholderResolver, ILegacyDailyRoutineEventContentPlaceholderResolver legacyDailyRoutineEventContentPlaceholderResolver, IDailyRoutineFunctionRenderer dailyRoutineFunctionRenderer, INodeGraphExporter nodeGraphExporter, IExportSnippetFunctionRenderer snippetFunctionRenderer, IStringLocalizerFactory localizerFactory) { _localizerFactory = localizerFactory; dialogRenderer.SetExportTemplatePlaceholderResolver(placeholderResolver); _exportTemplatePlaceholderResolvers = new List <IExportTemplateTopicPlaceholderResolver>(); // Order of exporting is determined by the order in which these are added, thats why the order is important _exportTemplatePlaceholderResolvers.Add(new ExportSnippetTemplatePlaceholderResolver(snippetFunctionRenderer, defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory)); _exportTemplatePlaceholderResolvers.Add(new NpcInventoryExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory)); _exportTemplatePlaceholderResolvers.Add(new NpcSkillExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory)); _exportTemplatePlaceholderResolvers.Add(new NpcDailyRoutineExportPlaceholderResolver(defaultTemplateProvider, cachedDbAccess, legacyDailyRoutineEventPlaceholderResolver, legacyDailyRoutineEventContentPlaceholderResolver, dailyRoutineFunctionRenderer, languageKeyGenerator, localizerFactory)); _exportTemplatePlaceholderResolvers.Add(new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory)); _exportTemplatePlaceholderResolvers.Add(new DialogExportTemplatePlaceholderResolver(cachedDbAccess, languageKeyGenerator, taleDbAccess, dialogParser, dialogFunctionGenerator, dialogRenderer, defaultTemplateProvider, localizerFactory)); _exportTemplatePlaceholderResolvers.Add(new LanguageKeyTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyDbAccess, localizerFactory)); foreach (IExportTemplateTopicPlaceholderResolver curResolver in _exportTemplatePlaceholderResolvers) { curResolver.SetExportTemplatePlaceholderResolver(placeholderResolver); } }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="errorCollection">Error collection</param> public DailyRoutineEventFunctionListRenderer(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ExportPlaceholderErrorCollection errorCollection) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _errorCollection = errorCollection; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="errorCollection">Error collection</param> public StateMachineFunctionPipeRenderer(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ExportPlaceholderErrorCollection errorCollection) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _errorCollection = errorCollection; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="cachedDbAccess">Gecachter Datenzugriff</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="localizerFactory">Localizer Factory</param> public DailyRoutineFunctionListValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess cachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _cachedDbAccess = cachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _localizerFactory = localizerFactory; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="languageKeyGenerator">Language key generator</param> /// <param name="localizerFactory">Localizer Factory</param> public BaseFlexFieldValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IScribanLanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _languageKeyGenerator = languageKeyGenerator; _localizerFactory = localizerFactory; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="errorCollection">Error collection</param> /// <param name="exportObjectData">Export object data</param> public DialogFunctionRenderer(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ExportPlaceholderErrorCollection errorCollection, ExportObjectData exportObjectData) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _errorCollection = errorCollection; _exportObjectData = exportObjectData; }
/// <summary> /// Constructor /// </summary> /// <param name="placeholderResolver">Pkaceholder Resolver</param> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="projectDbAccess">Project Db Access</param> /// <param name="exportSettingsDbAccess">Export Settings Db Accesss</param> public LanguageExporter(IExportTemplatePlaceholderResolver placeholderResolver, IExportDefaultTemplateProvider defaultTemplateProvider, IProjectDbAccess projectDbAccess, IExportSettingsDbAccess exportSettingsDbAccess) { _placeholderResolver = placeholderResolver; _defaultTemplateProvider = defaultTemplateProvider; _projectDbAccess = projectDbAccess; _exportSettingsDbAccess = exportSettingsDbAccess; _scriptExporter = new ScriptExporter(placeholderResolver, projectDbAccess, exportSettingsDbAccess); }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="exportSnippetFunctionRenderer">Export snippet function renderer</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="localizerFactory">Localizer Factory</param> public ExportSnippetValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, IExportSnippetFunctionRenderer exportSnippetFunctionRenderer, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _exportSnippetFunctionRenderer = exportSnippetFunctionRenderer; _defaultTemplateProvider = defaultTemplateProvider; _localizerFactory = localizerFactory; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="cachedDbAccess">Gecachter Datenzugriff</param> /// <param name="stateMachineFunctionNameGenerator">State machine function name generator</param> /// <param name="stateMachineFunctionRenderer">State machine function renderer</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="localizerFactory">Localizer Factory</param> public NpcStateMachineExportValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess cachedDbAccess, IStateMachineFunctionNameGenerator stateMachineFunctionNameGenerator, IStateMachineFunctionRenderer stateMachineFunctionRenderer, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _cachedDbAccess = cachedDbAccess; _stateMachineFunctionNameGenerator = stateMachineFunctionNameGenerator; _stateMachineFunctionRenderer = stateMachineFunctionRenderer; _defaultTemplateProvider = defaultTemplateProvider; _localizerFactory = localizerFactory; }
/// <summary> /// Constructor /// </summary> /// <param name="placeholderResolver">Pkaceholder Resolver</param> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="exportSettingsDbAccess">Export Settings Db Accesss</param> /// <param name="userProjectAccess">User project access</param> /// <param name="languageKeyReferenceCollector">Language key reference collector</param> public LanguageExporter(IExportTemplatePlaceholderResolver placeholderResolver, IExportDefaultTemplateProvider defaultTemplateProvider, IExportSettingsDbAccess exportSettingsDbAccess, IUserProjectAccess userProjectAccess, ILanguageKeyReferenceCollector languageKeyReferenceCollector) { _placeholderResolver = placeholderResolver; _defaultTemplateProvider = defaultTemplateProvider; _exportSettingsDbAccess = exportSettingsDbAccess; _userProjectAccess = userProjectAccess; _languageKeyReferenceCollector = languageKeyReferenceCollector; _scriptExporter = new ScriptExporter(placeholderResolver, exportSettingsDbAccess, userProjectAccess); }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="taleDbAccess">Dialog database access</param> /// <param name="languageKeyGenerator">Language key generator</param> /// <param name="dialogParser">Dialog Parser</param> /// <param name="dialogFunctionGenerator">Dialog Function Generator</param> /// <param name="dialogRenderer">Dialog Renderer</param> /// <param name="localizerFactory">Localizer Factory</param> public DialogValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ITaleDbAccess taleDbAccess, IScribanLanguageKeyGenerator languageKeyGenerator, IExportDialogParser dialogParser, IExportDialogFunctionGenerator dialogFunctionGenerator, IExportDialogRenderer dialogRenderer, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _taleDbAccess = taleDbAccess; _languageKeyGenerator = languageKeyGenerator; _dialogParser = dialogParser; _dialogFunctionGenerator = dialogFunctionGenerator; _dialogRenderer = dialogRenderer; _localizerFactory = localizerFactory; }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> public override void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver templatePlaceholderResolver) { _flexFieldPlaceholderResolverNpc.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); _flexFieldPlaceholderResolverItem.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="placeholderResolver">Placeholder Resolver</param> public void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver placeholderResolver) { _dailyRoutineFunctionRenderer.SetExportTemplatePlaceholderResolver(placeholderResolver); _eventContentPlaceholderResolver.SetExportTemplatePlaceholderResolver(placeholderResolver); _placeholderResolver = placeholderResolver; }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> public void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver templatePlaceholderResolver) { _dailyRoutineFunctionRenderer.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); _templatePlaceholderResolver = templatePlaceholderResolver; }
/// <summary> /// Constructor /// </summary> /// <param name="placeholderResolver">Pkaceholder Resolver</param> /// <param name="projectDbAccess">Project Db Access</param> /// <param name="exportSettingsDbAccess">Export Settings Db Accesss</param> public ScriptExporter(IExportTemplatePlaceholderResolver placeholderResolver, IProjectDbAccess projectDbAccess, IExportSettingsDbAccess exportSettingsDbAccess) { _projectDbAccess = projectDbAccess; _placeholderResolver = placeholderResolver; _exportSettingsDbAccess = exportSettingsDbAccess; }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> public override void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver templatePlaceholderResolver) { _flexFieldPlaceholderResolver.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); _flexFieldTargetPlaceholderResolver.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> public override void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver templatePlaceholderResolver) { _itemPlaceholderResolver.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="placeholderResolver">Placeholder Resolver</param> public void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver placeholderResolver) { _templatePlaceholderResolver = placeholderResolver; _dialogRenderer.SetExportTemplatePlaceholderResolver(placeholderResolver); }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="placeholderResolver">Placeholder Resolver</param> public void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver placeholderResolver) { _templatePlaceholderResolver = placeholderResolver; _snippetFunctionRenderer.SetExportTemplatePlaceholderResolver(placeholderResolver); }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="placeholderResolver">Placeholder Resolver</param> public void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver placeholderResolver) { _placeholderResolver = placeholderResolver; _itemPlaceholderResolver.SetExportTemplatePlaceholderResolver(placeholderResolver); }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> public void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver templatePlaceholderResolver) { _templatePlaceholderResolver = templatePlaceholderResolver; _conditionRenderer.SetExportTemplatePlaceholderResolver(templatePlaceholderResolver); }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="languageKeyGenerator">Language key generator</param> /// <param name="localizerFactory">Localizer Factory</param> public ItemExportValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IScribanLanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory) : base(templatePlaceholderResolver, exportCachedDbAccess, defaultTemplateProvider, languageKeyGenerator, localizerFactory) { }
/// <summary> /// Constructor /// </summary> /// <param name="placeholderResolver">Pkaceholder Resolver</param> /// <param name="exportSettingsDbAccess">Export Settings Db Accesss</param> /// <param name="userProjectAccess">User project access</param> public ScriptExporter(IExportTemplatePlaceholderResolver placeholderResolver, IExportSettingsDbAccess exportSettingsDbAccess, IUserProjectAccess userProjectAccess) { _placeholderResolver = placeholderResolver; _exportSettingsDbAccess = exportSettingsDbAccess; _userProjectAccess = userProjectAccess; }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> public virtual void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver templatePlaceholderResolver) { }
/// <summary> /// Sets the export template placeholder resolver /// </summary> /// <param name="placeholderResolver">Placeholder Resolver</param> public void SetExportTemplatePlaceholderResolver(IExportTemplatePlaceholderResolver placeholderResolver) { _placeholderResolver = placeholderResolver; }