Class EvaluatedPolicyStatements

java.lang.Object
com.evolveum.midpoint.repo.common.EvaluatedPolicyStatements
All Implemented Interfaces:
Serializable

public class EvaluatedPolicyStatements extends Object implements 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 Details

    • EvaluatedPolicyStatements

      public EvaluatedPolicyStatements()
  • Method Details

    • addMarkRefToAdd

      public void addMarkRefToAdd(ObjectReferenceType ref)
    • addMarkRefToDelete

      public void addMarkRefToDelete(ObjectReferenceType ref)
    • addMarkRefToExclude

      public void addMarkRefToExclude(ObjectReferenceType ref)
    • isExclude

      public boolean isExclude(ObjectReferenceType markRef)
    • 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()