Class Entry
- java.lang.Object
-
- org.nuxeo.connect.update.task.update.Entry
-
public class Entry extends Object implements Iterable<Version>
Versions are stored in the same order they are registered (in historical package install order). That means when rollbacking an update the file system will be modified only if the last version was rollbacked. And the version that will become the current version will be the last version in the version list.- Author:
- Bogdan Stefanescu
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Version
addVersion(Version version)
Version
getBaseVersion()
Version
getFirstVersion()
Version
getGreatestVersion()
String
getKey()
Version
getLastVersion()
Version
getLastVersion(boolean includeUpgradeOnly)
Version
getOrCreateVersion(String version)
Version
getVersion(String version)
List<Version>
getVersions()
boolean
hasBaseVersion()
boolean
isEmpty()
boolean
isLastVersion(Version v)
Iterator<Version>
iterator()
boolean
removeVersion(Version version)
void
setBaseVersion(Version baseVersion)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
Entry
public Entry(String key)
-
-
Method Detail
-
isEmpty
public final boolean isEmpty()
-
getFirstVersion
public final Version getFirstVersion()
-
getLastVersion
public final Version getLastVersion()
-
getLastVersion
public Version getLastVersion(boolean includeUpgradeOnly)
- Returns:
- Last version not deployed in upgradeOnly mode
- Since:
- 5.7
-
getKey
public final String getKey()
-
setBaseVersion
public final void setBaseVersion(Version baseVersion)
-
hasBaseVersion
public final boolean hasBaseVersion()
-
getBaseVersion
public final Version getBaseVersion()
-
isLastVersion
public final boolean isLastVersion(Version v)
-
removeVersion
public boolean removeVersion(Version version)
-
getGreatestVersion
public Version getGreatestVersion()
-
-