Record Class CapturedContext
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.context.CapturedContext
public record CapturedContext(QInstance qInstance, QSession qSession, QBackendTransaction qBackendTransaction, Stack<AbstractActionInput> actionStack, int authorizedActionScopeDepth)
extends Record
record containing the values managed by QContext.
-
Constructor Summary
ConstructorsConstructorDescriptionCapturedContext(QInstance qInstance, QSession qSession) Simpler constructorCapturedContext(QInstance qInstance, QSession qSession, QBackendTransaction qBackendTransaction, Stack<AbstractActionInput> actionStack) Constructor without an authorized-action-scope depth (e.g., for code that builds a context by hand) - such a context is never inside an authorized action scope.CapturedContext(QInstance qInstance, QSession qSession, QBackendTransaction qBackendTransaction, Stack<AbstractActionInput> actionStack, int authorizedActionScopeDepth) Creates an instance of aCapturedContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionStackrecord component.intReturns the value of theauthorizedActionScopeDepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theqBackendTransactionrecord component.Returns the value of theqInstancerecord component.qSession()Returns the value of theqSessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CapturedContext
public CapturedContext(QInstance qInstance, QSession qSession, QBackendTransaction qBackendTransaction, Stack<AbstractActionInput> actionStack) Constructor without an authorized-action-scope depth (e.g., for code that builds a context by hand) - such a context is never inside an authorized action scope. -
CapturedContext
-
CapturedContext
public CapturedContext(QInstance qInstance, QSession qSession, QBackendTransaction qBackendTransaction, Stack<AbstractActionInput> actionStack, int authorizedActionScopeDepth) Creates an instance of aCapturedContextrecord class.- Parameters:
qInstance- the value for theqInstancerecord componentqSession- the value for theqSessionrecord componentqBackendTransaction- the value for theqBackendTransactionrecord componentactionStack- the value for theactionStackrecord componentauthorizedActionScopeDepth- the value for theauthorizedActionScopeDepthrecord 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. -
qInstance
Returns the value of theqInstancerecord component.- Returns:
- the value of the
qInstancerecord component
-
qSession
Returns the value of theqSessionrecord component.- Returns:
- the value of the
qSessionrecord component
-
qBackendTransaction
Returns the value of theqBackendTransactionrecord component.- Returns:
- the value of the
qBackendTransactionrecord component
-
actionStack
Returns the value of theactionStackrecord component.- Returns:
- the value of the
actionStackrecord component
-
authorizedActionScopeDepth
public int authorizedActionScopeDepth()Returns the value of theauthorizedActionScopeDepthrecord component.- Returns:
- the value of the
authorizedActionScopeDepthrecord component
-