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 ActivityDefinitionTypebuild()static ActivityDefinitionBuildercreate(@NotNull CleanupWorkDefinitionType definition) static ActivityDefinitionBuildercreate(@NotNull ExplicitChangeExecutionWorkDefinitionType definition) static ActivityDefinitionBuildercreate(@NotNull IterativeScriptingWorkDefinitionType definition) static ActivityDefinitionBuildercreate(@NotNull ReindexingWorkDefinitionType definition) static ActivityDefinitionBuildercreate(@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
-