Package org.compiere

Class Adempiere

java.lang.Object
org.compiere.Adempiere

public final class Adempiere extends Object
Static methods for iDempiere startup, system info and global thread pool.
Author:
Jorg Janke
  • Field Details

  • Constructor Details

    • Adempiere

      public Adempiere()
  • Method Details

    • getName

      public static String getName()
      Get Product Name
      Returns:
      Application Name
    • getVersion

      public static String getVersion()
      Get Product Version
      Returns:
      Application Version
    • getCustomizationVersion

      public static String getCustomizationVersion()
      Get Product Customization Version
      Returns:
      Customization 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

      public static String getDatabaseVersion()
      Returns:
      version of iDempiere AD
    • getSum

      public static String getSum()
      Short Summary
      Returns:
      short summary (name + main_version + sub_title)
    • getSummary

      public static String getSummary()
      Summary
      Returns:
      Summary (name + main_version + date_version + sub_title+copyright + implementation_version + implementation_vendor)
    • getImplementationVersion

      public static String getImplementationVersion()
      Get Implementation Version
      Returns:
      Implementation-Version
    • getImplementationVendor

      public static String getImplementationVendor()
      Get Implementation Vendor
      Returns:
      Implementation-Vendor
    • getCheckSum

      public static int getCheckSum()
      Get Checksum
      Returns:
      checksum
    • getSummaryAscii

      public static String getSummaryAscii()
      Summary in ASCII
      Returns:
      Summary in ASCII
    • getJavaInfo

      public static String getJavaInfo()
      Get Java VM Info
      Returns:
      VM info
    • getOSInfo

      public static String getOSInfo()
      Get Operating System Info
      Returns:
      OS info
    • getURL

      public static String getURL()
      Get URL of product
      Returns:
      URL or product
    • getOnlineHelpURL

      public static String getOnlineHelpURL()
      Returns:
      online help URL
    • getSubtitle

      public static String getSubtitle()
      Get Sub Title
      Returns:
      Product Subtitle
    • getImage16

      public static Image getImage16()
      Get 16x16 Image.
      Returns:
      Image Icon
    • getImageLogoSmall

      public static Image getImageLogoSmall(boolean hr)
      Get 28*15 Logo Image.
      Parameters:
      hr - high resolution
      Returns:
      Image Icon
    • getHeaderLogo

      public static Image getHeaderLogo()
      Get Header logo
      Returns:
      Image
    • getImageLogo

      public static Image getImageLogo()
      Get Logo Image.
      Returns:
      Image Logo
    • getImageIcon32

      public static ImageIcon getImageIcon32()
      Get 32x32 ImageIcon.
      Returns:
      Image Icon
    • getImageIconLogo

      public static ImageIcon getImageIconLogo()
      Get 100x30 ImageIcon.
      Returns:
      Image Icon
    • getAdempiereHome

      public static String getAdempiereHome()
      Get instance home directory
      Returns:
      Home directory
    • getSupportEMail

      public static String getSupportEMail()
      Get Support Email
      Returns:
      Support mail address
    • setSupportEMail

      public static void setSupportEMail(String email)
      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

      public static URL getResource(String name)
      Parameters:
      name -
      Returns:
      URL for named resource
    • stop

      public static void stop()
      Stop instance
    • getThreadPoolExecutor

      public static ScheduledThreadPoolExecutor getThreadPoolExecutor()
      Returns:
      ScheduledThreadPoolExecutor
    • removeServerStateChangeListener

      public static void removeServerStateChangeListener(ServerStateChangeListener l)
      Parameters:
      l - listener
    • addServerStateChangeListener

      public static void addServerStateChangeListener(ServerStateChangeListener l)
      Parameters:
      l - listener