Record Class FieldAccessDecision
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.actions.permissions.fieldaccess.FieldAccessDecision
public record FieldAccessDecision(FieldAccessTier tier, FieldMaskStyle maskStyle, String reason, boolean exactMatchAllowed)
extends Record
A resolver decision; the reason must never contain a field value.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldAccessDecision(FieldAccessTier tier, FieldMaskStyle maskStyle, String reason) Compatibility constructor: exact-match searches are allowed by default.FieldAccessDecision(FieldAccessTier tier, FieldMaskStyle maskStyle, String reason, boolean exactMatchAllowed) Creates an instance of aFieldAccessDecisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexactMatchAllowedrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themaskStylerecord component.reason()Returns the value of thereasonrecord component.tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
FULL
-
-
Constructor Details
-
FieldAccessDecision
Compatibility constructor: exact-match searches are allowed by default. -
FieldAccessDecision
public FieldAccessDecision(FieldAccessTier tier, FieldMaskStyle maskStyle, String reason, boolean exactMatchAllowed) Creates an instance of aFieldAccessDecisionrecord class.- Parameters:
tier- the value for thetierrecord componentmaskStyle- the value for themaskStylerecord componentreason- the value for thereasonrecord componentexactMatchAllowed- the value for theexactMatchAllowedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
tier
Returns the value of thetierrecord component.- Returns:
- the value of the
tierrecord component
-
maskStyle
Returns the value of themaskStylerecord component.- Returns:
- the value of the
maskStylerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
exactMatchAllowed
public boolean exactMatchAllowed()Returns the value of theexactMatchAllowedrecord component.- Returns:
- the value of the
exactMatchAllowedrecord component
-