|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.instassm.InstallationRegistry
An internal-use-only class that provides simple Java APIs for manipulating the
InstallationRegistry.
Supported API: false
Extendable: false
Field Summary | |
private HashMap |
assemblies_
|
private HashMap |
assemblyElements_
|
private Document |
doc_
|
private static String |
IAREG_ZIP_ENTRY_NAME
|
private static String |
IAREG_ZIP_FILE_NAME
|
private int |
instregVersion_
|
private HashMap |
localeElements_
|
private HashMap |
locales_
|
private HashMap |
releaseIds_
|
private static String |
ROOT_ELEMENT
|
private HashMap |
tempPatchElements_
|
private HashMap |
tempPatches_
|
Constructor Summary | |
(package private) |
InstallationRegistry()
Create a new, empty registry. |
private |
InstallationRegistry(InputStream input_stream)
Read the registry from the speicfied input stream. |
Method Summary | |
(package private) void |
addAssembly(InstalledAssembly ia)
Add/update record for assembly with the assembly id specified in the release identifier. |
(package private) void |
addLocale(InstalledLocale il)
Add/update record for locale with the specified code. |
(package private) void |
addTempPatch(InstalledTempPatch itp)
Add/update record for locale with the specified code. |
private void |
analyzeDocument()
Scan the DOM document for assembly information. |
private static void |
copyInstRegFilesToWindchillCodebase()
|
static boolean |
existsInLocalFile()
Determines if the registry exists and can be loaded via the method readFromLocalFile() . |
private void |
findAssemblies(Element root)
|
private void |
findLocales(Element root)
|
private void |
findTempPatches(Element root)
|
InstalledAssembly |
getAssemblyFor(String assembly_id)
The InstalledAssembly for the assembly with the specified assembly id. |
ReleaseId[] |
getAssemblyReleaseIds()
The set of release ids for all assemblies in the registry, in order of appearance in the file. |
private static File |
getInstallationRegistryFile(boolean use_treat_r70_when_set)
|
private static String |
getInstallationRegistryUrl()
|
InstalledAssembly[] |
getInstalledAssemblies()
An array of all the InstalledAssemblies for the current registry. |
InstalledLocale[] |
getInstalledLocales()
An array of all the InstalledLocales for the current registry above and beyond the default locales provided by Windchill Supported API: false Extendable: false |
InstalledTempPatch[] |
getInstalledTempPatches()
An array of all the InstalledTempPatches for the current registry. |
int |
getInstregVersion()
The instreg version of this InstallationRegistry. |
private void |
index(InstalledAssembly ia,
Element element)
|
private void |
index(InstalledLocale locale,
Element element)
|
private void |
index(InstalledTempPatch temp_patch,
Element element)
|
private void |
initDerivedContainers()
Clear all containers that contain assembly information. |
private void |
logInstallerMessage(String msg)
|
private static void |
moveR70InstRegFilesToStandardInstRegDir()
|
static InstallationRegistry |
readFromContext()
Load the registry using class loader. |
static InstallationRegistry |
readFromLocalFile()
Load the registry by directly loading the file. |
void |
removeInstalledAssembly(String[] assembly_ids)
Remove the specified installed assembly from both the standard and secondary install registry locations. |
protected void |
setAttributesOn(Element element)
|
private void |
setInstregVersion(Element root)
|
private void |
setInstregVersion(int instreg_version)
|
(package private) static boolean |
thereIsAnInstallationRegistryFileHere(File dir)
|
static boolean |
thereIsAStandardInstallationRegistryInLoadPoint(File load_point)
|
static boolean |
thereIsAWindchillProductInstallationRegistryInLoadPoint(File load_point)
|
private void |
updateRegistry()
|
(package private) void |
writeToLocalFile()
Writes the current assembly registry object's contents to the proper location under the |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int instregVersion_
private static final String ROOT_ELEMENT
private static final String IAREG_ZIP_FILE_NAME
private static final String IAREG_ZIP_ENTRY_NAME
private Document doc_
private HashMap releaseIds_
private HashMap assemblies_
private HashMap assemblyElements_
private HashMap locales_
private HashMap localeElements_
private HashMap tempPatches_
private HashMap tempPatchElements_
Constructor Detail |
InstallationRegistry() throws IAException
private InstallationRegistry(InputStream input_stream) throws IAException
input_stream
- an InputStream that returns the jar'ed contents of the XML file as a jar entry named InstallationRegistry.xml.
IAException
- if the stream is not a zip stream, the IAR.xml entry can't be found, or it contains invalid contentMethod Detail |
private static File getInstallationRegistryFile(boolean use_treat_r70_when_set) throws IAException
IAException
private static String getInstallationRegistryUrl() throws IAException
IAException
public static boolean thereIsAStandardInstallationRegistryInLoadPoint(File load_point) throws IAException
IAException
public static boolean thereIsAWindchillProductInstallationRegistryInLoadPoint(File load_point) throws IAException
IAException
static boolean thereIsAnInstallationRegistryFileHere(File dir) throws IAException
IAException
private void analyzeDocument() throws IAException
IAException
private void updateRegistry() throws IAException
IAException
protected void setAttributesOn(Element element) throws IAException
IAException
private void findAssemblies(Element root) throws IAException
IAException
private void index(InstalledAssembly ia, Element element)
private void findLocales(Element root) throws IAException
IAException
private void index(InstalledLocale locale, Element element)
private void findTempPatches(Element root) throws IAException
IAException
private void index(InstalledTempPatch temp_patch, Element element)
private void initDerivedContainers()
void addAssembly(InstalledAssembly ia) throws IAException
IAException
void addLocale(InstalledLocale il) throws IAException
IAException
void addTempPatch(InstalledTempPatch itp) throws IAException
IAException
public ReleaseId[] getAssemblyReleaseIds()
public InstalledAssembly getAssemblyFor(String assembly_id)
public InstalledAssembly[] getInstalledAssemblies()
InstalledAssemblies
for the current registry.
InstalledAssembly
public InstalledLocale[] getInstalledLocales()
InstalledLocale
public InstalledTempPatch[] getInstalledTempPatches()
InstalledTempPatch
private void setInstregVersion(Element root) throws IAException
IAException
private void setInstregVersion(int instreg_version) throws IAException
IAException
public int getInstregVersion()
void writeToLocalFile() throws IAException
IAException
private static void moveR70InstRegFilesToStandardInstRegDir() throws IAException
IAException
private static void copyInstRegFilesToWindchillCodebase() throws IAException
IAException
public void removeInstalledAssembly(String[] assembly_ids) throws IAException
IAException
- if the registry resource cannot be found in the context or if the registry is malformedpublic static InstallationRegistry readFromContext() throws IAException
IAException
- if the registry resource cannot be found in the context or if the registry is malformedpublic static boolean existsInLocalFile() throws IAException
readFromLocalFile()
.
IAException
public static InstallationRegistry readFromLocalFile() throws IAException
IAException
- if the registry resource cannot be found and fail_if_doesnt_exist, or if the registry is malformedprivate void logInstallerMessage(String msg)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |