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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic StringDetail Version as date Used for Client/Serverstatic StringDatabase Version as date Compared with AD_Systemstatic final StringDeprecated.static StringMain Version Stringstatic final StringProduct Namestatic final StringSubtitlestatic final StringURL of Product -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic StringGet instance home directorystatic intGet Checksumstatic Stringstatic ImageGet Header logostatic ImageGet 16x16 Image.static ImageIconGet 32x32 ImageIcon.static ImageIconGet 100x30 ImageIcon.static ImageGet Logo Image.static ImagegetImageLogoSmall(boolean hr) Get 28*15 Logo Image.static StringGet Implementation Vendorstatic StringGet Implementation Versionstatic StringGet Java VM Infostatic StringgetName()Get Product Namestatic Stringstatic StringGet Operating System Infostatic URLgetResource(String name) static StringGet Sub Titlestatic StringgetSum()Short Summarystatic StringSummarystatic StringSummary in ASCIIstatic StringGet Support Emailstatic ScheduledThreadPoolExecutorstatic StringgetURL()Get URL of productstatic StringGet Product Versionstatic booleanstatic booleanstatic booleanstatic booleanDefines if this server is used for demo purposes, to show the login information at the left panel and provide quick fill of User/Passwordstatic booleanstatic booleanstatic booleanstatic booleanstatic voidstatic voidsetSupportEMail(String email) Set Support Emailstatic booleanstartup(boolean isClient) Startup Client/Server.static booleanstartupEnvironment(boolean isClient) Startup Adempiere Environment.
Automatically called for Server connections.static voidstop()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
-
isLoginInfoShown
public static boolean isLoginInfoShown()Defines if this server is used for demo purposes, to show the login information at the left panel and provide quick fill of User/Password- Returns:
-
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
-