|
||||||||||
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(java.util.List<Condition> conditions)
|
DeltaBuilder |
addTask(Task t)
|
DeltaBuilder |
addTasks(java.util.List<Task> tasks)
|
java.util.List<Condition> |
getConditions()
Returns the list of Conditions which have to be checked before this Delta's Tasks can be executed. |
java.lang.String |
getDescription()
|
java.util.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,
java.lang.String description)
|
static DeltaBuilder |
startup(ModuleDefinition moduleDef,
java.util.List<Task> tasks)
|
static DeltaBuilder |
startup(Version version,
java.lang.String description)
TODO : it seems irrelevant to have a Version in startup tasks. |
static DeltaBuilder |
update(java.lang.String versionStr,
java.lang.String description)
|
static DeltaBuilder |
update(Version version,
java.lang.String description)
|
static DeltaBuilder |
update(Version v,
java.lang.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, java.lang.String description, Task task)
public static DeltaBuilder update(java.lang.String versionStr, java.lang.String description)
public static DeltaBuilder update(Version version, java.lang.String description)
public static DeltaBuilder install(Version version, java.lang.String description)
public static DeltaBuilder startup(ModuleDefinition moduleDef, java.util.List<Task> tasks)
public static DeltaBuilder startup(Version version, java.lang.String description)
public DeltaBuilder addTask(Task t)
public DeltaBuilder addTasks(java.util.List<Task> tasks)
public DeltaBuilder addCondition(Condition c)
public DeltaBuilder addConditions(java.util.List<Condition> conditions)
public Version getVersion()
Delta
getVersion
in interface Delta
public java.lang.String getDescription()
getDescription
in interface Delta
public java.util.List<Condition> getConditions()
Delta
getConditions
in interface Delta
public java.util.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 |