Interface ISource
- Namespace
- Dynamicweb.DataIntegration.Integration.Interfaces
- Assembly
- Dynamicweb.DataIntegration.dll
Add this interface if you are inheriting from a provider that is a source
public interface ISource
- Extension Methods
Properties
FilesFolderName
The Name of the files folder in the current installation of Dynamicweb. Empty if used for test.
string FilesFolderName { get; set; }
Property Value
Logger
Logger
ILogger? Logger { get; set; }
Property Value
WorkingDirectory
Gets or sets the working directory. When used for testing, all paths for standard providers are relative to this path.
string WorkingDirectory { get; set; }
Property Value
- string
The working directory.
Methods
CheckCondition(MappingConditional, Dictionary<string, object>)
Checks the condition.
bool CheckCondition(MappingConditional mc, Dictionary<string, object> row)
Parameters
mcMappingConditionalThe mapping Conditional Collection
rowDictionary<string, object>The row.
Returns
- bool
True if the condition is met, false otherwise
CheckMapping(Mapping)
List<SchemaComparerResult> CheckMapping(Mapping map)
Parameters
mapMapping
Returns
Close()
Closes this instance.
void Close()
GetDetails(string)
string? GetDetails(string id)
Parameters
idstring
Returns
GetId()
string? GetId()
Returns
GetOriginalSourceSchema()
Get recent Source Tables Schema from source.
Schema GetOriginalSourceSchema()
Returns
GetReader(Mapping)
Gets the reader.
ISourceReader GetReader(Mapping mapping)
Parameters
mappingMappingThe mapping.
Returns
GetSchema()
Gets the schema.
Schema GetSchema()
Returns
Initialize()
Initializes this instance.
void Initialize()
LoadSettings(Job)
Loads from the input when the job is run.
This method is run when a job is run, before the actual data transfer takes place. The purpose is to allow settings for source and destination providers to be changed at runtime.
void LoadSettings(Job job)
Parameters
jobJobThe job.
OverwriteSourceSchemaToOriginal()
Update current tables schema with most recent schema. Needed for updation of possible old schema loaded from the xml job settings.
void OverwriteSourceSchemaToOriginal()
SaveAsXml(XmlTextWriter)
Saves as XML.
void SaveAsXml(XmlTextWriter textWriter)
Parameters
textWriterXmlTextWriterThe XmlTextWriter.
Serialize()
Serializes this instance for use in AddinSelectors.
Output must be of the format
string Serialize()
Returns
- string
Serialized XML output describing addin paramters
UpdateSourceSettings(ISource)
Updates the source settings of the current instance to match the settings of the "destination" paramter.
void UpdateSourceSettings(ISource source)
Parameters
sourceISourceThe source.
ValidateSourceSettings()
Validates the source settings. Used to validate properties when created by the AddinSelector.
string ValidateSourceSettings()
Returns
- string
Tuple of message text and message type