Interface IDestination
- Namespace
- Dynamicweb.DataIntegration.Integration.Interfaces
- Assembly
- Dynamicweb.DataIntegration.dll
Add this interface if you are inheriting from a provider that is a destination
public interface IDestination
- 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
SchemaIsEditable
Gets or sets a value indicating whether the schema is editable.
bool SchemaIsEditable { get; }
Property Value
- bool
trueif schema is editable; otherwise,false.
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
CheckMapping(Mapping)
List<SchemaComparerResult> CheckMapping(Mapping map)
Parameters
mapMapping
Returns
Close(bool)
Closes this instance.
void Close(bool jobFailed)
Parameters
jobFailedboolJob result.
GetDetails(string)
string? GetDetails(string id)
Parameters
idstring
Returns
GetId()
string? GetId()
Returns
GetOriginalDestinationSchema()
Get recent Destination Tables Schema from the Destination source.
Schema GetOriginalDestinationSchema()
Returns
GetSchema()
Get Destination Tables Schema.
Schema GetSchema()
Returns
Initialize()
Initializes this instance.
void Initialize()
OverwriteDestinationSchemaToOriginal()
Update current tables schema with most recent schema. Needed for updation of possible old schema loaded from the xml job settings.
void OverwriteDestinationSchemaToOriginal()
RunJob(Job)
Runs the job. This is where the majority of the work is done.
bool RunJob(Job job)
Parameters
jobJobThe job to be run.
Returns
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
UpdateDestinationSettings(IDestination)
Updates the destination settings of the current instance to match the settings of the "destination" paramter.
void UpdateDestinationSettings(IDestination destination)
Parameters
destinationIDestinationThe destination.
ValidateDestinationSettings()
Validates the destination settings. Used to validate properties when created by the AddinSelector.
string ValidateDestinationSettings()