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
Modifier and TypeFieldDescriptionprotected String
protected org.nuxeo.connect.update.PackageDependency[]
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[]
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
protected boolean
protected TaskDefinitionImpl
A class implementingTask
. if not specified the default implementation will be usedprotected String
The license name.protected String
A license URL.protected String
protected org.nuxeo.connect.update.PackageDependency[]
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[]
The target platforms where this package may be installed.protected org.nuxeo.connect.update.PackageDependency[]
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
protected String
The target platform name where this package may be installed.protected String
The target platform range where this package may be installed.protected String
protected org.nuxeo.connect.update.PackageType
protected TaskDefinitionImpl
A class implementingTask
. if not specified the default implementation will be usedprotected String
A class implementingValidator
.protected String
protected org.nuxeo.connect.update.Version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.nuxeo.connect.update.PackageDependency[]
org.nuxeo.connect.update.PackageDependency[]
getId()
org.nuxeo.connect.update.model.TaskDefinition
Deprecated.getName()
org.nuxeo.connect.update.PackageDependency[]
org.nuxeo.connect.update.PackageState
String[]
Deprecated.org.nuxeo.connect.update.PackageDependency[]
int
getState()
Deprecated.String[]
getTitle()
org.nuxeo.connect.update.PackageType
getType()
org.nuxeo.connect.update.model.TaskDefinition
org.nuxeo.connect.update.Version
boolean
isLocal()
boolean
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
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
void
setType
(org.nuxeo.connect.update.PackageType type) void
setUninstaller
(org.nuxeo.connect.update.model.TaskDefinition uninstaller) void
setValidator
(String validator) void
void
setVersion
(org.nuxeo.connect.update.Version version) boolean
toXML()
void
write
(org.nuxeo.connect.update.xml.XmlWriter writer) Deprecated.
-
Field Details
-
name
-
version
protected org.nuxeo.connect.update.Version version -
type
protected org.nuxeo.connect.update.PackageType type -
title
-
description
-
classifier
-
vendor
-
hotReloadSupport
protected boolean hotReloadSupport -
requireTermsAndConditionsAcceptance
protected boolean requireTermsAndConditionsAcceptance -
license
The license name. E.g. LGPL, BSD etc. -
licenseUrl
A license URL. If no specified the license.txt file in the package is the license content -
platforms
The target platforms where this package may be installed. -
targetPlatformRange
The target platform range where this package may be installed.- Since:
- 11.4
-
targetPlatformName
The target platform name where this package may be installed.- Since:
- 11.4
-
dependencies
protected org.nuxeo.connect.update.PackageDependency[] dependenciesThe 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[] optionalDependenciesThe 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[] conflictsThe 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[] providesThe 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
A class implementingTask
. if not specified the default implementation will be used -
uninstaller
A class implementingTask
. if not specified the default implementation will be used -
validator
A class implementingValidator
. If not specified not post install validation will be done
-
-
Constructor Details
-
PackageDefinitionImpl
public PackageDefinitionImpl()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.nuxeo.connect.update.Package
-
getName
- Specified by:
getName
in interfaceorg.nuxeo.connect.update.Package
-
setName
- 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
- Specified by:
getTitle
in interfaceorg.nuxeo.connect.update.Package
-
setTitle
- Specified by:
setTitle
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getDescription
- Specified by:
getDescription
in interfaceorg.nuxeo.connect.update.Package
-
setDescription
- 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
- Specified by:
getClassifier
in interfaceorg.nuxeo.connect.update.Package
-
setClassifier
- Specified by:
setClassifier
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getLicense
Deprecated.- Specified by:
getLicense
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getLicenseType
- Specified by:
getLicenseType
in interfaceorg.nuxeo.connect.update.Package
-
setLicense
Deprecated.- Specified by:
setLicense
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
setLicenseType
- Specified by:
setLicenseType
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getLicenseUrl
- Specified by:
getLicenseUrl
in interfaceorg.nuxeo.connect.update.Package
-
setLicenseUrl
- Specified by:
setLicenseUrl
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getPlatforms
Deprecated.- Specified by:
getPlatforms
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getTargetPlatforms
- Specified by:
getTargetPlatforms
in interfaceorg.nuxeo.connect.update.Package
-
setPlatforms
Deprecated.- Specified by:
setPlatforms
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
setTargetPlatforms
- Specified by:
setTargetPlatforms
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getTargetPlatformRange
- Specified by:
getTargetPlatformRange
in interfaceorg.nuxeo.connect.update.Package
-
setTargetPlatformRange
- Specified by:
setTargetPlatformRange
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
getTargetPlatformName
- Specified by:
getTargetPlatformName
in interfaceorg.nuxeo.connect.update.Package
-
setTargetPlatformName
- 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
- Specified by:
getVendor
in interfaceorg.nuxeo.connect.update.Package
-
setVendor
- 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
- Specified by:
getValidator
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
setValidator
- 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. -
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
- Specified by:
toXML
in interfaceorg.nuxeo.connect.update.model.PackageDefinition
-
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
-