Class InstalledModule

java.lang.Object
org.bgerp.app.dist.inst.InstalledModule

public class InstalledModule extends Object
Installed module's properties, stored in version.properties files in application JAR.
  • Field Details

  • Constructor Details

    • InstalledModule

      public InstalledModule(ConfigMap properties)
      Constructor wrapping module properties.
      Parameters:
      properties - module properties
  • Method Details

    • getModuleName

      public String getModuleName()
      Module name.
      Returns:
      module name
    • getVersion

      public String getVersion()
      Module version.
      Returns:
      version
    • getBuildNumber

      public String getBuildNumber()
      Build number.
      Returns:
      build number
    • getChangeId

      public String getChangeId()
      Change ID.
      Returns:
      change ID
    • getBuildTime

      public String getBuildTime()
      Build time.
      Returns:
      build time
    • get

      public static final InstalledModule get(String module)
      Gets module version info.
      Parameters:
      module - module name, MODULE_UPDATE or MODULE_UPDATE_LIB.
      Returns:
      module version info, or null if not found
    • getInstalled

      public static final List<InstalledModule> getInstalled()
      Version infos of all modules in the running app.
      Returns:
      version infos of currently existing in the running app modules.