public interface

PluginFormFragments

com.atlassian.bitbucket.ui.PluginFormFragments

Class Overview

Collates a collection of enabled ContextualFormFragments plugin modules defined for a particular form.

Summary

Public Methods
void execute(Map<StringString[]> requestParams)
Execute all of the ContextualFormFragments defined for this form.
@Nonnull String getErrorHtml(Map<StringString[]> requestParams, Map<StringCollection<String>> fieldErrors)
@Nonnull String getViewHtml()
void validate(Map<StringString[]> requestParams, ValidationErrors errors)
Validate all ContextualFormFragments defined for this form.

Public Methods

public void execute (Map<StringString[]> requestParams)

Execute all of the ContextualFormFragments defined for this form.

Parameters
requestParams getParameterMap() of the currently executing POST form submission

@Nonnull public String getErrorHtml (Map<StringString[]> requestParams, Map<StringCollection<String>> fieldErrors)

Parameters
requestParams getParameterMap() of the currently executing POST form submission
fieldErrors a Map of String field names to sets of String error messages.
Returns
  • rendered HTML of all fields supplied by ContextualFormFragments for this form when a validation error has occurred.

@Nonnull public String getViewHtml ()

Returns

public void validate (Map<StringString[]> requestParams, ValidationErrors errors)

Validate all ContextualFormFragments defined for this form.

Parameters
requestParams getParameterMap() of the currently executing POST form submission
errors the ValidationErrors object to be populated by any registered ContextualFormFragments