public class GenericVariantProductValidateInterceptor extends Object implements ValidateInterceptor<GenericVariantProductModel>
VariantValueCategory - there can be only one super category of type
VariantCategory and this super category is not optional - it can't have any other Categories (normal ones) as super
categories.| Constructor and Description |
|---|
GenericVariantProductValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected L10NService |
getL10NService() |
protected SessionService |
getSessionService() |
void |
onValidate(GenericVariantProductModel genericVariant,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setL10NService(L10NService l10NService) |
void |
setSessionService(SessionService sessionService) |
protected void |
validateBaseProductSuperCategories(GenericVariantProductModel genericVariant,
Collection<CategoryModel> variantValueCategories) |
protected void |
validateSupercategories(Collection<CategoryModel> superCategories) |
public GenericVariantProductValidateInterceptor()
public void onValidate(GenericVariantProductModel genericVariant, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<GenericVariantProductModel>genericVariant - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected void validateBaseProductSuperCategories(GenericVariantProductModel genericVariant, Collection<CategoryModel> variantValueCategories) throws InterceptorException
InterceptorExceptionprotected void validateSupercategories(Collection<CategoryModel> superCategories) throws InterceptorException
InterceptorExceptionprotected L10NService getL10NService()
public void setL10NService(L10NService l10NService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
Copyright © 2017 SAP SE. All Rights Reserved.