Package org.compiere
Class Adempiere
java.lang.Object
org.compiere.Adempiere
Static methods for iDempiere startup, system info and global thread pool.
- Author:
- Jorg Janke
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static String
Detail Version as date Used for Client/Serverstatic String
Database Version as date Compared with AD_Systemstatic final String
Deprecated.static String
Main Version Stringstatic final String
Product Namestatic final String
Subtitlestatic final String
URL of Product -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static String
Get instance home directorystatic int
Get Checksumstatic String
static Image
Get Header logostatic Image
Get 16x16 Image.static ImageIcon
Get 32x32 ImageIcon.static ImageIcon
Get 100x30 ImageIcon.static Image
Get Logo Image.static Image
getImageLogoSmall
(boolean hr) Get 28*15 Logo Image.static String
Get Implementation Vendorstatic String
Get Implementation Versionstatic String
Get Java VM Infostatic String
getName()
Get Product Namestatic String
static String
Get Operating System Infostatic URL
getResource
(String name) static String
Get Sub Titlestatic String
getSum()
Short Summarystatic String
Summarystatic String
Summary in ASCIIstatic String
Get Support Emailstatic ScheduledThreadPoolExecutor
static String
getURL()
Get URL of productstatic String
Get Product Versionstatic boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static void
static void
setSupportEMail
(String email) Set Support Emailstatic boolean
startup
(boolean isClient) Startup Client/Server.static boolean
startupEnvironment
(boolean isClient) Startup Adempiere Environment.
Automatically called for Server connections.static void
stop()
Stop instance
-
Field Details
-
ID
Deprecated.Timestamp- See Also:
-
MAIN_VERSION
Main Version String -
DATE_VERSION
Detail Version as date Used for Client/Server -
DB_VERSION
Database Version as date Compared with AD_System -
NAME
Product Name- See Also:
-
URL
URL of Product- See Also:
-
SUB_TITLE
Subtitle- See Also:
-
ADEMPIERE_R
- See Also:
-
COPYRIGHT
- See Also:
-
-
Constructor Details
-
Adempiere
public Adempiere()
-
-
Method Details
-
getName
Get Product Name- Returns:
- Application Name
-
getVersion
Get Product Version- Returns:
- Application Version
-
isVersionShown
public static boolean isVersionShown()- Returns:
- true if application version should be shown to user
-
isDBVersionShown
public static boolean isDBVersionShown()- Returns:
- true if iDempiere AD version should be shown to user
-
isVendorShown
public static boolean isVendorShown()- Returns:
- true if implementation vendor name should be shown to user
-
isJVMShown
public static boolean isJVMShown()- Returns:
- true if JVM info should be shown to user
-
isOSShown
public static boolean isOSShown()- Returns:
- true if OS information should be shown to user
-
isHostShown
public static boolean isHostShown()- Returns:
- true if application host should be shown to user
-
getDatabaseVersion
- Returns:
- version of iDempiere AD
-
getSum
Short Summary- Returns:
- short summary (name + main_version + sub_title)
-
getSummary
Summary- Returns:
- Summary (name + main_version + date_version + sub_title+copyright + implementation_version + implementation_vendor)
-
getImplementationVersion
Get Implementation Version- Returns:
- Implementation-Version
-
getImplementationVendor
Get Implementation Vendor- Returns:
- Implementation-Vendor
-
getCheckSum
public static int getCheckSum()Get Checksum- Returns:
- checksum
-
getSummaryAscii
Summary in ASCII- Returns:
- Summary in ASCII
-
getJavaInfo
Get Java VM Info- Returns:
- VM info
-
getOSInfo
Get Operating System Info- Returns:
- OS info
-
getURL
Get URL of product- Returns:
- URL or product
-
getOnlineHelpURL
- Returns:
- online help URL
-
getSubtitle
Get Sub Title- Returns:
- Product Subtitle
-
getImage16
Get 16x16 Image.- Returns:
- Image Icon
-
getImageLogoSmall
Get 28*15 Logo Image.- Parameters:
hr
- high resolution- Returns:
- Image Icon
-
getHeaderLogo
Get Header logo- Returns:
- Image
-
getImageLogo
Get Logo Image.- Returns:
- Image Logo
-
getImageIcon32
Get 32x32 ImageIcon.- Returns:
- Image Icon
-
getImageIconLogo
Get 100x30 ImageIcon.- Returns:
- Image Icon
-
getAdempiereHome
Get instance home directory- Returns:
- Home directory
-
getSupportEMail
Get Support Email- Returns:
- Support mail address
-
setSupportEMail
Set Support Email- Parameters:
email
- Support mail address
-
isStarted
public static boolean isStarted()- Returns:
- true if started
-
startup
public static boolean startup(boolean isClient) Startup Client/Server.
- Print greeting, - Check Java version and - load ini parameters
If it is a client, load/set PLAF and exit if error.
If client, you need to call startupEnvironment explicitly!- Parameters:
isClient
- true for client- Returns:
- successful startup
-
startupEnvironment
public static boolean startupEnvironment(boolean isClient) Startup Adempiere Environment.
Automatically called for Server connections.- Parameters:
isClient
- true if client connection- Returns:
- successful startup
-
getResource
- Parameters:
name
-- Returns:
- URL for named resource
-
stop
public static void stop()Stop instance -
getThreadPoolExecutor
- Returns:
ScheduledThreadPoolExecutor
-
removeServerStateChangeListener
- Parameters:
l
- listener
-
addServerStateChangeListener
- Parameters:
l
- listener
-