Class SystemDataStepHelper

java.lang.Object
org.pentaho.di.trans.step.BaseStepHelper
org.pentaho.di.trans.steps.systemdata.SystemDataStepHelper
All Implemented Interfaces:
StepHelperInterface

public class SystemDataStepHelper extends BaseStepHelper
  • Field Details

  • Constructor Details

    • SystemDataStepHelper

      public SystemDataStepHelper()
  • Method Details

    • type

      protected org.json.simple.JSONObject type()
      Generates a JSON response containing all available system data types in SystemDataTypes except 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 JSONObject containing 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 the type() method and returns its result as a JSONObject. Otherwise, it returns a failure response indicating that the requested method was not found.

      Specified by:
      handleStepAction in class BaseStepHelper
      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 JSONObject containing either the action result or an error response
      See Also: