Class BulkOperationItemValidator
java.lang.Object
com.broadleafcommerce.catalog.service.validation.bulkoperation.BulkOperationItemValidator
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
public class BulkOperationItemValidator
extends Object
implements com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
Entity validations for
BulkOperationItem
.- Since:
- 2.1.0-GA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BulkOperationService<BulkOperation>
void
setBulkOperationService
(BulkOperationService<BulkOperation> bulkOperationService) Lazy injection since this validator is itself a service component.boolean
supports
(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
validate
(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected void
validateBulkOperationId
(BulkOperationItem bulkOperationItem, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
validateEntityContextId
(BulkOperationItem bulkOperationItem, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
validateForCreate, validateForReplace, validateForUpdate
-
Constructor Details
-
BulkOperationItemValidator
public BulkOperationItemValidator()
-
-
Method Details
-
setBulkOperationService
@Autowired @Lazy public void setBulkOperationService(BulkOperationService<BulkOperation> bulkOperationService) Lazy injection since this validator is itself a service component. This avoids circular dependency exceptions- Parameters:
bulkOperationService
- the bulk operation service
-
supports
public boolean supports(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
supports
in interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validate
public void validate(@NonNull Object businessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
validate
in interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateBulkOperationId
protected void validateBulkOperationId(BulkOperationItem bulkOperationItem, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
validateEntityContextId
protected void validateEntityContextId(BulkOperationItem bulkOperationItem, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getBulkOperationService
-