Class WindchillVersion
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDisplayLabelFor(ReleaseId release_identifier) Query the display label associated with an assembly's release id.static StringgetDisplayLabelFor(String assembly_identifier) Query the display label associated with a particular assembly id.static StringQuery the date code for the installationstatic StringQuery the release number for the installationstatic ReleaseIdgetInstalledAssemblyReleaseIdFor(String assembly_id) Query the release id for the assembly with the specified assembly id.static ReleaseId[]Query the release ids of all installed assemblies.static StringgetSupportDateCodeFor(ReleaseId release_identifier) Query the date code associated with an assembly's release id.static StringgetSupportDateCodeFor(String assembly_id) Query the date code associated with a particular assembly id.static StringgetSupportReleaseNumberFor(ReleaseId release_identifier) Query the release number associated with an assembly's release id.static StringgetSupportReleaseNumberFor(String assembly_id) Query the release number associated with a particular assembly idstatic booleanisAssemblyInstalled(String assembly_id) Determine if the assembly with the specified id is installed.
-
Method Details
-
getInstalledAssemblyReleaseIds
public static ReleaseId[] getInstalledAssemblyReleaseIds() throws com.ptc.windchill.instassm.ReleaseIdExceptionQuery the release ids of all installed assemblies.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- Returns:
- non-null collection of versions in no particular order
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource
-
isAssemblyInstalled
public static boolean isAssemblyInstalled(String assembly_id) throws com.ptc.windchill.instassm.ReleaseIdException Determine if the assembly with the specified id is installed.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- Returns:
- true if the assembly with the specified id is installed
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource or if the named assembly is not installed
-
getInstalledAssemblyReleaseIdFor
public static ReleaseId getInstalledAssemblyReleaseIdFor(String assembly_id) throws com.ptc.windchill.instassm.ReleaseIdException Query the release id for the assembly with the specified assembly id.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- Returns:
- POSSIBLY-NULL ReleaseId corresponding to the provided assembly id (i.e. null when isAssemblyInstalled = false)
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource or if the named assembly is not installed- See Also:
-
getDisplayLabelFor
public static String getDisplayLabelFor(ReleaseId release_identifier) throws com.ptc.windchill.instassm.ReleaseIdException Query the display label associated with an assembly's release id.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- Returns:
- non-null string that may be empty of the assembly with the release identifier was never installed
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource- See Also:
-
getDisplayLabelFor
public static String getDisplayLabelFor(String assembly_identifier) throws com.ptc.windchill.instassm.ReleaseIdException Query the display label associated with a particular assembly id.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- Returns:
- non-null string that may be empty of the assembly with the release identifier was never installed
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource- See Also:
-
getSupportDateCodeFor
public static String getSupportDateCodeFor(ReleaseId release_identifier) throws com.ptc.windchill.instassm.ReleaseIdException Query the date code associated with an assembly's release id.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- Returns:
- non-null, possibly-empty string
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource
-
getSupportDateCodeFor
public static String getSupportDateCodeFor(String assembly_id) throws com.ptc.windchill.instassm.ReleaseIdException Query the date code associated with a particular assembly id.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- Returns:
- non-null, possibly-empty string
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource
-
getSupportReleaseNumberFor
public static String getSupportReleaseNumberFor(ReleaseId release_identifier) throws com.ptc.windchill.instassm.ReleaseIdException Query the release number associated with an assembly's release id.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- Returns:
- non-null, possibly-empty string
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource
-
getSupportReleaseNumberFor
public static String getSupportReleaseNumberFor(String assembly_id) throws com.ptc.windchill.instassm.ReleaseIdException Query the release number associated with a particular assembly idThis 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- Returns:
- non-null, possibly-empty string
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource
-
getInstallationReleaseNumber
public static String getInstallationReleaseNumber() throws com.ptc.windchill.instassm.ReleaseIdExceptionQuery the release number for the installationThis 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- Returns:
- non-null, possibly-empty string
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource
-
getInstallationDateCode
Query the date code for the installationThis 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- Returns:
- non-null, possibly-empty string
- Throws:
com.ptc.windchill.instassm.ReleaseIdException- if there is a problem reading the InstallationRegistry resource
-