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
ConstructorsConstructorDescriptionEffectiveMarksAndPolicies(@NotNull Collection<ObjectReferenceType> productionModeEffectiveMarkRefs, @NotNull Collection<ObjectReferenceType> currentModeEffectiveMarkRefs, @NotNull ObjectOperationPolicyType effectiveOperationPolicy, boolean isProtected) Creates an instance of aEffectiveMarksAndPoliciesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(@NotNull ObjectType object) Applies current-mode effective marks and policies.@NotNull Collection<ObjectReferenceType>Returns the value of thecurrentModeEffectiveMarkRefsrecord component.@NotNull ObjectOperationPolicyTypeReturns the value of theeffectiveOperationPolicyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisProtectedrecord component.@NotNull Collection<ObjectReferenceType>Returns the value of theproductionModeEffectiveMarkRefsrecord component.final StringtoString()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 aEffectiveMarksAndPoliciesrecord class.- Parameters:
productionModeEffectiveMarkRefs- the value for theproductionModeEffectiveMarkRefsrecord componentcurrentModeEffectiveMarkRefs- the value for thecurrentModeEffectiveMarkRefsrecord componenteffectiveOperationPolicy- the value for theeffectiveOperationPolicyrecord componentisProtected- the value for theisProtectedrecord 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 theproductionModeEffectiveMarkRefsrecord component.- Returns:
- the value of the
productionModeEffectiveMarkRefsrecord component
-
currentModeEffectiveMarkRefs
Returns the value of thecurrentModeEffectiveMarkRefsrecord component.- Returns:
- the value of the
currentModeEffectiveMarkRefsrecord component
-
effectiveOperationPolicy
Returns the value of theeffectiveOperationPolicyrecord component.- Returns:
- the value of the
effectiveOperationPolicyrecord component
-
isProtected
public boolean isProtected()Returns the value of theisProtectedrecord component.- Returns:
- the value of the
isProtectedrecord component
-