public interface

PluginFormFragments

com.atlassian.stash.ui.PluginFormFragments

Class Overview

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

Summary

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

Public Methods

public void execute (Map<String, String[]> requestParams)

Execute all of the ContextualFormFragments defined for this form.

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

public String getErrorHtml (Map<String, String[]> requestParams, Map<String, Collection<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.

public String getViewHtml ()

Returns

public void validate (Map<String, String[]> 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