|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.delta.DeltaBuilder
public class DeltaBuilder
Helper class to build Delta instances.
Method Summary | |
---|---|
DeltaBuilder |
addCondition(Condition c)
|
DeltaBuilder |
addConditions(List<Condition> conditions)
|
DeltaBuilder |
addTask(Task t)
|
DeltaBuilder |
addTasks(List<Task> tasks)
|
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 versionStr,
String description)
|
static DeltaBuilder |
update(Version version,
String description)
|
static DeltaBuilder |
update(Version v,
String description,
Task task)
Convenience factory method for an Update Delta with a single task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DeltaBuilder update(Version v, String description, Task task)
public static DeltaBuilder update(String versionStr, String description)
public static DeltaBuilder update(Version version, String description)
public static DeltaBuilder install(Version version, String description)
public static DeltaBuilder startup(ModuleDefinition moduleDef, List<Task> tasks)
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
getTasks
in interface Delta
public DeltaType getType()
getType
in interface Delta
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |