public class Version
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Version.PFReader |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
allProductInfo |
static java.util.Map<java.lang.String,java.lang.String> |
allProductInfoWithoutProductKeyCheck |
static java.lang.String |
build
Build number
|
static java.lang.String |
DBBuild
DB Build
|
static boolean |
dbConnection |
static java.lang.String |
hfDBBuild
Hotfix DB build
|
static java.lang.String |
hotfix
Hotfix number
|
static java.lang.String |
lastReleaseDBbuilds
last release database build number, it is not final on purpose to prevent upatedb class keeps the variable
in its class by the compiler.
|
static java.lang.String |
lastReleaseMTDBbuilds
last release database build number for MT, it is not final on purpose to prevent upatedb class keeps the variable
in its class by the compiler.
|
static java.lang.String |
lastReportVersion |
static java.lang.String |
majorVersion
Major version
|
static java.lang.String |
minorVersion
Minor version
|
static java.lang.String |
modLevel
Modification version
|
static java.lang.String |
MTDBBuild
The latest MT script
|
static java.lang.String |
patch
Patch version
|
static java.util.HashSet<java.lang.String> |
productKeysSet |
static java.lang.String |
productName
Name of the product
|
static java.lang.String |
propdir
properties file directory
|
static java.lang.String |
versioncompatiblemap
This means user can go from 7.1.1.11 or 7500 to 7503, not from in between 7.1.1.11 and 7500 like 71112 to 7503
|
static java.lang.String |
versionStr |
Constructor and Description |
---|
Version() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkMaxVarInDB(java.lang.String dbmaxvarname,
java.sql.Connection con)
Check if maxvar is there in database or not.
|
static java.util.Map<java.lang.String,java.lang.String> |
getAllProductInfo() |
static java.util.Map<java.lang.String,java.lang.String> |
getAllProductInfoWithoutProductKeyCheck()
Returns hashmap with version information for all products without productkey check
|
static java.lang.String |
getBaseProductName()
returns the base product name string
|
static java.lang.String |
getBuildString()
returns the build string
|
static java.sql.Connection |
getConnection() |
static java.lang.String |
getDBBuildString()
returns the database build string
|
static java.lang.String |
getHFDBBuildString(boolean mt)
returns the hotfix database build string
|
static java.lang.String |
getHotFixVersion() |
static java.lang.String |
getLastRelDBBuildString(java.lang.String previousBuildsString)
returns the last release database build string
|
static java.lang.String |
getMTDBBuildString()
returns the database build string for MT
|
static java.lang.String |
getPatchString()
returns the patch build string
|
java.lang.String |
getProductDir(java.lang.String productDir) |
static java.util.Map<java.lang.String,java.lang.String> |
getProductInfoFromXMLStream(java.util.HashMap<java.lang.String,java.io.InputStream> xmlMap,
java.sql.Connection con)
Loop through all product xml inputstream and returns version information of products that has valid ProductKey.
|
static java.lang.String |
getProductVersion() |
static java.lang.String[] |
getRelDBBuildStrings(java.lang.String previousDBBuilds)
returns the last releases' database build strings and the new release string in an array in
the their relase orders.
|
java.util.HashMap<java.lang.String,java.io.InputStream> |
getStreamFromBundle(java.lang.String productDir) |
java.util.HashMap<java.lang.String,java.io.InputStream> |
getStreamfromDirectory(java.lang.String productDir)
Gets maximo Input Stream from XML files in directory structure
|
java.util.HashMap<java.lang.String,java.io.InputStream> |
getStreamFromJar(java.lang.String productDir)
Get product xml stream from jar
|
static java.lang.String |
getString()
Returns the version label.
|
static java.lang.String |
getString(java.lang.String propdir)
Returns the version label when not connected to MXServer.
|
static java.lang.String[] |
getStringForHelpAboutDialog()
Return the version label for help about dialog
|
static java.lang.String |
getversionCompatibleMap() |
java.util.HashMap<java.lang.String,java.io.InputStream> |
getXMLInputStream()
Gets maximo Input Stream from XML files
|
static void |
main(java.lang.String[] argv)
Print out the version of the product to the console
|
static void |
setStreamHelper(StreamHelper _helper) |
public static final java.lang.String productName
public static final java.lang.String majorVersion
public static final java.lang.String minorVersion
public static final java.lang.String modLevel
public static final java.lang.String patch
public static final java.lang.String DBBuild
public static final java.lang.String MTDBBuild
public static final java.lang.String build
public static java.lang.String lastReleaseDBbuilds
public static java.lang.String lastReleaseMTDBbuilds
public static final java.lang.String hotfix
public static final java.lang.String hfDBBuild
public static java.lang.String versioncompatiblemap
public static java.lang.String lastReportVersion
public static java.lang.String versionStr
public static java.lang.String propdir
public static boolean dbConnection
public static java.util.Map<java.lang.String,java.lang.String> allProductInfo
public static java.util.Map<java.lang.String,java.lang.String> allProductInfoWithoutProductKeyCheck
public static java.util.HashSet<java.lang.String> productKeysSet
public static java.lang.String getHotFixVersion()
public static java.lang.String getProductVersion()
public static java.lang.String getString(java.lang.String propdir)
propdir
- The location of the maximo.properties filepublic static java.lang.String getString()
public static java.sql.Connection getConnection()
public static java.lang.String[] getStringForHelpAboutDialog()
public java.util.HashMap<java.lang.String,java.io.InputStream> getXMLInputStream() throws java.lang.Exception
java.lang.Exception
public java.lang.String getProductDir(java.lang.String productDir)
public static void setStreamHelper(StreamHelper _helper)
public java.util.HashMap<java.lang.String,java.io.InputStream> getStreamFromBundle(java.lang.String productDir) throws java.lang.Exception
java.lang.Exception
public java.util.HashMap<java.lang.String,java.io.InputStream> getStreamFromJar(java.lang.String productDir) throws java.lang.Exception
java.lang.Exception
public java.util.HashMap<java.lang.String,java.io.InputStream> getStreamfromDirectory(java.lang.String productDir) throws java.lang.Exception
java.lang.Exception
public static java.util.Map<java.lang.String,java.lang.String> getAllProductInfo()
public static java.util.Map<java.lang.String,java.lang.String> getAllProductInfoWithoutProductKeyCheck()
public static java.lang.String getDBBuildString()
public static java.lang.String getMTDBBuildString()
public static java.lang.String getHFDBBuildString(boolean mt)
public static java.lang.String getLastRelDBBuildString(java.lang.String previousBuildsString)
public static java.lang.String getBuildString()
public static java.lang.String getPatchString()
public static void main(java.lang.String[] argv)
public static java.util.Map<java.lang.String,java.lang.String> getProductInfoFromXMLStream(java.util.HashMap<java.lang.String,java.io.InputStream> xmlMap, java.sql.Connection con) throws java.lang.Exception
Hashmap(productname,inputstream)
- database
- connectionjava.lang.Exception
public static boolean checkMaxVarInDB(java.lang.String dbmaxvarname, java.sql.Connection con)
public static java.lang.String getBaseProductName()
public static java.lang.String getversionCompatibleMap()
public static java.lang.String[] getRelDBBuildStrings(java.lang.String previousDBBuilds)