Class PossibleValuesSpecUtils
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.v1.utils.PossibleValuesSpecUtils
Shared utilities for possible values spec definitions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyPickerRequest(org.json.JSONObject requestBody, PossibleValuesInput input) Read the record picker request (the body's "picker" object), if any.static RequestBodyBuild the shared request body schema used by all possible values endpoints.extractIdList(org.json.JSONObject requestBody) Extract the id list from the JSON request body.extractLabelList(org.json.JSONObject requestBody) Extract the label list from the JSON request body (an array, or a comma-separated string).static Map<String, Serializable> extractOtherValues(org.json.JSONObject requestBody) Extract other values map from the JSON request body.static Map<String, Serializable> extractProcessValues(org.json.JSONObject requestBody) Extract process values map from the JSON request body.static StringextractStringField(org.json.JSONObject requestBody, String fieldName) Extract a string field from the JSON request body.
-
Constructor Details
-
PossibleValuesSpecUtils
public PossibleValuesSpecUtils()
-
-
Method Details
-
defineRequestBody
Build the shared request body schema used by all possible values endpoints. -
extractStringField
-
extractIdList
-
extractLabelList
-
extractOtherValues
Extract other values map from the JSON request body. -
extractProcessValues
Extract process values map from the JSON request body. -
applyPickerRequest
Read the record picker request (the body's "picker" object), if any.
-