Class CategoryPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.category.interceptors.CategoryPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<CategoryModel>
public class CategoryPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<CategoryModel>
PrepareInterceptorfor theCategoryModel.
-
-
Constructor Summary
Constructors Constructor Description CategoryPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddPrincipalsToSuperCategories(CategoryModel category, java.util.List<PrincipalModel> newPrincipals, InterceptorContext ctx)protected voidhandleAllowedPrincipals(CategoryModel categoryModel, InterceptorContext ctx, boolean skipRootSearch)protected booleanisCategoryForPrincipalsResolved(CategoryModel category, InterceptorContext ctx)protected voidmarkCategoryToPrincipalsResolved(CategoryModel category, InterceptorContext ctx)voidonPrepare(CategoryModel categoryModel, InterceptorContext ctx)Called in themodelService.saveAll()method.protected voidreplacePrincipalsForSubCategories(CategoryModel category, java.util.List<PrincipalModel> newPrincipals, InterceptorContext ctx)voidsetCategoryService(CategoryService categoryService)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(CategoryModel categoryModel, InterceptorContext ctx) throws InterceptorException
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<CategoryModel>- Parameters:
categoryModel- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
handleAllowedPrincipals
protected void handleAllowedPrincipals(CategoryModel categoryModel, InterceptorContext ctx, boolean skipRootSearch)
-
replacePrincipalsForSubCategories
protected void replacePrincipalsForSubCategories(CategoryModel category, java.util.List<PrincipalModel> newPrincipals, InterceptorContext ctx)
-
addPrincipalsToSuperCategories
protected void addPrincipalsToSuperCategories(CategoryModel category, java.util.List<PrincipalModel> newPrincipals, InterceptorContext ctx)
-
markCategoryToPrincipalsResolved
protected void markCategoryToPrincipalsResolved(CategoryModel category, InterceptorContext ctx)
-
isCategoryForPrincipalsResolved
protected boolean isCategoryForPrincipalsResolved(CategoryModel category, InterceptorContext ctx)
-
setCategoryService
public void setCategoryService(CategoryService categoryService)
-
-