| java.lang.Object org.netbeans.spi.autoupdate.UpdateItem
UpdateItem | final public class UpdateItem (Code) | | Represents a item of content provider by UpdateProvider . These items are exposed to
Autoupdate infrastructure what works on them.
author: Jiri Rechtacek |
Method Summary | |
final public static UpdateItem | createFeature(String codeName, String specificationVersion, Set<String> dependencies, String displayName, String description, String category) Creates UpdateItem which represents Feature , it's means group
of NetBeans Modules. | final public static UpdateItem | createInstalledNativeComponent(String codeName, String specificationVersion, Set<String> dependencies, String displayName, String description, CustomUninstaller uninstaller) Creates UpdateItem which represents Native Component with own installer. | final public static UpdateItem | createLocalization(String codeName, String specificationVersion, String moduleSpecificationVersion, Locale locale, String branding, String localizedName, String localizedDescription, String category, URL distribution, Boolean needsRestart, Boolean isGlobal, String targetCluster, UpdateLicense license) Creates UpdateItem which can localized NetBeans Module in given Locale . | final public static UpdateItem | createModule(String codeName, String specificationVersion, URL distribution, String author, String downloadSize, String homepage, String publishDate, String category, Manifest manifest, Boolean isEager, Boolean isAutoload, Boolean needsRestart, Boolean isGlobal, String targetCluster, UpdateLicense license) Creates UpdateItem/code> which represents NetBeans Module in Autoupdate infrastructure. | final public static UpdateItem | createNativeComponent(String codeName, String specificationVersion, String downloadSize, Set<String> dependencies, String displayName, String description, Boolean needsRestart, Boolean isGlobal, String targetCluster, CustomInstaller installer, UpdateLicense license) Creates UpdateItem which represents Native Component with own installer. |
createFeature | final public static UpdateItem createFeature(String codeName, String specificationVersion, Set<String> dependencies, String displayName, String description, String category)(Code) | | Creates UpdateItem which represents Feature , it's means group
of NetBeans Modules. This Feature is handled in UI as atomic item.
UpdateItem is identify by codeName and specificationVersion.
Parameters: codeName - code name of feature Parameters: specificationVersion - specification version of feature Parameters: dependencies - dependencies to NetBeans modules on which is the feature based Parameters: displayName - display name Parameters: description - description Parameters: category - name of category UpdateItem |
createInstalledNativeComponent | final public static UpdateItem createInstalledNativeComponent(String codeName, String specificationVersion, Set<String> dependencies, String displayName, String description, CustomUninstaller uninstaller)(Code) | | Creates UpdateItem which represents Native Component with own installer. This component
can be visualized in UI as common item, when an user wants to install this component then
own CustomInstaller is call back.
Parameters: codeName - code name of the native component Parameters: specificationVersion - specification version of component Parameters: dependencies - dependencies to other UpdateItem Parameters: displayName - display name Parameters: description - description Parameters: uninstaller - CustomUninstaller call-back interface UpdateItem |
createLocalization | final public static UpdateItem createLocalization(String codeName, String specificationVersion, String moduleSpecificationVersion, Locale locale, String branding, String localizedName, String localizedDescription, String category, URL distribution, Boolean needsRestart, Boolean isGlobal, String targetCluster, UpdateLicense license)(Code) | | Creates UpdateItem which can localized NetBeans Module in given Locale .
Parameters: codeName - code name of the module for localization Parameters: specificationVersion - specification version of localization Parameters: moduleSpecificationVersion - specification version of the module for localization Parameters: locale - locale Parameters: branding - branding Parameters: localizedName - localized name of module Parameters: localizedDescription - localized descripton of module Parameters: category - name of category Parameters: distribution - URL to NBM file Parameters: needsRestart - if true then IDE must be restarted after module installation Parameters: isGlobal - control if the module will be installed into the installation directory or into user's dir Parameters: targetCluster - name of cluster where new module will be installed if installation isGlobal Parameters: license - UpdateLicense represents license name and text of license agreement UpdateItem |
createModule | final public static UpdateItem createModule(String codeName, String specificationVersion, URL distribution, String author, String downloadSize, String homepage, String publishDate, String category, Manifest manifest, Boolean isEager, Boolean isAutoload, Boolean needsRestart, Boolean isGlobal, String targetCluster, UpdateLicense license)(Code) | | Creates UpdateItem/code> which represents NetBeans Module in Autoupdate infrastructure.
UpdateItem is identify by codeName and specificationVersion.
Parameters: codeName - code name of module Parameters: specificationVersion - specification version of module Parameters: distribution - URL to NBM file Parameters: author - name of module author or null Parameters: downloadSize - size of NBM file in bytes Parameters: homepage - homepage of module or null Parameters: publishDate - date of publish of item, in date format "yyyy/MM/dd" Parameters: category - name of category Parameters: manifest - java.util.jar.Manifest describes the module in NetBeans module system Parameters: isEager - says if the module is eager or not Parameters: isAutoload - says if the module is autoload or not Parameters: needsRestart - if true then IDE must be restarted after module installation Parameters: isGlobal - control if the module will be installed into the installation directory or into user's dir Parameters: targetCluster - name of cluster where new module will be installed if installation isGlobal Parameters: license - UpdateLicense represents license name and text of license agreement UpdateItem |
createNativeComponent | final public static UpdateItem createNativeComponent(String codeName, String specificationVersion, String downloadSize, Set<String> dependencies, String displayName, String description, Boolean needsRestart, Boolean isGlobal, String targetCluster, CustomInstaller installer, UpdateLicense license)(Code) | | Creates UpdateItem which represents Native Component with own installer. This component
can be visualized in UI as common item, when an user wants to install this component then
own CustomInstaller is call back.
Parameters: codeName - code name of the native component Parameters: specificationVersion - specification version of component Parameters: dependencies - dependencies to other UpdateItem Parameters: downloadSize - size of installation file in bytes Parameters: displayName - display name Parameters: description - description Parameters: needsRestart - if true then IDE must be restarted after component installation Parameters: isGlobal - control if the control will be installed into the installation directory or into user's dir Parameters: targetCluster - name of cluster where new module will be installed if installation isGlobal Parameters: installer - CustomInstaller call-back interface Parameters: license - UpdateLicense represents license name and text of license agreement UpdateItem |
|
|