public class DownloadablePackageOptions extends Object
Modifier and Type | Field and Description |
---|---|
protected List<DownloadPackage> |
allPackages |
protected List<DownloadPackage> |
commonPackages |
protected static org.apache.commons.logging.Log |
log |
protected List<DownloadPackage> |
pkg4Install |
protected List<DownloadablePackageOption> |
pkgOptions |
protected List<Preset> |
presets |
Constructor and Description |
---|
DownloadablePackageOptions() |
Modifier and Type | Method and Description |
---|---|
void |
addCommonPackage(DownloadPackage pkg) |
void |
addOptions(DownloadablePackageOption pkgOption) |
String |
asJson() |
protected void |
asJson(DownloadablePackageOption option,
StringBuffer sb) |
List<String> |
checkSelectionValid(List<String> ids) |
protected DownloadablePackageOption |
findById(String id,
List<DownloadablePackageOption> options) |
DownloadablePackageOption |
get(int idx) |
List<DownloadPackage> |
getAllPackages() |
List<DownloadablePackageOption> |
getOptions() |
List<DownloadPackage> |
getPkg4Install() |
List<Preset> |
getPresets() |
protected DownloadablePackageOption |
getSelectedRoot() |
protected void |
markForDownload(DownloadPackage pkg) |
protected void |
markForDownload(String pkgId) |
void |
resetSelection() |
protected void |
resetSelection(DownloadablePackageOption option) |
void |
select(List<String> ids) |
void |
setAllPackages(List<DownloadPackage> allPackages) |
int |
size() |
protected List<DownloadablePackageOption> pkgOptions
protected List<DownloadPackage> pkg4Install
protected List<DownloadPackage> commonPackages
protected List<DownloadPackage> allPackages
protected static final org.apache.commons.logging.Log log
public DownloadablePackageOptions()
public List<DownloadablePackageOption> getOptions()
public void addOptions(DownloadablePackageOption pkgOption)
public void addCommonPackage(DownloadPackage pkg)
public int size()
public DownloadablePackageOption get(int idx)
public void resetSelection()
protected void resetSelection(DownloadablePackageOption option)
public List<String> checkSelectionValid(List<String> ids)
protected void markForDownload(String pkgId)
protected void markForDownload(DownloadPackage pkg)
protected DownloadablePackageOption findById(String id, List<DownloadablePackageOption> options)
public List<DownloadPackage> getPkg4Install()
protected void asJson(DownloadablePackageOption option, StringBuffer sb)
protected DownloadablePackageOption getSelectedRoot()
public List<Preset> getPresets()
public List<DownloadPackage> getAllPackages()
public void setAllPackages(List<DownloadPackage> allPackages)
Copyright © 2018 Nuxeo. All rights reserved.