Package org.nuxeo.connect.update.xml
Class PackageDefinitionImpl
- java.lang.Object
-
- org.nuxeo.connect.update.xml.PackageDefinitionImpl
-
- All Implemented Interfaces:
org.nuxeo.connect.update.model.PackageDefinition
,org.nuxeo.connect.update.Package
public class PackageDefinitionImpl extends Object implements org.nuxeo.connect.update.model.PackageDefinition
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected String
classifier
protected org.nuxeo.connect.update.PackageDependency[]
conflicts
The conflict value format is:package_name[:package_min_version[:package_max_version]]
if no min and max version are specified the the last version should be used.protected org.nuxeo.connect.update.PackageDependency[]
dependencies
The dependency value format is:package_name[:package_min_version[:package_max_version]]
if no min and max version are specified the the last version should be used.protected String
description
protected boolean
hotReloadSupport
protected TaskDefinitionImpl
installer
A class implementingTask
.protected String
license
The license name.protected String
licenseUrl
A license URL.protected String
name
protected org.nuxeo.connect.update.PackageDependency[]
optionalDependencies
The optional dependencies are defined for ordering purpose, to make sure that if they are being installed along with the current package, they will be ordered first.protected String[]
platforms
The target platforms where this package may be installed.protected org.nuxeo.connect.update.PackageDependency[]
provides
The provides value format is:package_name[:package_min_version[:package_max_version]]
if no min and max version are specified the the last version should be used.protected boolean
requireTermsAndConditionsAcceptance
protected String
targetPlatformName
The target platform name where this package may be installed.protected String
targetPlatformRange
The target platform range where this package may be installed.protected String
title
protected org.nuxeo.connect.update.PackageType
type
protected TaskDefinitionImpl
uninstaller
A class implementingTask
.protected String
validator
A class implementingValidator
.protected String
vendor
protected org.nuxeo.connect.update.Version
version
-
Constructor Summary
Constructors Constructor Description PackageDefinitionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getClassifier()
org.nuxeo.connect.update.PackageDependency[]
getConflicts()
org.nuxeo.connect.update.PackageDependency[]
getDependencies()
String
getDescription()
String
getId()
org.nuxeo.connect.update.model.TaskDefinition
getInstaller()
String
getLicense()
Deprecated.String
getLicenseType()
String
getLicenseUrl()
String
getName()
org.nuxeo.connect.update.PackageDependency[]
getOptionalDependencies()
org.nuxeo.connect.update.PackageState
getPackageState()
String[]
getPlatforms()
Deprecated.org.nuxeo.connect.update.PackageDependency[]
getProvides()
int
getState()
Deprecated.String
getTargetPlatformName()
String
getTargetPlatformRange()
String[]
getTargetPlatforms()
String
getTitle()
org.nuxeo.connect.update.PackageType
getType()
org.nuxeo.connect.update.model.TaskDefinition
getUninstaller()
String
getValidator()
String
getVendor()
org.nuxeo.connect.update.Version
getVersion()
boolean
isLocal()
boolean
requireTermsAndConditionsAcceptance()
void
setClassifier(String classifier)
void
setConflicts(org.nuxeo.connect.update.PackageDependency[] conflicts)
void
setDependencies(org.nuxeo.connect.update.PackageDependency[] dependencies)
void
setDescription(String description)
void
setHotReloadSupport(boolean hotReloadSupport)
void
setInstaller(org.nuxeo.connect.update.model.TaskDefinition installer)
void
setLicense(String license)
Deprecated.void
setLicenseType(String license)
void
setLicenseUrl(String licenseUrl)
void
setName(String name)
void
setOptionalDependencies(org.nuxeo.connect.update.PackageDependency[] optionalDependencies)
void
setPlatforms(String[] platforms)
Deprecated.void
setProvides(org.nuxeo.connect.update.PackageDependency[] provides)
void
setRequireTermsAndConditionsAcceptance(boolean requireTermsAndConditionsAcceptance)
void
setTargetPlatformName(String targetPlatformName)
void
setTargetPlatformRange(String targetPlatformRange)
void
setTargetPlatforms(String[] platforms)
void
setTitle(String title)
void
setType(org.nuxeo.connect.update.PackageType type)
void
setUninstaller(org.nuxeo.connect.update.model.TaskDefinition uninstaller)
void
setValidator(String validator)
void
setVendor(String vendor)
void
setVersion(org.nuxeo.connect.update.Version version)
boolean
supportsHotReload()
String
toXML()
void
write(org.nuxeo.connect.update.xml.XmlWriter writer)
Deprecated.
-
-
-
Field Detail
-
name
protected String name
-
version
protected org.nuxeo.connect.update.Version version
-
type
protected org.nuxeo.connect.update.PackageType type
-
title
protected String title
-
description
protected String description
-
classifier
protected String classifier
-
vendor
protected String vendor
-
hotReloadSupport
protected boolean hotReloadSupport
-
requireTermsAndConditionsAcceptance
protected boolean requireTermsAndConditionsAcceptance
-
license
protected String license
The license name. E.g. LGPL, BSD etc.
-
licenseUrl
protected String licenseUrl
A license URL. If no specified the license.txt file in the package is the license content
-
platforms
protected String[] platforms
The target platforms where this package may be installed.
-
targetPlatformRange
protected String targetPlatformRange
The target platform range where this package may be installed.- Since:
- 11.4
-
targetPlatformName
protected String targetPlatformName
The target platform name where this package may be installed.- Since:
- 11.4
-
dependencies
protected org.nuxeo.connect.update.PackageDependency[] dependencies
The dependency value format is:package_name[:package_min_version[:package_max_version]]
if no min and max version are specified the the last version should be used.
-
optionalDependencies
protected org.nuxeo.connect.update.PackageDependency[] optionalDependencies
The optional dependencies are defined for ordering purpose, to make sure that if they are being installed along with the current package, they will be ordered first.
-
conflicts
protected org.nuxeo.connect.update.PackageDependency[] conflicts
The conflict value format is:package_name[:package_min_version[:package_max_version]]
if no min and max version are specified the the last version should be used.
-
provides
protected org.nuxeo.connect.update.PackageDependency[] provides
The provides value format is:package_name[:package_min_version[:package_max_version]]
if no min and max version are specified the the last version should be used.
-
installer
protected TaskDefinitionImpl installer
A class implementingTask
. if not specified the default implementation will be used
-
uninstaller
protected TaskDefinitionImpl uninstaller
A class implementingTask
. if not specified the default implementation will be used
-
validator
protected String validator
A class implementingValidator
. If not specified not post install validation will be done
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.nuxeo.connect.update.Package
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.nuxeo.connect.update.Package
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getVersion
public org.nuxeo.connect.update.Version getVersion()
- Specified by:
getVersion
in interfaceorg.nuxeo.connect.update.Package
-
setVersion
public void setVersion(org.nuxeo.connect.update.Version version)
- Specified by:
setVersion
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceorg.nuxeo.connect.update.Package
-
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceorg.nuxeo.connect.update.Package
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getType
public org.nuxeo.connect.update.PackageType getType()
- Specified by:
getType
in interfaceorg.nuxeo.connect.update.Package
-
setType
public void setType(org.nuxeo.connect.update.PackageType type)
- Specified by:
setType
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getClassifier
public String getClassifier()
- Specified by:
getClassifier
in interfaceorg.nuxeo.connect.update.Package
-
setClassifier
public void setClassifier(String classifier)
- Specified by:
setClassifier
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getLicense
@Deprecated public String getLicense()
Deprecated.- Specified by:
getLicense
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getLicenseType
public String getLicenseType()
- Specified by:
getLicenseType
in interfaceorg.nuxeo.connect.update.Package
-
setLicense
@Deprecated public void setLicense(String license)
Deprecated.- Specified by:
setLicense
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
setLicenseType
public void setLicenseType(String license)
- Specified by:
setLicenseType
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getLicenseUrl
public String getLicenseUrl()
- Specified by:
getLicenseUrl
in interfaceorg.nuxeo.connect.update.Package
-
setLicenseUrl
public void setLicenseUrl(String licenseUrl)
- Specified by:
setLicenseUrl
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getPlatforms
@Deprecated public String[] getPlatforms()
Deprecated.- Specified by:
getPlatforms
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getTargetPlatforms
public String[] getTargetPlatforms()
- Specified by:
getTargetPlatforms
in interfaceorg.nuxeo.connect.update.Package
-
setPlatforms
@Deprecated public void setPlatforms(String[] platforms)
Deprecated.- Specified by:
setPlatforms
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
setTargetPlatforms
public void setTargetPlatforms(String[] platforms)
- Specified by:
setTargetPlatforms
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getTargetPlatformRange
public String getTargetPlatformRange()
- Specified by:
getTargetPlatformRange
in interfaceorg.nuxeo.connect.update.Package
-
setTargetPlatformRange
public void setTargetPlatformRange(String targetPlatformRange)
- Specified by:
setTargetPlatformRange
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getTargetPlatformName
public String getTargetPlatformName()
- Specified by:
getTargetPlatformName
in interfaceorg.nuxeo.connect.update.Package
-
setTargetPlatformName
public void setTargetPlatformName(String targetPlatformName)
- Specified by:
setTargetPlatformName
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getDependencies
public org.nuxeo.connect.update.PackageDependency[] getDependencies()
- Specified by:
getDependencies
in interfaceorg.nuxeo.connect.update.Package
-
setDependencies
public void setDependencies(org.nuxeo.connect.update.PackageDependency[] dependencies)
- Specified by:
setDependencies
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getOptionalDependencies
public org.nuxeo.connect.update.PackageDependency[] getOptionalDependencies()
- Specified by:
getOptionalDependencies
in interfaceorg.nuxeo.connect.update.Package
-
setOptionalDependencies
public void setOptionalDependencies(org.nuxeo.connect.update.PackageDependency[] optionalDependencies)
- Specified by:
setOptionalDependencies
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getConflicts
public org.nuxeo.connect.update.PackageDependency[] getConflicts()
- Specified by:
getConflicts
in interfaceorg.nuxeo.connect.update.Package
-
setConflicts
public void setConflicts(org.nuxeo.connect.update.PackageDependency[] conflicts)
- Specified by:
setConflicts
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getProvides
public org.nuxeo.connect.update.PackageDependency[] getProvides()
- Specified by:
getProvides
in interfaceorg.nuxeo.connect.update.Package
-
setProvides
public void setProvides(org.nuxeo.connect.update.PackageDependency[] provides)
- Specified by:
setProvides
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getVendor
public String getVendor()
- Specified by:
getVendor
in interfaceorg.nuxeo.connect.update.Package
-
setVendor
public void setVendor(String vendor)
- Specified by:
setVendor
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getInstaller
public org.nuxeo.connect.update.model.TaskDefinition getInstaller()
- Specified by:
getInstaller
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
setInstaller
public void setInstaller(org.nuxeo.connect.update.model.TaskDefinition installer)
- Specified by:
setInstaller
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getUninstaller
public org.nuxeo.connect.update.model.TaskDefinition getUninstaller()
- Specified by:
getUninstaller
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
setUninstaller
public void setUninstaller(org.nuxeo.connect.update.model.TaskDefinition uninstaller)
- Specified by:
setUninstaller
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getValidator
public String getValidator()
- Specified by:
getValidator
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
setValidator
public void setValidator(String validator)
- Specified by:
setValidator
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
setHotReloadSupport
public void setHotReloadSupport(boolean hotReloadSupport)
- Specified by:
setHotReloadSupport
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
write
@Deprecated public void write(org.nuxeo.connect.update.xml.XmlWriter writer)
Deprecated.
-
supportsHotReload
public boolean supportsHotReload()
- Specified by:
supportsHotReload
in interfaceorg.nuxeo.connect.update.Package
-
setRequireTermsAndConditionsAcceptance
public void setRequireTermsAndConditionsAcceptance(boolean requireTermsAndConditionsAcceptance)
- Specified by:
setRequireTermsAndConditionsAcceptance
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
requireTermsAndConditionsAcceptance
public boolean requireTermsAndConditionsAcceptance()
- Specified by:
requireTermsAndConditionsAcceptance
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
toXML
public String toXML()
- Specified by:
toXML
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getState
@Deprecated public int getState()
Deprecated.- Specified by:
getState
in interfaceorg.nuxeo.connect.update.Package
-
getPackageState
public org.nuxeo.connect.update.PackageState getPackageState()
- Specified by:
getPackageState
in interfaceorg.nuxeo.connect.update.Package
-
isLocal
public boolean isLocal()
- Specified by:
isLocal
in interfaceorg.nuxeo.connect.update.Package
-
-