Class BulkUpdateRequestValidator
java.lang.Object
com.broadleafcommerce.bulk.service.BulkUpdateRequestValidator
Validates
BulkUpdateRequest.- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(BulkUpdateRequest request, org.springframework.validation.Errors errors) Validates the fields of therequestand registers errors inerrors.protected voidvalidateName(org.springframework.validation.Errors errors) protected voidvalidateSandboxName(org.springframework.validation.Errors errors) protected voidvalidateType(org.springframework.validation.Errors errors)
-
Constructor Details
-
BulkUpdateRequestValidator
public BulkUpdateRequestValidator()
-
-
Method Details
-
validate
Validates the fields of therequestand registers errors inerrors.- Parameters:
request- the bulk update request to validateerrors- holder for validation context information. When adding field validation errors, the field names should be in the context of therequest.
-
validateName
protected void validateName(org.springframework.validation.Errors errors) -
validateType
protected void validateType(org.springframework.validation.Errors errors) -
validateSandboxName
protected void validateSandboxName(org.springframework.validation.Errors errors)
-