Show / Hide Table of Contents

Class DuplicateHelper

Class that encapsulates the duplicate check in the import routine

Inheritance
System.Object
DuplicateHelper
Namespace: SuperOffice.CRM.Import
Assembly: SoDataBase.dll
Syntax
public class DuplicateHelper : Object

Constructors

DuplicateHelper(Dictionary<String, Int32>, ImportContactDuplicateMatch, ImportPersonDuplicateMatch, ImportBlankAction, Boolean, Boolean, Int32, Int32)

Constructor

Declaration
public DuplicateHelper(Dictionary<string, int> columnsDictionary, ImportContactDuplicateMatch contactMatch, ImportPersonDuplicateMatch dupPersonMatch, ImportBlankAction contactNameBlankAction, bool addAllContacts, bool addAllPersons, int countEmail, int countPhones)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Int32> columnsDictionary

Columns setup

ImportContactDuplicateMatch contactMatch

Duplicate type for contact matches

ImportPersonDuplicateMatch dupPersonMatch

Duplicate type for person matches

ImportBlankAction contactNameBlankAction

Action to take when contact name is blank

System.Boolean addAllContacts

Add contacts?

System.Boolean addAllPersons

Add persons?

System.Int32 countEmail
System.Int32 countPhones

Methods

GetDuplicates(ImportItem[], Dictionary<String, Boolean>, Dictionary<String, Dictionary<String, Object>>, Dictionary<String, Boolean>, Dictionary<Int32, String>, Dictionary<String, Dictionary<String, Object>>, Dictionary<String, Int16>, Boolean, Boolean, Boolean, Int32, ImportDuplicateAction, ImportDuplicateAction)

Prepare the duplicate information

Declaration
public void GetDuplicates(ImportItem[] importRows, Dictionary<string, bool> contactInserted, Dictionary<string, Dictionary<string, object>> contactLookup, Dictionary<string, bool> personInserted, Dictionary<int, string> contactIdLookup, Dictionary<string, Dictionary<string, object>> personLookup, Dictionary<string, short> contactPersonRankLookUp, bool saveForReal, bool isErpContact, bool isErpPerson, int connectionId, ImportDuplicateAction contactDuplicateAction, ImportDuplicateAction personDuplicateAction)
Parameters
Type Name Description
ImportItem[] importRows
System.Collections.Generic.Dictionary<System.String, System.Boolean> contactInserted
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.Dictionary<System.String, System.Object>> contactLookup
System.Collections.Generic.Dictionary<System.String, System.Boolean> personInserted
System.Collections.Generic.Dictionary<System.Int32, System.String> contactIdLookup
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.Dictionary<System.String, System.Object>> personLookup
System.Collections.Generic.Dictionary<System.String, System.Int16> contactPersonRankLookUp
System.Boolean saveForReal
System.Boolean isErpContact
System.Boolean isErpPerson
System.Int32 connectionId
ImportDuplicateAction contactDuplicateAction
ImportDuplicateAction personDuplicateAction

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top