Class ObjectOperationPolicyHelper
java.lang.Object
com.evolveum.midpoint.repo.common.ObjectOperationPolicyHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionItemDelta<?,
?> computeEffectiveMarkDelta
(@NotNull ShadowType repoShadow, List<ObjectReferenceType> effectiveMarkRef) ItemDelta<?,
?> computeEffectiveMarkDelta
(ObjectType repoShadow, ItemDelta<?, ?> modification) @NotNull ObjectOperationPolicyType
computeEffectivePolicy
(ObjectType shadow, OperationResult parentResult) void
destroy()
firstNonDefaultValue
(Collection<MarkType> marks, Function<ObjectOperationPolicyType, OperationPolicyConfigurationType> extractor, boolean defaultValue) static ObjectOperationPolicyHelper
get()
@NotNull ObjectOperationPolicyType
getEffectivePolicy
(ObjectType shadow, OperationResult result) getShadowMarks
(Collection<ObjectReferenceType> tagRefs, @NotNull OperationResult result) void
init()
void
updateEffectiveMarksAndPolicies
(Collection<ResourceObjectPattern> protectedAccountPatterns, ShadowType shadow, OperationResult result)
-
Constructor Details
-
ObjectOperationPolicyHelper
public ObjectOperationPolicyHelper()
-
-
Method Details
-
init
@PostConstruct public void init() -
destroy
@PreDestroy public void destroy() -
getShadowMarks
public Collection<MarkType> getShadowMarks(Collection<ObjectReferenceType> tagRefs, @NotNull @NotNull OperationResult result) -
get
-
getEffectivePolicy
@NotNull public @NotNull ObjectOperationPolicyType getEffectivePolicy(ObjectType shadow, OperationResult result) -
computeEffectivePolicy
@NotNull public @NotNull ObjectOperationPolicyType computeEffectivePolicy(ObjectType shadow, OperationResult parentResult) -
updateEffectiveMarksAndPolicies
public void updateEffectiveMarksAndPolicies(Collection<ResourceObjectPattern> protectedAccountPatterns, ShadowType shadow, OperationResult result) throws SchemaException - Throws:
SchemaException
-
firstNonDefaultValue
public static OperationPolicyConfigurationType firstNonDefaultValue(Collection<MarkType> marks, Function<ObjectOperationPolicyType, OperationPolicyConfigurationType> extractor, boolean defaultValue) -
computeEffectiveMarkDelta
public ItemDelta<?,?> computeEffectiveMarkDelta(ObjectType repoShadow, ItemDelta<?, ?> modification) throws SchemaException- Throws:
SchemaException
-
computeEffectiveMarkDelta
public ItemDelta<?,?> computeEffectiveMarkDelta(@NotNull @NotNull ShadowType repoShadow, List<ObjectReferenceType> effectiveMarkRef) throws SchemaException - Throws:
SchemaException
-