Package com.atlassian.bitbucket.ui
Interface PluginFormFragments
public interface PluginFormFragments
Collates a collection of enabled
ContextualFormFragment
s plugin modules defined for a particular form.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Execute all of theContextualFormFragment
s defined for this form.getErrorHtml
(Map<String, String[]> requestParams, Map<String, Collection<String>> fieldErrors) void
validate
(Map<String, String[]> requestParams, ValidationErrors errors) Validate allContextualFormFragment
s defined for this form.
-
Method Details
-
getViewHtml
- Returns:
- rendered HTML of all fields supplied by
ContextualFormFragment
s defined for this form. - See Also:
-
validate
Validate allContextualFormFragment
s defined for this form.- Parameters:
requestParams
-ServletRequest.getParameterMap()
of the currently executing POST form submissionerrors
- theValidationErrors
object to be populated by any registeredContextualFormFragment
s- 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
- aMap
of String field names to sets of String error messages.- Returns:
- rendered HTML of all fields supplied by
ContextualFormFragment
s for this form when a validation error has occurred. - See Also:
-
execute
Execute all of theContextualFormFragment
s defined for this form.- Parameters:
requestParams
-ServletRequest.getParameterMap()
of the currently executing POST form submission- See Also:
-