This is an automated email from the ASF dual-hosted git repository.

kdoran pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-api.git


The following commit(s) were added to refs/heads/main by this push:
     new 46379fb  NIFI-15787 - Add Metadata-Only Parameter Listing to 
ParameterProvider (#82)
46379fb is described below

commit 46379fba3fd0ad826e2043ebd2bd827c015d4809
Author: Pierre Villard <[email protected]>
AuthorDate: Thu Apr 2 18:43:57 2026 +0200

    NIFI-15787 - Add Metadata-Only Parameter Listing to ParameterProvider (#82)
    
    Signed-off-by: Kevin Doran <[email protected]>
---
 .../apache/nifi/parameter/ParameterProvider.java    | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/src/main/java/org/apache/nifi/parameter/ParameterProvider.java 
b/src/main/java/org/apache/nifi/parameter/ParameterProvider.java
index d8cf6ad..3e36a88 100644
--- a/src/main/java/org/apache/nifi/parameter/ParameterProvider.java
+++ b/src/main/java/org/apache/nifi/parameter/ParameterProvider.java
@@ -89,6 +89,27 @@ public interface ParameterProvider extends 
ConfigurableComponent {
      */
     List<ParameterGroup> fetchParameters(ConfigurationContext context) throws 
IOException;
 
+    /**
+     * Lists named groups of parameters from an external source, returning 
only parameter metadata without necessarily resolving
+     * parameter values. This method is intended for use cases such as 
populating a parameter picker UI, where only the names,
+     * groups, and descriptions of available parameters are needed.
+     *
+     * <p>
+     * The default implementation delegates to {@link 
#fetchParameters(ConfigurationContext)}, which fetches all parameter values.
+     * Implementations that can enumerate parameter metadata without the cost 
of fetching values (for example, by querying a
+     * catalog or running a metadata-only listing command) should override 
this method to provide an optimized implementation.
+     * In such cases, the returned {@link Parameter} objects may have {@code 
null} values.
+     * </p>
+     *
+     * @param context The <code>ConfigurationContext</code> for the provider
+     * @return A list of Parameter groups containing parameter metadata. 
Parameter values may be {@code null} if the
+     *         implementation provides metadata without resolving values.
+     * @throws IOException if there is an I/O problem while listing the 
Parameters
+     */
+    default List<ParameterGroup> listParameters(final ConfigurationContext 
context) throws IOException {
+        return fetchParameters(context);
+    }
+
     /**
      * <p>
      * Allows for the migration of an old property configuration to a new 
configuration. This allows the Parameter Provider to evolve over time,

Reply via email to