Record Class ObjectOperationPolicyHelper.EffectiveMarksAndPolicies
java.lang.Object
java.lang.Record
com.evolveum.midpoint.repo.common.ObjectOperationPolicyHelper.EffectiveMarksAndPolicies
- Enclosing class:
- ObjectOperationPolicyHelper
public static record ObjectOperationPolicyHelper.EffectiveMarksAndPolicies(@NotNull Collection<ObjectReferenceType> productionModeEffectiveMarkRefs, @NotNull Collection<ObjectReferenceType> currentModeEffectiveMarkRefs, @NotNull ObjectOperationPolicyType effectiveOperationPolicy, boolean isProtected)
extends Record
Contains effective mark refs (both production-mode and current-mode), and computed effective operation policy
(for the current mode).
Note that mark ref collections are always empty for generic repository.
The client must make sure that the current-mode information on mark refs will not get into the repo!
-
Constructor Summary
ConstructorDescriptionEffectiveMarksAndPolicies
(@NotNull Collection<ObjectReferenceType> productionModeEffectiveMarkRefs, @NotNull Collection<ObjectReferenceType> currentModeEffectiveMarkRefs, @NotNull ObjectOperationPolicyType effectiveOperationPolicy, boolean isProtected) Creates an instance of aEffectiveMarksAndPolicies
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTo
(@NotNull ObjectType object) Applies current-mode effective marks and policies.@NotNull Collection<ObjectReferenceType>
Returns the value of thecurrentModeEffectiveMarkRefs
record component.@NotNull ObjectOperationPolicyType
Returns the value of theeffectiveOperationPolicy
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisProtected
record component.@NotNull Collection<ObjectReferenceType>
Returns the value of theproductionModeEffectiveMarkRefs
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
EffectiveMarksAndPolicies
public EffectiveMarksAndPolicies(@NotNull @NotNull Collection<ObjectReferenceType> productionModeEffectiveMarkRefs, @NotNull @NotNull Collection<ObjectReferenceType> currentModeEffectiveMarkRefs, @NotNull @NotNull ObjectOperationPolicyType effectiveOperationPolicy, boolean isProtected) Creates an instance of aEffectiveMarksAndPolicies
record class.- Parameters:
productionModeEffectiveMarkRefs
- the value for theproductionModeEffectiveMarkRefs
record componentcurrentModeEffectiveMarkRefs
- the value for thecurrentModeEffectiveMarkRefs
record componenteffectiveOperationPolicy
- the value for theeffectiveOperationPolicy
record componentisProtected
- the value for theisProtected
record component
-
-
Method Details
-
applyTo
Applies current-mode effective marks and policies. BEWARE: make sure this information will not get into the repo! -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
productionModeEffectiveMarkRefs
Returns the value of theproductionModeEffectiveMarkRefs
record component.- Returns:
- the value of the
productionModeEffectiveMarkRefs
record component
-
currentModeEffectiveMarkRefs
Returns the value of thecurrentModeEffectiveMarkRefs
record component.- Returns:
- the value of the
currentModeEffectiveMarkRefs
record component
-
effectiveOperationPolicy
Returns the value of theeffectiveOperationPolicy
record component.- Returns:
- the value of the
effectiveOperationPolicy
record component
-
isProtected
public boolean isProtected()Returns the value of theisProtected
record component.- Returns:
- the value of the
isProtected
record component
-