Class CMSDefaultPageInterceptor
java.lang.Object
de.hybris.platform.cms2.servicelayer.interceptor.impl.CMSDefaultPageInterceptor
- All Implemented Interfaces:
Interceptor,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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandefaultPageExists(Set<AbstractPageModel> pages) voidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetCmsPageDao(CMSPageDao cmsPageDao)
-
Field Details
-
cmsPageDao
-
-
Constructor Details
-
CMSDefaultPageInterceptor
public CMSDefaultPageInterceptor()
-
-
Method Details
-
onPrepare
Description 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
-
setCmsPageDao
-