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>
PrepareInterceptor
for theCategoryModel
.
-
-
Constructor Summary
Constructors Constructor Description CategoryPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPrincipalsToSuperCategories(CategoryModel category, java.util.List<PrincipalModel> newPrincipals, InterceptorContext ctx)
protected void
handleAllowedPrincipals(CategoryModel categoryModel, InterceptorContext ctx, boolean skipRootSearch)
protected boolean
isCategoryForPrincipalsResolved(CategoryModel category, InterceptorContext ctx)
protected void
markCategoryToPrincipalsResolved(CategoryModel category, InterceptorContext ctx)
void
onPrepare(CategoryModel categoryModel, InterceptorContext ctx)
Called in themodelService.saveAll()
method.protected void
replacePrincipalsForSubCategories(CategoryModel category, java.util.List<PrincipalModel> newPrincipals, InterceptorContext ctx)
void
setCategoryService(CategoryService categoryService)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(CategoryModel categoryModel, InterceptorContext ctx) throws InterceptorException
Description copied from interface:PrepareInterceptor
Called in themodelService.saveAll()
method. Prepares the values of the given model.- Specified by:
onPrepare
in 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)
-
-