Class UpdateOptions
- java.lang.Object
-
- org.nuxeo.connect.update.task.update.UpdateOptions
-
public class UpdateOptions extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
allowDowngrade
Allow install of a lower versionprotected boolean
deleteOnExit
protected File
file
The jar file to be installed for this versionprotected String
nameWithoutVersion
The file name without the versionprotected String
pkgId
TYhe package IDprotected File
targetDir
The directory where this file will be installedprotected File
targetFile
Where the update file will be installedprotected boolean
upgradeOnly
Install only if already installedprotected String
version
The version of this update file (including classifier)
-
Constructor Summary
Constructors Modifier Constructor Description protected
UpdateOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getFile()
String
getPackageId()
File
getTargetDir()
File
getTargetFile()
String
getVersion()
boolean
isAllowDowngrade()
boolean
isDeleteOnExit()
boolean
isSnapshotVersion()
boolean
isUpgradeOnly()
static UpdateOptions
newInstance(String pkgId, File file, File targetDir)
void
setAllowDowngrade(boolean allowDowngrade)
void
setDeleteOnExit(boolean deleteOnExit)
void
setUpgradeOnly(boolean upgradeOnly)
-
-
-
Field Detail
-
nameWithoutVersion
protected String nameWithoutVersion
The file name without the version
-
targetFile
protected File targetFile
Where the update file will be installed
-
allowDowngrade
protected boolean allowDowngrade
Allow install of a lower version
-
upgradeOnly
protected boolean upgradeOnly
Install only if already installed
-
deleteOnExit
protected boolean deleteOnExit
-
-
Constructor Detail
-
UpdateOptions
protected UpdateOptions()
-
-
Method Detail
-
newInstance
public static UpdateOptions newInstance(String pkgId, File file, File targetDir)
-
getTargetDir
public File getTargetDir()
-
getTargetFile
public File getTargetFile()
-
getVersion
public String getVersion()
-
isSnapshotVersion
public boolean isSnapshotVersion()
-
getPackageId
public String getPackageId()
-
setUpgradeOnly
public void setUpgradeOnly(boolean upgradeOnly)
-
setAllowDowngrade
public void setAllowDowngrade(boolean allowDowngrade)
-
isUpgradeOnly
public boolean isUpgradeOnly()
-
isAllowDowngrade
public boolean isAllowDowngrade()
-
setDeleteOnExit
public void setDeleteOnExit(boolean deleteOnExit)
-
isDeleteOnExit
public boolean isDeleteOnExit()
-
-