Class RunBackendStepInput
java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.AbstractActionInput
com.kingsrook.qqq.backend.core.model.actions.processes.RunBackendStepInput
- Direct Known Subclasses:
BackendStepPostRunInput,StreamedBackendStepInput
Input data container for the RunBackendStep action
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValue(String fieldName, Serializable value) Setter for valuesvoidcloneFieldsInto(RunBackendStepInput target) Kinda like a reverse copy-constructor -- for a subclass that wants all the field values from this object.Getter for asyncJobCallbackGetter for basepullLastRunTimeGetter for callbackGetter for frontendStepBehaviorSource of caller values and automatic record loading.booleanAccessor for processState's isStepBack attributeGetter for processName<T extends QProcessPayload>
TgetProcessPayload(Class<T> payloadClass) return a QProcessPayload subclass instance, with values populated from the current process state.protected ProcessStateAccessor for processState - protected, because we generally want to access its members through wrapper methods, we thinkGetter for records<E extends QRecordEntity>
List<E> getRecordsAsEntities(Class<E> entityClass) Getter for records converted to entities of a given type.Getter for functionNamegetTable()Getter for tableNameGetter for a single field's valuegetValueBoolean(String fieldName) Getter for a single field's valuegetValueInstant(String fieldName) Getter for a single field's valuegetValueInteger(String fieldName) Getter for a single field's valuegetValueLocalDate(String fieldName) Getter for a single field's date valuebooleangetValuePrimitiveBoolean(String fieldName) Getter for a single field's value as a primitive boolean - with null => false.Getter for valuesgetValueString(String fieldName) Getter for a single field's valuebooleanBoundary decision, independent of nested authorized scopes and caller values.voidsetAsyncJobCallback(AsyncJobCallback asyncJobCallback) Setter for asyncJobCallbackvoidsetBasepullLastRunTime(Instant basepullLastRunTime) Setter for basepullLastRunTimevoidsetCallback(QProcessCallback callback) Setter for callbackvoidsetFieldAccessEnforced(boolean fieldAccessEnforced) Set only from the process boundary; never from the process values map.voidsetFrontendStepBehavior(RunProcessInput.FrontendStepBehavior frontendStepBehavior) Setter for frontendStepBehaviorvoidsetInputSource(InputSource inputSource) voidsetProcessName(String processName) Setter for processNamevoidsetProcessTracer(ProcessTracerInterface processTracer) Setter for processTracervoidsetRecords(List<QRecord> records) Setter for recordsvoidsetStepName(String stepName) Setter for functionNamevoidsetTableName(String tableName) Setter for tableNamevoidsetValues(Map<String, Serializable> values) Setter for valuesvoidtraceMessage(ProcessTracerMessage message) withBasepullLastRunTime(Instant basepullLastRunTime) Fluent setter for basepullLastRunTimewithCallback(QProcessCallback callback) Setter for callbackwithFrontendStepBehavior(RunProcessInput.FrontendStepBehavior frontendStepBehavior) Fluent setter for frontendStepBehaviorwithFunctionName(String functionName) Setter for functionNamewithInputSource(InputSource inputSource) withProcessName(String processName) Setter for processNamewithProcessTracer(ProcessTracerInterface processTracer) Fluent setter for processTracerwithRecords(List<QRecord> records) Setter for recordswithTableName(String tableName) Fluent setter for tableNamewithValues(Map<String, Serializable> values) Setter for valuesMethods inherited from class com.kingsrook.qqq.backend.core.model.actions.AbstractActionInput
getActionIdentity, getPermissionBypassReason, getPermissionEnforcement, setPermissionEnforcement, withPermissionBypass, withPermissionEnforcement
-
Constructor Details
-
RunBackendStepInput
public RunBackendStepInput() -
RunBackendStepInput
-
-
Method Details
-
cloneFieldsInto
Kinda like a reverse copy-constructor -- for a subclass that wants all the field values from this object. Keep this in sync with the fields in this class! Of note - the processState does NOT get cloned - because... well, in our first use-case (a subclass that doesn't WANT the same/full state), that's what we needed. -
getStepMetaData
-
getProcessName
Getter for processName -
setProcessName
Setter for processName -
withProcessName
Setter for processName -
getTableName
Getter for tableName -
setTableName
Setter for tableName -
withTableName
Fluent setter for tableName -
getTable
-
getStepName
Getter for functionName -
setStepName
Setter for functionName -
withFunctionName
Setter for functionName -
getRecords
-
getRecordsAsEntities
public <E extends QRecordEntity> List<E> getRecordsAsEntities(Class<E> entityClass) throws QException Getter for records converted to entities of a given type.- Throws:
QException
-
setRecords
-
withRecords
Setter for records -
getValues
Getter for values -
setValues
Setter for values -
withValues
Setter for values -
addValue
Setter for values -
getCallback
Getter for callback -
setCallback
Setter for callback -
withCallback
Setter for callback -
getValue
Getter for a single field's value -
getValueLocalDate
-
getValueString
-
getValueBoolean
-
getValuePrimitiveBoolean
Getter for a single field's value as a primitive boolean - with null => false. -
getValueInteger
-
getValueInstant
-
getIsStepBack
public boolean getIsStepBack()Accessor for processState's isStepBack attribute -
getProcessState
Accessor for processState - protected, because we generally want to access its members through wrapper methods, we think -
setAsyncJobCallback
Description copied from class:AbstractActionInputSetter for asyncJobCallback- Overrides:
setAsyncJobCallbackin classAbstractActionInput
-
getAsyncJobCallback
Description copied from class:AbstractActionInputGetter for asyncJobCallback- Overrides:
getAsyncJobCallbackin classAbstractActionInput
-
getFrontendStepBehavior
Getter for frontendStepBehavior -
setFrontendStepBehavior
Setter for frontendStepBehavior -
withFrontendStepBehavior
public RunBackendStepInput withFrontendStepBehavior(RunProcessInput.FrontendStepBehavior frontendStepBehavior) Fluent setter for frontendStepBehavior -
getBasepullLastRunTime
Getter for basepullLastRunTime -
setBasepullLastRunTime
Setter for basepullLastRunTime -
withBasepullLastRunTime
Fluent setter for basepullLastRunTime -
setProcessTracer
Setter for processTracer -
withProcessTracer
Fluent setter for processTracer -
getProcessTracer
-
traceMessage
-
getProcess
-
getProcessPayload
return a QProcessPayload subclass instance, with values populated from the current process state.- Throws:
QException
-
getInputSource
Source of caller values and automatic record loading. Backend code continues to choose the source for its own actions independently. -
setInputSource
-
withInputSource
-
isFieldAccessEnforced
public boolean isFieldAccessEnforced()Boundary decision, independent of nested authorized scopes and caller values. -
setFieldAccessEnforced
public void setFieldAccessEnforced(boolean fieldAccessEnforced) Set only from the process boundary; never from the process values map.
-