org.netbeans.modules.autoupdate.services 1.3.1

org.netbeans.api.autoupdate
Class UpdateManager

java.lang.Object
  extended by org.netbeans.api.autoupdate.UpdateManager

public final class UpdateManager
extends Object

The central manager of content available to users in Autoupdate UI. It providers list of units which can be browsed in UI and handles operations which can be performed on units (i.e. install, update or unistall etc.).


Nested Class Summary
static class UpdateManager.TYPE
           
 
Method Summary
static UpdateManager getDefault()
          Returns singleton instance of UpdateManager
 List<UpdateUnit> getUpdateUnits()
          Returns java.util.List of UpdateUnit build on the top of UpdateUnitProvider.
 List<UpdateUnit> getUpdateUnits(UpdateManager.TYPE... types)
          Returns java.util.List of UpdateUnit build on the top of UpdateUnitProvider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static final UpdateManager getDefault()
Returns singleton instance of UpdateManager

Returns:
UpdateManager

getUpdateUnits

public List<UpdateUnit> getUpdateUnits()
Returns java.util.List of UpdateUnit build on the top of UpdateUnitProvider. Only enabled providers are taken in the result.

Returns:
list of UpdateUnit

getUpdateUnits

public List<UpdateUnit> getUpdateUnits(UpdateManager.TYPE... types)
Returns java.util.List of UpdateUnit build on the top of UpdateUnitProvider. Only enabled providers are taken in the result.

Parameters:
types - returns UpdateUnits contain only given types, e.g. modules for MODULE type. If types is null or null then returns default types
Returns:
list of UpdateUnit

org.netbeans.modules.autoupdate.services 1.3.1

Built on January 29 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.