public class UpdateOptions extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowDowngrade
Allow install of a lower version
|
protected boolean |
deleteOnExit |
protected File |
file
The jar file to be installed for this version
|
protected String |
nameWithoutVersion
The file name without the version
|
protected String |
pkgId
TYhe package ID
|
protected File |
targetDir
The directory where this file will be installed
|
protected File |
targetFile
Where the update file will be installed
|
protected boolean |
upgradeOnly
Install only if already installed
|
protected String |
version
The version of this update file (including classifier)
|
Modifier | Constructor and Description |
---|---|
protected |
UpdateOptions() |
Modifier and Type | Method and 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) |
protected String nameWithoutVersion
protected File targetFile
protected boolean allowDowngrade
protected boolean upgradeOnly
protected boolean deleteOnExit
protected UpdateOptions()
public static UpdateOptions newInstance(String pkgId, File file, File targetDir)
public File getTargetDir()
public File getTargetFile()
public String getVersion()
public boolean isSnapshotVersion()
public String getPackageId()
public void setUpgradeOnly(boolean upgradeOnly)
public void setAllowDowngrade(boolean allowDowngrade)
public boolean isUpgradeOnly()
public boolean isAllowDowngrade()
public void setDeleteOnExit(boolean deleteOnExit)
public boolean isDeleteOnExit()
Copyright © 2017 Nuxeo. All rights reserved.