Class SystemUtil


  • public class SystemUtil
    extends Object
    Provides a set of utilities around the environment SmartForm Manager is installed on.
    • Constructor Detail

      • SystemUtil

        public SystemUtil()
    • Method Detail

      • isWindowsServer

        public static boolean isWindowsServer()
        Determine whether SmartForm Manager is running on a Windows server, using Java system properties.
        Returns:
        whether SmartForm Manager is running on Windows
      • getReportsDirPath

        public static String getReportsDirPath()
        Return the path where reports are being published to
        Returns:
        the reports directory path
      • getDeploymentsDirPath

        public static String getDeploymentsDirPath()
        Return the path where WAR files are located
        Returns:
        the path where WAR files are located
      • getJBossHomeDir

        public static String getJBossHomeDir()
        Return the JBoss application server home directory.
        Returns:
        the JBoss application server home directory.
      • getJBossConfigDoc

        public static final Document getJBossConfigDoc()
                                                throws IOException
        Return the JBoss application server configuration standalone.xml document.
        Returns:
        the JBoss application server configuration standalone.xml document, or null if JBoss not running
        Throws:
        IOException - if an IO error occurs
        Since:
        5.0.1
      • getBaseDir

        public static String getBaseDir()
        Return the base TM manager directory.
        Returns:
        the base TM manager directory.
        Since:
        4.0.0
      • getPhantomJsDir

        public static String getPhantomJsDir()
        Return the Phantom JS bin directory for the PhantomJSRenderReceiptService.
        Returns:
        the Phantom JS bin directory for the PhantomJSRenderReceiptService
        Since:
        4.0.0
      • getPhantomJsV2Dir

        public static String getPhantomJsV2Dir()
        Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.
        Returns:
        the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2
        Since:
        17.11.0
      • getPuppeteerDir

        public static String getPuppeteerDir()
        Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.
        Returns:
        the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2
        Since:
        19.5.0
      • getLicensingDir

        public static String getLicensingDir()
        Return the licensing directory. Files are stored to this directory temporarily for licensing purposes.
        Returns:
        the licensing directory
        Since:
        4.3.4
      • getSystemHealthDir

        public static String getSystemHealthDir()
        Return the system health directory. Files are stored to this directory temporarily for licensing purposes.
        Returns:
        the system health directory
        Since:
        4.3.4