Class SystemDataStepHelper
java.lang.Object
org.pentaho.di.trans.step.BaseStepHelper
org.pentaho.di.trans.steps.systemdata.SystemDataStepHelper
- All Implemented Interfaces:
StepHelperInterface
-
Field Summary
FieldsFields inherited from class org.pentaho.di.trans.step.BaseStepHelper
IS_TRANS_REFERENCE, IS_VALID_REFERENCE, log, REFERENCE_PATH, SEPARATORFields inherited from interface org.pentaho.di.trans.step.StepHelperInterface
ACTION_STATUS, FAILURE_METHOD_NOT_FOUND_RESPONSE, FAILURE_RESPONSE, STATUS, SUCCESS_RESPONSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.json.simple.JSONObjectHandles a step action based on the provided method name.protected org.json.simple.JSONObjecttype()Generates a JSON response containing all available system data types inSystemDataTypesexcept for TYPE_SYSTEM_INFO_NONE.Methods inherited from class org.pentaho.di.trans.step.BaseStepHelper
getReferencePath, isFailedResponse, stepAction, validateAndPutReferenceStatus
-
Field Details
-
RESPONSE_KEY
- See Also:
-
METHOD_NAME
- See Also:
-
-
Constructor Details
-
SystemDataStepHelper
public SystemDataStepHelper()
-
-
Method Details
-
type
protected org.json.simple.JSONObject type()Generates a JSON response containing all available system data types inSystemDataTypesexcept for TYPE_SYSTEM_INFO_NONE. Each system data type is represented as a JSON object with its code and description. The response includes a status indicating success.- Returns:
- a
JSONObjectcontaining the list of system data types and the action status.
-
handleStepAction
protected org.json.simple.JSONObject handleStepAction(String method, TransMeta transMeta, Map<String, String> queryParams) Handles a step action based on the provided method name.If the method name matches the expected
METHOD_NAME, this method delegates to thetype()method and returns its result as aJSONObject. Otherwise, it returns a failure response indicating that the requested method was not found.- Specified by:
handleStepActionin classBaseStepHelper- Parameters:
method- the name of the method to execute (case-sensitive)transMeta- the transformation metadata (currently unused for this step)queryParams- query parameters for the action (currently unused for this step)- Returns:
- a
JSONObjectcontaining either the action result or an error response - See Also:
-