@Component public class AddAssociationAspect extends BasePrimaryChangeAspect
Modifier and Type | Field and Description |
---|---|
protected AssignmentHelper |
assignmentHelper |
protected ItemApprovalProcessInterface |
itemApprovalProcessInterface |
protected PrimaryChangeAspectHelper |
primaryChangeAspectHelper |
protected PrismContext |
prismContext |
baseConfigurationHelper, baseModelInvocationProcessingHelper, changeProcessor, miscDataUtil, processInterfaceFinder, repositoryService, wfTaskUtil
Constructor and Description |
---|
AddAssociationAspect() |
Modifier and Type | Method and Description |
---|---|
protected com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAssociationType |
cloneAndCanonicalizeAssociation(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAssociationType a) |
protected ApprovalRequest<com.evolveum.midpoint.xml.ns._public.common.common_3.AssociationAdditionType> |
createApprovalRequest(com.evolveum.midpoint.xml.ns._public.common.common_3.PcpAspectConfigurationType config,
com.evolveum.midpoint.xml.ns._public.common.common_3.AssociationAdditionType itemToApprove) |
protected com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType |
getAssociationApprovalTarget(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAssociationType association,
OperationResult result) |
protected String |
getTargetDisplayName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType target) |
protected boolean |
isAssociationRelevant(com.evolveum.midpoint.xml.ns._public.common.common_3.PcpAspectConfigurationType config,
com.evolveum.midpoint.xml.ns._public.common.common_3.AssociationAdditionType itemToApprove,
ResourceShadowDiscriminator rsd,
ModelContext<?> modelContext,
Task task,
OperationResult result) |
protected 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.
|
getBeanName, getChangeProcessor, init, isEnabled, isEnabledByDefault, prepareApprovedBy, prepareDeltaOut, setBeanName
@Autowired protected PrismContext prismContext
@Autowired protected ItemApprovalProcessInterface itemApprovalProcessInterface
@Autowired protected AssignmentHelper assignmentHelper
@Autowired protected PrimaryChangeAspectHelper primaryChangeAspectHelper
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, ObjectNotFoundException
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
ObjectNotFoundException
WfTaskCreationInstruction
protected boolean isFocusRelevant(ModelContext modelContext)
protected boolean isAssociationRelevant(com.evolveum.midpoint.xml.ns._public.common.common_3.PcpAspectConfigurationType config, com.evolveum.midpoint.xml.ns._public.common.common_3.AssociationAdditionType itemToApprove, ResourceShadowDiscriminator rsd, ModelContext<?> modelContext, Task task, OperationResult result)
protected com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAssociationType cloneAndCanonicalizeAssociation(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAssociationType a)
protected ApprovalRequest<com.evolveum.midpoint.xml.ns._public.common.common_3.AssociationAdditionType> createApprovalRequest(com.evolveum.midpoint.xml.ns._public.common.common_3.PcpAspectConfigurationType config, com.evolveum.midpoint.xml.ns._public.common.common_3.AssociationAdditionType itemToApprove)
protected com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType getAssociationApprovalTarget(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAssociationType association, OperationResult result) throws SchemaException, ObjectNotFoundException
protected String getTargetDisplayName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType target)
Copyright © 2016 evolveum. All rights reserved.