public class VariantValueCategoryValidateInterceptor extends Object implements ValidateInterceptor<VariantValueCategoryModel>
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 |
|---|
VariantValueCategoryValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected L10NService |
getL10NService() |
protected SessionService |
getSessionService() |
void |
onValidate(VariantValueCategoryModel variantValueCategory,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setL10NService(L10NService l10NService) |
void |
setSessionService(SessionService sessionService) |
protected void |
validateSequenceWithinSiblings(List<CategoryModel> siblings,
VariantValueCategoryModel currentCategory) |
public VariantValueCategoryValidateInterceptor()
public void onValidate(VariantValueCategoryModel variantValueCategory, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<VariantValueCategoryModel>variantValueCategory - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected void validateSequenceWithinSiblings(List<CategoryModel> siblings, VariantValueCategoryModel currentCategory) 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.