IBM FileNet P8, Version 5.2.1            

Retrieving Add-on Installation Records

Add-on installation records for all of the add-ons and upgrade add-ons that are installed on an object store can be retrieved.

An add-on installation record is represented as an AddOnInstallationRecord object, which provides various installation-related properties. As shown in the following Java™ and C# examples, an AddOnInstallationRecordList collection is retrieved from an ObjectStore object.

Java Example

public void retrieveInstalledAddons(ObjectStore objectStore)
{
   AddOnInstallationRecordList installList = objectStore.get_AddOnInstallationRecords();
   AddOnInstallationRecord aoir = null;
   
   Iterator iter = installList.iterator();
   while (iter.hasNext())
   {
       aoir = (AddOnInstallationRecord)iter.next();
       System.out.println("Addon name: " + aoir.get_AddOnName() + "\n" +
           "Install ID: " + aoir.get_Id().toString() + "\n" +
           "Install date: " + aoir.get_InstallationDate() + "\n" +
           "Installer: " + aoir.get_Installer() + "\n" +
           "Install status: " + aoir.get_InstallationStatus() + "\n" +
           "Install report: " + aoir.get_InstallationReport() + "\n" 
       );
   }
}

C# Example

public void retrieveInstalledAddons(IObjectStore objectStore)
{
   IAddOnInstallationRecordList installList = objectStore.AddOnInstallationRecords;
   IAddOnInstallationRecord aoir = null;
   
   System.Collections.IEnumerator installIter = installList.GetEnumerator();
   while (installIter.MoveNext())
   {
     aoir = (IAddOnInstallationRecord)installIter.Current;
     System.Console.WriteLine("Addon name: " + aoir.AddOnName + "\n" +
        "Install ID: " + aoir.Id.ToString() + "\n" +
        "Install date: " + aoir.InstallationDate + "\n" +
        "Installer: " + aoir.Installer + "\n" +
        "Install status: " + aoir.InstallationStatus + "\n" +
        "Install report: " + aoir.InstallationReport + "\n" 
      );
   }
}


Last updated: October 2015
addon_snip6.htm

© Copyright IBM Corporation 2015.