Class CMSDefaultPageInterceptor
- java.lang.Object
-
- de.hybris.platform.cms2.servicelayer.interceptor.impl.CMSDefaultPageInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
public class CMSDefaultPageInterceptor extends java.lang.Object implements PrepareInterceptor
Checks if one and only one default page for a group of pages with the same label will exist after saving.
-
-
Field Summary
Fields Modifier and Type Field Description protected CMSPageDaocmsPageDao
-
Constructor Summary
Constructors Constructor Description CMSDefaultPageInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandefaultPageExists(java.util.Set<AbstractPageModel> pages)voidonPrepare(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetCmsPageDao(CMSPageDao cmsPageDao)
-
-
-
Field Detail
-
cmsPageDao
protected CMSPageDao cmsPageDao
-
-
Method Detail
-
onPrepare
public void onPrepare(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor- Parameters:
model- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
defaultPageExists
protected boolean defaultPageExists(java.util.Set<AbstractPageModel> pages)
-
setCmsPageDao
public void setCmsPageDao(CMSPageDao cmsPageDao)
-
-