Class ActivityDefinitionBuilder
java.lang.Object
com.evolveum.midpoint.schema.util.task.ActivityDefinitionBuilder
Helps with creating
ActivityDefinitionType
objects.
Currently, assumes there's exactly one work definition. This is the most typical scenario. If you need more complex,
consider creating the activity yourself.
This class maintains interesting parts of the activity definition; and, at the very end, it combines them into
the final definition.-
Method Summary
Modifier and TypeMethodDescription@NotNull ActivityDefinitionType
build()
static ActivityDefinitionBuilder
create
(@NotNull CleanupWorkDefinitionType definition) static ActivityDefinitionBuilder
create
(@NotNull ExplicitChangeExecutionWorkDefinitionType definition) static ActivityDefinitionBuilder
create
(@NotNull IterativeScriptingWorkDefinitionType definition) static ActivityDefinitionBuilder
create
(@NotNull ReindexingWorkDefinitionType definition) static ActivityDefinitionBuilder
create
(@NotNull WorkDefinitionsType works) withExecutionMode
(@Nullable ExecutionModeType value) withPredefinedConfiguration
(@Nullable PredefinedConfigurationType value) withSimulationDefinition
(@Nullable SimulationDefinitionType simulationDefinition)
-
Method Details
-
create
-
create
public static ActivityDefinitionBuilder create(@NotNull @NotNull ExplicitChangeExecutionWorkDefinitionType definition) -
create
public static ActivityDefinitionBuilder create(@NotNull @NotNull CleanupWorkDefinitionType definition) -
create
public static ActivityDefinitionBuilder create(@NotNull @NotNull IterativeScriptingWorkDefinitionType definition) -
create
public static ActivityDefinitionBuilder create(@NotNull @NotNull ReindexingWorkDefinitionType definition) -
withExecutionMode
-
withPredefinedConfiguration
public ActivityDefinitionBuilder withPredefinedConfiguration(@Nullable @Nullable PredefinedConfigurationType value) -
withSimulationDefinition
public ActivityDefinitionBuilder withSimulationDefinition(@Nullable @Nullable SimulationDefinitionType simulationDefinition) -
build
-