public final class UpdateItem extends Object
UpdateProvider
. These items are exposed to
Autoupdate infrastructure what works on them.Modifier and Type | Method and Description |
---|---|
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. |
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. |
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 . |
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,
Boolean isPreferedUpdate,
String targetCluster,
UpdateLicense license)
Creates
UpdateItem/code> which represents NetBeans Module in Autoupdate infrastructure. |
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. |
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. |
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)
UpdateItem/code> which represents NetBeans Module in Autoupdate infrastructure.
UpdateItem is identify by codeName
and specificationVersion.
codeName
- code name of modulespecificationVersion
- specification version of moduledistribution
- URL to NBM fileauthor
- name of module author or nulldownloadSize
- size of NBM file in byteshomepage
- homepage of module or nullpublishDate
- date of publish of item, in date format "yyyy/MM/dd"category
- name of categorymanifest
- java.util.jar.Manifest
describes the module in NetBeans module systemisEager
- says if the module is eager
or notisAutoload
- says if the module is autoload
or notneedsRestart
- if true then IDE must be restarted after module installationisGlobal
- control if the module will be installed into the installation directory or into user's dirtargetCluster
- name of cluster where new module will be installed if installation isGloballicense
- UpdateLicense
represents license name and text of license agreementpublic 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, Boolean isPreferedUpdate, String targetCluster, UpdateLicense license)
UpdateItem/code> which represents NetBeans Module in Autoupdate infrastructure.
UpdateItem is identify by codeName
and specificationVersion.
codeName
- code name of modulespecificationVersion
- specification version of moduledistribution
- URL to NBM fileauthor
- name of module author or nulldownloadSize
- size of NBM file in byteshomepage
- homepage of module or nullpublishDate
- date of publish of item, in date format "yyyy/MM/dd"category
- name of categorymanifest
- java.util.jar.Manifest
describes the module in NetBeans module systemisEager
- says if the module is eager
or notisAutoload
- says if the module is autoload
or notneedsRestart
- if true then IDE must be restarted after module installationisGlobal
- control if the module will be installed into the installation directory or into user's dirisPreferedUpdate
- if true
will be handled in exclusive mode before other updatestargetCluster
- name of cluster where new module will be installed if installation isGloballicense
- UpdateLicense
represents license name and text of license agreementpublic static UpdateItem createFeature(String codeName, String specificationVersion, Set<String> dependencies, String displayName, String description, String category)
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.
If some of the tokens in dependencies
is not known, it will be reported
as a missing dependency.
codeName
- code name of featurespecificationVersion
- specification version of featuredependencies
- dependencies to NetBeans modules on which is the feature baseddisplayName
- display namedescription
- descriptioncategory
- name of categorypublic 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)
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.codeName
- code name of the native componentspecificationVersion
- specification version of componentdependencies
- dependencies to other UpdateItem
downloadSize
- size of installation file in bytesdisplayName
- display namedescription
- descriptionneedsRestart
- if true then IDE must be restarted after component installationisGlobal
- control if the control will be installed into the installation directory or into user's dirtargetCluster
- name of cluster where new module will be installed if installation isGlobalinstaller
- CustomInstaller
call-back interfacelicense
- UpdateLicense
represents license name and text of license agreementUpdateItem
public static UpdateItem createInstalledNativeComponent(String codeName, String specificationVersion, Set<String> dependencies, String displayName, String description, CustomUninstaller uninstaller)
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 called back.codeName
- code name of the native componentspecificationVersion
- specification version of componentdependencies
- dependencies to other UpdateItem
displayName
- display namedescription
- descriptionuninstaller
- CustomUninstaller
call-back interfaceUpdateItem
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)
UpdateItem
which can localized NetBeans Module in given Locale
.codeName
- code name of the module for localizationspecificationVersion
- specification version of localizationmoduleSpecificationVersion
- specification version of the module for localizationlocale
- localebranding
- brandinglocalizedName
- localized name of modulelocalizedDescription
- localized descripton of modulecategory
- name of categorydistribution
- URL to NBM fileneedsRestart
- if true then IDE must be restarted after module installationisGlobal
- control if the module will be installed into the installation directory or into user's dirtargetCluster
- name of cluster where new module will be installed if installation isGloballicense
- UpdateLicense
represents license name and text of license agreementUpdateItem