Package com.evolveum.midpoint.task.api
Class StaticTaskPartitionsDefinition.StaticTaskPartition
- java.lang.Object
-
- com.evolveum.midpoint.task.api.StaticTaskPartitionsDefinition.StaticTaskPartition
-
- All Implemented Interfaces:
TaskPartitionsDefinition.TaskPartitionDefinition
- Enclosing class:
- StaticTaskPartitionsDefinition
public class StaticTaskPartitionsDefinition.StaticTaskPartition extends Object implements TaskPartitionsDefinition.TaskPartitionDefinition
-
-
Constructor Summary
Constructors Constructor Description StaticTaskPartition(TaskPartitionDefinitionType data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Integer>
getDependents()
Dependents of this subtask, i.e.TaskExecutionEnvironmentType
getExecutionEnvironment(Task masterTask)
Execution environment to be used in subtask.ExtensionType
getExtension(Task masterTask)
Extension to be added into the extension of subtask.String
getHandlerUri(Task masterTask)
Template for the subtask handler URI.String
getName(Task masterTask)
Template for the subtask name.Collection<ItemDelta<?,?>>
getOtherDeltas(Task masterTask)
Deltas to be applied to subtask after its creation.TaskWorkManagementType
getWorkManagement(Task masterTask)
Work state configuration to be planted into subtask, if copyWorkStateConfiguration is not true.Boolean
isCopyMasterExtension(Task masterTask)
Whether to copy extension from master task into subtask.
-
-
-
Constructor Detail
-
StaticTaskPartition
public StaticTaskPartition(@NotNull TaskPartitionDefinitionType data)
-
-
Method Detail
-
getName
public String getName(Task masterTask)
Description copied from interface:TaskPartitionsDefinition.TaskPartitionDefinition
Template for the subtask name. Overrides strategy.taskNameTemplate. The default is {masterTaskName} ({index})- Specified by:
getName
in interfaceTaskPartitionsDefinition.TaskPartitionDefinition
-
getHandlerUri
public String getHandlerUri(Task masterTask)
Description copied from interface:TaskPartitionsDefinition.TaskPartitionDefinition
Template for the subtask handler URI. Overrides strategy.handlerUriTemplate. The default is {masterTaskHandlerUri}#{index}- Specified by:
getHandlerUri
in interfaceTaskPartitionsDefinition.TaskPartitionDefinition
-
getWorkManagement
public TaskWorkManagementType getWorkManagement(Task masterTask)
Description copied from interface:TaskPartitionsDefinition.TaskPartitionDefinition
Work state configuration to be planted into subtask, if copyWorkStateConfiguration is not true.- Specified by:
getWorkManagement
in interfaceTaskPartitionsDefinition.TaskPartitionDefinition
-
getExecutionEnvironment
public TaskExecutionEnvironmentType getExecutionEnvironment(Task masterTask)
Description copied from interface:TaskPartitionsDefinition.TaskPartitionDefinition
Execution environment to be used in subtask. Overrides strategy.executionEnvironment.- Specified by:
getExecutionEnvironment
in interfaceTaskPartitionsDefinition.TaskPartitionDefinition
-
getExtension
public ExtensionType getExtension(Task masterTask)
Description copied from interface:TaskPartitionsDefinition.TaskPartitionDefinition
Extension to be added into the extension of subtask.- Specified by:
getExtension
in interfaceTaskPartitionsDefinition.TaskPartitionDefinition
-
isCopyMasterExtension
public Boolean isCopyMasterExtension(Task masterTask)
Description copied from interface:TaskPartitionsDefinition.TaskPartitionDefinition
Whether to copy extension from master task into subtask. Overrides strategy.copyMasterExtension.- Specified by:
isCopyMasterExtension
in interfaceTaskPartitionsDefinition.TaskPartitionDefinition
-
getOtherDeltas
@NotNull public Collection<ItemDelta<?,?>> getOtherDeltas(Task masterTask)
Description copied from interface:TaskPartitionsDefinition.TaskPartitionDefinition
Deltas to be applied to subtask after its creation. Applied before strategy.otherDeltas.- Specified by:
getOtherDeltas
in interfaceTaskPartitionsDefinition.TaskPartitionDefinition
-
getDependents
@NotNull public Collection<Integer> getDependents()
Description copied from interface:TaskPartitionsDefinition.TaskPartitionDefinition
Dependents of this subtask, i.e. subtasks that should be started only after this subtask has finished. Provided as indices starting at 1.- Specified by:
getDependents
in interfaceTaskPartitionsDefinition.TaskPartitionDefinition
-
-