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 TypeMethodDescriptionvoid
validate
(BulkUpdateRequest request, org.springframework.validation.Errors errors) Validates the fields of therequest
and registers errors inerrors
.protected void
validateName
(org.springframework.validation.Errors errors) protected void
validateSandboxName
(org.springframework.validation.Errors errors) protected void
validateType
(org.springframework.validation.Errors errors)
-
Constructor Details
-
BulkUpdateRequestValidator
public BulkUpdateRequestValidator()
-
-
Method Details
-
validate
Validates the fields of therequest
and 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)
-