EC - v2.43.0 - Jenkinsfile
This commit is contained in:
		| @ -1,19 +1,23 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component | ||||
| namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component; | ||||
|  | ||||
| public class File | ||||
| { | ||||
|     public class File | ||||
|     { | ||||
|         public File(string filePath) { throw new NotImplementedException(); } | ||||
|         public File(string filePath, DateTime timeFileFound) { throw new NotImplementedException(); } | ||||
|  | ||||
|         public string Path { get; } | ||||
|         public DateTime TimeFound { get; } | ||||
|         public bool IsErrorFile { get; } | ||||
|         public Dictionary<string, string> ContentParameters { get; } | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     public File(string filePath) => throw new NotImplementedException(); | ||||
|     public File(string filePath, DateTime timeFileFound) => throw new NotImplementedException(); | ||||
|  | ||||
|     public string Path { get; } | ||||
|     public DateTime TimeFound { get; } | ||||
|     public bool IsErrorFile { get; } | ||||
|     public Dictionary<string, string> ContentParameters { get; } | ||||
|  | ||||
|     public File UpdateContentParameters(Dictionary<string, string> contentParameters) => throw new NotImplementedException(); | ||||
|     public File UpdateParsingStatus(bool isErrorFile) => throw new NotImplementedException(); | ||||
|  | ||||
|         public File UpdateContentParameters(Dictionary<string, string> contentParameters) { throw new NotImplementedException(); } | ||||
|         public File UpdateParsingStatus(bool isErrorFile) { throw new NotImplementedException(); } | ||||
|     } | ||||
| } | ||||
| @ -2,34 +2,39 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component | ||||
| namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component; | ||||
|  | ||||
| public class FilePathGenerator | ||||
| { | ||||
|     public class FilePathGenerator | ||||
|     { | ||||
|         public const char PLACEHOLDER_IDENTIFIER = '%'; | ||||
|         public const char PLACEHOLDER_SEPARATOR = ':'; | ||||
|         public const string PLACEHOLDER_NOT_AVAILABLE = "NA"; | ||||
|         public const string PLACEHOLDER_ORIGINAL_FILE_NAME = "OriginalFileName"; | ||||
|         public const string PLACEHOLDER_ORIGINAL_FILE_EXTENSION = "OriginalFileExtension"; | ||||
|         public const string PLACEHOLDER_DATE_TIME = "DateTime"; | ||||
|         public const string PLACEHOLDER_SUB_FOLDER = "SubFolder"; | ||||
|         public const string PLACEHOLDER_CELL_NAME = "CellName"; | ||||
|  | ||||
|         public FilePathGenerator(FileConnectorConfiguration config, Dictionary<string, string> customPattern = null) { throw new NotImplementedException(); } | ||||
|         public FilePathGenerator(FileConnectorConfiguration config, File file, bool isErrorFile = false, Dictionary<string, string> customPattern = null) { throw new NotImplementedException(); } | ||||
|         public FilePathGenerator(FileConnectorConfiguration config, string sourceFilePath, bool isErrorFile = false, Dictionary<string, string> customPattern = null) { throw new NotImplementedException(); } | ||||
| #pragma warning disable CA1822 | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|         protected string SubFolderPath { get; } | ||||
|         protected FileConnectorConfiguration Configuration { get; } | ||||
|         protected File File { get; } | ||||
|         protected bool IsErrorFile { get; } | ||||
|         protected string DefaultPlaceHolderValue { get; } | ||||
|     public const char PLACEHOLDER_IDENTIFIER = '%'; | ||||
|     public const char PLACEHOLDER_SEPARATOR = ':'; | ||||
|     public const string PLACEHOLDER_NOT_AVAILABLE = "NA"; | ||||
|     public const string PLACEHOLDER_ORIGINAL_FILE_NAME = "OriginalFileName"; | ||||
|     public const string PLACEHOLDER_ORIGINAL_FILE_EXTENSION = "OriginalFileExtension"; | ||||
|     public const string PLACEHOLDER_DATE_TIME = "DateTime"; | ||||
|     public const string PLACEHOLDER_SUB_FOLDER = "SubFolder"; | ||||
|     public const string PLACEHOLDER_CELL_NAME = "CellName"; | ||||
|  | ||||
|     public FilePathGenerator(FileConnectorConfiguration config, Dictionary<string, string> customPattern = null) => throw new NotImplementedException(); | ||||
|     public FilePathGenerator(FileConnectorConfiguration config, File file, bool isErrorFile = false, Dictionary<string, string> customPattern = null) => throw new NotImplementedException(); | ||||
|     public FilePathGenerator(FileConnectorConfiguration config, string sourceFilePath, bool isErrorFile = false, Dictionary<string, string> customPattern = null) => throw new NotImplementedException(); | ||||
|  | ||||
|     protected string SubFolderPath { get; } | ||||
|     protected FileConnectorConfiguration Configuration { get; } | ||||
|     protected File File { get; } | ||||
|     protected bool IsErrorFile { get; } | ||||
|     protected string DefaultPlaceHolderValue { get; } | ||||
|  | ||||
|     public string GetFullTargetPath() => throw new NotImplementedException(); | ||||
|     public virtual string GetTargetFileName() => throw new NotImplementedException(); | ||||
|     public string GetTargetFolder(bool throwExceptionIfNotExist = true) => throw new NotImplementedException(); | ||||
|     protected virtual string GetSubFolder(string folderPattern, string subFolderPath) => throw new NotImplementedException(); | ||||
|     protected virtual string PrepareFolderPath(string targetFolderPath, string subFolderPath) => throw new NotImplementedException(); | ||||
|     protected string ReplacePlaceholder(string inputPath) => throw new NotImplementedException(); | ||||
|  | ||||
|         public string GetFullTargetPath() { throw new NotImplementedException(); } | ||||
|         public virtual string GetTargetFileName() { throw new NotImplementedException(); } | ||||
|         public string GetTargetFolder(bool throwExceptionIfNotExist = true) { throw new NotImplementedException(); } | ||||
|         protected virtual string GetSubFolder(string folderPattern, string subFolderPath) { throw new NotImplementedException(); } | ||||
|         protected virtual string PrepareFolderPath(string targetFolderPath, string subFolderPath) { throw new NotImplementedException(); } | ||||
|         protected string ReplacePlaceholder(string inputPath) { throw new NotImplementedException(); } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user