Class 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 Detail

      • 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 implementing Task. if not specified the default implementation will be used
      • uninstaller

        protected TaskDefinitionImpl uninstaller
        A class implementing Task. if not specified the default implementation will be used
      • validator

        protected String validator
        A class implementing Validator. If not specified not post install validation will be done
    • Constructor Detail

      • PackageDefinitionImpl

        public PackageDefinitionImpl()
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface org.nuxeo.connect.update.Package
      • getName

        public String getName()
        Specified by:
        getName in interface org.nuxeo.connect.update.Package
      • setName

        public void setName​(String name)
        Specified by:
        setName in interface org.nuxeo.connect.update.model.PackageDefinition
      • getVersion

        public org.nuxeo.connect.update.Version getVersion()
        Specified by:
        getVersion in interface org.nuxeo.connect.update.Package
      • setVersion

        public void setVersion​(org.nuxeo.connect.update.Version version)
        Specified by:
        setVersion in interface org.nuxeo.connect.update.model.PackageDefinition
      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface org.nuxeo.connect.update.Package
      • setTitle

        public void setTitle​(String title)
        Specified by:
        setTitle in interface org.nuxeo.connect.update.model.PackageDefinition
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface org.nuxeo.connect.update.Package
      • setDescription

        public void setDescription​(String description)
        Specified by:
        setDescription in interface org.nuxeo.connect.update.model.PackageDefinition
      • getType

        public org.nuxeo.connect.update.PackageType getType()
        Specified by:
        getType in interface org.nuxeo.connect.update.Package
      • setType

        public void setType​(org.nuxeo.connect.update.PackageType type)
        Specified by:
        setType in interface org.nuxeo.connect.update.model.PackageDefinition
      • getClassifier

        public String getClassifier()
        Specified by:
        getClassifier in interface org.nuxeo.connect.update.Package
      • setClassifier

        public void setClassifier​(String classifier)
        Specified by:
        setClassifier in interface org.nuxeo.connect.update.model.PackageDefinition
      • getLicense

        @Deprecated
        public String getLicense()
        Deprecated.
        Specified by:
        getLicense in interface org.nuxeo.connect.update.model.PackageDefinition
      • getLicenseType

        public String getLicenseType()
        Specified by:
        getLicenseType in interface org.nuxeo.connect.update.Package
      • setLicense

        @Deprecated
        public void setLicense​(String license)
        Deprecated.
        Specified by:
        setLicense in interface org.nuxeo.connect.update.model.PackageDefinition
      • setLicenseType

        public void setLicenseType​(String license)
        Specified by:
        setLicenseType in interface org.nuxeo.connect.update.model.PackageDefinition
      • getLicenseUrl

        public String getLicenseUrl()
        Specified by:
        getLicenseUrl in interface org.nuxeo.connect.update.Package
      • setLicenseUrl

        public void setLicenseUrl​(String licenseUrl)
        Specified by:
        setLicenseUrl in interface org.nuxeo.connect.update.model.PackageDefinition
      • getPlatforms

        @Deprecated
        public String[] getPlatforms()
        Deprecated.
        Specified by:
        getPlatforms in interface org.nuxeo.connect.update.model.PackageDefinition
      • getTargetPlatforms

        public String[] getTargetPlatforms()
        Specified by:
        getTargetPlatforms in interface org.nuxeo.connect.update.Package
      • setPlatforms

        @Deprecated
        public void setPlatforms​(String[] platforms)
        Deprecated.
        Specified by:
        setPlatforms in interface org.nuxeo.connect.update.model.PackageDefinition
      • setTargetPlatforms

        public void setTargetPlatforms​(String[] platforms)
        Specified by:
        setTargetPlatforms in interface org.nuxeo.connect.update.model.PackageDefinition
      • getTargetPlatformRange

        public String getTargetPlatformRange()
        Specified by:
        getTargetPlatformRange in interface org.nuxeo.connect.update.Package
      • setTargetPlatformRange

        public void setTargetPlatformRange​(String targetPlatformRange)
        Specified by:
        setTargetPlatformRange in interface org.nuxeo.connect.update.model.PackageDefinition
      • getTargetPlatformName

        public String getTargetPlatformName()
        Specified by:
        getTargetPlatformName in interface org.nuxeo.connect.update.Package
      • setTargetPlatformName

        public void setTargetPlatformName​(String targetPlatformName)
        Specified by:
        setTargetPlatformName in interface org.nuxeo.connect.update.model.PackageDefinition
      • getDependencies

        public org.nuxeo.connect.update.PackageDependency[] getDependencies()
        Specified by:
        getDependencies in interface org.nuxeo.connect.update.Package
      • setDependencies

        public void setDependencies​(org.nuxeo.connect.update.PackageDependency[] dependencies)
        Specified by:
        setDependencies in interface org.nuxeo.connect.update.model.PackageDefinition
      • getOptionalDependencies

        public org.nuxeo.connect.update.PackageDependency[] getOptionalDependencies()
        Specified by:
        getOptionalDependencies in interface org.nuxeo.connect.update.Package
      • setOptionalDependencies

        public void setOptionalDependencies​(org.nuxeo.connect.update.PackageDependency[] optionalDependencies)
        Specified by:
        setOptionalDependencies in interface org.nuxeo.connect.update.model.PackageDefinition
      • getConflicts

        public org.nuxeo.connect.update.PackageDependency[] getConflicts()
        Specified by:
        getConflicts in interface org.nuxeo.connect.update.Package
      • setConflicts

        public void setConflicts​(org.nuxeo.connect.update.PackageDependency[] conflicts)
        Specified by:
        setConflicts in interface org.nuxeo.connect.update.model.PackageDefinition
      • getProvides

        public org.nuxeo.connect.update.PackageDependency[] getProvides()
        Specified by:
        getProvides in interface org.nuxeo.connect.update.Package
      • setProvides

        public void setProvides​(org.nuxeo.connect.update.PackageDependency[] provides)
        Specified by:
        setProvides in interface org.nuxeo.connect.update.model.PackageDefinition
      • getVendor

        public String getVendor()
        Specified by:
        getVendor in interface org.nuxeo.connect.update.Package
      • setVendor

        public void setVendor​(String vendor)
        Specified by:
        setVendor in interface org.nuxeo.connect.update.model.PackageDefinition
      • getInstaller

        public org.nuxeo.connect.update.model.TaskDefinition getInstaller()
        Specified by:
        getInstaller in interface org.nuxeo.connect.update.model.PackageDefinition
      • setInstaller

        public void setInstaller​(org.nuxeo.connect.update.model.TaskDefinition installer)
        Specified by:
        setInstaller in interface org.nuxeo.connect.update.model.PackageDefinition
      • getUninstaller

        public org.nuxeo.connect.update.model.TaskDefinition getUninstaller()
        Specified by:
        getUninstaller in interface org.nuxeo.connect.update.model.PackageDefinition
      • setUninstaller

        public void setUninstaller​(org.nuxeo.connect.update.model.TaskDefinition uninstaller)
        Specified by:
        setUninstaller in interface org.nuxeo.connect.update.model.PackageDefinition
      • getValidator

        public String getValidator()
        Specified by:
        getValidator in interface org.nuxeo.connect.update.model.PackageDefinition
      • setValidator

        public void setValidator​(String validator)
        Specified by:
        setValidator in interface org.nuxeo.connect.update.model.PackageDefinition
      • setHotReloadSupport

        public void setHotReloadSupport​(boolean hotReloadSupport)
        Specified by:
        setHotReloadSupport in interface org.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 interface org.nuxeo.connect.update.Package
      • setRequireTermsAndConditionsAcceptance

        public void setRequireTermsAndConditionsAcceptance​(boolean requireTermsAndConditionsAcceptance)
        Specified by:
        setRequireTermsAndConditionsAcceptance in interface org.nuxeo.connect.update.model.PackageDefinition
      • requireTermsAndConditionsAcceptance

        public boolean requireTermsAndConditionsAcceptance()
        Specified by:
        requireTermsAndConditionsAcceptance in interface org.nuxeo.connect.update.model.PackageDefinition
      • toXML

        public String toXML()
        Specified by:
        toXML in interface org.nuxeo.connect.update.model.PackageDefinition
      • getState

        @Deprecated
        public int getState()
        Deprecated.
        Specified by:
        getState in interface org.nuxeo.connect.update.Package
      • getPackageState

        public org.nuxeo.connect.update.PackageState getPackageState()
        Specified by:
        getPackageState in interface org.nuxeo.connect.update.Package
      • isLocal

        public boolean isLocal()
        Specified by:
        isLocal in interface org.nuxeo.connect.update.Package