Package org.openbravo.erpCommon.utility
Class SystemInfo
- java.lang.Object
-
- org.openbravo.erpCommon.utility.SystemInfo
-
public class SystemInfo extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SystemInfo.Item
-
Constructor Summary
Constructors Constructor Description SystemInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
get(SystemInfo.Item item)
static String
getDatabaseVersion(ConnectionProvider conn)
static String
getDBIdentifier()
static String
getMacAddress()
static String
getOBPSInstance()
In case it is an OBPS instance, it returns the CRC of the activation keystatic String
getOBPSIntanceNumber()
In case it is an OBPS instance, it returns the number of instancestatic String
getSystemIdentifier()
static Properties
getSystemInfo()
static void
load(ConnectionProvider conn)
Loads system information but IDstatic void
loadId(ConnectionProvider conn)
Loads ID informationstatic Date
parseDate(String date)
Parses a date represented by a String with the format used for the date properties into a Date
-
-
-
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
-
-