C# Class GoNorth.Services.Export.Dialog.StepRenderers.ScribanBaseStepRenderer

Base Class for Rendering Dialog Steps with Scriban
Mostrar archivo Open project: steffendx/GoNorth

Protected Properties

Property Type Description
_errorCollection ExportPlaceholderErrorCollection
_exportSettings ExportSettings
_localizerFactory IStringLocalizerFactory

Public Methods

Method Description
BuildDialogRenderObject ( ExportDialogData curStep, ExportDialogData nextStep, FlexFieldObject flexFieldObject ) : T

Renders a dialog step

GetNodePlaceholders ( string objectKey ) : List

Returns the base placeholders

ScribanBaseStepRenderer ( ExportPlaceholderErrorCollection errorCollection, ExportSettings exportSettings, IStringLocalizerFactory localizerFactory ) : System.Collections.Generic

Constructor

SetExportTemplatePlaceholderResolver ( IExportTemplatePlaceholderResolver templatePlaceholderResolver ) : void

Sets the export template placeholder resolver

SetRenderObjectBaseData ( ScribanDialogStepBaseData renderObject, ExportDialogData stepData, ScribanFlexFieldObject exportNpc ) : void

Sets the render object base data

SetRenderObjectBaseDataFromFlexFieldObject ( ScribanDialogStepBaseData renderObject, ExportDialogData stepData, FlexFieldObject flexFieldObject ) : void

Sets the render object base data

Method Details

BuildDialogRenderObject() public method

Renders a dialog step
public BuildDialogRenderObject ( ExportDialogData curStep, ExportDialogData nextStep, FlexFieldObject flexFieldObject ) : T
curStep ExportDialogData Current Step
nextStep ExportDialogData Next step
flexFieldObject FlexFieldObject Flexfield object to which the dialog belongs
return T

GetNodePlaceholders() public method

Returns the base placeholders
public GetNodePlaceholders ( string objectKey ) : List
objectKey string
return List

ScribanBaseStepRenderer() public method

Constructor
public ScribanBaseStepRenderer ( ExportPlaceholderErrorCollection errorCollection, ExportSettings exportSettings, IStringLocalizerFactory localizerFactory ) : System.Collections.Generic
errorCollection ExportPlaceholderErrorCollection Error Collection
exportSettings ExportSettings Export settings
localizerFactory IStringLocalizerFactory Localizer Factor
return System.Collections.Generic

SetExportTemplatePlaceholderResolver() public method

Sets the export template placeholder resolver
public SetExportTemplatePlaceholderResolver ( IExportTemplatePlaceholderResolver templatePlaceholderResolver ) : void
templatePlaceholderResolver IExportTemplatePlaceholderResolver Template placeholder resolver
return void

SetRenderObjectBaseData() public method

Sets the render object base data
public SetRenderObjectBaseData ( ScribanDialogStepBaseData renderObject, ExportDialogData stepData, ScribanFlexFieldObject exportNpc ) : void
renderObject ScribanDialogStepBaseData Render object to fill
stepData ExportDialogData Step data
exportNpc ScribanFlexFieldObject Npc to export
return void

SetRenderObjectBaseDataFromFlexFieldObject() public method

Sets the render object base data
public SetRenderObjectBaseDataFromFlexFieldObject ( ScribanDialogStepBaseData renderObject, ExportDialogData stepData, FlexFieldObject flexFieldObject ) : void
renderObject ScribanDialogStepBaseData Render object to fill
stepData ExportDialogData Step data
flexFieldObject FlexFieldObject Flexfield object to which the dialog belongs
return void

Property Details

_errorCollection protected_oe property

Error Collection
protected ExportPlaceholderErrorCollection _errorCollection
return ExportPlaceholderErrorCollection

_exportSettings protected_oe property

Export Settings
protected ExportSettings _exportSettings
return ExportSettings

_localizerFactory protected_oe property

String Localizer Factory
protected IStringLocalizerFactory _localizerFactory
return IStringLocalizerFactory