Interface PluginFormFragmentsFactory


public interface PluginFormFragmentsFactory
Factory for PluginFormFragments. Use to get a PluginFormFragments for a particular form.
See Also:
  • Method Details

    • existsForKey

      boolean existsForKey(@Nonnull String formKey)
      Checks if any form fragment is associated with a form key.
      Parameters:
      formKey - the key of the form to check for associated form fragments. For example "bitbucket.internal.page.admin.serversettings.serversettings" for the Server Settings administration page.
      Returns:
      true if any form fragment is associated with the key
    • forKey

      @Nonnull PluginFormFragments forKey(@Nonnull String formKey, @Nonnull Map<String,Object> context)
      Gets the form fragments associated with a form key.
      Parameters:
      formKey - the key of the form to retrieve ContextualFormFragments for. For example "bitbucket.admin.serversettings" for the Server Settings administration page.
      context - map with contextual objects
      Returns:
      PluginFormFragments collating all ContextualFormFragments registered for the specified key.