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
mc
MappingConditionalThe mapping Conditional Collection
row
Dictionary<string, object>The row.
Returns
- bool
True if the condition is met, false otherwise
CheckMapping(Mapping)
List<SchemaComparerResult> CheckMapping(Mapping map)
Parameters
map
Mapping
Returns
Close()
Closes this instance.
void Close()
GetDetails(string)
string GetDetails(string id)
Parameters
id
string
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
mapping
MappingThe 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
job
JobThe 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
textWriter
XmlTextWriterThe 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
source
ISourceThe 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