Class MarkTypeUtil

java.lang.Object
com.evolveum.midpoint.schema.util.MarkTypeUtil

public class MarkTypeUtil extends Object
Utilities for MarkType.
  • Constructor Details

    • MarkTypeUtil

      public MarkTypeUtil()
  • Method Details

    • getSimulationDomain

      @Nullable public static @Nullable SimulationObjectPredicateType getSimulationDomain(@NotNull @NotNull MarkType tag)
    • attachedRuleEvaluatesOnProjection

      public static boolean attachedRuleEvaluatesOnProjection(@NotNull @NotNull MarkType tag)
    • attachedRuleEvaluatesOnFocus

      public static boolean attachedRuleEvaluatesOnFocus(@NotNull @NotNull MarkType tag)
    • isEnabledByDefault

      public static boolean isEnabledByDefault(@NotNull @NotNull MarkType mark)
    • isTransitional

      public static boolean isTransitional(@NotNull @NotNull ObjectReferenceType markRef)
      Returns true if the mark was assigned by a rule in a transitional way. Determined from the value metadata.
    • isAddedByMarkingRule

      public static boolean isAddedByMarkingRule(@NotNull @NotNull ObjectReferenceType markRef)
      Returns true if this value was added by a marking rule (regardless of whether there are any statements for it).
    • isAddedByPolicyRule

      public static boolean isAddedByPolicyRule(@NotNull @NotNull ObjectReferenceType markRef)
      Returns true if this value was added by a policy rule (regardless of whether there are any statements for it).
    • isAddedByPolicyStatement

      public static boolean isAddedByPolicyStatement(@NotNull @NotNull ObjectReferenceType markRef)
      Returns true if this value was added by a policy statement (positive or negative); regardless of any other source(s).
    • isEffective

      public static boolean isEffective(@NotNull @NotNull ObjectReferenceType markRef)
      Mark references stored under `effectiveMarkRef` can be really effective or not effective: when a mark is provided by a marking/policy rule, but overridden by a policy statement, the respective value is kept in the list, because we need the value metadata for it. It is marked by `org:related` relation.