Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.ideimpl.webupdate
Class UpdateManager

java.lang.Object
  extended by oracle.ideimpl.webupdate.UpdateManager

public final class UpdateManager
extends java.lang.Object

The update manager provides information about previously installed updates and provides access to the update center. The Update Manager is designed to be run both inside and outside the IDE. As such, it's very important that this class has no direct dependencies on classes which cause the Ide to become initialized (in particular, the oracle.ide.Ide singleton itself).


Method Summary
 AutomaticCheckForUpdates getAutomaticCheckForUpdates()
           
 java.io.File getDeferredUpdatesFile()
           
 Directories getDirectories()
          Get directory information
static UpdateManager getInstance()
          Get the singleton instance of UpdateManager
 java.lang.String getMasterServerURL()
           
 java.util.Collection<UpdateCenter> getUpdateCenters()
           
 java.lang.String getUserAgent(java.lang.String targetUrl, boolean automaticPing)
          Returns the user agent we use for all HTTP requests made by check for updates.
 boolean isGlobalExtensionInstallationAllowed()
          Can global extensions be installed by the current user?
 boolean isSingleUserMode()
          Is the IDE in single user mode?
 void setDirectories(Directories d)
          Set an object that provides information about the directories the update manager should use.
 void setUpdateCenters(java.util.List updateCenters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAutomaticCheckForUpdates

public AutomaticCheckForUpdates getAutomaticCheckForUpdates()

getMasterServerURL

public java.lang.String getMasterServerURL()

setDirectories

public void setDirectories(Directories d)
Set an object that provides information about the directories the update manager should use. This interface is used to isolate the update manager from the Ide class so that it can be run as part of the IDE startup process before the main IDE is launched.


getDirectories

public Directories getDirectories()
Get directory information


isGlobalExtensionInstallationAllowed

public boolean isGlobalExtensionInstallationAllowed()
Can global extensions be installed by the current user?

Returns:
true if the user has file system permission to install extensions that are available to other users of the IDE

isSingleUserMode

public boolean isSingleUserMode()
Is the IDE in single user mode?


getUpdateCenters

public java.util.Collection<UpdateCenter> getUpdateCenters()

setUpdateCenters

public void setUpdateCenters(java.util.List updateCenters)
                      throws java.io.IOException
Throws:
java.io.IOException

getInstance

public static UpdateManager getInstance()
Get the singleton instance of UpdateManager


getDeferredUpdatesFile

public java.io.File getDeferredUpdatesFile()

getUserAgent

public java.lang.String getUserAgent(java.lang.String targetUrl,
                                     boolean automaticPing)
Returns the user agent we use for all HTTP requests made by check for updates.

Parameters:
targetUrl - the url being pinged.
automaticPing - whether this is a ping initiated via automatic check for updates.
Returns:
the user agent.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.