@Component public abstract class AddAssignmentAspect<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> extends BasePrimaryChangeAspect
Modifier and Type | Field and Description |
---|---|
protected AssignmentHelper |
assignmentHelper |
protected ItemApprovalProcessInterface |
itemApprovalProcessInterface |
protected PrismContext |
prismContext |
baseConfigurationHelper, baseModelInvocationProcessingHelper, changeProcessor, miscDataUtil, primaryChangeAspectHelper, processInterfaceFinder, repositoryService, wfTaskUtil
Constructor and Description |
---|
AddAssignmentAspect() |
Modifier and Type | Method and Description |
---|---|
protected abstract com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType |
cloneAndCanonicalizeAssignment(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType a) |
protected abstract ApprovalRequest<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> |
createApprovalRequest(com.evolveum.midpoint.xml.ns._public.common.common_3.PcpAspectConfigurationType config,
com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignmentType,
T target) |
protected abstract T |
getAssignmentApprovalTarget(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignmentType,
OperationResult result) |
protected String |
getTargetDisplayName(T target) |
protected abstract boolean |
isAssignmentRelevant(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignmentType) |
protected abstract boolean |
isFocusRelevant(ModelContext modelContext) |
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.
|
protected abstract boolean |
shouldAssignmentBeApproved(com.evolveum.midpoint.xml.ns._public.common.common_3.PcpAspectConfigurationType config,
T target) |
getBeanName, getChangeProcessor, init, isEnabled, isEnabledByDefault, prepareApprovedBy, prepareDeltaOut, setBeanName
@Autowired protected PrismContext prismContext
@Autowired protected ItemApprovalProcessInterface itemApprovalProcessInterface
@Autowired protected AssignmentHelper assignmentHelper
public List<PcpChildWfTaskCreationInstruction> prepareTasks(ModelContext<?> modelContext, com.evolveum.midpoint.xml.ns._public.common.common_3.PrimaryChangeProcessorConfigurationType wfConfigurationType, ObjectTreeDeltas objectTreeDeltas, Task taskFromModel, OperationResult result) throws SchemaException
PrimaryChangeAspect
modelContext
- Original model context (e.g. to be able to get information about whole context of the operation)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
WfTaskCreationInstruction
protected abstract boolean isFocusRelevant(ModelContext modelContext)
protected abstract boolean isAssignmentRelevant(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignmentType)
protected abstract boolean shouldAssignmentBeApproved(com.evolveum.midpoint.xml.ns._public.common.common_3.PcpAspectConfigurationType config, T target)
protected abstract com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType cloneAndCanonicalizeAssignment(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType a)
protected abstract ApprovalRequest<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> createApprovalRequest(com.evolveum.midpoint.xml.ns._public.common.common_3.PcpAspectConfigurationType config, com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignmentType, T target)
protected abstract T getAssignmentApprovalTarget(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignmentType, OperationResult result)
Copyright © 2016 evolveum. All rights reserved.