public abstract class AbstractNotificationConfigValidator extends Object
INotificationConfig| Constructor and Description |
|---|
AbstractNotificationConfigValidator(javax.servlet.http.HttpServletRequest request)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
areFieldsWithMarkersValid(Map<String,Object> model)
Tests if the fields with markers are valid or not
|
protected boolean |
areMarkersValid(String strFieldValue,
Map<String,Object> model)
Checks if a field containing markers is valid.
|
protected String |
getErrorMessageForMandatoryField(String strI18nMessage)
Gives the error message for mandatory field
|
protected boolean |
isMandatoryFieldValid(String strFieldValue)
Tests if a mandatory field is valid
|
String |
validate(Map<String,Object> model)
Validates the configuration
|
protected abstract List<String> |
validateFieldsWithoutMarker()
Validates the fields without marker
|
public AbstractNotificationConfigValidator(javax.servlet.http.HttpServletRequest request)
request - the request used to validate the configurationpublic final String validate(Map<String,Object> model)
model - the model used to vaidate the configurationprotected String getErrorMessageForMandatoryField(String strI18nMessage)
strI18nMessage - the i18n message keyprotected boolean isMandatoryFieldValid(String strFieldValue)
strFieldValue - the value of the mandatory fieldtrue if the mandatory field is valid, false otherwiseprotected boolean areMarkersValid(String strFieldValue, Map<String,Object> model)
strFieldValue - the the value of the field containing the markersmodel - the model representing the markerstrue if the field is valid, false otherwiseprotected abstract List<String> validateFieldsWithoutMarker()
Copyright © 2018 City of Paris. All rights reserved.