Class SystemInfo


  • public class SystemInfo
    extends Object
    • Constructor Detail

      • SystemInfo

        public SystemInfo()
    • Method Detail

      • load

        public static void load​(ConnectionProvider conn)
                         throws javax.servlet.ServletException
        Loads system information but ID
        Throws:
        javax.servlet.ServletException
      • loadId

        public static void loadId​(ConnectionProvider conn)
                           throws javax.servlet.ServletException
        Loads ID information
        Throws:
        javax.servlet.ServletException
      • getSystemIdentifier

        public static final String getSystemIdentifier()
                                                throws javax.servlet.ServletException
        Throws:
        javax.servlet.ServletException
      • getDBIdentifier

        public static final String getDBIdentifier()
      • getMacAddress

        public static final String getMacAddress()
      • getDatabaseVersion

        public static final String getDatabaseVersion​(ConnectionProvider conn)
                                               throws javax.servlet.ServletException
        Throws:
        javax.servlet.ServletException
      • getSystemInfo

        public static Properties getSystemInfo()
        Returns:
        the all systemInfo properties
      • getOBPSInstance

        public static String getOBPSInstance()
        In case it is an OBPS instance, it returns the CRC of the activation key
      • getOBPSIntanceNumber

        public static String getOBPSIntanceNumber()
        In case it is an OBPS instance, it returns the number of instance
      • get

        public static String get​(SystemInfo.Item item)
        Parameters:
        item -
        Returns:
        the systemInfo of the passed item
      • parseDate

        public static Date parseDate​(String date)
                              throws ParseException
        Parses a date represented by a String with the format used for the date properties into a Date
        Throws:
        ParseException