public interface

PluginFormFragmentsFactory

com.atlassian.stash.ui.PluginFormFragmentsFactory

Class Overview

Factory for PluginFormFragments. Use to get a PluginFormFragments for a particular form.

Summary

Public Methods
boolean existsForKey(String formKey)
Checks if any form fragment is associated with a form key.
@Nonnull PluginFormFragments forKey(String formKey, Map<String, Object> context)
Gets the form fragments associated with a form key.
@Deprecated @Nonnull PluginFormFragments forKey(String formKey)
This method is deprecated. use forKey(String, java.util.Map)

Public Methods

public boolean existsForKey (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 "stash.admin.serversettings" for the Server Settings administration page.
Returns
  • true if any form fragment is associated with the key

@Nonnull public PluginFormFragments forKey (String formKey, 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 "stash.admin.serversettings" for the Server Settings administration page.
context map with contextual objects
Returns

@Deprecated @Nonnull public PluginFormFragments forKey (String formKey)

This method is deprecated.
use forKey(String, java.util.Map)

Gets the form fragments associated with a form key.

Parameters
formKey the key of the form to retrieve ContextualFormFragments for. For example "stash.admin.serversettings" for the Server Settings administration page.
Returns