com.atlassian.bitbucket.setting.RepositorySettingsValidator |
This interface is deprecated.
in 5.2 for removal in 6.0. Use SettingsValidator
instead.
Handles validation of hook settings before they are persisted. Validation errors will be returned to the user and displayed against the relevant field.
Example:
public class MyValidator implements RepositorySettingsValidator { @Override public void validate(Settings settings, SettingsValidationErrors errors, Scope scope { if (settings.getString("url", "").isEmpty()) { errors.addFieldError("url", "Url field is blank, please supply one")); } } }
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Validate the given
settings before they are persisted. | |||||||||||
This method is deprecated.
in 5.2 for removal in 6.0. Use
validate(Settings, SettingsValidationErrors, Scope) instead.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.bitbucket.setting.SettingsValidator
|
Validate the given settings
before they are persisted.
settings | to be validated |
---|---|
errors | callback for reporting validation errors. |
scope | the context Repository the settings will be associated with |
This method is deprecated.
in 5.2 for removal in 6.0. Use validate(Settings, SettingsValidationErrors, Scope)
instead.
Validate the given settings
before they are persisted.
settings | to be validated |
---|---|
errors | callback for reporting validation errors. |
repository | the context Repository the settings will be associated with |