Record Class ResourcePolicyDecision
java.lang.Object
java.lang.Record
org.j7m.middleware.security.api.ResourcePolicyDecision
- Record Components:
allowed- whether the operation may proceedoverloaded- whether denial should be reported as overloadpolicyId- policy idreason- safe reason codemetadata- safe public metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourcePolicyDecisionReturns an allow decision.booleanallowed()Returns the value of theallowedrecord component.static ResourcePolicyDecisionReturns a permission denial.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.static ResourcePolicyDecisionReturns an overload denial.booleanReturns the value of theoverloadedrecord component.policyId()Returns the value of thepolicyIdrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourcePolicyDecision
-
-
Method Details
-
allow
Returns an allow decision.- Parameters:
policyId- policy id- Returns:
- allow decision
-
deny
Returns a permission denial.- Parameters:
policyId- policy idreason- safe reason- Returns:
- deny decision
-
overload
Returns an overload denial.- Parameters:
policyId- policy idreason- safe reason- Returns:
- overload decision
-
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. -
allowed
-
overloaded
public boolean overloaded()Returns the value of theoverloadedrecord component.- Returns:
- the value of the
overloadedrecord component
-
policyId
-
reason
-
metadata
-