<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

kCura.WinEDDS.LoadFileBase

public abstract class LoadFileBase : ImportTapiBase
namespace kCura.WinEDDS { public abstract class LoadFileBase : ImportTapiBase { public class ExtractedTextTooLargeException : ImporterException { public ExtractedTextTooLargeException(); protected ExtractedTextTooLargeException(SerializationInfo info, StreamingContext context); } public class IdentifierOverlapException : ImporterException { public IdentifierOverlapException(string identityValue, string previousLineNumber); protected IdentifierOverlapException(SerializationInfo info, StreamingContext context); } public class MissingFullTextFileException : ImporterException { public MissingFullTextFileException(int row, int column); protected MissingFullTextFileException(SerializationInfo info, StreamingContext context); } public class MissingUserException : ImporterException { public MissingUserException(int row, int column, string invalidEmailaddress); protected MissingUserException(SerializationInfo info, StreamingContext context); } public class CodeCreationException : ImporterException { public bool IsFatal { get; } public CodeCreationException(int row, int column, bool isFatal, string errorText); protected CodeCreationException(SerializationInfo info, StreamingContext context); } public class ColumnCountMismatchException : ImporterException { public ColumnCountMismatchException(int row, int expecting, int actual); protected ColumnCountMismatchException(SerializationInfo info, StreamingContext context); } public class DuplicateObjectReferenceException : ImporterException { public DuplicateObjectReferenceException(int row, int column, string fieldName); protected DuplicateObjectReferenceException(SerializationInfo info, StreamingContext context); } public class NonExistentParentException : ImporterException { public NonExistentParentException(int row, int column, string fieldName); protected NonExistentParentException(SerializationInfo info, StreamingContext context); } public class ParentObjectReferenceRequiredException : ImporterException { public ParentObjectReferenceRequiredException(int row, int column); protected ParentObjectReferenceRequiredException(SerializationInfo info, StreamingContext context); } public class DuplicateMulticodeValueException : ImporterException { public DuplicateMulticodeValueException(int row, int column, string codeName); protected DuplicateMulticodeValueException(SerializationInfo info, StreamingContext context); } protected bool _columnsAreInitialized; protected IDocumentManager _documentManager; protected ICodeManager _codeManager; protected IFolderManager _folderManager; protected IFieldQuery _fieldQuery; protected IBulkImportManager _bulkImportManager; protected IUserManager _usermanager; protected IObjectManager _objectManager; protected string _filePathColumn; protected int _filePathColumnIndex; protected bool _firstLineContainsColumnNames; protected DocumentField[] _docFields; protected char[] _multiValueSeparator; protected SqlDataView _allCodes; protected SqlDataView _allCodeTypes; protected int _folderID; protected int _caseSystemID; protected int _caseArtifactID; protected int _timeZoneOffset; protected bool _autoDetect; protected bool _uploadFiles; protected LoadFileFieldMap _fieldMap; protected bool _createFolderStructure; protected string _destinationFolder; protected bool _fullTextColumnMapsToFileLocation; protected Encoding _sourceFileEncoding; protected Encoding _extractedTextFileEncoding; protected string _extractedTextFileEncodingName; protected int _artifactTypeID; protected Hashtable MulticodeMatrix; protected string _hierarchicalMultiValueFieldDelmiter; protected HybridDictionary _previewCodeCount; protected long _startLineNumber; protected int _keyFieldID; protected LoadFile _settings; protected ExecutionSource _executionSource; protected IRunningContext _runningContext; protected abstract bool UseTimeZoneOffset { get; } protected virtual IArtifactReader _artifactReader { get; set; } public bool SkipExtractedTextEncodingCheck { get; set; } public bool LoadImportedFullTextFromServer { get; set; } public bool DisableExtractedTextFileLocationValidation { get; set; } public bool OIFileIdMapped { get; set; } public string OIFileIdColumnName { get; set; } public string OIFileTypeColumnName { get; set; } public bool FileSizeMapped { get; set; } public string FileSizeColumn { get; set; } public string FileNameColumn { get; set; } public string SupportedByViewerColumn { get; set; } public SqlDataView AllCodes { get; set; } public SqlDataView AllCodeTypes { get; set; } public int SingleCodesCreated { get; } public UserCollection Users { get; } protected virtual IBulkImportManager BulkImportManager { get; } protected virtual string GetCorrelationId(); protected abstract Base GetSingleCodeValidator(); protected abstract IArtifactReader GetArtifactReader(); protected void AdvanceLine(); protected LoadFileBase(LoadFile args, IIoReporter reporter, ILog logger, int timezoneoffset, bool doRetryLogic, bool autoDetect, CancellationTokenSource cancellationToken, Func<string> correlationIdFunc, IRunningContext runningContext = null); protected LoadFileBase(LoadFile args, IIoReporter reporter, ILog logger, int timezoneoffset, bool doRetryLogic, bool autoDetect, CancellationTokenSource cancellationToken, bool initializeArtifactReader, Func<string> correlationIdFunc, IRunningContext runningContext = null); protected void InitializeArtifactReader(); protected virtual void InitializeManagers(LoadFile args); public int? GetCode(string value, int column, ArtifactField field, bool forPreview); public virtual int?[] GetMultiCode(string[] value, int column, ArtifactField field, bool forPreview); public virtual Hashtable GetObjects(string[] value, int column, ArtifactField field, int associatedObjectTypeID, bool shouldRetrieveIdFromServer); public virtual string LookupNameForArtifactID(int objectArtifactID, int associatedObjectTypeID); public virtual int LookupArtifactIDForName(string objectName, int associatedObjectTypeID); public virtual Hashtable GetObjectsByArtifactID(string[] value, int column, ArtifactField field, int associatedObjectTypeID); protected bool FieldValueContainsTextFileLocation(ArtifactField field); public void SetFieldValue(ArtifactField field, int columnIndex, bool forPreview, string identityValue, ref int extractedTextFileCodePageId, kCura.EDDS.WebAPI.DocumentManagerBase.ImportBehaviorChoice? importBehavior); public int GetMaxExtractedTextLength(Encoding encoding); public void AddToCodeCountPreviewHashTable(int fieldID, string fieldName, string fieldValue); public int? GetUserArtifactID(string value, int column); public string GetNullableFixedString(string value, int column, int fieldLength, string displayName); public string GetNullableAssociatedObjectName(string value, int column, int fieldLength, string fieldName); } }