Package com.atlassian.bitbucket.ui
Interface PluginFormFragments
public interface PluginFormFragments
Collates a collection of enabled
ContextualFormFragments plugin modules defined for a particular form.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidExecute all of theContextualFormFragments defined for this form.getErrorHtml(Map<String, String[]> requestParams, Map<String, Collection<String>> fieldErrors) voidvalidate(Map<String, String[]> requestParams, ValidationErrors errors) Validate allContextualFormFragments defined for this form.
-
Method Details
-
getViewHtml
- Returns:
- rendered HTML of all fields supplied by
ContextualFormFragments defined for this form. - See Also:
-
validate
Validate allContextualFormFragments defined for this form.- Parameters:
requestParams-ServletRequest.getParameterMap()of the currently executing POST form submissionerrors- theValidationErrorsobject to be populated by any registeredContextualFormFragments- See Also:
-
getErrorHtml
@Nonnull String getErrorHtml(@Nonnull Map<String, String[]> requestParams, @Nonnull Map<String, Collection<String>> fieldErrors) - Parameters:
requestParams-ServletRequest.getParameterMap()of the currently executing POST form submissionfieldErrors- aMapof 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. - See Also:
-
execute
Execute all of theContextualFormFragments defined for this form.- Parameters:
requestParams-ServletRequest.getParameterMap()of the currently executing POST form submission- See Also:
-