Interface SelectModelProvider


public interface SelectModelProvider
Interface to be implemented by components which want to provide select model.
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.json.JsonObject
    getSelectModel(jakarta.json.JsonObject configuration)
    Allows a component to dynamically populate select boxes.
  • Method Details

    • getSelectModel

      jakarta.json.JsonObject getSelectModel(jakarta.json.JsonObject configuration)
      Allows a component to dynamically populate select boxes. The given configuration object contains authentication data that might be required if the values are retrieved from the desired service. The method must return a simple JSON object in which the keys are mapped to human readable labels, as shown in the following example.
       
      
       {
           "de" : "Germany"
           "us" : "United States"
       }
       
       
      Parameters:
      configuration - Config data needed to execute the method
      Returns:
      the select model for a particular select box