Modifier and Type | Method and Description |
---|---|
DeltaBuilder |
addCondition(Condition c) |
DeltaBuilder |
addConditions(List<Condition> conditions) |
DeltaBuilder |
addTask(Task t) |
DeltaBuilder |
addTasks(List<Task> tasks) |
static DeltaBuilder |
checkPrecondition(String minimalVersion,
String newVersion) |
List<Condition> |
getConditions()
Returns the list of Conditions which have to be checked before this Delta's Tasks can be executed.
|
String |
getDescription() |
List<Task> |
getTasks()
Should not return a read-only List, as the version handler might add tasks as appropriate.
|
DeltaType |
getType() |
Version |
getVersion()
Returns the version number for which this Delta is needed.
|
static DeltaBuilder |
install(Version version,
String description) |
static DeltaBuilder |
startup(ModuleDefinition moduleDef,
List<Task> tasks) |
static DeltaBuilder |
startup(Version version,
String description)
TODO : it seems irrelevant to have a Version in startup tasks.
|
static DeltaBuilder |
update(String toVersionString,
String description) |
static DeltaBuilder |
update(Version toVersion,
String description) |
static DeltaBuilder |
update(Version toVersion,
String description,
Task task)
Convenience factory method for an Update Delta with a single task.
|
public static DeltaBuilder update(Version toVersion, String description, Task task)
public static DeltaBuilder update(String toVersionString, String description)
public static DeltaBuilder update(Version toVersion, String description)
public static DeltaBuilder install(Version version, String description)
public static DeltaBuilder startup(ModuleDefinition moduleDef, List<Task> tasks)
public static DeltaBuilder checkPrecondition(String minimalVersion, String newVersion)
public static DeltaBuilder startup(Version version, String description)
public DeltaBuilder addTask(Task t)
public DeltaBuilder addTasks(List<Task> tasks)
public DeltaBuilder addCondition(Condition c)
public DeltaBuilder addConditions(List<Condition> conditions)
public Version getVersion()
Delta
getVersion
in interface Delta
public String getDescription()
getDescription
in interface Delta
public List<Condition> getConditions()
Delta
getConditions
in interface Delta
public List<Task> getTasks()
Delta
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.