Class BulkUpdateRequestValidator
- java.lang.Object
-
- com.broadleafcommerce.bulk.service.BulkUpdateRequestValidator
-
public class BulkUpdateRequestValidator extends Object
ValidatesBulkUpdateRequest
.- Author:
- Samarth Dhruva (samarthd)
- See Also:
BulkUpdateManager.initiateBulkUpdate(BulkUpdateRequest, String, String, ContextInfo)
-
-
Constructor Summary
Constructors Constructor Description BulkUpdateRequestValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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)
-
-
-
Method Detail
-
validate
public void validate(BulkUpdateRequest request, org.springframework.validation.Errors errors)
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)
-
-