public class VariantCategoryValidateInterceptor extends Object implements ValidateInterceptor<VariantCategoryModel>
VariantCategory that you try to save has
at most one supercategory and this supercategory is of type VariantCategory.
Also it validates that all subcategories are either of type VariantCategory
or VariantValueCategory. If the subcategories include
VariantCategory it may not be in there only once.| Constructor and Description |
|---|
VariantCategoryValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected L10NService |
getL10NService() |
protected SessionService |
getSessionService() |
void |
onValidate(VariantCategoryModel variantCategory,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setL10NService(L10NService l10NService) |
void |
setSessionService(SessionService sessionService) |
public void onValidate(VariantCategoryModel variantCategory, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<VariantCategoryModel>variantCategory - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected L10NService getL10NService()
public void setL10NService(L10NService l10NService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
Copyright © 2017 SAP SE. All Rights Reserved.