org.xoe.core.packages
Class PackageManager

java.lang.Object
  |
  +--org.xoe.core.packages.PackageManager

public class PackageManager
extends Object

Pure singleton (all-static) class for managing packages both on and off the system.


Field Summary
static long batchInstallTimer
           
 
Method Summary
static void addPackageServer(String type, String url)
           
static void batchInstall(String[] names)
           
static void commit(InstallOption opt)
           
static void forgetPackages()
           
static PackageActionSet getActionSet()
           
static PackageDescription getDescription(String name)
           
static PackageDescription getDescription(String name, String version)
           
static PackageDescription[] getInstalledPackages()
           
static InstallOption getUninstallOption(PackageDescription pkg)
           
static void installPackage(URL url)
           
static void installPackage(XoePackage pkg)
           
static void performQuery(IPackageQuery in_q, Vector out_res)
          First searches locally, then remotely.
static void performQuery(IPackageQuery in_q, Vector out_res, boolean all)
           
static void performQueryLocally(IPackageQuery in_q, Vector out_res)
           
static void performQueryRemotely(IPackageQuery in_q, Vector out_res)
           
static XoePackage retrievePackage(PackageDescription desc)
           
static XoePackage retrievePackageLocally(PackageDescription desc)
           
static SearchResults search(IPackageQuery in_q)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

batchInstallTimer

public static long batchInstallTimer
Method Detail

addPackageServer

public static void addPackageServer(String type,
                                    String url)

getDescription

public static PackageDescription getDescription(String name)

getDescription

public static PackageDescription getDescription(String name,
                                                String version)

batchInstall

public static void batchInstall(String[] names)
                         throws PackageException

search

public static SearchResults search(IPackageQuery in_q)

getUninstallOption

public static InstallOption getUninstallOption(PackageDescription pkg)

getInstalledPackages

public static PackageDescription[] getInstalledPackages()

commit

public static void commit(InstallOption opt)
                   throws PackageException

installPackage

public static void installPackage(URL url)
                           throws IOException,
                                  PackageException

installPackage

public static void installPackage(XoePackage pkg)
                           throws PackageException

getActionSet

public static PackageActionSet getActionSet()

performQuery

public static void performQuery(IPackageQuery in_q,
                                Vector out_res)
First searches locally, then remotely. This is a utilty method -- use wisely. This returns all matching packages, regardless of conflicts; Therefore, these pacages may not be installable, due to conflicts

performQueryLocally

public static void performQueryLocally(IPackageQuery in_q,
                                       Vector out_res)

performQueryRemotely

public static void performQueryRemotely(IPackageQuery in_q,
                                        Vector out_res)

performQuery

public static void performQuery(IPackageQuery in_q,
                                Vector out_res,
                                boolean all)

retrievePackageLocally

public static XoePackage retrievePackageLocally(PackageDescription desc)

forgetPackages

public static void forgetPackages()

retrievePackage

public static XoePackage retrievePackage(PackageDescription desc)
                                  throws PackageNotFoundException