Class TmaOrderItemCreateValidator
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v3.validators.TmaOrderItemCreateValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
public class TmaOrderItemCreateValidator
extends Object
implements org.springframework.validation.Validator
Validator for creation of a new
OrderItem.- Since:
- 2205
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaPlaceValidatorbooleanvoidprotected voidvalidateAction(OrderItem orderItem, org.springframework.validation.Errors errors) ValidateActionTypefrom the order item.protected voidvalidateAddParameters(OrderItem orderItem, org.springframework.validation.Errors errors) Checks if the order item structure is correct for adding an order item.protected voidvalidateChildCartItems(List<OrderItem> orderItems, org.springframework.validation.Errors errors) protected voidvalidatePlaces(OrderItem orderItem, org.springframework.validation.Errors errors) Checks that all the places on product are valid.protected voidvalidateQuantity(OrderItem orderItem, org.springframework.validation.Errors errors) Checks if the quantity of the order item is correct.
-
Constructor Details
-
TmaOrderItemCreateValidator
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
validateAction
ValidateActionTypefrom the order item.- Parameters:
orderItem- the order item to be validateerrors- the errors found
-
validateAddParameters
protected void validateAddParameters(OrderItem orderItem, org.springframework.validation.Errors errors) Checks if the order item structure is correct for adding an order item.- Parameters:
orderItem- the order item to be validatederrors- the errors found
-
validateChildCartItems
-
validateQuantity
Checks if the quantity of the order item is correct.- Parameters:
orderItem- the order item for which the quantity is validatederrors- the errors found
-
validatePlaces
Checks that all the places on product are valid.- Parameters:
orderItem- the order item to be checkederrors- the errors found
-
getPlaceValidator
-