Class MarkTypeUtil
java.lang.Object
com.evolveum.midpoint.schema.util.MarkTypeUtil
Utilities for
MarkType.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanattachedRuleEvaluatesOnFocus(@NotNull MarkType tag) static booleanattachedRuleEvaluatesOnProjection(@NotNull MarkType tag) static @Nullable SimulationObjectPredicateTypegetSimulationDomain(@NotNull MarkType tag) static booleanisAddedByMarkingRule(@NotNull ObjectReferenceType markRef) Returnstrueif this value was added by a marking rule (regardless of whether there are any statements for it).static booleanisAddedByPolicyRule(@NotNull ObjectReferenceType markRef) Returnstrueif this value was added by a policy rule (regardless of whether there are any statements for it).static booleanisAddedByPolicyStatement(@NotNull ObjectReferenceType markRef) Returnstrueif this value was added by a policy statement (positive or negative); regardless of any other source(s).static booleanisEffective(@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.static booleanisEnabledByDefault(@NotNull MarkType mark) static booleanisTransitional(@NotNull ObjectReferenceType markRef) Returnstrueif the mark was assigned by a rule in a transitional way.
-
Constructor Details
-
MarkTypeUtil
public MarkTypeUtil()
-
-
Method Details
-
getSimulationDomain
@Nullable public static @Nullable SimulationObjectPredicateType getSimulationDomain(@NotNull @NotNull MarkType tag) -
attachedRuleEvaluatesOnProjection
-
attachedRuleEvaluatesOnFocus
-
isEnabledByDefault
-
isTransitional
Returnstrueif the mark was assigned by a rule in a transitional way. Determined from the value metadata. -
isAddedByMarkingRule
Returnstrueif this value was added by a marking rule (regardless of whether there are any statements for it). -
isAddedByPolicyRule
Returnstrueif this value was added by a policy rule (regardless of whether there are any statements for it). -
isAddedByPolicyStatement
Returnstrueif this value was added by a policy statement (positive or negative); regardless of any other source(s). -
isEffective
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.
-