|
org.netbeans.modules.autoupdate.services 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.autoupdate.UpdateUnitProvider
public final class UpdateUnitProvider
UpdateUnitProvider providers UpdateUnit. The units
are build of the of SPI UpdateProvider.
UpdateProvider| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getName()
public String getDisplayName()
public void setDisplayName(String name)
name - 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 types
public 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 server
IOException - when any network problem apprearedpublic boolean isEnabled()
true if the provider is automatically checked and its UpdateUnit are
returned from UpdateManager
public void setEnable(boolean state)
state - isEnabled()
|
org.netbeans.modules.autoupdate.services 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||