public virtual string GetOriginalFileNameWithExtension(BaseDataMap map, object importRow, ref Item newItem, string importValue, ref LevelLogger logger)
 {
     var getOriginalLogger = logger.CreateLevelLogger();
     var getOriginalFileNameWithExtensionFromWhatField = GetOriginalFileNameWithExtensionFromWhatField;
     if (!String.IsNullOrEmpty(getOriginalFileNameWithExtensionFromWhatField))
     {
         var fileName = map.GetFieldValue(importRow, getOriginalFileNameWithExtensionFromWhatField, ref getOriginalLogger);
         if (!String.IsNullOrEmpty(fileName))
         {
             return fileName;
         }
     }
     return String.Empty;
 }
 public virtual string GetFileName(BaseDataMap map, object importRow, ref Item newItem, string importValue, ref LevelLogger logger)
 {
     var getFileNameLogger = logger.CreateLevelLogger();
     var fileNameFieldName = GetFileNameFromWhatField;
     if (String.IsNullOrEmpty(fileNameFieldName))
     {
         getFileNameLogger.AddError(CategoryConstants.GetFilenameFromwWhatFieldWasNullOrEmpty, String.Format("The 'GetFileNameFromWhatField' was null or empty. Please indicate which field the filename should be retrieved from. ImportRow: {0}.",
                 map.GetImportRowDebugInfo(importRow)));
         return null;
     }
     var fileName = map.GetFieldValue(importRow, fileNameFieldName, ref getFileNameLogger);
     if (String.IsNullOrEmpty(fileName))
     {
         getFileNameLogger.AddError(CategoryConstants.TheFilenameFromFieldWasNullOrEmpty, String.Format("The filename was attempted retrieved from the field '{0}', but it was null or empty. The image field name must be provided. ImportRow: {1}.",
                 fileNameFieldName, map.GetImportRowDebugInfo(importRow)));
         return null;
     }
     return fileName;
 }
 public virtual string GetImageAltText(BaseDataMap map, object importRow, ref Item newItem, string importValue, ref LevelLogger logger)
 {
     var getImageAltText = logger.CreateLevelLogger();
     var getImageAltTextIfNotProvidedFromWhatField = GetImageAltTextIfNotProvidedFromWhatField;
     if (!String.IsNullOrEmpty(getImageAltTextIfNotProvidedFromWhatField))
     {
         var altText = map.GetFieldValue(importRow, getImageAltTextIfNotProvidedFromWhatField, ref getImageAltText);
         if (!String.IsNullOrEmpty(altText))
         {
             return Helper.TitleCaseString(altText);
         }
     }
     return String.Empty;
 }
 public virtual string GetTimeStampIdentifier(BaseDataMap map, object importRow, ref Item newItem, string importValue, ref LevelLogger logger)
 {
     var getTimeStampLogger = logger.CreateLevelLogger();
     if (String.IsNullOrEmpty(GetTimeStampIdentifierFromWhatField))
     {
         getTimeStampLogger.AddError("No value in 'GetTimeStampIdentifierFromWhatField'", String.Format(
                 "The method GetTimeStampIdentifier failed because there wasn't any value in the field 'GetTimeStampIdentifierFromWhatField'. This field is used to retrieve the timestamp of last updated value on importRow. ImportRow: {0}.",
                 map.GetImportRowDebugInfo(importRow)));
         return null;
     }
     var getFieldValueLogger = getTimeStampLogger.CreateLevelLogger();
     var timeStamp = map.GetFieldValue(importRow, GetTimeStampIdentifierFromWhatField, ref getFieldValueLogger);
     if (String.IsNullOrEmpty(timeStamp))
     {
         getFieldValueLogger.AddError("GetTimeStampIdentifier failed", String.Format("The method GetTimeStampIdentifier failed because the 'timestamp' from the importRow was null or empty. Please make sure each importRow has a timestamp. ImportRow: {0}.",
                 map.GetImportRowDebugInfo(importRow)));
         return null;
     }
     return timeStamp;
 }