public class PackageBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected List<org.nuxeo.connect.update.PackageDependency> |
conflicts |
protected org.nuxeo.connect.update.model.PackageDefinition |
def |
protected List<org.nuxeo.connect.update.PackageDependency> |
dependencies |
protected LinkedHashMap<String,InputStream> |
entries |
protected List<FormDefinition> |
installForms |
protected List<String> |
platforms |
protected List<org.nuxeo.connect.update.PackageDependency> |
provides |
protected List<FormDefinition> |
uninstallForms |
protected List<FormDefinition> |
validationForms |
Constructor and Description |
---|
PackageBuilder() |
protected final org.nuxeo.connect.update.model.PackageDefinition def
protected final List<FormDefinition> installForms
protected final List<FormDefinition> uninstallForms
protected final List<FormDefinition> validationForms
protected final List<org.nuxeo.connect.update.PackageDependency> dependencies
protected final LinkedHashMap<String,InputStream> entries
public PackageBuilder()
public PackageBuilder name(String name)
public PackageBuilder version(org.nuxeo.connect.update.Version version)
public PackageBuilder version(String version)
public PackageBuilder type(String type)
public PackageBuilder type(org.nuxeo.connect.update.PackageType type)
public PackageBuilder visibility(String visibility)
public PackageBuilder visibility(org.nuxeo.connect.update.PackageVisibility visibility)
public PackageBuilder title(String title)
public PackageBuilder description(String description)
public PackageBuilder classifier(String classifier)
public PackageBuilder vendor(String vendor)
public PackageBuilder homePage(String homePage)
public PackageBuilder installer(org.nuxeo.connect.update.model.TaskDefinition task)
public PackageBuilder installer(String type, boolean restart)
public PackageBuilder uninstaller(org.nuxeo.connect.update.model.TaskDefinition task)
public PackageBuilder uninstaller(String type, boolean restart)
public PackageBuilder validationState(org.nuxeo.connect.update.NuxeoValidationState validationState)
public PackageBuilder productionState(org.nuxeo.connect.update.ProductionState productionState)
public PackageBuilder supported(boolean supported)
public PackageBuilder hotReloadSupport(boolean hotReloadSupport)
public PackageBuilder requireTermsAndConditionsAcceptance(boolean requireTermsAndConditionsAcceptance)
public PackageBuilder validator(String validator)
public PackageBuilder platform(String platform)
public PackageBuilder dependency(String expr)
public PackageBuilder conflict(String expr)
public PackageBuilder provide(String expr)
public PackageBuilder addInstallForm(FormDefinition form)
public PackageBuilder addUninstallForm(FormDefinition form)
public PackageBuilder addValidationForm(FormDefinition form)
public PackageBuilder addLicense(String content)
public PackageBuilder addLicense(InputStream in)
public PackageBuilder addInstallScript(String content)
public PackageBuilder addInstallScript(InputStream in)
public PackageBuilder addUninstallScript(String content)
public PackageBuilder addUninstallScript(InputStream in)
public PackageBuilder addTermsAndConditions(String content)
public PackageBuilder addTermsAndConditions(InputStream in)
public PackageBuilder addEntry(String path, InputStream in)
public String buildManifest()
public File build() throws IOException
IOException
protected void addForms(List<FormDefinition> formDefs, String path, ZipOutputStream zout) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.