|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.util.version.WindchillVersion
Provides APIs for querying the release identifiers and display labels
for all installed assemblies.
Supported API: true
Extendable: false
Field Summary | |
private static InstallationRegistry |
installedAssemblyRegistry__
|
private static String |
RESOURCE
|
Constructor Summary | |
WindchillVersion()
|
Method Summary | |
private static void |
displayTable(String[][] data)
|
static String |
getDisplayLabelFor(ReleaseId release_identifier)
Query the display label associated with an assembly's release id. |
static String |
getDisplayLabelFor(String assembly_identifier)
Query the display label associated with a particular assembly id. |
private static InstallationRegistry |
getInstallationRegistry()
|
static String |
getInstalledAssemblyDisplayLabelsAsString()
Returns the display labels of all installed assemblies in a comma-delimited list. |
static ReleaseId |
getInstalledAssemblyReleaseIdFor(String assembly_id)
Query the release id for the assembly with the specified assembly id. |
static ReleaseId[] |
getInstalledAssemblyReleaseIds()
Query the release ids of all installed assemblies. |
static String |
getInstalledAssemblyReleaseIdsAsString()
Returns the release ids of all installed assemblies in a comma-delimited list. |
static String |
getInstallerSequenceFor(ReleaseId release_id)
Query the installer sequence associated with a particular assembly id. |
static String |
getSupportDateCodeFor(ReleaseId release_identifier)
Query the date code associated with an assembly's release id. |
static String |
getSupportDateCodeFor(String assembly_id)
Query the date code associated with a particular assembly id. |
static String |
getSupportReleaseNumberFor(ReleaseId release_identifier)
Query the release number associated with an assembly's release id. |
static String |
getSupportReleaseNumberFor(String assembly_id)
Query the release number associated with a particular assembly id |
static boolean |
isAssemblyInstalled(String assembly_id)
Determine if the assembly with the specified id is installed. |
static boolean |
isComplete(ReleaseId release_id)
Whether or not the assembly with the release id's assembly id was sucessfully installed Supported API: false Extendable: false |
static boolean |
isRegressed(ReleaseId release_id)
Whether or not the assembly with the release id's assembly id has regressed from its highest version. |
private static String |
leftJustify(int size,
String str)
|
static void |
main(String[] args)
When invoked, displays to System.out information for each assembly, temp patch and locale installed. |
static void |
reportOnInstall()
When invoked, displays to System.out information for each assembly, temp patch and locale installed. |
private static void |
reportOnInstalledAssemblies()
|
private static void |
reportOnLocales()
|
private static void |
reportOnTemporaryPatches()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static InstallationRegistry installedAssemblyRegistry__
Constructor Detail |
public WindchillVersion()
Method Detail |
private static InstallationRegistry getInstallationRegistry() throws IAException
IAException
public static final ReleaseId[] getInstalledAssemblyReleaseIds() throws ReleaseIdException
These release ids are queries from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: true
Extendable: false
ReleaseIdException
- if there is a problem reading
the InstallationRegistry resourcepublic static final boolean isAssemblyInstalled(String assembly_id) throws ReleaseIdException
These ids is queries from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: true
Extendable: false
ReleaseIdException
- if there is a problem reading the InstallationRegistry resource or if the named assembly is not installedpublic static final ReleaseId getInstalledAssemblyReleaseIdFor(String assembly_id) throws ReleaseIdException
These ids is queries from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: true
Extendable: false
ReleaseIdException
- if there is a problem reading the InstallationRegistry resource or if the named assembly is not installedisAssemblyInstalled(java.lang.String)
public static final String getDisplayLabelFor(ReleaseId release_identifier) throws ReleaseIdException
This information is queried from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: true
Extendable: false
ReleaseIdException
- if there is a problem reading the InstallationRegistry resourceisAssemblyInstalled(java.lang.String)
public static final String getDisplayLabelFor(String assembly_identifier) throws ReleaseIdException
This information is queried from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: true
Extendable: false
ReleaseIdException
- if there is a problem reading the InstallationRegistry resourceisAssemblyInstalled(java.lang.String)
public static final String getSupportDateCodeFor(ReleaseId release_identifier) throws ReleaseIdException
This information is queried from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: true
Extendable: false
ReleaseIdException
- if there is a problem reading the InstallationRegistry resourcepublic static final String getSupportDateCodeFor(String assembly_id) throws ReleaseIdException
This information is queried from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: true
Extendable: false
ReleaseIdException
- if there is a problem reading the InstallationRegistry resourcepublic static final String getSupportReleaseNumberFor(ReleaseId release_identifier) throws ReleaseIdException
This is not the formal release identifier (ReleaseId), but rather the truncated version number to display in a product's about page allong with the date code to clearly identify the product when requesting techinical support.
This information is queried from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: true
Extendable: false
ReleaseIdException
- if there is a problem reading the InstallationRegistry resourcepublic static final String getSupportReleaseNumberFor(String assembly_id) throws ReleaseIdException
This is not the formal release identifier (ReleaseId), but rather the truncated version number to display in a product's about page allong with the date code to clearly identify the product when requesting techinical support.
This information is queried from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: true
Extendable: false
ReleaseIdException
- if there is a problem reading the InstallationRegistry resourcepublic static final String getInstallerSequenceFor(ReleaseId release_id) throws ReleaseIdException
This information is queried from the
$(wt.home)/codebase/instreg/registry
resource located on the server. This .iar resource is
queries through the WTContext. So if invoking from a
Windchill client, the HTTP server must be running.
Supported API: false
Extendable: false
ReleaseIdException
- if there is a problem reading the InstallationRegistry resourcepublic static final boolean isComplete(ReleaseId release_id) throws ReleaseIdException
ReleaseIdException
- if there is a problem reading the InstallationRegistry resourcepublic static final boolean isRegressed(ReleaseId release_id) throws ReleaseIdException
ReleaseIdException
- if there is a problem reading the InstallationRegistry resourcepublic static final String getInstalledAssemblyReleaseIdsAsString() throws ReleaseIdException
ReleaseIdException
public static final String getInstalledAssemblyDisplayLabelsAsString() throws ReleaseIdException
ReleaseIdException
public static void main(String[] args)
public static void reportOnInstall() throws Exception
Exception
private static void reportOnInstalledAssemblies() throws IAException, ReleaseIdException
IAException
ReleaseIdException
private static void reportOnTemporaryPatches() throws IAException
IAException
private static void reportOnLocales() throws IAException
IAException
private static void displayTable(String[][] data)
private static String leftJustify(int size, String str)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |