Class LocalPackageImpl
- java.lang.Object
-
- org.nuxeo.connect.update.standalone.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
-
-
Field Summary
Fields Modifier and Type Field Description protected LocalPackageData
data
protected PackageDefinitionImpl
def
protected String
id
protected org.nuxeo.connect.update.PackageState
state
-
Constructor Summary
Constructors Constructor Description LocalPackageImpl(File file, int state, org.nuxeo.connect.update.PackageUpdateService pus)
Deprecated.Since 5.8.LocalPackageImpl(File file, org.nuxeo.connect.update.PackageState state, org.nuxeo.connect.update.PackageUpdateService pus)
LocalPackageImpl(ClassLoader parent, File file, int state, org.nuxeo.connect.update.PackageUpdateService pus)
Deprecated.Since 5.8.LocalPackageImpl(ClassLoader parent, File file, org.nuxeo.connect.update.PackageState state, org.nuxeo.connect.update.PackageUpdateService pus)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getClassifier()
org.nuxeo.connect.update.PackageDependency[]
getConflicts()
LocalPackageData
getData()
org.nuxeo.connect.update.PackageDependency[]
getDependencies()
String
getDescription()
org.nuxeo.connect.update.model.Form[]
getForms(String path)
String
getId()
File
getInstallFile()
org.nuxeo.connect.update.model.Form[]
getInstallForms()
org.nuxeo.connect.update.task.Task
getInstallTask()
String
getLicenseContent()
String
getLicenseType()
String
getLicenseUrl()
String
getName()
org.nuxeo.connect.update.PackageDependency[]
getOptionalDependencies()
org.nuxeo.connect.update.PackageState
getPackageState()
org.nuxeo.connect.update.PackageDependency[]
getProvides()
int
getState()
Deprecated.String
getTargetPlatformName()
String
getTargetPlatformRange()
String[]
getTargetPlatforms()
protected org.nuxeo.connect.update.task.Task
getTask(org.nuxeo.connect.update.model.TaskDefinition tdef)
String
getTermsAndConditionsContent()
String
getTitle()
org.nuxeo.connect.update.PackageType
getType()
File
getUninstallFile()
org.nuxeo.connect.update.model.Form[]
getUninstallForms()
org.nuxeo.connect.update.task.Task
getUninstallTask()
org.nuxeo.connect.update.model.Form[]
getValidationForms()
org.nuxeo.connect.update.Validator
getValidator()
String
getVendor()
org.nuxeo.connect.update.Version
getVersion()
boolean
isLocal()
boolean
requireTermsAndConditionsAcceptance()
void
setState(int state)
Deprecated.void
setState(org.nuxeo.connect.update.PackageState state)
boolean
supportsHotReload()
String
toString()
-
-
-
Field Detail
-
id
protected String id
-
state
protected org.nuxeo.connect.update.PackageState state
-
data
protected LocalPackageData data
-
def
protected PackageDefinitionImpl def
-
-
Constructor Detail
-
LocalPackageImpl
@Deprecated public LocalPackageImpl(File file, int state, org.nuxeo.connect.update.PackageUpdateService pus) throws org.nuxeo.connect.update.PackageException
Deprecated.Since 5.8. UseLocalPackageImpl(File, PackageState, PackageUpdateService)
instead.- Throws:
org.nuxeo.connect.update.PackageException
-
LocalPackageImpl
@Deprecated public LocalPackageImpl(ClassLoader parent, File file, int state, org.nuxeo.connect.update.PackageUpdateService pus) throws org.nuxeo.connect.update.PackageException
Deprecated.Since 5.8. UseLocalPackageImpl(ClassLoader, File, PackageState, PackageUpdateService)
instead.- Throws:
org.nuxeo.connect.update.PackageException
-
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 interfaceorg.nuxeo.connect.update.LocalPackage
-
setState
public void setState(org.nuxeo.connect.update.PackageState state)
- Specified by:
setState
in interfaceorg.nuxeo.connect.update.LocalPackage
-
getData
public LocalPackageData getData()
- Specified by:
getData
in interfaceorg.nuxeo.connect.update.LocalPackage
-
getInstallFile
public File getInstallFile()
- Specified by:
getInstallFile
in interfaceorg.nuxeo.connect.update.LocalPackage
-
getUninstallFile
public File getUninstallFile()
- Specified by:
getUninstallFile
in interfaceorg.nuxeo.connect.update.LocalPackage
-
getLicenseType
public String getLicenseType()
- Specified by:
getLicenseType
in interfaceorg.nuxeo.connect.update.Package
-
getLicenseUrl
public String getLicenseUrl()
- Specified by:
getLicenseUrl
in interfaceorg.nuxeo.connect.update.Package
-
getLicenseContent
public String getLicenseContent() throws org.nuxeo.connect.update.PackageException
- Specified by:
getLicenseContent
in interfaceorg.nuxeo.connect.update.LocalPackage
- Throws:
org.nuxeo.connect.update.PackageException
-
getClassifier
public String getClassifier()
- Specified by:
getClassifier
in interfaceorg.nuxeo.connect.update.Package
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceorg.nuxeo.connect.update.Package
-
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
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceorg.nuxeo.connect.update.Package
-
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
-
getTargetPlatforms
public String[] getTargetPlatforms()
- Specified by:
getTargetPlatforms
in interfaceorg.nuxeo.connect.update.Package
-
getTargetPlatformRange
public String getTargetPlatformRange()
- Specified by:
getTargetPlatformRange
in interfaceorg.nuxeo.connect.update.Package
-
getTargetPlatformName
public String getTargetPlatformName()
- Specified by:
getTargetPlatformName
in interfaceorg.nuxeo.connect.update.Package
-
getDependencies
public org.nuxeo.connect.update.PackageDependency[] getDependencies()
- Specified by:
getDependencies
in interfaceorg.nuxeo.connect.update.Package
-
getOptionalDependencies
public org.nuxeo.connect.update.PackageDependency[] getOptionalDependencies()
- Specified by:
getOptionalDependencies
in interfaceorg.nuxeo.connect.update.Package
-
getConflicts
public org.nuxeo.connect.update.PackageDependency[] getConflicts()
- Specified by:
getConflicts
in interfaceorg.nuxeo.connect.update.Package
-
getProvides
public org.nuxeo.connect.update.PackageDependency[] getProvides()
- Specified by:
getProvides
in interfaceorg.nuxeo.connect.update.Package
-
getType
public org.nuxeo.connect.update.PackageType getType()
- Specified by:
getType
in interfaceorg.nuxeo.connect.update.Package
-
getVersion
public org.nuxeo.connect.update.Version getVersion()
- Specified by:
getVersion
in interfaceorg.nuxeo.connect.update.Package
-
getVendor
public String getVendor()
- Specified by:
getVendor
in interfaceorg.nuxeo.connect.update.Package
-
isLocal
public boolean isLocal()
- Specified by:
isLocal
in interfaceorg.nuxeo.connect.update.Package
-
getInstallTask
public org.nuxeo.connect.update.task.Task getInstallTask() throws org.nuxeo.connect.update.PackageException
- Specified by:
getInstallTask
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.nuxeo.connect.update.LocalPackage
- Throws:
org.nuxeo.connect.update.PackageException
-
getTermsAndConditionsContent
public String getTermsAndConditionsContent() throws org.nuxeo.connect.update.PackageException
- Specified by:
getTermsAndConditionsContent
in interfaceorg.nuxeo.connect.update.LocalPackage
- Throws:
org.nuxeo.connect.update.PackageException
-
requireTermsAndConditionsAcceptance
public boolean requireTermsAndConditionsAcceptance()
- Specified by:
requireTermsAndConditionsAcceptance
in interfaceorg.nuxeo.connect.update.LocalPackage
-
supportsHotReload
public boolean supportsHotReload()
- Specified by:
supportsHotReload
in interfaceorg.nuxeo.connect.update.Package
-
-