Class Version
- java.lang.Object
-
- org.nuxeo.connect.update.task.update.Version
-
public class Version extends Object
The version correspond to a JAR version that is required by some package. An update version is defined by the JAR version, a relative path to the JAR file and a list of packages requiring this version. The path points to a copy of the JAR version in the update manager storage. (thus the path is relative to the update manager root) Let say you install a package pkg1 that requires the version 1.0 for the jar X. If this version is not yet provided by another package a new version will be created and the jar file copied in the update manager storage under the destination 'path' (e.g. bundles/X-1.0.jar).- Author:
- Bogdan Stefanescu
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addPackage(UpdateOptions opt)
boolean
equals(Object obj)
FileVersion
getFileVersion()
Map<String,UpdateOptions>
getPackages()
String
getPath()
String
getVersion()
int
hashCode()
boolean
hasPackage(String pkgId)
boolean
hasPackages()
boolean
removePackage(String pkgId)
void
setPath(String path)
String
toString()
-
-
-
Field Detail
-
version
protected String version
The version name (including classifier)
-
path
protected String path
The path of the backup file
-
packages
protected Map<String,UpdateOptions> packages
The packages requiring this version
-
-
Constructor Detail
-
Version
public Version(String version)
-
-
Method Detail
-
getPackages
public final Map<String,UpdateOptions> getPackages()
-
hasPackage
public boolean hasPackage(String pkgId)
-
removePackage
public boolean removePackage(String pkgId)
-
addPackage
public boolean addPackage(UpdateOptions opt)
-
hasPackages
public boolean hasPackages()
-
getPath
public final String getPath()
-
setPath
public final void setPath(String path)
-
getVersion
public final String getVersion()
-
getFileVersion
public final FileVersion getFileVersion()
-
-