Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assignment policy plus/minus/zero evaluation
Assignment policy rules were evaluated using membership in plus, minus, and zero set of "evaluated assignment triple", e.g. assignment was considered to be added when it was present in the plus set. This was not quite correct if validity come into play. So here we introduced more precise AssignmentOrigin information and its isBeingAdded, isBeingDeleted and isBeingModified methods. They are used mainly for AssignmentModificationConstraintEvaluator and HasAssignmentConstraintEvaluator. This fixes MID-4944 and MID-4216.
- Loading branch information
Showing
32 changed files
with
658 additions
and
451 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/AddDeleteReplace.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,17 @@ | ||
/* | ||
* Copyright (c) 2014 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.prism.delta; | ||
|
||
/** | ||
* Denotes ADD, DELETE, REPLACE sets in item deltas. | ||
* | ||
*/ | ||
public enum AddDeleteReplace { | ||
|
||
ADD, DELETE, REPLACE | ||
|
||
} |
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
Oops, something went wrong.