@Component public class BaseModelInvocationProcessingHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected JobController |
jobController |
Constructor and Description |
---|
BaseModelInvocationProcessingHelper() |
Modifier and Type | Method and Description |
---|---|
JobCreationInstruction |
createInstructionForRoot(ChangeProcessor changeProcessor,
ModelContext modelContext,
Task taskFromModel)
More specific version of the previous method, having contextForRoot equals to modelContext.
|
JobCreationInstruction |
createInstructionForRoot(ChangeProcessor changeProcessor,
ModelContext modelContext,
Task taskFromModel,
ModelContext contextForRoot)
Creates a root job creation instruction.
|
Job |
createRootJob(JobCreationInstruction rootInstruction,
Task taskFromModel,
OperationResult result)
Creates a root job, based on provided job start instruction.
|
void |
logJobsBeforeStart(Job rootJob,
OperationResult result) |
@Autowired protected JobController jobController
public JobCreationInstruction createInstructionForRoot(ChangeProcessor changeProcessor, ModelContext modelContext, Task taskFromModel, ModelContext contextForRoot) throws SchemaException
changeProcessor
- reference to the change processor responsible for the whole operationmodelContext
- model context in which the original model operation is carried outtaskFromModel
- task in which the original model operation is carried outcontextForRoot
- model context that should be put into the root task (might be different from the modelContext)SchemaException
public JobCreationInstruction createInstructionForRoot(ChangeProcessor changeProcessor, ModelContext modelContext, Task taskFromModel) throws SchemaException
SchemaException
public Job createRootJob(JobCreationInstruction rootInstruction, Task taskFromModel, OperationResult result) throws SchemaException, ObjectNotFoundException
rootInstruction
- instruction to usetaskFromModel
- (potential) parent taskresult
- SchemaException
ObjectNotFoundException
public void logJobsBeforeStart(Job rootJob, OperationResult result) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
Copyright © 2014 evolveum. All rights reserved.