public final class UpdateUnitProvider extends Object
UpdateUnitProvider providers UpdateUnit. The units
are build of the of SPI UpdateProvider.UpdateProvider| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateUnitProvider.CATEGORY |
| Modifier and Type | Method and Description |
|---|---|
UpdateUnitProvider.CATEGORY |
getCategory()
Deprecated.
Use
getSourceIcon() and getSourceDescription(). |
String |
getDescription()
Description of provider.
|
String |
getDisplayName()
Display name of provider.
|
String |
getName()
Name of provider, this name is used by Autoupdate infrastructure for manimulating
of providers.
|
URL |
getProviderURL()
It's special support for
UpdateProvider based on Autoupdate Catalog. |
String |
getSourceDescription()
The description of this provider.
|
Image |
getSourceIcon()
The icon associated with this provider.
|
List<UpdateUnit> |
getUpdateUnits()
Returns
java.util.List of UpdateUnit build of the content of the
provider. |
List<UpdateUnit> |
getUpdateUnits(UpdateManager.TYPE... types)
Returns
java.util.List of UpdateUnit build of the content of the
provider. |
boolean |
isEnabled()
Returns
true if the provider is automatically checked and its UpdateUnit are
returned from UpdateManager |
boolean |
refresh(ProgressHandle handle,
boolean force)
Make refresh of content of the provider.
|
void |
setDisplayName(String name)
Sets the display name of the provider.
|
void |
setEnable(boolean state)
Sets the enable flag.
|
void |
setProviderURL(URL url)
Modified URL of URL-based provider.
|
String |
toString() |
public String getName()
public String getDisplayName()
public void setDisplayName(String name)
name - public String getDescription()
@Deprecated public UpdateUnitProvider.CATEGORY getCategory()
getSourceIcon() and getSourceDescription().public Image getSourceIcon()
UpdateElement.getSourceIcon()public String getSourceDescription()
getSourceIcon().
In case no special description is found, a general one is returned.UpdateElement.getSourceDescription()public URL getProviderURL()
UpdateProvider based on Autoupdate Catalog.
It's most kind of Update Providers and have a special support in UI.public void setProviderURL(URL url)
url - new URLpublic List<UpdateUnit> getUpdateUnits()
java.util.List of UpdateUnit build of the content of the
provider.public List<UpdateUnit> getUpdateUnits(UpdateManager.TYPE... types)
java.util.List of UpdateUnit build of the content of the
provider.types - returns UpdateUnits contain only given types, e.g. modules for MODULE type.
If types is null or null then returns default typespublic boolean refresh(ProgressHandle handle, boolean force) throws IOException
force parameter forces reading content from
remote server.handle - started ProgressHandle or nullforce - if true then forces to reread the content from serverIOException - when any network problem apprearedpublic boolean isEnabled()
true if the provider is automatically checked and its UpdateUnit are
returned from UpdateManagerpublic void setEnable(boolean state)
state - isEnabled()Built on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.