Exemple #1
0
 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));
 }
Exemple #2
0
 public static string addProcessToPattern(string processName, string pattern)
 {
     if (!TechnologyUtilities.checkApplicationPattern(processName, pattern))
     {
         if (string.IsNullOrEmpty(pattern))
         {
             pattern = processName;
         }
         else
         {
             pattern += "," + processName;
         }
     }
     return(pattern);
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 public static bool isJavaApplication(string processPatternOrName)
 {
     return(TechnologyUtilities.checkApplicationPattern("java", processPatternOrName) ||
            TechnologyUtilities.checkApplicationPattern("javaw", processPatternOrName));
 }
Exemple #6
0
 public static bool isSupportingAllBrowsers(string processPatternOrName)
 {
     return(TechnologyUtilities.checkApplicationPattern("iexplore", processPatternOrName) &&
            TechnologyUtilities.checkApplicationPattern("firefox", processPatternOrName) &&
            TechnologyUtilities.checkApplicationPattern("chrome", processPatternOrName));
 }
Exemple #7
0
 public static bool isUrlSupported(string processPatternOrName)
 {
     return(TechnologyUtilities.checkApplicationPattern("iexplore", processPatternOrName) ||
            TechnologyUtilities.checkApplicationPattern("firefox", processPatternOrName) ||
            TechnologyUtilities.checkApplicationPattern("chrome", processPatternOrName));
 }