Class TravelMandatoryAttributesValidator
java.lang.Object
de.hybris.platform.servicelayer.interceptor.impl.LocalizedMessageAwareValidator
de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator
de.hybris.platform.ndc182shoppingservices.interceptor.impl.TravelMandatoryAttributesValidator
- All Implemented Interfaces:
de.hybris.platform.servicelayer.interceptor.Interceptor,de.hybris.platform.servicelayer.interceptor.ValidateInterceptor
public class TravelMandatoryAttributesValidator
extends de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator
The ndc 18.2 extension of
MandatoryAttributesValidator-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator
de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator.MissingMandatoryAttributesException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisNdcConsigmentModel(Object model) Checks if the object is instance of ConsignmentModel and if the consignment belongs to an order with SalesApplication equal to NDC.voidonValidate(Object model, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx) This method overrides the parent one, since an order placed from ndc could not be payed in advance, hence the consignment won't have the shipping address.Methods inherited from class de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator
setModelService, setTypeServiceMethods inherited from class de.hybris.platform.servicelayer.interceptor.impl.LocalizedMessageAwareValidator
getLocalizedMessage, setL10nService
-
Constructor Details
-
TravelMandatoryAttributesValidator
public TravelMandatoryAttributesValidator()
-
-
Method Details
-
onValidate
public void onValidate(Object model, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx) throws de.hybris.platform.servicelayer.interceptor.InterceptorException This method overrides the parent one, since an order placed from ndc could not be payed in advance, hence the consignment won't have the shipping address.- Specified by:
onValidatein interfacede.hybris.platform.servicelayer.interceptor.ValidateInterceptor- Overrides:
onValidatein classde.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator- Parameters:
model- the modelctx- the context- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException
-
isNdcConsigmentModel
Checks if the object is instance of ConsignmentModel and if the consignment belongs to an order with SalesApplication equal to NDC.- Parameters:
model- the model- Returns:
- true if the model is a ndc consignmentModel.
-