public interface PrimaryChangeAspect
Modifier and Type | Method and Description |
---|---|
String |
getBeanName() |
boolean |
isEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.PrimaryChangeProcessorConfigurationType processorConfigurationType) |
boolean |
isEnabledByDefault()
Returns true if this aspect is enabled by default, i.e.
|
List<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> |
prepareApprovedBy(ProcessEvent event,
PcpWfTask job,
OperationResult result)
Returns a list of users who have approved the particular request.
|
ObjectTreeDeltas |
prepareDeltaOut(ProcessEvent event,
PcpWfTask job,
OperationResult result)
On process instance end, prepares deltaOut based in deltaIn and information gathered during approval process.
|
List<PcpChildWfTaskCreationInstruction> |
prepareTasks(ModelContext<?> modelContext,
com.evolveum.midpoint.xml.ns._public.common.common_3.PrimaryChangeProcessorConfigurationType wfConfigurationType,
ObjectTreeDeltas objectTreeDeltas,
Task taskFromModel,
OperationResult result)
Examines the change and determines whether there are pieces that require (change type specific)
approval, for example, if there are roles added.
|
List<PcpChildWfTaskCreationInstruction> prepareTasks(ModelContext<?> modelContext, com.evolveum.midpoint.xml.ns._public.common.common_3.PrimaryChangeProcessorConfigurationType wfConfigurationType, ObjectTreeDeltas objectTreeDeltas, Task taskFromModel, OperationResult result) throws SchemaException, ObjectNotFoundException
modelContext
- Original model context (e.g. to be able to get information about whole context of the operation)wfConfigurationType
- objectTreeDeltas
- Change to be examined and modified by implementation of this methodtaskFromModel
- General context of the operation - the method should not modify the task.result
- Operation result - the method should report any errors here (TODO what about creating subresults?) @return list of start process instructionsSchemaException
ObjectNotFoundException
WfTaskCreationInstruction
ObjectTreeDeltas prepareDeltaOut(ProcessEvent event, PcpWfTask job, OperationResult result) throws SchemaException
event
- Current ProcessEvent providing information on what happened within wf process instance.job
- Reference to a job (pair of process instance and a task) in which the event happened.result
- Operation result - the method should report any errors here.SchemaException
- if there is any problem with the schema.List<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> prepareApprovedBy(ProcessEvent event, PcpWfTask job, OperationResult result)
event
- Current ProcessEvent providing information on what happened within wf process instance.job
- Reference to a job (pair of process instance and a task) in which the event happened.result
- Operation result - the method should report any errors here.boolean isEnabledByDefault()
boolean isEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.PrimaryChangeProcessorConfigurationType processorConfigurationType)
String getBeanName()
Copyright © 2016 evolveum. All rights reserved.