Class EvaluatedPolicyStatements
java.lang.Object
com.evolveum.midpoint.repo.common.EvaluatedPolicyStatements
- All Implemented Interfaces:
Serializable
Processed form of
ObjectType.F_POLICY_STATEMENT values plus mark references derived from the policy rules.
Somewhat similar to ObjectMarkHelper.SmartMarkRefCollection but does not support `org:related` relation
nor the value metadata (yet).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcollectMarksToAdd(@NotNull Collection<ObjectReferenceType> existingValues) Returns values to add.collectMarksToDelete(@NotNull Collection<ObjectReferenceType> existingValues) Returns values to delete.booleanisEmpty()booleanisExclude(ObjectReferenceType markRef) boolean
-
Constructor Details
-
EvaluatedPolicyStatements
public EvaluatedPolicyStatements()
-
-
Method Details
-
addMarkRefToAdd
-
addMarkRefToDelete
-
addMarkRefToExclude
-
isExclude
-
collectMarksToAdd
public Collection<ObjectReferenceType> collectMarksToAdd(@NotNull @NotNull Collection<ObjectReferenceType> existingValues) Returns values to add. "Existing values" parameter is used to filter out values already present in the object, to avoid phantom adds, like in MID-10121. We assume no metadata, relations or similar exotic features here. If present, more sophisticated comparison would be needed. -
collectMarksToDelete
public Collection<ObjectReferenceType> collectMarksToDelete(@NotNull @NotNull Collection<ObjectReferenceType> existingValues) Returns values to delete. "Existing values" parameter is used to filter out values not present in the object, to avoid phantom deletes. We assume no metadata, relations or similar exotic features here. If present, more sophisticated comparison would be needed. -
isNotEmpty
public boolean isNotEmpty() -
isEmpty
public boolean isEmpty()
-