Class LocalPackageImpl

  • All Implemented Interfaces:
    org.nuxeo.connect.update.LocalPackage, org.nuxeo.connect.update.Package

    public class LocalPackageImpl
    extends Object
    implements org.nuxeo.connect.update.LocalPackage
    Author:
    Bogdan Stefanescu
    • Constructor Detail

      • LocalPackageImpl

        public LocalPackageImpl​(File file,
                                org.nuxeo.connect.update.PackageState state,
                                org.nuxeo.connect.update.PackageUpdateService pus)
                         throws org.nuxeo.connect.update.PackageException
        Throws:
        org.nuxeo.connect.update.PackageException
        Since:
        5.7
      • LocalPackageImpl

        public LocalPackageImpl​(ClassLoader parent,
                                File file,
                                org.nuxeo.connect.update.PackageState state,
                                org.nuxeo.connect.update.PackageUpdateService pus)
                         throws org.nuxeo.connect.update.PackageException
        Throws:
        org.nuxeo.connect.update.PackageException
        Since:
        5.8
    • Method Detail

      • setState

        @Deprecated
        public void setState​(int state)
        Deprecated.
        Specified by:
        setState in interface org.nuxeo.connect.update.LocalPackage
      • setState

        public void setState​(org.nuxeo.connect.update.PackageState state)
        Specified by:
        setState in interface org.nuxeo.connect.update.LocalPackage
      • getData

        public LocalPackageData getData()
        Specified by:
        getData in interface org.nuxeo.connect.update.LocalPackage
      • getInstallFile

        public File getInstallFile()
        Specified by:
        getInstallFile in interface org.nuxeo.connect.update.LocalPackage
      • getUninstallFile

        public File getUninstallFile()
        Specified by:
        getUninstallFile in interface org.nuxeo.connect.update.LocalPackage
      • getLicenseType

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

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

        public String getLicenseContent()
                                 throws org.nuxeo.connect.update.PackageException
        Specified by:
        getLicenseContent in interface org.nuxeo.connect.update.LocalPackage
        Throws:
        org.nuxeo.connect.update.PackageException
      • getClassifier

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

        public String getDescription()
        Specified by:
        getDescription in interface org.nuxeo.connect.update.Package
      • 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
      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface org.nuxeo.connect.update.Package
      • 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
      • getTargetPlatforms

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

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

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

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

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

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

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

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

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

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

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

        public org.nuxeo.connect.update.task.Task getInstallTask()
                                                          throws org.nuxeo.connect.update.PackageException
        Specified by:
        getInstallTask in interface org.nuxeo.connect.update.LocalPackage
        Throws:
        org.nuxeo.connect.update.PackageException
      • getUninstallTask

        public org.nuxeo.connect.update.task.Task getUninstallTask()
                                                            throws org.nuxeo.connect.update.PackageException
        Specified by:
        getUninstallTask in interface org.nuxeo.connect.update.LocalPackage
        Throws:
        org.nuxeo.connect.update.PackageException
      • getTask

        protected org.nuxeo.connect.update.task.Task getTask​(org.nuxeo.connect.update.model.TaskDefinition tdef)
                                                      throws org.nuxeo.connect.update.PackageException
        Throws:
        org.nuxeo.connect.update.PackageException
      • getValidator

        public org.nuxeo.connect.update.Validator getValidator()
                                                        throws org.nuxeo.connect.update.PackageException
        Specified by:
        getValidator in interface org.nuxeo.connect.update.LocalPackage
        Throws:
        org.nuxeo.connect.update.PackageException
      • getForms

        public org.nuxeo.connect.update.model.Form[] getForms​(String path)
                                                       throws org.nuxeo.connect.update.PackageException
        Throws:
        org.nuxeo.connect.update.PackageException
      • getValidationForms

        public org.nuxeo.connect.update.model.Form[] getValidationForms()
                                                                 throws org.nuxeo.connect.update.PackageException
        Specified by:
        getValidationForms in interface org.nuxeo.connect.update.LocalPackage
        Throws:
        org.nuxeo.connect.update.PackageException
      • getInstallForms

        public org.nuxeo.connect.update.model.Form[] getInstallForms()
                                                              throws org.nuxeo.connect.update.PackageException
        Specified by:
        getInstallForms in interface org.nuxeo.connect.update.LocalPackage
        Throws:
        org.nuxeo.connect.update.PackageException
      • getUninstallForms

        public org.nuxeo.connect.update.model.Form[] getUninstallForms()
                                                                throws org.nuxeo.connect.update.PackageException
        Specified by:
        getUninstallForms in interface org.nuxeo.connect.update.LocalPackage
        Throws:
        org.nuxeo.connect.update.PackageException
      • getTermsAndConditionsContent

        public String getTermsAndConditionsContent()
                                            throws org.nuxeo.connect.update.PackageException
        Specified by:
        getTermsAndConditionsContent in interface org.nuxeo.connect.update.LocalPackage
        Throws:
        org.nuxeo.connect.update.PackageException
      • requireTermsAndConditionsAcceptance

        public boolean requireTermsAndConditionsAcceptance()
        Specified by:
        requireTermsAndConditionsAcceptance in interface org.nuxeo.connect.update.LocalPackage
      • supportsHotReload

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