public static bool isSapApplication(string processPatternOrName) { // saplogon.exe : full SAP client for unrestricted logon and possibility to edit server connection // saplgpad.exe : read-only SAP client to connect to pre-configured servers only return(TechnologyUtilities.checkApplicationPattern("saplogon", processPatternOrName) || TechnologyUtilities.checkApplicationPattern("saplgpad", processPatternOrName)); }
public static string addProcessToPattern(string processName, string pattern) { if (!TechnologyUtilities.checkApplicationPattern(processName, pattern)) { if (string.IsNullOrEmpty(pattern)) { pattern = processName; } else { pattern += "," + processName; } } return(pattern); }
public static string extendPatternSupportingAllBrowsers(string processPatternOrName) { if (!TechnologyUtilities.checkApplicationPattern("iexplore", processPatternOrName)) { processPatternOrName += ",iexplore"; } if (!TechnologyUtilities.checkApplicationPattern("firefox", processPatternOrName)) { processPatternOrName += ",firefox"; } if (!TechnologyUtilities.checkApplicationPattern("chrome", processPatternOrName)) { processPatternOrName += ",chrome"; } return(processPatternOrName); }
public static string removeProcessFromPattern(string processName, string pattern) { if (TechnologyUtilities.checkApplicationPattern(processName, pattern)) { var processes = pattern.Split(new char[] { ',', '|' }); var newPattern = ""; foreach (var process in processes) { if (!TechnologyUtilities.checkApplicationPattern(processName, process)) { if (newPattern.Length > 0) { newPattern += ","; } newPattern += process; } } pattern = newPattern; } return(pattern); }
public static bool isJavaApplication(string processPatternOrName) { return(TechnologyUtilities.checkApplicationPattern("java", processPatternOrName) || TechnologyUtilities.checkApplicationPattern("javaw", processPatternOrName)); }
public static bool isSupportingAllBrowsers(string processPatternOrName) { return(TechnologyUtilities.checkApplicationPattern("iexplore", processPatternOrName) && TechnologyUtilities.checkApplicationPattern("firefox", processPatternOrName) && TechnologyUtilities.checkApplicationPattern("chrome", processPatternOrName)); }
public static bool isUrlSupported(string processPatternOrName) { return(TechnologyUtilities.checkApplicationPattern("iexplore", processPatternOrName) || TechnologyUtilities.checkApplicationPattern("firefox", processPatternOrName) || TechnologyUtilities.checkApplicationPattern("chrome", processPatternOrName)); }