Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve assigned mappings evaluation
1) Implemented assigned mapping chaining (MID-5753) 2) Fixed mappings evaluation from invalid assignments (MID-4430) 3) Fixed mappings evaluation from disabled roles (MID-4449) 4) Fixed mappings evaluation when condition changes (MID-5783) 5) Fixed mappings eval. when assignments are being deleted (MID-4452) Also improved mapping chaining in general, providing better logging and partial chaining in cases when total ordering is not possible.
- Loading branch information
Showing
21 changed files
with
631 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...va/com/evolveum/midpoint/model/impl/lens/projector/mappings/FixedTargetSpecification.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (c) 2019 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.model.impl.lens.projector.mappings; | ||
|
||
import com.evolveum.midpoint.prism.PrismObject; | ||
import com.evolveum.midpoint.prism.util.ObjectDeltaObject; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentHolderType; | ||
|
||
/** | ||
* Target object is a given (fixed) prism object: either the same as focus ODO (but with no updates!), | ||
* or a different one. | ||
*/ | ||
public class FixedTargetSpecification<T extends AssignmentHolderType> extends TargetObjectSpecification<T> { | ||
|
||
private final PrismObject<T> targetObject; | ||
|
||
public FixedTargetSpecification(PrismObject<T> targetObject) { | ||
this.targetObject = targetObject; | ||
} | ||
|
||
@Override | ||
public <AH extends AssignmentHolderType> PrismObject<T> getTargetObject(ObjectDeltaObject<AH> updatedFocusOdo) { | ||
return targetObject; | ||
} | ||
|
||
@Override | ||
public boolean isUpdatedWithMappingResults() { | ||
return false; | ||
} | ||
} |
Oops, something went wrong.