public interface PluginFormFragments
ContextualFormFragment
s plugin modules defined for a particular form.PluginFormFragmentsFactory
Modifier and Type | Method and Description |
---|---|
void |
execute(Map<String,String[]> requestParams)
Execute all of the
ContextualFormFragment s 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
ContextualFormFragment s defined for this form. |
@Nonnull String getViewHtml()
ContextualFormFragment
s defined for this form.ContextualFormFragment.doView(java.lang.Appendable, java.util.Map<java.lang.String, java.lang.Object>)
void validate(@Nonnull Map<String,String[]> requestParams, @Nonnull ValidationErrors errors)
ContextualFormFragment
s defined for this form.requestParams
- ServletRequest.getParameterMap()
of the currently executing
POST form submissionerrors
- the ValidationErrors
object to be populated by any registered ContextualFormFragment
sContextualFormFragment.validate(java.util.Map<java.lang.String, java.lang.String[]>, com.atlassian.bitbucket.ui.ValidationErrors, java.util.Map<java.lang.String, java.lang.Object>)
@Nonnull String getErrorHtml(@Nonnull Map<String,String[]> requestParams, @Nonnull Map<String,Collection<String>> fieldErrors)
requestParams
- ServletRequest.getParameterMap()
of the currently executing
POST form submissionfieldErrors
- a Map
of String field names to sets of String error messages.ContextualFormFragment
s for this form when a validation error has
occurred.ContextualFormFragment.doError(java.lang.Appendable, java.util.Map<java.lang.String, java.lang.String[]>, java.util.Map<java.lang.String, java.util.Collection<java.lang.String>>, java.util.Map<java.lang.String, java.lang.Object>)
void execute(@Nonnull Map<String,String[]> requestParams)
ContextualFormFragment
s defined for this form.requestParams
- ServletRequest.getParameterMap()
of the currently executing
POST form submissionContextualFormFragment.execute(java.util.Map<java.lang.String, java.lang.String[]>, java.util.Map<java.lang.String, java.lang.Object>)
Copyright © 2024 Atlassian. All rights reserved.